1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for colored table rows
85 \usepackage[table]{xcolor}
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
154 \newboolean{lettrine}
155 \IfFileExists{lettrine.sty}
156 {\usepackage{lettrine}
157 \setboolean{lettrine}{true}}
158 {\setboolean{lettrine}{false}}
162 \IfFileExists{diagbox.sty}
163 {\usepackage{diagbox}
164 \setboolean{diagbox}{true}}
165 {\setboolean{diagbox}{false}}
167 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
168 \use_default_options false
172 \maintain_unincluded_children false
174 \language_package default
179 \font_typewriter default
181 \font_default_family default
182 \use_non_tex_fonts false
188 \default_output_format default
190 \bibtex_command default
191 \index_command default
195 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
196 \pdf_author "LyX Team, Uwe Stöhr"
197 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
198 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
200 \pdf_bookmarksnumbered true
201 \pdf_bookmarksopen true
202 \pdf_bookmarksopenlevel 1
203 \pdf_breaklinks false
207 \pdf_pdfusetitle false
208 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
211 \use_package amsmath 2
212 \use_package amssymb 2
213 \use_package cancel 0
215 \use_package mathdots 1
216 \use_package mathtools 0
217 \use_package mhchem 1
218 \use_package stackrel 0
219 \use_package stmaryrd 0
220 \use_package undertilde 0
222 \cite_engine_type default
226 \paperorientation portrait
230 \notefontcolor #0000ff
237 \paragraph_separation skip
239 \quotes_language english
242 \paperpagestyle default
243 \tracking_changes false
244 \output_changes false
247 \html_be_strict false
253 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
262 \begin_layout Plain Layout
264 If you have comments or error corrections, please send them to the LyX Documenta
266 \begin_inset CommandInset href
268 name "lyx-docs@lists.lyx.org"
269 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
280 \begin_inset Note Note
283 \begin_layout Plain Layout
290 \begin_inset Newline newline
294 \begin_inset Newline newline
302 \begin_layout Standard
303 \begin_inset CommandInset toc
304 LatexCommand tableofcontents
311 \begin_layout Standard
312 \begin_inset Note Note
315 \begin_layout Plain Layout
316 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
327 diagbox, lettrine, marginnote, picinpar
334 If they are not installed you can export the document anyway but the sections
335 where the packages are required won't appear in the output.
338 \begin_layout Plain Layout
339 The latest PDF-version of this document can be found here:
340 \begin_inset Newline newline
345 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
353 \begin_layout Chapter
355 \begin_inset Index idx
358 \begin_layout Plain Layout
365 \begin_inset Index idx
368 \begin_layout Plain Layout
373 \begin_layout Plain Layout
384 \begin_layout Plain Layout
399 \begin_layout Section
401 \begin_inset Index idx
404 \begin_layout Plain Layout
405 Figures ! Graphics Dialog
411 \begin_inset CommandInset label
413 name "sec:Graphics-Dialog"
420 \begin_layout Standard
421 To insert an image into your document, place the cursor at the text position
422 you want and click on the toolbar icon
425 arg "dialog-show-new-inset graphics"
430 Insert\SpecialChar \menuseparator
434 Then a dialog will appear to choose the file to load.
435 The image will appear in the output exactly at the position where it is
439 \begin_layout Standard
440 The graphics dialog can be called at any time by clicking on an image.
441 This dialog has three tabs:
444 \begin_layout Description
449 Here you can choose an image file and adjust its appearance in the output.
450 The available units for the image size are explained in appendix
455 \begin_inset CommandInset ref
457 reference "cha:Units-available-in"
462 \begin_inset Newline newline
466 \begin_inset Index idx
469 \begin_layout Plain Layout
475 You can rotate images counter-clockwise by setting a rotation angle and
477 The image will also be rotated inside LyX.
478 \begin_inset Newline newline
482 \begin_inset Index idx
485 \begin_layout Plain Layout
491 Images can be scaled by using a percentage value or by setting the width
492 and height explicitly.
493 If you set only the width or only the height, the other size will be determined
495 If you set both, then the image will be transformed to the given size,
496 possibly distorting it.
497 To prevent the image from distortion, use the option
499 Maintain aspect ratio
502 The image will then be scaled so that its width and height don't exceed
503 the specified dimensions.
504 \begin_inset Newline newline
507 Images can be opened in a program of your choice by right-clicking on it
508 and choosing the entry
517 The program can be set for every image format in the file format settings
518 in LyX's preferences.
521 \begin_layout Description
526 Alternatively to the usage of scaling units it is possible to set image
527 coordinates to adjust the height and width of the image in the output.
528 The coordinates can also be calculated automatically by pressing the button
558 will only print the image region within the given coordinates.
559 Normally you don't need to worry about image coordinates and can ignore
563 \begin_layout Description
580 In this tab you can modify the appearance of the image within LyX and LaTeX
581 experts can specify additional LaTeX options.
582 \begin_inset Newline newline
593 makes the image appear in the output only as a frame with the size of the
595 \begin_inset Newline newline
614 option only affects zipped EPS-graphics, e.
615 \begin_inset space \thinspace{}
619 \begin_inset space \space{}
627 When the option is used the images will not be unzipped on export, since
628 LaTeX can handle them as they are.
629 \begin_inset Newline newline
632 Zipped EPS-graphics are useful to save disk space when you choose PostScript
633 as output format, see appendix
638 \begin_inset CommandInset ref
640 reference "sec:PostScript"
645 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
647 \begin_inset Newline newline
655 \begin_inset Newline newline
660 zgrep %%Bounding x.eps.gz > x.eps.bb
663 \begin_inset Newline newline
666 The second command creates the bounding box file
667 \begin_inset Quotes eld
671 \begin_inset Quotes erd
674 that is needed by LaTeX for zipped graphics.
675 \begin_inset Newline newline
686 you can define or join an image settings group.
687 \begin_inset Index idx
690 \begin_layout Plain Layout
691 Figures ! Settings grouping
696 Images within such a group share their settings, so adjusting one image
697 of the group automatically also adjusts all other images of the group in
699 So you can for example change the size for a bunch of images without the
700 need to manually change each of them.
701 Joining an existing group can also be done using the context menu of the
702 image by checking the name of the desired group.
705 \begin_layout Standard
706 \begin_inset VSpace bigskip
712 \begin_layout Standard
713 This is an example image in EPS format
717 \begin_layout Plain Layout
718 Image formats are explained in section
723 \begin_inset CommandInset ref
725 reference "sec:Image-Formats"
734 within a separate, horizontally centered paragraph:
737 \begin_layout Standard
739 \begin_inset Graphics
740 filename clipart/mobius.eps
750 \begin_layout Standard
751 This is the same image like the one above but in draft mode:
754 \begin_layout Standard
756 \begin_inset Graphics
757 filename clipart/mobius.eps
768 \begin_layout Standard
769 \begin_inset Newpage newpage
775 \begin_layout Section
777 \begin_inset CommandInset label
779 name "sec:Figure-Floats"
784 \begin_inset Index idx
787 \begin_layout Plain Layout
794 \begin_inset Index idx
797 \begin_layout Plain Layout
806 \begin_layout Standard
807 For general explanations about floats, have a look at section
812 \begin_inset CommandInset ref
814 reference "sec:FloatIntroduction"
821 \begin_layout Standard
825 arg "float-insert figure"
830 Insert\SpecialChar \menuseparator
831 Float\SpecialChar \menuseparator
834 inserts a float with a caption that has the label
835 \begin_inset Quotes eld
843 \begin_inset Quotes erd
846 (# is the actual number).
847 You can insert the image above the caption, like in Figure
852 \begin_inset CommandInset ref
854 reference "fig:kill-plat"
858 or below the caption, like in Figure
863 \begin_inset CommandInset ref
865 reference "fig:escher"
870 More about caption placement is described in section
875 \begin_inset CommandInset ref
877 reference "sec:Caption-Placement"
884 \begin_layout Standard
885 \begin_inset Float figure
890 \begin_layout Plain Layout
892 \begin_inset Graphics
893 filename clipart/platypus.eps
903 \begin_layout Plain Layout
904 \begin_inset Caption Standard
906 \begin_layout Plain Layout
907 \begin_inset CommandInset label
913 A severely distorted platypus in a float.
926 \begin_layout Standard
927 \begin_inset Float figure
932 \begin_layout Plain Layout
933 \begin_inset Caption Standard
935 \begin_layout Plain Layout
936 \begin_inset CommandInset label
951 \begin_layout Plain Layout
953 \begin_inset Graphics
954 filename clipart/escher-lsd.eps
969 \begin_layout Standard
970 \begin_inset Index idx
973 \begin_layout Plain Layout
974 References ! to Figures
984 \begin_inset CommandInset ref
986 reference "fig:kill-plat"
991 \begin_inset CommandInset ref
993 reference "fig:escher"
997 are examples of referenced figures.
998 Figures can be referenced in the text by referencing their label.
999 To do this insert a label in the caption using the menu
1001 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1011 You can now refer to the label using the menu
1013 Insert\SpecialChar \menuseparator
1015 \begin_inset space ~
1020 or the toolbar button
1023 arg "dialog-show-new-inset ref"
1027 It is important to use references to floats, rather than using vague references
1029 \begin_inset Quotes eld
1033 \begin_inset Quotes erd
1036 , because LaTeX will reposition the floats in the final document and it
1038 \begin_inset Quotes eld
1042 \begin_inset Quotes erd
1046 \begin_inset Newline newline
1049 Referencing is explained in detail in section
1050 \begin_inset space ~
1054 \begin_inset CommandInset ref
1056 reference "sec:Referencing-Floats"
1063 \begin_layout Standard
1064 Normally only one image is inserted to a figure float, but sometimes you
1065 might want to use two images with separate subcaptions.
1066 This can be done by inserting image floats into existing image floats.
1067 Note that only the main caption of the float is added to the List of Figures.
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "fig:Two-distorted-images"
1079 is an example of a figure float with two images set side by side.
1080 You can also set the images one below the other.
1082 \begin_inset space ~
1086 \begin_inset CommandInset ref
1088 reference "fig:Undefinable-structure"
1093 \begin_inset CommandInset ref
1095 reference "fig:A-Platypus"
1102 \begin_layout Standard
1103 \begin_inset Float figure
1108 \begin_layout Plain Layout
1109 \begin_inset space \hfill{}
1113 \begin_inset Float figure
1118 \begin_layout Plain Layout
1119 \begin_inset Caption Standard
1121 \begin_layout Plain Layout
1122 \begin_inset CommandInset label
1124 name "fig:Undefinable-structure"
1128 Undefinable structure.
1136 \begin_layout Plain Layout
1137 \begin_inset Graphics
1138 filename clipart/escher-lsd.eps
1151 \begin_inset space \hfill{}
1155 \begin_inset Float figure
1160 \begin_layout Plain Layout
1161 \begin_inset Caption Standard
1163 \begin_layout Plain Layout
1164 \begin_inset CommandInset label
1166 name "fig:A-Platypus"
1178 \begin_layout Plain Layout
1179 \begin_inset Graphics
1180 filename clipart/platypus.eps
1193 \begin_inset space \hfill{}
1199 \begin_layout Plain Layout
1200 \begin_inset Caption Standard
1202 \begin_layout Plain Layout
1203 \begin_inset CommandInset label
1205 name "fig:Two-distorted-images"
1210 \begin_inset CommandInset label
1212 name "fig2:Two-distorted-images-2"
1216 Two distorted images.
1217 Both images are in the image settings group named
1218 \begin_inset Quotes eld
1222 \begin_inset Quotes erd
1238 \begin_layout Standard
1239 \begin_inset Newpage newpage
1245 \begin_layout Section
1247 \begin_inset CommandInset label
1249 name "sec:Image-Formats"
1254 \begin_inset Index idx
1257 \begin_layout Plain Layout
1264 \begin_inset Index idx
1267 \begin_layout Plain Layout
1268 Figures ! Image Formats
1276 \begin_layout Standard
1277 You can insert images in any known file format.
1278 But as explained in appendix
1279 \begin_inset space ~
1283 \begin_inset CommandInset ref
1285 reference "cha:Output-File-Formats"
1289 , each output document format allows only a few image formats.
1290 LyX uses therefore the program
1294 in the background to convert the images to the right format.
1295 To increase your work flow by avoiding these conversions in the background,
1296 you could choose to use only the image formats that can directly be embedded
1297 in the output file format.
1298 The output file formats are explained in appendix
1299 \begin_inset space ~
1303 \begin_inset CommandInset ref
1305 reference "cha:Output-File-Formats"
1312 \begin_layout Standard
1313 Similar to fonts there are two types of image formats:
1316 \begin_layout Description
1318 \begin_inset space ~
1321 images consist of pixel values, often in a compressed form.
1322 They are therefore not fully scalable and look pixelated in large zooms.
1323 Well-known bitmap image formats are
1324 \begin_inset Quotes eld
1327 Graphics Interchange Format
1328 \begin_inset Quotes erd
1331 (GIF, file extension
1332 \begin_inset Quotes eld
1340 \begin_inset Quotes erd
1344 \begin_inset Index idx
1347 \begin_layout Plain Layout
1352 \begin_layout Plain Layout
1363 \begin_layout Plain Layout
1376 \begin_inset Quotes eld
1379 Portable Network Graphics
1380 \begin_inset Quotes erd
1383 (PNG, file extension
1384 \begin_inset Quotes eld
1392 \begin_inset Quotes erd
1396 \begin_inset Index idx
1399 \begin_layout Plain Layout
1404 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1428 \begin_inset Quotes eld
1431 Joint Photographic Experts Group
1432 \begin_inset Quotes erd
1435 (JPG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Quotes eld
1456 \begin_inset Quotes erd
1460 \begin_inset Index idx
1463 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1494 \begin_layout Description
1496 \begin_inset space ~
1499 images consist of vectors and can therefore be scaled to any size without
1501 The scaling ability is necessary if you want to create presentations, because
1502 presentations are always scaled by the video projector.
1503 Scaling is also useful for online documents to let the user zoom into diagrams.
1504 \begin_inset Newline newline
1507 Well-known scalable image formats are
1508 \begin_inset Quotes eld
1511 Scalable Vector Graphics
1512 \begin_inset Quotes erd
1515 (SVG, file extension
1516 \begin_inset Quotes eld
1524 \begin_inset Quotes erd
1528 \begin_inset Index idx
1531 \begin_layout Plain Layout
1536 \begin_layout Plain Layout
1547 \begin_layout Plain Layout
1560 \begin_inset Quotes eld
1563 Encapsulated PostScript
1564 \begin_inset Quotes erd
1567 (EPS, file extension
1568 \begin_inset Quotes eld
1576 \begin_inset Quotes erd
1580 \begin_inset Index idx
1583 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1615 Portable Document Format
1616 \begin_inset Quotes erd
1619 (PDF, file extension
1620 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1632 \begin_inset Index idx
1635 \begin_layout Plain Layout
1642 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 (WMF, file extension
1650 \begin_inset Quotes eld
1658 \begin_inset Quotes erd
1662 \begin_inset Index idx
1665 \begin_layout Plain Layout
1670 \begin_layout Plain Layout
1681 \begin_layout Plain Layout
1695 \begin_inset Quotes eld
1699 \begin_inset Quotes erd
1702 , because you can convert any bitmap image to a PDF or EPS-image and the
1703 result will still be a bitmap image.
1704 In such cases only a header with the image properties is added to the original
1709 \begin_layout Plain Layout
1710 In the case of PDF, the original image is additionally compressed.
1716 The PDF-files generated by
1720 are for example bitmap images.
1723 \begin_layout Standard
1724 Normally it is not possible to convert a bitmap image into a scalable one,
1726 Only the image formats PDF and EPS can directly be embedded to PDF and
1727 PostScript output files, respectively.
1728 SVG and WMF-images are recalculated to bitmaps when the output file is
1729 generated because there is currently no adequate WMF/SVG
1730 \begin_inset Formula $\to$
1733 PDF/EPS converter available.
1736 \begin_layout Chapter
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1750 \begin_layout Section
1752 \begin_inset Index idx
1755 \begin_layout Plain Layout
1756 Table ! Introduction
1764 \begin_layout Standard
1765 You can insert a table using either the toolbar button
1768 arg "tabular-insert"
1773 Insert\SpecialChar \menuseparator
1777 The toolbar button offers you a graphical selection: move the mouse to
1778 set the column/row number of the table that should be created and then
1779 press a mouse button.
1780 When you use the menu to create a table, a dialog will appear, asking you
1781 for the number of rows and columns.
1782 \begin_inset Newline newline
1785 The default table has lines around any cell and the first row appears separated
1786 from the rest of the table.
1787 This separation occurs due to a double line: The cells of the first row
1788 have a line below them and the cells of the second row have a line above
1790 Here is an example table:
1793 \begin_layout Standard
1795 \begin_inset Tabular
1796 <lyxtabular version="3" rows="4" columns="4">
1797 <features rotate="0" tabularvalignment="middle">
1798 <column alignment="center" valignment="top">
1799 <column alignment="center" valignment="top">
1800 <column alignment="center" valignment="top">
1801 <column alignment="center" valignment="top">
1803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1833 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1842 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1853 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1880 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1889 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1900 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1927 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1936 \begin_layout Plain Layout
1944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1947 \begin_layout Plain Layout
1962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1965 \begin_layout Plain Layout
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1974 \begin_layout Plain Layout
1980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1983 \begin_layout Plain Layout
1997 \begin_layout Section
1999 \begin_inset Index idx
2002 \begin_layout Plain Layout
2011 \begin_layout Standard
2012 You can alter a table by clicking on it with the right mouse button, which
2013 brings up the context menu.
2014 Under the menu entry
2018 you can adjust the settings of that cell and row/column respectively where
2019 the cursor is currently placed.
2022 More\SpecialChar \menuseparator
2025 opens the table dialog where you can adjust more things.
2026 Most of the dialog options also work on selections.
2027 This means if you select more cells, columns or rows, the action is done
2028 for the whole selection.
2029 Note that there is a difference between selecting the
2033 of the cell, and the cell itself.
2034 \begin_inset Newline newline
2037 With the dialog option
2040 \begin_inset space ~
2045 every change you make in the dialog is directly applied.
2046 If you move the cursor to another table cell the dialog will then also
2047 be updated with the parameters of the new cell.
2048 If you change length values in the dialog you must press
2052 to get the change applied.
2053 \begin_inset Newline newline
2056 You can alter tables with the following tabs of the table dialog:
2059 \begin_layout Description
2063 \begin_inset space ~
2068 Here you can set the table width
2069 \begin_inset Index idx
2072 \begin_layout Plain Layout
2078 , and the horizontal alignment and the width of the current column.
2082 \begin_inset space ~
2086 \begin_inset space ~
2091 is described in section
2092 \begin_inset space ~
2096 \begin_inset CommandInset ref
2098 reference "sub:Special-Cell-Alignment"
2103 When you have set a width you can also adjust the vertical alignment of
2105 A given width will allow the cell to have line breaks and multiple paragraphs
2107 \begin_inset space \thinspace{}
2111 \begin_inset CommandInset ref
2113 reference "sub:Multiple-Lines-in"
2118 If you set no width, the column is as wide as the content of its widest
2120 \begin_inset Newline newline
2123 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2125 \begin_inset space \thinspace{}
2129 \begin_inset CommandInset ref
2131 reference "sub:Multicolumns"
2135 or the cells of one column as multirow cell, see sec.
2136 \begin_inset space \thinspace{}
2140 \begin_inset CommandInset ref
2142 reference "sub:Multirows"
2147 \begin_inset Newline newline
2150 The rotate check boxes rotate the current cell, a selection, or the whole
2151 table counter-clockwise by 90
2152 \begin_inset space \thinspace{}
2156 The rotation is not shown within LyX, only in the output.
2157 For more information see sec.
2158 \begin_inset space \thinspace{}
2162 \begin_inset CommandInset ref
2164 reference "sec:Rotated-Table-Cells"
2169 \begin_inset Newline newline
2173 \begin_inset Note Greyedout
2176 \begin_layout Plain Layout
2181 Not all DVI-viewers are able to display rotations.
2187 \begin_inset Newline newline
2190 The table-wide vertical alignment is used for tables within text lines:
2191 \begin_inset Newline newline
2194 A line with tables with different alignments:
2195 \begin_inset Tabular
2196 <lyxtabular version="3" rows="2" columns="2">
2197 <features rotate="0" tabularvalignment="top">
2198 <column alignment="center" valignment="top" width="0pt">
2199 <column alignment="center" valignment="top">
2201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2204 \begin_layout Plain Layout
2210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2213 \begin_layout Plain Layout
2230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2233 \begin_layout Plain Layout
2248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2251 \begin_layout Plain Layout
2263 \begin_inset Tabular
2264 <lyxtabular version="3" rows="2" columns="2">
2265 <features rotate="0" tabularvalignment="middle">
2266 <column alignment="center" valignment="top">
2267 <column alignment="center" valignment="top">
2269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2272 \begin_layout Plain Layout
2278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2281 \begin_layout Plain Layout
2298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2301 \begin_layout Plain Layout
2316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2319 \begin_layout Plain Layout
2331 \begin_inset Tabular
2332 <lyxtabular version="3" rows="2" columns="2">
2333 <features rotate="0" tabularvalignment="bottom">
2334 <column alignment="center" valignment="top" width="0pt">
2335 <column alignment="center" valignment="top">
2337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2340 \begin_layout Plain Layout
2346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2349 \begin_layout Plain Layout
2366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2369 \begin_layout Plain Layout
2384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2387 \begin_layout Plain Layout
2399 \begin_inset Newline newline
2402 It is also possible to enter a LaTeX-argument which is needed for special
2403 table formattings, see sec.
2404 \begin_inset space \thinspace{}
2408 \begin_inset CommandInset ref
2410 reference "sub:Multicolumn-Calculations"
2415 \begin_inset CommandInset ref
2417 reference "sec:Colored-Tables"
2424 \begin_layout Description
2429 In this tab you can add and delete border lines for the current row/column.
2430 \begin_inset Newline newline
2433 Using the style option
2437 will convert the table to a formal table as described in sec.
2438 \begin_inset space \thinspace{}
2442 \begin_inset CommandInset ref
2444 reference "sec:Formal-Tables"
2449 \begin_inset Newline newline
2452 You can also add space here to table rows as described in sec.
2453 \begin_inset space \thinspace{}
2457 \begin_inset CommandInset ref
2459 reference "sub:Row-Spacing"
2466 \begin_layout Description
2471 This tab is to make a table a so called
2472 \begin_inset Quotes eld
2480 \begin_inset Quotes erd
2483 that can run over several pages.
2485 \begin_inset space ~
2489 \begin_inset CommandInset ref
2491 reference "sec:Longtables"
2496 \begin_inset CommandInset ref
2498 reference "sec:Special-Longtable-Issues"
2502 describe the longtable features in detail.
2505 \begin_layout Section
2507 \begin_inset Index idx
2510 \begin_layout Plain Layout
2519 \begin_layout Standard
2520 The table toolbar is an alternative to the table dialog to be able to alter
2522 It should normally appear at the bottom of LyX's main window when the cursor
2524 You can alternatively switch it on to appear always, by right-clicking
2525 in LyX's main menu bar.
2528 \begin_layout Standard
2529 The toolbar has the following icons:
2532 \begin_layout Labeling
2533 \labelwidthstring 00.00.0000
2536 arg "inset-modify tabular append-row"
2539 adds a row below the current cell or selection
2542 \begin_layout Labeling
2543 \labelwidthstring 00.00.0000
2546 arg "inset-modify tabular append-column"
2549 adds a column right beside the current cell or selection
2552 \begin_layout Labeling
2553 \labelwidthstring 00.00.0000
2556 arg "inset-modify tabular delete-row"
2559 deletes the current row or selection
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2566 arg "inset-modify tabular delete-column"
2569 deletes the current column or selection
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2576 arg "inset-modify tabular move-row-up"
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2586 arg "inset-modify tabular move-column-left"
2589 moves the column to the left
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2596 arg "inset-modify tabular move-row-down"
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "inset-modify tabular move-column-right"
2609 moves the column to the right
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2616 arg "inset-modify tabular toggle-line-top"
2619 adds a line at the top of the current cell / row or of a selection
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2626 arg "inset-modify tabular toggle-line-bottom"
2629 adds a line at the bottom of the current cell / row or of a selection
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2636 arg "inset-modify tabular toggle-line-left"
2639 adds a line at the left side of the current cell / row or of a selection
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2646 arg "inset-modify tabular toggle-line-right"
2649 adds a line at the right side of the current cell / row or of a selection
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2656 arg "inset-modify tabular set-all-lines"
2659 adds lines around the current or selected cells - if the current cell no
2660 multicolumn cell this also affects the current row and column
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2667 arg "inset-modify tabular unset-all-lines"
2670 deletes all lines of the current or selected cells - if the current cell
2671 no multicolumn cell this also affects the current row and column
2674 \begin_layout Labeling
2675 \labelwidthstring 00.00.0000
2678 arg "inset-modify tabular m-align-left"
2681 left-aligns the content of the current cell / column
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2688 arg "inset-modify tabular m-align-center"
2691 centers the content of the current cell / column horizontally
2694 \begin_layout Labeling
2695 \labelwidthstring 00.00.0000
2698 arg "inset-modify tabular m-align-right"
2701 right-aligns the content of the current cell / column
2704 \begin_layout Labeling
2705 \labelwidthstring 00.00.0000
2708 arg "inset-modify tabular align-decimal"
2711 aligns the content of the current column at a character
2714 \begin_layout Labeling
2715 \labelwidthstring 00.00.0000
2718 arg "inset-modify tabular m-valign-top"
2721 aligns the content of the current cell vertically to the top
2724 \begin_layout Labeling
2725 \labelwidthstring 00.00.0000
2728 arg "inset-modify tabular m-valign-middle"
2731 centers the content of the current cell vertically
2734 \begin_layout Labeling
2735 \labelwidthstring 00.00.0000
2738 arg "inset-modify tabular m-valign-bottom"
2741 aligns the content of the current cell vertically to the bottom
2744 \begin_layout Labeling
2745 \labelwidthstring 00.00.0000
2748 arg "inset-modify tabular set-rotate-cell"
2751 rotates the current cell or selection counter-clockwise by 90°
2754 \begin_layout Labeling
2755 \labelwidthstring 00.00.0000
2758 arg "inset-modify tabular set-rotate-tabular"
2761 rotates the whole table counter-clockwise by 90°
2764 \begin_layout Labeling
2765 \labelwidthstring 00.00.0000
2768 arg "inset-modify tabular multicolumn"
2771 sets the current cell or selection as a multicolumn
2774 \begin_layout Labeling
2775 \labelwidthstring 00.00.0000
2778 arg "inset-modify tabular multirow"
2781 sets the current cell or selection as a multirow
2784 \begin_layout Standard
2785 \begin_inset Note Greyedout
2788 \begin_layout Plain Layout
2793 For the output the vertical alignment of the first cell in a row is used
2794 for all following cells in the row.
2802 \begin_layout Section
2804 \begin_inset Index idx
2807 \begin_layout Plain Layout
2816 \begin_layout Standard
2817 In addition to the table dialog and toolbar, the menu
2819 Edit\SpecialChar \menuseparator
2822 allows you to add and delete border lines for the current row/column and
2823 to set the current selection as multicolumn.
2824 The menu is only available when the cursor is inside a table.
2827 \begin_layout Section
2829 \begin_inset CommandInset label
2831 name "sec:Table-Floats"
2836 \begin_inset Index idx
2839 \begin_layout Plain Layout
2846 \begin_inset Index idx
2849 \begin_layout Plain Layout
2858 \begin_layout Standard
2859 For general explanations about floats, have a look at section
2860 \begin_inset space ~
2864 \begin_inset CommandInset ref
2866 reference "sec:FloatIntroduction"
2873 \begin_layout Standard
2874 \begin_inset Float table
2880 \begin_layout Plain Layout
2881 \begin_inset Caption Standard
2883 \begin_layout Plain Layout
2884 \begin_inset CommandInset label
2886 name "tab:a table float"
2898 \begin_layout Plain Layout
2900 \begin_inset Tabular
2901 <lyxtabular version="3" rows="3" columns="3">
2902 <features rotate="0" tabularvalignment="middle">
2903 <column alignment="center" valignment="top" width="0pt">
2904 <column alignment="center" valignment="top" width="0pt">
2905 <column alignment="center" valignment="top" width="0pt">
2907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2910 \begin_layout Plain Layout
2925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2928 \begin_layout Plain Layout
2943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2946 \begin_layout Plain Layout
2963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2966 \begin_layout Plain Layout
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2984 \begin_layout Plain Layout
2999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3002 \begin_layout Plain Layout
3019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3022 \begin_layout Plain Layout
3032 \begin_inset Formula $\int x^{2}dx$
3040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3043 \begin_layout Plain Layout
3053 \begin_inset Formula $\left[\begin{array}{cc}
3064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3067 \begin_layout Plain Layout
3077 \begin_inset Formula $1+1=2$
3098 \begin_layout Standard
3099 Table floats can be inserted using the menu
3101 Insert\SpecialChar \menuseparator
3102 Float\SpecialChar \menuseparator
3105 or the toolbar button
3108 arg "float-insert table"
3114 \begin_layout Standard
3115 The float appears as a collapsible box with a caption that has the label
3117 \begin_inset Quotes eld
3121 \begin_inset space ~
3125 \begin_inset Quotes erd
3128 (# is the actual table number).
3129 You can insert tables in the float above or below the caption.
3132 \begin_layout Standard
3134 \begin_inset space ~
3138 \begin_inset CommandInset ref
3140 reference "tab:a table float"
3144 is an example table within a table float.
3147 \begin_layout Standard
3148 Having the caption above the table is the common rule that is unfortunately
3149 not supported in LaTeX's standard classes.
3150 This means that, if you are using the document classes
3166 , there will be no space between the caption and the table.
3167 To insert the needed space, add the following option to the load command
3168 of the LaTeX-package
3173 \begin_inset Index idx
3176 \begin_layout Plain Layout
3177 LaTeX-packages ! caption
3182 in your document preamble
3186 \begin_layout Plain Layout
3187 For more information have a look at section
3188 \begin_inset space ~
3192 \begin_inset CommandInset ref
3194 reference "sec:Caption-Placement"
3206 \begin_layout Standard
3212 \begin_layout Standard
3217 , which is described in section
3218 \begin_inset space ~
3222 \begin_inset CommandInset ref
3224 reference "sec:Caption-Formatting"
3228 , is used to adjust the caption format.
3231 \begin_layout Standard
3232 \begin_inset Index idx
3235 \begin_layout Plain Layout
3236 References ! to Tables
3241 Tables can be cross-referenced in the text by referencing their label.
3242 To do this insert a label in the caption using the menu
3244 Insert\SpecialChar \menuseparator
3247 or the toolbar button
3254 You can now refer to the label using the menu
3256 Insert\SpecialChar \menuseparator
3258 \begin_inset space ~
3263 or the toolbar button
3266 arg "dialog-show-new-inset ref"
3270 \begin_inset Newline newline
3273 Referencing is explained in detail in section
3274 \begin_inset space ~
3278 \begin_inset CommandInset ref
3280 reference "sec:Referencing-Floats"
3287 \begin_layout Section
3289 \begin_inset CommandInset label
3291 name "sec:Longtables"
3296 \begin_inset Index idx
3299 \begin_layout Plain Layout
3306 \begin_inset Index idx
3309 \begin_layout Plain Layout
3318 \begin_layout Standard
3319 If the table is too long to fit on one page, you can use the option
3322 \begin_inset space ~
3326 \begin_inset space ~
3335 of the table dialog to split the table automatically over more pages.
3336 Doing this enables the following options:
3339 \begin_layout Description
3340 Header: The current row is defined to be a header row that appears on all
3341 pages of the longtable; except for the first page, if
3344 \begin_inset space ~
3350 This is therefore called the main header.
3353 \begin_layout Description
3355 \begin_inset space ~
3358 header: The current row is defined to be a header row that appears on the
3359 first page of the longtable.
3362 \begin_layout Description
3363 Footer: The current row is defined to be a footer row that appears on all
3364 pages of the longtable; except for the last page, if
3367 \begin_inset space ~
3375 \begin_layout Description
3377 \begin_inset space ~
3380 footer: The current row is defined to be a footer row that appears on the
3381 last page of the longtable.
3384 \begin_layout Description
3385 Caption: The current row contains the table caption.
3386 The row is reset as single column and a caption is inserted.
3387 More about longtable captions is explained in sec.
3388 \begin_inset space \thinspace{}
3392 \begin_inset CommandInset ref
3394 reference "sub:Longtable-Captions"
3401 \begin_layout Standard
3402 You can also specify a row where the table is split.
3403 See the following longtable to see how it works:
3406 \begin_layout Standard
3408 \begin_inset Tabular
3409 <lyxtabular version="3" rows="69" columns="3">
3410 <features rotate="0" islongtable="true" longtabularalignment="center">
3411 <column alignment="left" valignment="top" width="0cm">
3412 <column alignment="left" valignment="top" width="0pt">
3413 <column alignment="center" valignment="top" width="0pt">
3414 <row endfirsthead="true">
3415 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3418 \begin_layout Plain Layout
3421 Example Phone List (ignore the names)
3426 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3429 \begin_layout Plain Layout
3435 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Plain Layout
3445 <row endfirsthead="true">
3446 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3449 \begin_layout Plain Layout
3457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3460 \begin_layout Plain Layout
3466 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Plain Layout
3478 <row endhead="true">
3479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3482 \begin_layout Plain Layout
3490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3493 \begin_layout Plain Layout
3499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3502 \begin_layout Plain Layout
3509 <row endhead="true">
3510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3513 \begin_layout Plain Layout
3521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3524 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3533 \begin_layout Plain Layout
3542 <row endfoot="true">
3543 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3546 \begin_layout Plain Layout
3547 continued on next page
3552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3555 \begin_layout Plain Layout
3561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3564 \begin_layout Plain Layout
3572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3575 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" usebox="none">
3586 \begin_layout Plain Layout
3592 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3595 \begin_layout Plain Layout
3603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3606 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" usebox="none">
3617 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3626 \begin_layout Plain Layout
3634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3637 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" usebox="none">
3648 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3657 \begin_layout Plain Layout
3665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3668 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" usebox="none">
3679 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3688 \begin_layout Plain Layout
3696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3699 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" usebox="none">
3710 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3719 \begin_layout Plain Layout
3727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3730 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" usebox="none">
3741 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3750 \begin_layout Plain Layout
3758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3761 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" usebox="none">
3772 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3781 \begin_layout Plain Layout
3789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3792 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" usebox="none">
3803 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3812 \begin_layout Plain Layout
3820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3823 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" usebox="none">
3834 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3843 \begin_layout Plain Layout
3851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3854 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" usebox="none">
3865 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3874 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" usebox="none">
3896 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3905 \begin_layout Plain Layout
3913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3916 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" usebox="none">
3927 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3936 \begin_layout Plain Layout
3944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3947 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" usebox="none">
3958 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3967 \begin_layout Plain Layout
3975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3978 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" usebox="none">
3989 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3998 \begin_layout Plain Layout
4006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4009 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" usebox="none">
4020 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4029 \begin_layout Plain Layout
4037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4040 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" usebox="none">
4051 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4060 \begin_layout Plain Layout
4068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4071 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" usebox="none">
4082 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4091 \begin_layout Plain Layout
4099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4102 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" usebox="none">
4113 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4122 \begin_layout Plain Layout
4130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4133 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" usebox="none">
4144 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4153 \begin_layout Plain Layout
4161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4164 \begin_layout Plain Layout
4172 <cell alignment="center" valignment="top" usebox="none">
4175 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4184 \begin_layout Plain Layout
4192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="center" valignment="top" usebox="none">
4206 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4215 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="center" valignment="top" usebox="none">
4237 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4246 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="center" valignment="top" usebox="none">
4268 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4277 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="center" valignment="top" usebox="none">
4299 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4308 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="center" valignment="top" usebox="none">
4330 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4339 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="center" valignment="top" usebox="none">
4361 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4370 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="center" valignment="top" usebox="none">
4392 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4401 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="center" valignment="top" usebox="none">
4423 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4432 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="center" valignment="top" usebox="none">
4454 \begin_layout Plain Layout
4460 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4463 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="center" valignment="top" usebox="none">
4485 \begin_layout Plain Layout
4491 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4494 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4516 \begin_layout Plain Layout
4522 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4525 \begin_layout Plain Layout
4533 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4542 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4545 \begin_layout Plain Layout
4551 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4554 \begin_layout Plain Layout
4562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4565 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" usebox="none">
4576 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4585 \begin_layout Plain Layout
4593 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4596 \begin_layout Plain Layout
4604 <cell alignment="center" valignment="top" usebox="none">
4607 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4616 \begin_layout Plain Layout
4624 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4627 \begin_layout Plain Layout
4635 <cell alignment="center" valignment="top" usebox="none">
4638 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4647 \begin_layout Plain Layout
4655 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4658 \begin_layout Plain Layout
4666 <cell alignment="center" valignment="top" usebox="none">
4669 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4678 \begin_layout Plain Layout
4686 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4689 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" usebox="none">
4700 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4709 \begin_layout Plain Layout
4717 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4720 \begin_layout Plain Layout
4728 <cell alignment="center" valignment="top" usebox="none">
4731 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4740 \begin_layout Plain Layout
4748 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4751 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" usebox="none">
4762 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4771 \begin_layout Plain Layout
4779 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4782 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" usebox="none">
4793 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4802 \begin_layout Plain Layout
4810 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4813 \begin_layout Plain Layout
4821 <cell alignment="center" valignment="top" usebox="none">
4824 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4833 \begin_layout Plain Layout
4841 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4844 \begin_layout Plain Layout
4852 <cell alignment="center" valignment="top" usebox="none">
4855 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4864 \begin_layout Plain Layout
4872 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4875 \begin_layout Plain Layout
4883 <cell alignment="center" valignment="top" usebox="none">
4886 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4895 \begin_layout Plain Layout
4903 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4906 \begin_layout Plain Layout
4914 <cell alignment="center" valignment="top" usebox="none">
4917 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4926 \begin_layout Plain Layout
4934 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4937 \begin_layout Plain Layout
4945 <cell alignment="center" valignment="top" usebox="none">
4948 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4957 \begin_layout Plain Layout
4965 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4968 \begin_layout Plain Layout
4976 <cell alignment="center" valignment="top" usebox="none">
4979 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4988 \begin_layout Plain Layout
4996 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4999 \begin_layout Plain Layout
5007 <cell alignment="center" valignment="top" usebox="none">
5010 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5019 \begin_layout Plain Layout
5027 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5030 \begin_layout Plain Layout
5038 <cell alignment="center" valignment="top" usebox="none">
5041 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5050 \begin_layout Plain Layout
5058 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5061 \begin_layout Plain Layout
5069 <cell alignment="center" valignment="top" usebox="none">
5072 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5081 \begin_layout Plain Layout
5089 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5092 \begin_layout Plain Layout
5100 <cell alignment="center" valignment="top" usebox="none">
5103 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5112 \begin_layout Plain Layout
5120 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5123 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" usebox="none">
5134 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5143 \begin_layout Plain Layout
5151 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5154 \begin_layout Plain Layout
5162 <cell alignment="center" valignment="top" usebox="none">
5165 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5174 \begin_layout Plain Layout
5182 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5185 \begin_layout Plain Layout
5193 <cell alignment="center" valignment="top" usebox="none">
5196 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5205 \begin_layout Plain Layout
5213 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5216 \begin_layout Plain Layout
5224 <cell alignment="center" valignment="top" usebox="none">
5227 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5236 \begin_layout Plain Layout
5244 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5247 \begin_layout Plain Layout
5255 <cell alignment="center" valignment="top" usebox="none">
5258 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5267 \begin_layout Plain Layout
5275 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5278 \begin_layout Plain Layout
5286 <cell alignment="center" valignment="top" usebox="none">
5289 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5298 \begin_layout Plain Layout
5306 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5309 \begin_layout Plain Layout
5317 <cell alignment="center" valignment="top" usebox="none">
5320 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5329 \begin_layout Plain Layout
5337 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5340 \begin_layout Plain Layout
5348 <cell alignment="center" valignment="top" usebox="none">
5351 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5360 \begin_layout Plain Layout
5368 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5371 \begin_layout Plain Layout
5379 <cell alignment="center" valignment="top" usebox="none">
5382 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5391 \begin_layout Plain Layout
5399 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5402 \begin_layout Plain Layout
5410 <cell alignment="center" valignment="top" usebox="none">
5413 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5422 \begin_layout Plain Layout
5430 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5433 \begin_layout Plain Layout
5441 <cell alignment="center" valignment="top" usebox="none">
5444 \begin_layout Plain Layout
5450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5453 \begin_layout Plain Layout
5461 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5472 <cell alignment="center" valignment="top" usebox="none">
5475 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5484 \begin_layout Plain Layout
5492 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5495 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5515 \begin_layout Plain Layout
5522 <row endlastfoot="true">
5523 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5526 \begin_layout Plain Layout
5532 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5544 \begin_layout Plain Layout
5559 \begin_layout Plain Layout
5563 addtocounter{table}{-1}
5569 \begin_inset Note Note
5572 \begin_layout Plain Layout
5573 See the first greyed-out note in section
5574 \begin_inset space ~
5578 \begin_inset CommandInset ref
5580 reference "sub:Longtable-Captions"
5584 for an explanation of this command.
5592 \begin_layout Subsection
5593 Footnotes in Longtables
5594 \begin_inset CommandInset label
5596 name "sub:Footnotes-in-Longtables"
5601 \begin_inset Index idx
5604 \begin_layout Plain Layout
5605 Longtables ! Footnotes
5613 \begin_layout Standard
5614 Footnotes can be inserted to every longtable cell.
5615 They appear at the bottom of the page where the table cell with the footnote
5618 \begin_inset space ~
5622 \begin_inset CommandInset ref
5624 reference "tab:DiffCaptions"
5628 has for example a footnote.
5631 \begin_layout Subsection
5633 \begin_inset Index idx
5636 \begin_layout Plain Layout
5637 Longtables ! Alignment
5645 \begin_layout Standard
5646 The horizontal alignment of longtables can be set in the table settings
5648 For left- and right-alignment the table will be directly at the page border.
5649 To add space between the table and the border one has to set the alignment
5650 to center and change the value of the LaTeX-lengths
5662 by inserting this line as TeX-Code before the longtable:
5665 \begin_layout Standard
5675 \begin_layout Standard
5676 The value can have any of the units listed in Table
5677 \begin_inset space ~
5681 \begin_inset CommandInset ref
5683 reference "tab:Units"
5694 controls the horizontal distance from the left page border to the longtable,
5701 the distance from the right side.
5702 The default value for both lengths is
5708 , which is in this case the same as an horizontal fill in LyX.
5711 \begin_layout Standard
5712 The following longtable was centered and
5728 \begin_layout Plain Layout
5744 \begin_layout Standard
5745 \begin_inset Tabular
5746 <lyxtabular version="3" rows="5" columns="5">
5747 <features rotate="0" islongtable="true" longtabularalignment="center">
5748 <column alignment="center" valignment="top">
5749 <column alignment="center" valignment="top" width="0pt">
5750 <column alignment="center" valignment="top">
5751 <column alignment="center" valignment="top">
5752 <column alignment="center" valignment="top">
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Plain Layout
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Plain Layout
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5775 \begin_layout Plain Layout
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5784 \begin_layout Plain Layout
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5793 \begin_layout Plain Layout
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5840 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5887 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5934 \begin_layout Plain Layout
5942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5945 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5954 \begin_layout Plain Layout
5960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5963 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5981 \begin_layout Plain Layout
5996 \begin_layout Plain Layout
6013 \begin_layout Plain Layout
6017 addtocounter{table}{-1}
6023 \begin_inset Note Note
6026 \begin_layout Plain Layout
6027 See the first greyed-out note in section
6028 \begin_inset space ~
6032 \begin_inset CommandInset ref
6034 reference "sub:Longtable-Captions"
6038 for an explanation of this command.
6046 \begin_layout Subsection
6048 \begin_inset Index idx
6051 \begin_layout Plain Layout
6052 Longtables ! Captions
6058 \begin_inset CommandInset label
6060 name "sub:Longtable-Captions"
6067 \begin_layout Standard
6068 A longtable cannot be put into a table float because floats can only be
6070 But the caption environment of floats can also be used for longtables when
6071 you use the longtable option
6075 as described in sec.
6076 \begin_inset space \thinspace{}
6080 \begin_inset CommandInset ref
6082 reference "sec:Longtables"
6087 Only one table row should contain a caption, either a header or a footer
6091 \begin_layout Standard
6092 Here is a short longtable to see how it works:
6095 \begin_layout Standard
6096 \begin_inset Tabular
6097 <lyxtabular version="3" rows="6" columns="5">
6098 <features rotate="0" islongtable="true" longtabularalignment="center">
6099 <column alignment="center" valignment="top">
6100 <column alignment="center" valignment="top">
6101 <column alignment="center" valignment="top">
6102 <column alignment="center" valignment="top">
6103 <column alignment="center" valignment="top">
6104 <row endfirsthead="true" caption="true">
6105 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6108 \begin_layout Plain Layout
6109 \begin_inset Caption Standard
6111 \begin_layout Plain Layout
6112 Longtable with caption
6113 \begin_inset Argument 1
6116 \begin_layout Plain Layout
6132 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6135 \begin_layout Plain Layout
6141 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6144 \begin_layout Plain Layout
6150 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6153 \begin_layout Plain Layout
6159 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6162 \begin_layout Plain Layout
6170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6173 \begin_layout Plain Layout
6179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6182 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6191 \begin_layout Plain Layout
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6200 \begin_layout Plain Layout
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6209 \begin_layout Plain Layout
6217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6256 \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" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6303 \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" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6350 \begin_layout Plain Layout
6358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6361 \begin_layout Plain Layout
6367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6370 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6388 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6397 \begin_layout Plain Layout
6411 \begin_layout Standard
6412 \begin_inset VSpace medskip
6416 \begin_inset Note Greyedout
6419 \begin_layout Plain Layout
6423 \begin_inset space ~
6428 The table number is increased for every longtable, even if you did not
6429 set a caption for it.
6430 For this reason you could have the case that e.
6431 \begin_inset space \thinspace{}
6435 \begin_inset space \space{}
6439 \begin_inset space ~
6443 \begin_inset space ~
6446 2.1 in the list of tables if there are two longtables without captions.
6447 To avoid this you can add the following command in TeX-Code after every
6448 longtable without a caption:
6451 \begin_layout Plain Layout
6456 addtocounter{table}{-1}
6459 \begin_layout Plain Layout
6460 This is not needed when none of your longtables has a caption and you add
6461 the following code to the document preamble:
6464 \begin_layout Plain Layout
6474 \begin_inset Newline newline
6485 addtocounter{table}{-1}}
6493 \begin_layout Standard
6494 \begin_inset Note Greyedout
6497 \begin_layout Plain Layout
6501 \begin_inset space ~
6511 \begin_inset Index idx
6514 \begin_layout Plain Layout
6515 LaTeX-packages ! hyperref
6528 dialog to link cross-references, the link to a longtable caption will always
6529 point to the beginning of the document.
6537 \begin_layout Subsubsection
6538 References to Longtables
6539 \begin_inset Index idx
6542 \begin_layout Plain Layout
6543 Longtables ! References
6551 \begin_layout Standard
6552 \begin_inset Tabular
6553 <lyxtabular version="3" rows="6" columns="5">
6554 <features rotate="0" islongtable="true" longtabularalignment="center">
6555 <column alignment="center" valignment="top">
6556 <column alignment="center" valignment="top">
6557 <column alignment="center" valignment="top">
6558 <column alignment="center" valignment="top">
6559 <column alignment="center" valignment="top">
6560 <row endfirsthead="true" caption="true">
6561 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6564 \begin_layout Plain Layout
6565 \begin_inset Caption Standard
6567 \begin_layout Plain Layout
6568 Referenced longtable
6569 \begin_inset CommandInset label
6571 name "tab:RefExample"
6585 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6588 \begin_layout Plain Layout
6594 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6597 \begin_layout Plain Layout
6603 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6606 \begin_layout Plain Layout
6612 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6615 \begin_layout Plain Layout
6623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6626 \begin_layout Plain Layout
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Plain Layout
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Plain Layout
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6662 \begin_layout Plain Layout
6670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6673 \begin_layout Plain Layout
6679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6709 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6720 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6756 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6767 \begin_layout Plain Layout
6773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6776 \begin_layout Plain Layout
6782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6785 \begin_layout Plain Layout
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6794 \begin_layout Plain Layout
6800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6803 \begin_layout Plain Layout
6811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6814 \begin_layout Plain Layout
6820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6823 \begin_layout Plain Layout
6829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6832 \begin_layout Plain Layout
6838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6841 \begin_layout Plain Layout
6847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6850 \begin_layout Plain Layout
6864 \begin_layout Standard
6865 To reference a longtable, insert a label into the caption.
6868 \begin_layout Standard
6869 This is a reference to Table
6870 \begin_inset space ~
6874 \begin_inset CommandInset ref
6876 reference "tab:RefExample"
6883 \begin_layout Standard
6884 The caption layout can be set together with all other captions of your document
6885 using the LaTeX-package
6890 \begin_inset Index idx
6893 \begin_layout Plain Layout
6894 LaTeX-packages ! caption
6900 \begin_inset space ~
6904 \begin_inset CommandInset ref
6906 reference "sec:Caption-Formatting"
6913 \begin_layout Subsubsection
6915 \begin_inset Index idx
6918 \begin_layout Plain Layout
6919 Longtables ! Caption Width
6927 \begin_layout Standard
6928 The maximal width of caption lines is defined by the length
6935 Its default value is 4
6936 \begin_inset space \thinspace{}
6940 To change it add the following command to your document preamble or as
6941 TeX-Code into your document before the longtable that should be affected
6944 \begin_layout Standard
6954 \begin_layout Standard
6955 where the width could have one of the units listed in appendix
6956 \begin_inset space ~
6960 \begin_inset CommandInset ref
6962 reference "cha:Units-available-in"
6969 \begin_layout Standard
6970 The following tables show the difference:
6973 \begin_layout Standard
6974 \begin_inset Tabular
6975 <lyxtabular version="3" rows="6" columns="5">
6976 <features rotate="0" islongtable="true" longtabularalignment="center">
6977 <column alignment="center" valignment="top">
6978 <column alignment="center" valignment="top">
6979 <column alignment="center" valignment="top">
6980 <column alignment="center" valignment="top">
6981 <column alignment="center" valignment="top">
6982 <row endfirsthead="true" caption="true">
6983 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6986 \begin_layout Plain Layout
6987 \begin_inset Caption Standard
6989 \begin_layout Plain Layout
6990 long full title with default width long full title with default width long
6991 full title with default width
6992 \begin_inset Argument 1
6995 \begin_layout Plain Layout
6996 caption with default width
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7032 \begin_layout Plain Layout
7038 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7041 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7088 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7135 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7182 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7220 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7229 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7267 \begin_layout Plain Layout
7273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7276 \begin_layout Plain Layout
7290 \begin_layout Standard
7294 \begin_layout Plain Layout
7306 \begin_inset Tabular
7307 <lyxtabular version="3" rows="6" columns="5">
7308 <features rotate="0" islongtable="true" longtabularalignment="center">
7309 <column alignment="center" valignment="top">
7310 <column alignment="center" valignment="top">
7311 <column alignment="center" valignment="top">
7312 <column alignment="center" valignment="top">
7313 <column alignment="center" valignment="top">
7314 <row endfirsthead="true" caption="true">
7315 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7318 \begin_layout Plain Layout
7319 \begin_inset Caption Standard
7321 \begin_layout Plain Layout
7322 long full title with width set to 5
7323 \begin_inset space \thinspace{}
7326 cm long full title with width set to 5
7327 \begin_inset space \thinspace{}
7330 cm long full title with width set to 5
7331 \begin_inset space \thinspace{}
7335 \begin_inset Argument 1
7338 \begin_layout Plain Layout
7340 \begin_inset space \thinspace{}
7344 \begin_inset space \thinspace{}
7348 \begin_inset space \thinspace{}
7366 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7369 \begin_layout Plain Layout
7375 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7378 \begin_layout Plain Layout
7384 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7387 \begin_layout Plain Layout
7393 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7396 \begin_layout Plain Layout
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7407 \begin_layout Plain Layout
7413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7416 \begin_layout Plain Layout
7422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7425 \begin_layout Plain Layout
7431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7434 \begin_layout Plain Layout
7440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7443 \begin_layout Plain Layout
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7454 \begin_layout Plain Layout
7460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7463 \begin_layout Plain Layout
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Plain Layout
7478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Plain Layout
7507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7510 \begin_layout Plain Layout
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Plain Layout
7525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7548 \begin_layout Plain Layout
7554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7557 \begin_layout Plain Layout
7563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7566 \begin_layout Plain Layout
7572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7595 \begin_layout Plain Layout
7601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7604 \begin_layout Plain Layout
7610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7613 \begin_layout Plain Layout
7619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7622 \begin_layout Plain Layout
7628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7631 \begin_layout Plain Layout
7645 \begin_layout Standard
7649 \begin_layout Plain Layout
7663 \begin_layout Standard
7664 \begin_inset Note Greyedout
7667 \begin_layout Plain Layout
7672 When the LaTeX-package
7677 \begin_inset Index idx
7680 \begin_layout Plain Layout
7681 LaTeX-packages ! caption
7686 is used, as in this document, the full page width is used for the caption
7687 when you use the default value of 4
7688 \begin_inset space \thinspace{}
7698 To get in this case exactly a 4
7699 \begin_inset space \thinspace{}
7702 in wide caption, you can either use a value slightly different from 4.0
7703 \begin_inset space \thinspace{}
7707 \begin_inset space \thinspace{}
7711 \begin_inset space \space{}
7715 \begin_inset space \thinspace{}
7718 in, or the LaTeX-command
7722 captionsetup{width=value}
7724 that is provided by the
7736 \begin_layout Subsubsection
7737 Different Captions for Table Pages
7738 \begin_inset Index idx
7741 \begin_layout Plain Layout
7742 Longtables ! Different Captions for Pages
7750 \begin_layout Standard
7751 When the table captions for the following pages should differ from the one
7752 of the first table page, mark a empty row as header which contains a caption.
7753 Then right-click on the caption and select in the context menu
7756 \begin_inset space ~
7763 \begin_inset space ~
7767 \begin_inset CommandInset ref
7769 reference "tab:DiffCaptions"
7773 is an example of a longtable with different heading where the second caption
7774 does not include the table number.
7777 \begin_layout Standard
7779 \begin_inset Tabular
7780 <lyxtabular version="3" rows="59" columns="3">
7781 <features rotate="0" islongtable="true" longtabularalignment="center">
7782 <column alignment="left" valignment="top" width="0cm">
7783 <column alignment="left" valignment="top" width="0pt">
7784 <column alignment="center" valignment="top" width="0pt">
7785 <row endfirsthead="true" caption="true">
7786 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7789 \begin_layout Plain Layout
7790 \begin_inset Caption Standard
7792 \begin_layout Plain Layout
7794 \begin_inset CommandInset label
7796 name "tab:DiffCaptions"
7801 \begin_inset Argument 1
7804 \begin_layout Plain Layout
7820 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7839 <row endfirsthead="true">
7840 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7843 \begin_layout Plain Layout
7846 Example Phone List (ignore the names)
7851 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7863 \begin_layout Plain Layout
7870 <row endfirsthead="true">
7871 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7903 <row endhead="true" caption="true">
7904 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7907 \begin_layout Plain Layout
7908 \begin_inset Caption LongTableNoNumber
7910 \begin_layout Plain Layout
7911 Continued Example Phone List
7921 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7924 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7933 \begin_layout Plain Layout
7940 <row endhead="true">
7941 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7944 \begin_layout Plain Layout
7952 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7955 \begin_layout Plain Layout
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7964 \begin_layout Plain Layout
7971 <row endhead="true">
7972 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7975 \begin_layout Plain Layout
7983 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7986 \begin_layout Plain Layout
7992 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8004 <row endfoot="true">
8005 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8008 \begin_layout Plain Layout
8009 continued on next page
8014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8017 \begin_layout Plain Layout
8023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8037 \begin_layout Plain Layout
8045 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8048 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8068 \begin_layout Plain Layout
8076 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8079 \begin_layout Plain Layout
8085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8099 \begin_layout Plain Layout
8107 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8110 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8420 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" 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="left" valignment="top" rightline="true" usebox="none">
8451 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8480 \begin_layout Plain Layout
8491 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8494 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8514 \begin_layout Plain Layout
8522 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8525 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8545 \begin_layout Plain Layout
8553 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8556 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8576 \begin_layout Plain Layout
8584 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8587 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8607 \begin_layout Plain Layout
8615 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8618 \begin_layout Plain Layout
8624 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8638 \begin_layout Plain Layout
8646 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9019 \begin_layout Plain Layout
9025 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9039 \begin_layout Plain Layout
9047 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9050 \begin_layout Plain Layout
9056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9070 \begin_layout Plain Layout
9078 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9081 \begin_layout Plain Layout
9087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9101 \begin_layout Plain Layout
9109 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9112 \begin_layout Plain Layout
9118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9132 \begin_layout Plain Layout
9140 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9143 \begin_layout Plain Layout
9149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9163 \begin_layout Plain Layout
9171 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9174 \begin_layout Plain Layout
9180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9194 \begin_layout Plain Layout
9202 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9205 \begin_layout Plain Layout
9211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9225 \begin_layout Plain Layout
9233 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9236 \begin_layout Plain Layout
9242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9256 \begin_layout Plain Layout
9264 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9267 \begin_layout Plain Layout
9273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9287 \begin_layout Plain Layout
9295 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9318 \begin_layout Plain Layout
9326 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9329 \begin_layout Plain Layout
9335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9349 \begin_layout Plain Layout
9357 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9360 \begin_layout Plain Layout
9366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9380 \begin_layout Plain Layout
9388 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9391 \begin_layout Plain Layout
9397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9411 \begin_layout Plain Layout
9419 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9422 \begin_layout Plain Layout
9428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9442 \begin_layout Plain Layout
9450 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9453 \begin_layout Plain Layout
9459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9473 \begin_layout Plain Layout
9481 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9484 \begin_layout Plain Layout
9490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9504 \begin_layout Plain Layout
9512 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9515 \begin_layout Plain Layout
9521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9535 \begin_layout Plain Layout
9543 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9546 \begin_layout Plain Layout
9552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9566 \begin_layout Plain Layout
9574 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9577 \begin_layout Plain Layout
9583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9594 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9597 \begin_layout Plain Layout
9605 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9608 \begin_layout Plain Layout
9614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9617 \begin_layout Plain Layout
9625 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9628 \begin_layout Plain Layout
9636 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9639 \begin_layout Plain Layout
9645 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9648 \begin_layout Plain Layout
9662 \begin_layout Section
9663 Special Longtable Issues
9664 \begin_inset CommandInset label
9666 name "sec:Special-Longtable-Issues"
9673 \begin_layout Subsection
9674 Longtable Calculation
9675 \begin_inset Index idx
9678 \begin_layout Plain Layout
9679 Longtables ! Calculation
9687 \begin_layout Standard
9688 LaTeX calculates the height of table pages and their page breaks using so
9690 Chunks are parts of tables that held at the same time in LaTeX's memory.
9691 The default value was historically set to only 20 table rows.
9692 If you are using longtables with many pages this may slow down the creation
9694 You can safely increase the chunk size to values of 100-1000 by adding
9695 this command line to your document preamble:
9698 \begin_layout Standard
9703 setcounter{LTchunksize}{100}
9706 \begin_layout Subsection
9707 Floats and Longtables
9708 \begin_inset Index idx
9711 \begin_layout Plain Layout
9720 \begin_layout Standard
9721 There might be problems when a float appears on the same page where a longtable
9723 To avoid such a situation, insert a
9724 \begin_inset Quotes eld
9728 \begin_inset Quotes erd
9733 Insert\SpecialChar \menuseparator
9734 Formatting\SpecialChar \menuseparator
9736 \begin_inset space ~
9741 ) before your longtable.
9744 \begin_layout Subsection
9746 \begin_inset Index idx
9749 \begin_layout Plain Layout
9750 Longtables ! Forced Page Breaks
9758 \begin_layout Standard
9759 By default tables are only broken between rows.
9760 If you have a cell with multiples lines and want to have a page break within
9761 the cell, insert the new line command
9762 \begin_inset Quotes eld
9774 \begin_inset Quotes erd
9777 as TeX-Code at the point of the cell where it can be broken.
9786 command you have to insert in TeX-Code as many
9787 \begin_inset Quotes eld
9795 \begin_inset Quotes erd
9798 characters as the number of the following table columns.
9803 is the character to separate table cells.
9804 Write in TeX-Code after each
9808 the content of the corresponding following cell and delete the content
9810 \begin_inset Newline newline
9821 command, insert as many
9825 characters as the number of table columns before the current column.
9827 \begin_inset space ~
9831 \begin_inset CommandInset ref
9833 reference "tab:ForcedPagebreak"
9837 the cell that should be broken is in the second column followed by another
9839 Therefore the following command was inserted in the cell as TeX-Code after
9841 \begin_inset Quotes eld
9849 \begin_inset Quotes erd
9855 \begin_layout Standard
9865 \begin_inset Newline newline
9871 \begin_layout Standard
9873 \begin_inset Quotes eld
9877 \begin_inset Quotes erd
9880 in the third column of the row was deleted.
9887 is only needed when a page break should definitely occur at this position,
9888 otherwise it would be a conditional break.
9889 If your footer row of the longtable has for a certain reason no upper line
9890 but you would have a horizontal line where the cell is broken, use this
9894 \begin_layout Standard
9902 \begin_inset Newline newline
9910 \begin_layout Standard
9911 When the cell to be broken is in the last column, the command
9914 \begin_layout Standard
9924 \begin_layout Standard
9925 must be inserted as TeX-Code at the beginning of the cell.
9926 This ensures that the part of the cell that will be displayed on the new
9927 page appears with the full width.
9930 \begin_layout Standard
9932 \begin_inset Tabular
9933 <lyxtabular version="3" rows="38" columns="3">
9934 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9935 <column alignment="left" valignment="top" width="0cm">
9936 <column alignment="left" valignment="top" width="3cm">
9937 <column alignment="center" valignment="top" width="0pt">
9938 <row endfirsthead="true" caption="true">
9939 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9942 \begin_layout Plain Layout
9943 \begin_inset Caption Standard
9945 \begin_layout Plain Layout
9946 Table with forced page break in table cell
9947 \begin_inset CommandInset label
9949 name "tab:ForcedPagebreak"
9954 \begin_inset Argument 1
9957 \begin_layout Plain Layout
9958 Table with forced page break in table cell
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9992 <row endfirsthead="true">
9993 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9996 \begin_layout Plain Layout
9999 Example Phone List (ignore the names)
10004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10007 \begin_layout Plain Layout
10013 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10016 \begin_layout Plain Layout
10023 <row endfirsthead="true">
10024 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10027 \begin_layout Plain Layout
10035 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10038 \begin_layout Plain Layout
10044 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10056 <row endhead="true">
10057 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10060 \begin_layout Plain Layout
10064 \begin_layout Plain Layout
10068 caption*{Continued Example Phone List}
10082 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10085 \begin_layout Plain Layout
10091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10101 <row endhead="true">
10102 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10116 \begin_layout Plain Layout
10122 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10132 <row endhead="true">
10133 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10136 \begin_layout Plain Layout
10144 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10147 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10165 <row endfoot="true">
10166 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10169 \begin_layout Plain Layout
10170 continued on next page
10175 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10178 \begin_layout Plain Layout
10184 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10209 \begin_layout Plain Layout
10215 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10240 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10271 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10302 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10333 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10364 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10395 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10426 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10457 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10488 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10519 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10539 \begin_layout Plain Layout
10547 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10550 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10570 \begin_layout Plain Layout
10578 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10581 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10601 \begin_layout Plain Layout
10609 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10612 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10632 \begin_layout Plain Layout
10640 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10643 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10663 \begin_layout Plain Layout
10671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10674 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10694 \begin_layout Plain Layout
10702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10705 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10725 \begin_layout Plain Layout
10733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10736 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10756 \begin_layout Plain Layout
10764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10767 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10787 \begin_layout Plain Layout
10795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10798 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10818 \begin_layout Plain Layout
10826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10829 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10849 \begin_layout Plain Layout
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10866 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10869 \begin_layout Plain Layout
10877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10880 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10893 Fürst von Montecompatri, 11.
10894 Fürst von Sulmona und Vivaro, 10.
10895 Fürst von Rossano, 5.
10896 Herzog von Canemorte, 11.
10897 Herzog von Palombara, 5.
10898 Herzog von Castelchiodato,
10902 \begin_layout Plain Layout
10913 \begin_layout Plain Layout
10921 Herzog von Poggionativo, 11.
10922 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10923 Graf von Valinfreda, 11.
10924 Baron von Cropalati, 11.
10925 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10930 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10944 \begin_layout Plain Layout
10952 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10955 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10975 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11006 \begin_layout Plain Layout
11014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11017 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11037 \begin_layout Plain Layout
11045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11048 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11068 \begin_layout Plain Layout
11076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11079 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11099 \begin_layout Plain Layout
11107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11110 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11130 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11147 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11150 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11169 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11172 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11181 \begin_layout Plain Layout
11195 \begin_layout Section
11196 Multiple Lines, Columns and Rows
11199 \begin_layout Subsection
11200 Multiple Lines in Table Cells
11201 \begin_inset CommandInset label
11203 name "sub:Multiple-Lines-in"
11208 \begin_inset Index idx
11211 \begin_layout Plain Layout
11212 Multiple Lines in Table Cells
11218 \begin_inset Index idx
11221 \begin_layout Plain Layout
11230 \begin_layout Standard
11232 \begin_inset Float table
11238 \begin_layout Plain Layout
11239 \begin_inset Caption Standard
11241 \begin_layout Plain Layout
11242 \begin_inset CommandInset label
11244 name "tab:Table-with-multiple"
11248 Table with multiple lines in cells
11256 \begin_layout Plain Layout
11258 \begin_inset Tabular
11259 <lyxtabular version="3" rows="3" columns="3">
11260 <features rotate="0" tabularvalignment="middle">
11261 <column alignment="center" valignment="middle" width="2.5cm">
11262 <column alignment="center" valignment="middle">
11263 <column alignment="center" valignment="middle">
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11268 \begin_layout Plain Layout
11270 \begin_inset Newline linebreak
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11281 \begin_layout Plain Layout
11287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11290 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11310 \begin_layout Plain Layout
11316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11319 \begin_layout Plain Layout
11327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11330 \begin_layout Plain Layout
11336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11339 \begin_layout Plain Layout
11345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11348 \begin_layout Plain Layout
11367 \begin_layout Standard
11368 Setting a fixed width for a column enables you to enter text as a paragraph
11369 with multiple lines and hyphenation.
11372 \begin_layout Standard
11374 \begin_inset space ~
11378 \begin_inset CommandInset ref
11380 reference "tab:Table-with-multiple"
11384 , create a 3×3 table, mark the first cell and right-click on it.
11385 In the appearing table dialog we set a cell width of 2.5
11386 \begin_inset space \thinspace{}
11389 cm and choose centered for the vertical and horizontal alignment.
11390 The vertical alignment is used for all cells of the row.
11391 As our text is smaller than 2.5
11392 \begin_inset space \thinspace{}
11395 cm, only one line will appear.
11396 To get two lines, a justified line break (shortcut
11399 arg "newline-insert linebreak"
11403 If the text is wider than the set cell width, it will automatically be
11404 broken to several lines.
11407 \begin_layout Standard
11408 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11409 by LaTeX if it is the first entry.
11410 Therefore you need to insert something to prevent the word not being the
11412 So add a horizontal space of 0
11413 \begin_inset space \thinspace{}
11416 pt before the word.
11417 As the space is zero, it doesn't change the output.
11419 \begin_inset space ~
11423 \begin_inset CommandInset ref
11425 reference "tab:Table-with-and"
11432 \begin_layout Standard
11433 \begin_inset Float table
11439 \begin_layout Plain Layout
11440 \begin_inset Caption Standard
11442 \begin_layout Plain Layout
11443 \begin_inset CommandInset label
11445 name "tab:Table-with-and"
11449 Table with and without hyphenation
11457 \begin_layout Plain Layout
11458 \begin_inset space \hfill{}
11462 \begin_inset Tabular
11463 <lyxtabular version="3" rows="3" columns="3">
11464 <features rotate="0" tabularvalignment="middle">
11465 <column alignment="center" valignment="middle" width="2.5cm">
11466 <column alignment="center" valignment="middle">
11467 <column alignment="center" valignment="middle">
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11473 verylongtablecellword
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11490 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11519 \begin_layout Plain Layout
11527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11530 \begin_layout Plain Layout
11536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11539 \begin_layout Plain Layout
11545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11548 \begin_layout Plain Layout
11560 \begin_inset space \hfill{}
11564 \begin_inset Tabular
11565 <lyxtabular version="3" rows="3" columns="3">
11566 <features rotate="0" tabularvalignment="middle">
11567 <column alignment="center" valignment="middle" width="2.5cm">
11568 <column alignment="center" valignment="middle">
11569 <column alignment="center" valignment="middle">
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11574 \begin_layout Plain Layout
11575 \begin_inset space \hspace{}
11579 verylongtablecellword
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11587 \begin_layout Plain Layout
11593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11596 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11607 \begin_layout Plain Layout
11613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Plain Layout
11666 \begin_inset space \hfill{}
11677 \begin_layout Subsection
11679 \begin_inset CommandInset label
11681 name "sub:Multicolumns"
11686 \begin_inset Index idx
11689 \begin_layout Plain Layout
11696 \begin_inset Index idx
11699 \begin_layout Plain Layout
11700 Table ! Multicolumns
11708 \begin_layout Subsubsection
11712 \begin_layout Standard
11713 To merge cells over multiple columns, select as many cells within a row
11714 as you want to merge and use either the table-toolbar button
11717 arg "inset-modify tabular multicolumn"
11722 Edit\SpecialChar \menuseparator
11723 Table\SpecialChar \menuseparator
11726 , or right click on the marked cells and choose
11730 in the context menu.
11733 \begin_layout Standard
11734 Multicolumns have there own cell settings.
11735 That means changing cell borders, cell alignment, and the width only affects
11737 Here is an example table with a multicolumn cell in the first row and one
11738 in the last row without the upper border:
11741 \begin_layout Standard
11743 \begin_inset Tabular
11744 <lyxtabular version="3" rows="3" columns="4">
11745 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11746 <column alignment="center" valignment="top" width="0pt">
11747 <column alignment="center" valignment="middle">
11748 <column alignment="center" valignment="top" width="0in">
11749 <column alignment="center" valignment="top" width="0pt">
11751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11760 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11769 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11781 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11792 \begin_layout Plain Layout
11807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11828 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11857 \begin_layout Plain Layout
11863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11866 \begin_layout Plain Layout
11880 \begin_layout Subsubsection
11881 Multicolumn Calculations
11882 \begin_inset CommandInset label
11884 name "sub:Multicolumn-Calculations"
11889 \begin_inset Index idx
11892 \begin_layout Plain Layout
11893 Multicolumns ! Calculations
11901 \begin_layout Standard
11902 LyX supports multicolumns directly, but we have to take account of the cell
11903 width of the columns spanned by the multicolumn cell.
11906 \begin_layout Standard
11907 \begin_inset Float table
11913 \begin_layout Plain Layout
11914 \begin_inset Caption Standard
11916 \begin_layout Plain Layout
11917 \begin_inset CommandInset label
11919 name "tab:Table-with-centered"
11923 Table with centered multicolumn text above two columns that have exactly
11924 half the width of the multicolumn cell
11925 \begin_inset Argument 1
11928 \begin_layout Plain Layout
11929 Perfect multicolumn table
11942 \begin_layout Plain Layout
11944 \begin_inset Tabular
11945 <lyxtabular version="3" rows="3" columns="3">
11946 <features rotate="0" tabularvalignment="middle">
11947 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11948 <column alignment="center" valignment="middle">
11949 <column alignment="center" valignment="top">
11951 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11954 \begin_layout Plain Layout
11955 multiple lines multicolumn
11960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11963 \begin_layout Plain Layout
11969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11972 \begin_layout Plain Layout
11980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11983 \begin_layout Plain Layout
11989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11992 \begin_layout Plain Layout
11998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12001 \begin_layout Plain Layout
12009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12012 \begin_layout Plain Layout
12018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12021 \begin_layout Plain Layout
12027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12030 \begin_layout Plain Layout
12049 \begin_layout Standard
12050 To create for example Table
12051 \begin_inset space ~
12055 \begin_inset CommandInset ref
12057 reference "tab:Table-with-centered"
12061 , mark the first two cells in the first row of a 3×3 table and right-click
12063 Now choose for this cell
12072 \begin_inset space \thinspace{}
12075 cm in the table dialog.
12076 The merged columns should have exactly half the width of the multicolumn
12077 cell, so that you would set a width of 1.25
12078 \begin_inset space \thinspace{}
12081 cm for the first column.
12082 The second column has then automatically a width of 1.25
12083 \begin_inset space \thinspace{}
12086 cm (multicolumn width - width of first column).
12087 This was done for Table
12088 \begin_inset space ~
12092 \begin_inset CommandInset ref
12094 reference "tab:Table-without-half"
12101 \begin_layout Standard
12102 \begin_inset Float table
12107 \begin_layout Plain Layout
12108 \begin_inset Caption Standard
12110 \begin_layout Plain Layout
12111 \begin_inset CommandInset label
12113 name "tab:Table-without-half"
12117 Table where the spanned table columns are not exactly half the width of
12118 the multicolumn cell
12119 \begin_inset Argument 1
12122 \begin_layout Plain Layout
12123 Imperfect multicolumn table
12136 \begin_layout Plain Layout
12138 \begin_inset Tabular
12139 <lyxtabular version="3" rows="3" columns="3">
12140 <features rotate="0" tabularvalignment="middle">
12141 <column alignment="center" valignment="top" width="1.25cm">
12142 <column alignment="center" valignment="top">
12143 <column alignment="center" valignment="top">
12145 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12148 \begin_layout Plain Layout
12149 multiple lines multicolumn
12154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12157 \begin_layout Plain Layout
12163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12166 \begin_layout Plain Layout
12174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12177 \begin_layout Plain Layout
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12186 \begin_layout Plain Layout
12192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12195 \begin_layout Plain Layout
12203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12206 \begin_layout Plain Layout
12212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12215 \begin_layout Plain Layout
12221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12224 \begin_layout Plain Layout
12243 \begin_layout Standard
12244 You can see that the first column is not half the width of the multicolumn
12245 cell, it is a bit bigger.
12246 The reason is that the specified width of a cell
12247 \begin_inset Formula $W_{g}$
12250 is not its total width
12251 \begin_inset Formula $W_{\mathrm{tot}}$
12254 because a cell is always a bit larger than specified.
12256 \begin_inset space ~
12260 \begin_inset CommandInset ref
12262 reference "cha:Explanation-of-Equation"
12266 explains this in detail.
12269 \begin_layout Standard
12271 \begin_inset Formula $W_{g\,n}$
12274 which the user needs to set when
12278 columns are spanned can be calculated, so that each column has a total
12280 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12284 \begin_inset Formula
12286 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12294 \begin_layout Standard
12295 In our case we have
12296 \begin_inset Formula $n=2$
12300 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12303 cm and the default values for the lengths, so that equation
12304 \begin_inset CommandInset ref
12311 \begin_inset Formula
12313 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12321 \begin_layout Standard
12322 To enable calculations in LaTeX, the LaTeX-package
12326 must be loaded with the document preamble line
12327 \begin_inset Index idx
12330 \begin_layout Plain Layout
12331 LaTeX-packages ! calc
12339 \begin_layout Standard
12347 \begin_layout Standard
12348 LyX does not allow you to calculate lengths in the
12352 field of the table dialog.
12353 Therefore you have to format the column by inserting a LaTeX-argument in
12355 Here is an overview about the arguments:
12358 \begin_layout Itemize
12363 creates cell with a fixed width, its text is vertically top-aligned
12366 \begin_layout Itemize
12371 creates cell with a fixed width, its text is vertically centered
12374 \begin_layout Itemize
12379 creates cell with a fixed width, its text is vertically bottom-aligned
12382 \begin_layout Standard
12383 By entering a LaTeX-argument, all cell settings set in the table dialog
12387 \begin_layout Standard
12388 \begin_inset Note Greyedout
12391 \begin_layout Plain Layout
12396 Due to a bug, LyX shows the overwritten settings anyway.
12404 \begin_layout Standard
12405 As the text should be horizontally centered, the command
12412 You can now enter the following LaTeX-argument for the first spanned column:
12415 \begin_layout Standard
12420 centering}m{1.25cm-6.2pt}
12423 \begin_layout Standard
12428 means, that the commands inside the braces are applied before the cell
12432 \begin_layout Standard
12433 Although we have chosen centered alignment for the text of the multicolumn
12434 cell, it is still left aligned.
12435 This is because LyX only applies the alignment to single columns.
12436 So for the multicolumn cell we have to use the LaTeX-argument
12439 \begin_layout Standard
12447 \begin_layout Subsection
12449 \begin_inset CommandInset label
12451 name "sub:Multirows"
12456 \begin_inset Index idx
12459 \begin_layout Plain Layout
12466 \begin_inset Index idx
12469 \begin_layout Plain Layout
12478 \begin_layout Standard
12479 To merge cells over multiple rows, select as many cells within a column
12480 as you want to merge and use either the table-toolbar button
12483 arg "inset-modify tabular multirow"
12488 Edit\SpecialChar \menuseparator
12489 Table\SpecialChar \menuseparator
12492 , or right click on the marked cells and choose
12496 in the context menu.
12499 \begin_layout Standard
12500 Here is an example table with a multirow in the first column:
12503 \begin_layout Standard
12505 \begin_inset Tabular
12506 <lyxtabular version="3" rows="3" columns="3">
12507 <features rotate="0" tabularvalignment="middle">
12508 <column alignment="center" valignment="top" width="0pt">
12509 <column alignment="center" valignment="top">
12510 <column alignment="center" valignment="top">
12512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12524 \begin_layout Plain Layout
12530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12533 \begin_layout Plain Layout
12541 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12544 \begin_layout Plain Layout
12550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12553 \begin_layout Plain Layout
12559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12562 \begin_layout Plain Layout
12570 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12582 \begin_layout Plain Layout
12588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12591 \begin_layout Plain Layout
12605 \begin_layout Standard
12606 The width of multirow cells is set by setting the width and alignment for
12612 shifts the content of the multirow up/down if the offset is positive/negative.
12615 \begin_layout Standard
12616 If the column of a multirow cell has no explicit width, the multirow cell
12617 inherits the alignment of the column.
12618 Otherwise it is by default left-aligned.
12619 To override the default, renew the command
12628 \begin_layout Standard
12640 \begin_layout Standard
12641 in the document preamble.
12642 Then all entries of multirow cells in the document are centered.
12643 If centering is only needed for several tables, you can renew the command
12644 in a TeX-Code box just before the table instead of the preamble.
12645 If the text should be right-aligned, replace
12658 To return to left-alignment
12667 \begin_layout Standard
12668 This is an example table with a right-aligned multirow cell that has a vertical
12670 \begin_inset space \thinspace{}
12674 \begin_inset space \thinspace{}
12680 \begin_layout Standard
12686 \begin_layout Plain Layout
12700 \begin_inset Tabular
12701 <lyxtabular version="3" rows="4" columns="3">
12702 <features rotate="0" tabularvalignment="middle">
12703 <column alignment="center" valignment="top" width="3cm">
12704 <column alignment="center" valignment="top">
12705 <column alignment="center" valignment="top">
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12710 \begin_layout Plain Layout
12716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12719 \begin_layout Plain Layout
12725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12728 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12739 \begin_layout Plain Layout
12745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12748 \begin_layout Plain Layout
12754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12757 \begin_layout Plain Layout
12765 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12777 \begin_layout Plain Layout
12783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12786 \begin_layout Plain Layout
12794 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12806 \begin_layout Plain Layout
12812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12815 \begin_layout Plain Layout
12830 \begin_layout Plain Layout
12846 \begin_layout Standard
12847 To start a new line in a multirow you can use a forced line break (shortcut
12851 arg "newline-insert newline"
12854 ) but this will not respect the cell lines as demonstrated in this table:
12857 \begin_layout Standard
12860 \begin_inset Tabular
12861 <lyxtabular version="3" rows="3" columns="2">
12862 <features rotate="0" tabularvalignment="middle">
12863 <column alignment="left" valignment="middle" width="2cm">
12864 <column alignment="center" valignment="top">
12866 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12869 \begin_layout Plain Layout
12871 \begin_inset Newline newline
12875 \begin_inset Newline newline
12883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12886 \begin_layout Plain Layout
12894 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12897 \begin_layout Plain Layout
12903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12906 \begin_layout Plain Layout
12914 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12917 \begin_layout Plain Layout
12923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12926 \begin_layout Plain Layout
12940 \begin_layout Standard
12941 Therefore be careful with forced line breaks.
12944 \begin_layout Subsection
12945 Cells with diagonal line(s)
12948 \begin_layout Standard
12949 To tell the reader what is meant by column and row headings in a table,
12950 it is helpful to split the first cell of the table by one or two diagonal
12952 This can be achieved by loading the LaTeX-package
12957 \begin_inset Index idx
12960 \begin_layout Plain Layout
12961 LaTeX-packages ! picinpar
12966 in the document preamble.
12967 The package provides the command
12973 that is inserted as TeX-Code and that can take 2 or 3
12974 \begin_inset space ~
12980 \begin_layout Standard
12985 diagbox[options]{lower left}{upper right}
12988 \begin_layout Standard
12993 diagbox[options]{lower left}{upper left}{upper right}
12996 \begin_layout Standard
12997 The first scheme divides the cell by a single diagonal line and the arguments
12998 are placed below and above this line.
12999 The second scheme divides the cell by 2
13000 \begin_inset space ~
13006 \begin_layout Standard
13010 \begin_layout Plain Layout
13020 \begin_inset Note Note
13023 \begin_layout Plain Layout
13024 The following section will only be displayed when the LaTeX-package
13036 \begin_layout Standard
13037 Here is an example table where
13043 is used in the 2-argument scheme in the first cell:
13044 \begin_inset VSpace medskip
13050 \begin_layout Standard
13052 \begin_inset Tabular
13053 <lyxtabular version="3" rows="4" columns="4">
13054 <features rotate="0" tabularvalignment="middle">
13055 <column alignment="center" valignment="top">
13056 <column alignment="center" valignment="top">
13057 <column alignment="center" valignment="top">
13058 <column alignment="center" valignment="top">
13060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13063 \begin_layout Plain Layout
13067 \begin_layout Plain Layout
13080 \begin_layout Plain Layout
13091 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13115 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13124 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13153 \begin_layout Plain Layout
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13162 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13191 \begin_layout Plain Layout
13197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13200 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13229 \begin_layout Plain Layout
13235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13238 \begin_layout Plain Layout
13250 \begin_inset VSpace medskip
13256 \begin_layout Standard
13257 The 3-argument scheme is for example useful for cross-tables of sports leagues
13261 \begin_layout Standard
13264 \begin_inset Tabular
13265 <lyxtabular version="3" rows="4" columns="4">
13266 <features rotate="0" tabularvalignment="middle">
13267 <column alignment="center" valignment="top" width="0pt">
13268 <column alignment="center" valignment="top">
13269 <column alignment="center" valignment="top">
13270 <column alignment="center" valignment="top">
13272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13275 \begin_layout Plain Layout
13279 \begin_layout Plain Layout
13292 \begin_layout Plain Layout
13303 \begin_layout Plain Layout
13314 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13329 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13338 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13347 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13367 \begin_layout Plain Layout
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13376 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13385 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13405 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13414 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13423 \begin_layout Plain Layout
13431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13434 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13443 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13452 \begin_layout Plain Layout
13458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13461 \begin_layout Plain Layout
13475 \begin_layout Standard
13476 For larger cross-tables one might use split cells in 2 or every corner of
13477 the table like in this example:
13480 \begin_layout Standard
13483 \begin_inset Tabular
13484 <lyxtabular version="3" rows="5" columns="5">
13485 <features rotate="0" tabularvalignment="middle">
13486 <column alignment="center" valignment="top" width="0pt">
13487 <column alignment="center" valignment="top">
13488 <column alignment="center" valignment="top">
13489 <column alignment="center" valignment="top">
13490 <column alignment="center" valignment="top">
13492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13495 \begin_layout Plain Layout
13499 \begin_layout Plain Layout
13512 \begin_layout Plain Layout
13523 \begin_layout Plain Layout
13534 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13549 \begin_layout Plain Layout
13555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13567 \begin_layout Plain Layout
13573 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13576 \begin_layout Plain Layout
13580 \begin_layout Plain Layout
13593 \begin_layout Plain Layout
13604 \begin_layout Plain Layout
13615 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13632 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13641 \begin_layout Plain Layout
13647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13659 \begin_layout Plain Layout
13665 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13668 \begin_layout Plain Layout
13676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13679 \begin_layout Plain Layout
13685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13688 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13715 \begin_layout Plain Layout
13723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13726 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13762 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13773 \begin_layout Plain Layout
13777 \begin_layout Plain Layout
13790 \begin_layout Plain Layout
13801 \begin_layout Plain Layout
13812 \begin_layout Plain Layout
13824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13827 \begin_layout Plain Layout
13833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13836 \begin_layout Plain Layout
13842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13845 \begin_layout Plain Layout
13851 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13854 \begin_layout Plain Layout
13858 \begin_layout Plain Layout
13871 \begin_layout Plain Layout
13882 \begin_layout Plain Layout
13893 \begin_layout Plain Layout
13913 \begin_layout Standard
13914 To rotate the diagonal lines, the command option
13939 and represent a point of a compass.
13944 is for example the south-west corner.
13945 Thus in the lower left cell of the above table the command
13948 \begin_layout Standard
13953 diagbox[dir=SW]{Team home}{Result}{Team away}
13956 \begin_layout Standard
13958 If no direction is given, it will be NW.
13961 \begin_layout Standard
13962 The necessary width of split cells is automatically calculated.
13963 Thus if you set a fixed column width smaller than the calculated one, the
13964 cell's content will protrude the cell borders:
13967 \begin_layout Standard
13970 \begin_inset Tabular
13971 <lyxtabular version="3" rows="2" columns="2">
13972 <features rotate="0" tabularvalignment="middle">
13973 <column alignment="center" valignment="top" width="3cm">
13974 <column alignment="center" valignment="top">
13976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13979 \begin_layout Plain Layout
13983 \begin_layout Plain Layout
13996 \begin_layout Plain Layout
14007 \begin_layout Plain Layout
14019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14022 \begin_layout Plain Layout
14030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14033 \begin_layout Plain Layout
14039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14042 \begin_layout Plain Layout
14056 \begin_layout Standard
14057 If you need a certain width for columns with a split cell, use the command
14062 (replace '3cm' by the width you need).
14063 In the following table the width of the first column is set to 4
14064 \begin_inset space \thinspace{}
14075 \begin_inset space \thinspace{}
14079 \begin_inset space \thinspace{}
14084 tabcolsep is necessary because the overall width is the width for the text
14085 (in this case the 4
14086 \begin_inset space \thinspace{}
14089 cm) plus two times the separation of the text and the cell border.
14090 The calculation of the width cannot be done in the command option of
14096 so one needs to create a new length which can be used later.
14097 This is done with the TeX-Code commands
14100 \begin_layout Standard
14108 \begin_inset Newline newline
14120 \begin_layout Standard
14124 \begin_layout Plain Layout
14133 \begin_layout Plain Layout
14149 \begin_layout Standard
14150 To enable calculations in LaTeX one needs to load the package
14155 \begin_inset Index idx
14158 \begin_layout Plain Layout
14159 LaTeX-packages ! calc
14164 in the document preamble.
14167 \begin_layout Standard
14168 In this table you can now use the command
14171 \begin_layout Standard
14181 \begin_layout Standard
14185 \begin_layout Standard
14188 \begin_inset Tabular
14189 <lyxtabular version="3" rows="2" columns="2">
14190 <features rotate="0" tabularvalignment="middle">
14191 <column alignment="center" valignment="top" width="4cm">
14192 <column alignment="center" valignment="top">
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14197 \begin_layout Plain Layout
14201 \begin_layout Plain Layout
14216 \begin_layout Plain Layout
14227 \begin_layout Plain Layout
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14242 \begin_layout Plain Layout
14250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14253 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14262 \begin_layout Plain Layout
14276 \begin_layout Standard
14277 Note that the split cell needs to be the widest one in the column.
14278 Otherwise the length of the diagonal line cannot be calculated correctly
14279 like in this table:
14282 \begin_layout Standard
14285 \begin_inset Tabular
14286 <lyxtabular version="3" rows="2" columns="2">
14287 <features rotate="0" tabularvalignment="middle">
14288 <column alignment="center" valignment="top" width="0pt">
14289 <column alignment="center" valignment="top">
14291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14294 \begin_layout Plain Layout
14298 \begin_layout Plain Layout
14311 \begin_layout Plain Layout
14322 \begin_layout Plain Layout
14334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14337 \begin_layout Plain Layout
14345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14348 \begin_layout Plain Layout
14354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14357 \begin_layout Plain Layout
14371 \begin_layout Standard
14372 In this case use the
14383 It is then not necessary to add 2
14385 tabcolsep because the cell width is now the width of the column.
14386 In this table a width of 3
14387 \begin_inset space \thinspace{}
14393 \begin_layout Standard
14396 \begin_inset Tabular
14397 <lyxtabular version="3" rows="2" columns="2">
14398 <features rotate="0" tabularvalignment="middle">
14399 <column alignment="center" valignment="top" width="0pt">
14400 <column alignment="center" valignment="top">
14402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14405 \begin_layout Plain Layout
14409 \begin_layout Plain Layout
14413 diagbox[width=3cm]{
14422 \begin_layout Plain Layout
14433 \begin_layout Plain Layout
14445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14448 \begin_layout Plain Layout
14456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14459 \begin_layout Plain Layout
14465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14468 \begin_layout Plain Layout
14482 \begin_layout Standard
14483 For multiple text lines in split cells one needs some extra height to fit
14484 the text to the cell.
14485 This can be achieved with the
14495 (replace '3cm' by the height you need).
14496 In the following table the command
14499 \begin_layout Standard
14504 diagbox[width=3cm,height=1.4cm]{A
14515 \begin_layout Standard
14516 is used in the first cell.
14525 creates hereby the line break.
14529 \begin_layout Plain Layout
14530 Breaking lines with
14534 is only possible when the column has a fixed width.
14542 \begin_layout Standard
14545 \begin_inset Tabular
14546 <lyxtabular version="3" rows="2" columns="2">
14547 <features rotate="0" tabularvalignment="middle">
14548 <column alignment="center" valignment="top">
14549 <column alignment="center" valignment="top">
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14554 \begin_layout Plain Layout
14558 \begin_layout Plain Layout
14562 diagbox[width=3cm,height=1.4cm]{
14571 \begin_layout Plain Layout
14586 \begin_layout Plain Layout
14597 \begin_layout Plain Layout
14612 \begin_layout Plain Layout
14624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14627 \begin_layout Plain Layout
14635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14638 \begin_layout Plain Layout
14644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14647 \begin_layout Plain Layout
14661 \begin_layout Standard
14665 \begin_layout Plain Layout
14675 \begin_inset Note Note
14678 \begin_layout Plain Layout
14679 The following will be displayed when the LaTeX-package
14691 \begin_layout Standard
14692 You need to install the LaTeX-package
14696 to see the following part of this section in the output.
14699 \begin_layout Standard
14703 \begin_layout Plain Layout
14715 \begin_layout Standard
14716 For more info about the LaTeX-package
14720 , see its documentation,
14721 \begin_inset CommandInset citation
14730 \begin_layout Section
14732 \begin_inset CommandInset label
14734 name "sec:Formal-Tables"
14739 \begin_inset Index idx
14742 \begin_layout Plain Layout
14751 \begin_layout Standard
14752 Tables are often typeset in books similar to Table
14753 \begin_inset space ~
14757 \begin_inset CommandInset ref
14759 reference "tab:Example-booktabs-table"
14764 This kind of tables is called
14765 \begin_inset Quotes eld
14773 \begin_inset Quotes erd
14777 To make a table a formal table use the option
14785 tab of the table dialog.
14788 \begin_layout Standard
14789 \begin_inset Float table
14795 \begin_layout Plain Layout
14796 \begin_inset Caption Standard
14798 \begin_layout Plain Layout
14799 \begin_inset CommandInset label
14801 name "tab:Example-booktabs-table"
14805 Example booktabs-table
14813 \begin_layout Plain Layout
14815 \begin_inset Tabular
14816 <lyxtabular version="3" rows="8" columns="4">
14817 <features rotate="0" booktabs="true" tabularvalignment="middle">
14818 <column alignment="center" valignment="top">
14819 <column alignment="center" valignment="top">
14820 <column alignment="center" valignment="top">
14821 <column alignment="center" valignment="top">
14823 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14826 \begin_layout Plain Layout
14832 <cell alignment="center" valignment="top" topline="true" usebox="none">
14835 \begin_layout Plain Layout
14837 \begin_inset space \thinspace{}
14845 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14848 \begin_layout Plain Layout
14850 \begin_inset space \thinspace{}
14858 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14861 \begin_layout Plain Layout
14869 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14872 \begin_layout Plain Layout
14876 \begin_layout Plain Layout
14889 \begin_layout Plain Layout
14898 Detector thickness in µm
14903 <cell alignment="center" valignment="top" usebox="none">
14906 \begin_layout Plain Layout
14912 <cell alignment="center" valignment="top" usebox="none">
14915 \begin_layout Plain Layout
14921 <cell alignment="center" valignment="top" usebox="none">
14924 \begin_layout Plain Layout
14932 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14935 \begin_layout Plain Layout
14941 <cell alignment="center" valignment="top" topline="true" usebox="none">
14944 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" topline="true" usebox="none">
14953 \begin_layout Plain Layout
14959 <cell alignment="center" valignment="top" topline="true" usebox="none">
14962 \begin_layout Plain Layout
14969 <row topspace="default">
14970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14973 \begin_layout Plain Layout
14974 Spatial resolution in µm
14979 <cell alignment="center" valignment="top" usebox="none">
14982 \begin_layout Plain Layout
14988 <cell alignment="center" valignment="top" usebox="none">
14991 \begin_layout Plain Layout
14997 <cell alignment="center" valignment="top" usebox="none">
15000 \begin_layout Plain Layout
15007 <row topspace="default">
15008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15011 \begin_layout Plain Layout
15013 \begin_inset Formula $f_{\mathrm{max}}$
15021 <cell alignment="center" valignment="top" usebox="none">
15024 \begin_layout Plain Layout
15030 <cell alignment="center" valignment="top" usebox="none">
15033 \begin_layout Plain Layout
15039 <cell alignment="center" valignment="top" usebox="none">
15042 \begin_layout Plain Layout
15049 <row topspace="default">
15050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15053 \begin_layout Plain Layout
15057 \begin_layout Plain Layout
15061 cmidrule[2pt](l{10pt}){1-1}
15066 LSF-spatial resolution
15071 <cell alignment="center" valignment="top" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15089 <cell alignment="center" valignment="top" usebox="none">
15092 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15127 <cell alignment="center" valignment="top" usebox="none">
15130 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15141 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15150 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15159 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15168 \begin_layout Plain Layout
15187 \begin_layout Standard
15188 Spaces to table rows can be added using the
15192 tab of the table dialog as described in section
15193 \begin_inset space ~
15197 \begin_inset CommandInset ref
15199 reference "sub:Row-Spacing"
15206 \begin_layout Standard
15207 Unlike normal tables, formal tables have no vertical table lines.
15208 The horizontal table lines can be set as for normal tables but they appear
15209 with different widths in the output:
15210 \begin_inset Newline newline
15213 The first and the last table line have a default width of 0.08
15214 \begin_inset space \thinspace{}
15217 em while the other lines have a default width of 0.05
15218 \begin_inset space \thinspace{}
15224 \begin_layout Standard
15225 The default widths can be changed with the following preamble lines
15228 \begin_layout Standard
15238 \begin_inset Newline newline
15250 \begin_layout Standard
15251 This example is for the first line, the so called
15256 If you want to change the width for the last line, replace
15265 To change the width for the other lines replace
15274 You can use all units listed in appendix
15275 \begin_inset space ~
15279 \begin_inset CommandInset ref
15281 reference "cha:Units-available-in"
15288 \begin_layout Standard
15289 Lines that do not span all table columns can be created by setting a table
15290 line for multicolumn cells.
15291 LyX will then internally use the command
15297 to create this line.
15301 \begin_layout Standard
15306 cmidrule[height](trim){startcol-endcol}
15309 \begin_layout Standard
15316 are currently not supported by LyX so you have to use TeX-Code to be able
15324 s can manually be created by inserting the command as TeX-Code as the first
15325 cell entry of the first cell of a row.
15326 The line is then drawn in the output above the current row.
15329 \begin_layout Standard
15330 The default for the optional
15335 \begin_inset space \thinspace{}
15343 is the number of the column where the line starts and
15347 the column number where the line ends.
15352 always needs to be specified, also when the line should span only one column.
15353 The optional parameter
15370 Using for example the parameter
15374 means that the line is trimmed from its left end by 2
15375 \begin_inset space \thinspace{}
15379 If you don't specify the
15383 the line is trimmed by the default of 0.5
15384 \begin_inset space \thinspace{}
15390 \begin_layout Standard
15391 \begin_inset VSpace bigskip
15395 \begin_inset space ~
15399 \begin_inset CommandInset ref
15401 reference "tab:Example-booktabs-table"
15405 was created using the commands
15408 \begin_layout Standard
15418 \begin_layout Standard
15419 at the beginning of the second row and
15422 \begin_layout Standard
15427 cmidrule[2pt](l{10pt}){1-1}
15430 \begin_layout Standard
15434 \begin_layout Standard
15435 \begin_inset VSpace bigskip
15441 \begin_layout Standard
15442 You might want to have overlapping
15449 \begin_inset space ~
15453 \begin_inset CommandInset ref
15455 reference "tab:Special-booktabs-table"
15460 This can be achieved with the TeX-Code command
15463 \begin_layout Standard
15471 \begin_layout Standard
15472 The command that was used for the second row of Table
15473 \begin_inset space ~
15477 \begin_inset CommandInset ref
15479 reference "tab:Special-booktabs-table"
15486 \begin_layout Standard
15500 \begin_layout Standard
15501 The command for the sixth row is
15504 \begin_layout Standard
15516 \begin_layout Standard
15517 \begin_inset VSpace bigskip
15523 \begin_layout Standard
15524 If you are in any way not satisfied with the border line spacing, you can
15525 use the following command to produce lines that span over all table columns
15530 \begin_layout Standard
15535 specialrule{width}{space above}{space below}
15538 \begin_layout Standard
15539 For more information about these features, refer to the manual of the LaTeX-pack
15545 \begin_inset CommandInset citation
15552 \begin_inset Index idx
15555 \begin_layout Plain Layout
15556 LaTeX-packages ! booktabs
15564 \begin_layout Standard
15565 \begin_inset Float table
15571 \begin_layout Plain Layout
15572 \begin_inset Caption Standard
15574 \begin_layout Plain Layout
15575 \begin_inset CommandInset label
15577 name "tab:Special-booktabs-table"
15581 Special booktabs-table
15589 \begin_layout Plain Layout
15591 \begin_inset Tabular
15592 <lyxtabular version="3" rows="8" columns="4">
15593 <features rotate="0" booktabs="true" tabularvalignment="middle">
15594 <column alignment="center" valignment="top">
15595 <column alignment="center" valignment="top">
15596 <column alignment="center" valignment="top">
15597 <column alignment="center" valignment="top">
15599 <cell alignment="center" valignment="top" topline="true" usebox="none">
15602 \begin_layout Plain Layout
15608 <cell alignment="center" valignment="top" topline="true" usebox="none">
15611 \begin_layout Plain Layout
15613 \begin_inset space \thinspace{}
15621 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15624 \begin_layout Plain Layout
15626 \begin_inset space \thinspace{}
15634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15637 \begin_layout Plain Layout
15645 <cell alignment="center" valignment="top" usebox="none">
15648 \begin_layout Plain Layout
15652 \begin_layout Plain Layout
15665 \begin_layout Plain Layout
15678 \begin_layout Plain Layout
15691 \begin_layout Plain Layout
15700 Detector thickness in µm
15705 <cell alignment="center" valignment="top" usebox="none">
15708 \begin_layout Plain Layout
15714 <cell alignment="center" valignment="top" usebox="none">
15717 \begin_layout Plain Layout
15723 <cell alignment="center" valignment="top" usebox="none">
15726 \begin_layout Plain Layout
15734 <cell alignment="center" valignment="top" topline="true" usebox="none">
15737 \begin_layout Plain Layout
15743 <cell alignment="center" valignment="top" topline="true" usebox="none">
15746 \begin_layout Plain Layout
15752 <cell alignment="center" valignment="top" topline="true" usebox="none">
15755 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" topline="true" usebox="none">
15764 \begin_layout Plain Layout
15771 <row topspace="default">
15772 <cell alignment="center" valignment="top" usebox="none">
15775 \begin_layout Plain Layout
15776 Spatial resolution in µm
15781 <cell alignment="center" valignment="top" usebox="none">
15784 \begin_layout Plain Layout
15790 <cell alignment="center" valignment="top" usebox="none">
15793 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" usebox="none">
15802 \begin_layout Plain Layout
15809 <row topspace="default">
15810 <cell alignment="center" valignment="top" usebox="none">
15813 \begin_layout Plain Layout
15815 \begin_inset Formula $f_{\mathrm{max}}$
15823 <cell alignment="center" valignment="top" usebox="none">
15826 \begin_layout Plain Layout
15832 <cell alignment="center" valignment="top" usebox="none">
15835 \begin_layout Plain Layout
15841 <cell alignment="center" valignment="top" usebox="none">
15844 \begin_layout Plain Layout
15852 <cell alignment="center" valignment="top" topline="true" usebox="none">
15855 \begin_layout Plain Layout
15859 \begin_layout Plain Layout
15872 \begin_layout Plain Layout
15881 LSF-spatial resolution
15886 <cell alignment="center" valignment="top" topline="true" usebox="none">
15889 \begin_layout Plain Layout
15895 <cell alignment="center" valignment="top" topline="true" usebox="none">
15898 \begin_layout Plain Layout
15904 <cell alignment="center" valignment="top" topline="true" usebox="none">
15907 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" usebox="none">
15918 \begin_layout Plain Layout
15924 <cell alignment="center" valignment="top" usebox="none">
15927 \begin_layout Plain Layout
15933 <cell alignment="center" valignment="top" usebox="none">
15936 \begin_layout Plain Layout
15942 <cell alignment="center" valignment="top" usebox="none">
15945 \begin_layout Plain Layout
15953 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15956 \begin_layout Plain Layout
15962 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15965 \begin_layout Plain Layout
15971 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15974 \begin_layout Plain Layout
15980 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15983 \begin_layout Plain Layout
16002 \begin_layout Section
16003 Vertical Table Alignment
16004 \begin_inset Index idx
16007 \begin_layout Plain Layout
16016 \begin_layout Standard
16017 To align tables vertically in a text line, the table must be inside a box.
16018 The box can then be vertically aligned as described in section
16019 \begin_inset space ~
16023 \begin_inset CommandInset ref
16025 reference "sec:Box-Dialog"
16032 \begin_layout Standard
16033 In the following example the tables are inside a minipage
16037 \begin_layout Plain Layout
16038 Minipages are described in section
16039 \begin_inset space ~
16043 \begin_inset CommandInset ref
16045 reference "sec:Minipages"
16054 box that has a width of 15
16055 \begin_inset space \thinspace{}
16061 \begin_layout Itemize
16063 \begin_inset Box Frameless
16073 height_special "totalheight"
16076 \begin_layout Plain Layout
16077 \begin_inset Tabular
16078 <lyxtabular version="3" rows="3" columns="3">
16079 <features rotate="0" tabularvalignment="middle">
16080 <column alignment="center" valignment="top">
16081 <column alignment="center" valignment="top">
16082 <column alignment="center" valignment="top">
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16087 \begin_layout Plain Layout
16093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16096 \begin_layout Plain Layout
16102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16116 \begin_layout Plain Layout
16122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16125 \begin_layout Plain Layout
16131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16134 \begin_layout Plain Layout
16142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16145 \begin_layout Plain Layout
16151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16154 \begin_layout Plain Layout
16160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Plain Layout
16183 \begin_layout Plain Layout
16195 \begin_inset Box Frameless
16205 height_special "totalheight"
16208 \begin_layout Plain Layout
16209 \begin_inset Tabular
16210 <lyxtabular version="3" rows="3" columns="3">
16211 <features rotate="0" tabularvalignment="middle">
16212 <column alignment="center" valignment="top">
16213 <column alignment="center" valignment="top">
16214 <column alignment="center" valignment="top">
16216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16219 \begin_layout Plain Layout
16225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16228 \begin_layout Plain Layout
16234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16237 \begin_layout Plain Layout
16245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16248 \begin_layout Plain Layout
16254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16257 \begin_layout Plain Layout
16263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16266 \begin_layout Plain Layout
16274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16277 \begin_layout Plain Layout
16283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16286 \begin_layout Plain Layout
16292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16295 \begin_layout Plain Layout
16315 \begin_layout Plain Layout
16325 \begin_layout Itemize
16327 \begin_inset Box Frameless
16337 height_special "totalheight"
16340 \begin_layout Plain Layout
16341 \begin_inset Tabular
16342 <lyxtabular version="3" rows="3" columns="3">
16343 <features rotate="0" tabularvalignment="middle">
16344 <column alignment="center" valignment="top">
16345 <column alignment="center" valignment="top">
16346 <column alignment="center" valignment="top">
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16351 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16369 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16380 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16398 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16418 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Plain Layout
16446 \begin_layout Itemize
16448 \begin_inset Box Frameless
16458 height_special "totalheight"
16461 \begin_layout Plain Layout
16462 \begin_inset Tabular
16463 <lyxtabular version="3" rows="3" columns="3">
16464 <features rotate="0" tabularvalignment="middle">
16465 <column alignment="center" valignment="top">
16466 <column alignment="center" valignment="top">
16467 <column alignment="center" valignment="top">
16469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16472 \begin_layout Plain Layout
16478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16481 \begin_layout Plain Layout
16487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16490 \begin_layout Plain Layout
16498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16501 \begin_layout Plain Layout
16507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16510 \begin_layout Plain Layout
16516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16519 \begin_layout Plain Layout
16527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16530 \begin_layout Plain Layout
16536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16539 \begin_layout Plain Layout
16545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16568 \begin_layout Plain Layout
16580 \begin_inset Box Frameless
16590 height_special "totalheight"
16593 \begin_layout Plain Layout
16594 \begin_inset Tabular
16595 <lyxtabular version="3" rows="3" columns="3">
16596 <features rotate="0" tabularvalignment="middle">
16597 <column alignment="center" valignment="top">
16598 <column alignment="center" valignment="top">
16599 <column alignment="center" valignment="top">
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16604 \begin_layout Plain Layout
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16613 \begin_layout Plain Layout
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16622 \begin_layout Plain Layout
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16633 \begin_layout Plain Layout
16639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16642 \begin_layout Plain Layout
16648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16651 \begin_layout Plain Layout
16659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16662 \begin_layout Plain Layout
16668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16671 \begin_layout Plain Layout
16677 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16680 \begin_layout Plain Layout
16700 \begin_layout Plain Layout
16710 \begin_layout Standard
16711 As you will see, the content of the first and last table row is not correctly
16713 To get this alignment, the minipage box must be set into a raisebox
16717 \begin_layout Plain Layout
16718 Raiseboxes are described in section
16719 \begin_inset space ~
16723 \begin_inset CommandInset ref
16725 reference "sub:Vertical-Alignment"
16735 In the example above the second table in the first item is aligned using
16736 the TeX-Code-command
16739 \begin_layout Standard
16749 \begin_layout Standard
16751 After the box the closing brace
16755 is inserted as TeX-Code.
16756 For the second table in the last item the command
16759 \begin_layout Standard
16769 \begin_layout Standard
16773 \begin_layout Standard
16774 \begin_inset Note Greyedout
16777 \begin_layout Plain Layout
16782 The alignment of the table row content to the surrounding text line is
16784 The required value for the
16790 command for this alignment depends on the document font, the font size,
16791 and the table line thickness.
16799 \begin_layout Section
16801 \begin_inset CommandInset label
16803 name "sec:Colored-Tables"
16808 \begin_inset Index idx
16811 \begin_layout Plain Layout
16820 \begin_layout Subsection
16822 \begin_inset Index idx
16825 \begin_layout Plain Layout
16826 Table Color ! for Cells
16832 \begin_inset Index idx
16835 \begin_layout Plain Layout
16836 Color ! for Table Cells
16844 \begin_layout Standard
16845 \begin_inset Float table
16851 \begin_layout Plain Layout
16852 \begin_inset Caption Standard
16854 \begin_layout Plain Layout
16855 \begin_inset CommandInset label
16857 name "tab:Table-colored-without"
16861 Table colored without using the package
16866 \begin_inset Argument 1
16869 \begin_layout Plain Layout
16870 Table without colortbl
16883 \begin_layout Plain Layout
16885 \begin_inset Tabular
16886 <lyxtabular version="3" rows="3" columns="3">
16887 <features rotate="0" tabularvalignment="middle">
16888 <column alignment="center" valignment="top">
16889 <column alignment="center" valignment="top">
16890 <column alignment="center" valignment="top">
16892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16895 \begin_layout Plain Layout
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Plain Layout
16914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16917 \begin_layout Plain Layout
16927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16930 \begin_layout Plain Layout
16938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16941 \begin_layout Plain Layout
16949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16952 \begin_layout Plain Layout
16962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16965 \begin_layout Plain Layout
16973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16976 \begin_layout Plain Layout
16984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16987 \begin_layout Plain Layout
17008 \begin_layout Standard
17009 If you only need colored text, mark the cells and choose a color in the
17013 \begin_inset space ~
17018 dialog (toolbar button
17021 arg "dialog-show character"
17025 This was used to create Table
17026 \begin_inset space ~
17030 \begin_inset CommandInset ref
17032 reference "tab:Table-colored-without"
17037 In any other case you have to use the LaTeX-package
17042 \begin_inset Index idx
17045 \begin_layout Plain Layout
17046 LaTeX-packages ! colortbl
17054 \begin_layout Standard
17058 \begin_layout Plain Layout
17068 \begin_inset Note Note
17071 \begin_layout Plain Layout
17072 The following section part will only be displayed when the LaTeX-package
17085 \begin_layout Standard
17086 To create colored tables,
17090 must be loaded in the preamble with the line
17093 \begin_layout Standard
17098 usepackage{colortbl}
17101 \begin_layout Standard
17102 The color of a column is adjusted with the command
17105 \begin_layout Standard
17110 columncolor{name of color}
17113 \begin_layout Standard
17119 More about the command
17123 is contained in section
17124 \begin_inset space ~
17128 \begin_inset CommandInset ref
17130 reference "sub:Multicolumn-Calculations"
17137 \begin_layout Standard
17138 The following color names are predefined:
17141 \begin_layout Standard
17175 \begin_layout Standard
17176 \begin_inset VSpace medskip
17182 \begin_layout Standard
17183 If you add the options
17186 \begin_layout Standard
17189 usenames,dvipsnames
17192 \begin_layout Standard
17193 to the document class options in the document settings, you can additionally
17195 \begin_inset space ~
17199 These colors are listed in appendix
17200 \begin_inset space ~
17204 \begin_inset CommandInset ref
17206 reference "chap:List-of-dvips-colornames"
17211 One of these colors,
17215 , is used as example in Table
17216 \begin_inset space ~
17220 \begin_inset CommandInset ref
17222 reference "tab:Table-colored-using"
17229 \begin_layout Standard
17230 \begin_inset VSpace medskip
17236 \begin_layout Standard
17237 You can also define your own color with the command
17240 \begin_layout Standard
17245 definecolor{color name}{color model}{color values}
17248 \begin_layout Standard
17249 The color model can be
17252 \begin_layout Labeling
17253 \labelwidthstring 00.00.0000
17254 cmyk: cyan, magenta, yellow, black
17257 \begin_layout Labeling
17258 \labelwidthstring 00.00.0000
17259 rgb: red, green blue
17262 \begin_layout Labeling
17263 \labelwidthstring 00.00.0000
17267 \begin_layout Standard
17268 and the color values are comma separated numbers between 0 and 1 describing
17269 the factor for the corresponding color of the color model.
17272 \begin_layout Standard
17274 \begin_inset space \thinspace{}
17278 \begin_inset space \space{}
17285 " in the preamble with
17288 \begin_layout Standard
17293 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17296 \begin_layout Standard
17304 \begin_layout Standard
17309 definecolor{lightgray}{gray}{0.8}
17312 \begin_layout Standard
17313 \begin_inset VSpace medskip
17319 \begin_layout Standard
17320 Lines are colored with the command
17323 \begin_layout Standard
17328 rowcolor{name of color}
17331 \begin_layout Standard
17332 and cells are colored with the command
17335 \begin_layout Standard
17340 cellcolor{name of color}
17343 \begin_layout Standard
17344 Both commands are inserted at the beginning of a cell as TeX-Code.
17347 \begin_layout Standard
17348 To color characters in the table, mark the cells and use the
17351 \begin_inset space ~
17357 If a cell contains TeX-Code mark only the characters, otherwise the colored
17358 TeX-Code will cause LaTeX-errors.
17361 \begin_layout Standard
17362 \begin_inset Note Greyedout
17365 \begin_layout Plain Layout
17370 Not all DVI-viewers are able to display self-defined colors.
17378 \begin_layout Standard
17379 \begin_inset VSpace bigskip
17385 \begin_layout Standard
17387 \begin_inset space ~
17391 \begin_inset CommandInset ref
17393 reference "tab:Table-colored-using"
17397 do the following: The color of the first column should be
17405 \begin_layout Standard
17410 columncolor{darkgreen}
17415 \begin_layout Standard
17416 as LaTeX-argument for this column.
17417 The first row should be light blue, therefore the TeX-Code command
17420 \begin_layout Standard
17428 \begin_layout Standard
17429 is inserted to the first cell of this row.
17430 Note that this overwrites the column color for the first cell.
17431 The last cell of the last row is colored maroon by inserting the TeX-Code
17435 \begin_layout Standard
17443 \begin_layout Standard
17444 The characters could now be colored using the menu
17446 Edit\SpecialChar \menuseparator
17448 \begin_inset space ~
17456 \begin_layout Standard
17457 \begin_inset Float table
17463 \begin_layout Plain Layout
17464 \begin_inset Caption Standard
17466 \begin_layout Plain Layout
17467 \begin_inset CommandInset label
17469 name "tab:Table-colored-using"
17473 Table colored using the package
17478 \begin_inset Argument 1
17481 \begin_layout Plain Layout
17482 Table with colortbl
17495 \begin_layout Plain Layout
17497 \begin_inset Tabular
17498 <lyxtabular version="3" rows="3" columns="3">
17499 <features rotate="0" tabularvalignment="middle">
17500 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17501 <column alignment="center" valignment="top">
17502 <column alignment="center" valignment="top">
17504 <cell alignment="center" valignment="top" usebox="none">
17507 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17527 <cell alignment="center" valignment="top" usebox="none">
17530 \begin_layout Plain Layout
17538 <cell alignment="center" valignment="top" usebox="none">
17541 \begin_layout Plain Layout
17551 <cell alignment="center" valignment="top" usebox="none">
17554 \begin_layout Plain Layout
17562 <cell alignment="center" valignment="top" usebox="none">
17565 \begin_layout Plain Layout
17573 <cell alignment="center" valignment="top" usebox="none">
17576 \begin_layout Plain Layout
17586 <cell alignment="center" valignment="top" usebox="none">
17589 \begin_layout Plain Layout
17597 <cell alignment="center" valignment="top" usebox="none">
17600 \begin_layout Plain Layout
17608 <cell alignment="center" valignment="top" usebox="none">
17611 \begin_layout Plain Layout
17615 \begin_layout Plain Layout
17644 \begin_layout Standard
17648 \begin_layout Plain Layout
17658 \begin_inset Note Note
17661 \begin_layout Plain Layout
17662 The following will be displayed when the LaTeX-package
17674 \begin_layout Standard
17675 You need to install the package
17679 to see the content of this section in the output.
17682 \begin_layout Standard
17686 \begin_layout Plain Layout
17698 \begin_layout Subsection
17700 \begin_inset Index idx
17703 \begin_layout Plain Layout
17704 Table Color ! for Rows
17710 \begin_inset Index idx
17713 \begin_layout Plain Layout
17714 Color ! for Table Rows
17722 \begin_layout Standard
17723 In case every second table row needs to be colored there is an alternative
17724 to the method described in the previous section: One loads the package
17730 \begin_inset Index idx
17733 \begin_layout Plain Layout
17734 LaTeX-packages ! xcolor
17738 \begin_layout Plain Layout
17752 in the document preamble with the command
17755 \begin_layout Standard
17760 usepackage[table]{xcolor}
17763 \begin_layout Standard
17768 automatically loads also the package
17773 \begin_inset Index idx
17776 \begin_layout Plain Layout
17777 LaTeX-packages ! colortbl
17786 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17789 \begin_layout Standard
17793 \begin_layout Plain Layout
17803 \begin_inset Note Note
17806 \begin_layout Plain Layout
17807 The following section part will only be displayed when the LaTeX-package
17820 \begin_layout Standard
17821 The table rows are colored with the command
17824 \begin_layout Standard
17829 rowcolors[commands]{row number}{odd row color}{even row color}
17832 \begin_layout Standard
17833 that is either inserted in the document preamble or as TeX-Code before the
17834 first table to be colored.
17836 \begin_inset space ~
17839 number is the number of the first row which should be colored according
17840 to the odd row color.
17841 commands can be additional commands that are executed before every table
17843 So for example the command
17846 \begin_layout Standard
17851 rowcolors{1}{white}{lightgray}
17854 \begin_layout Standard
17855 leads to the coloring scheme of Table
17856 \begin_inset space ~
17860 \begin_inset CommandInset ref
17862 reference "tab:Table-rowcolors"
17870 \begin_layout Standard
17877 hline]{1}{lightgray}{cyan}
17880 \begin_layout Standard
17881 leads to the coloring scheme of Table
17882 \begin_inset space ~
17886 \begin_inset CommandInset ref
17888 reference "tab:Table-rowcolors-2"
17894 \begin_inset space ~
17898 \begin_inset space ~
17902 \begin_inset space ~
17906 \begin_inset space ~
17909 color are left empty, no color will be used so that the command
17912 \begin_layout Standard
17920 \begin_layout Standard
17921 deletes all colors.
17928 affects all tables following that command.
17931 \begin_layout Standard
17935 \begin_layout Plain Layout
17939 rowcolors{1}{white}{lightgray}
17947 \begin_layout Standard
17948 \begin_inset Float table
17954 \begin_layout Plain Layout
17955 \begin_inset Caption Standard
17957 \begin_layout Plain Layout
17958 \begin_inset CommandInset label
17960 name "tab:Table-rowcolors"
17964 Table where every second row is colored light gray.
17972 \begin_layout Plain Layout
17974 \begin_inset Tabular
17975 <lyxtabular version="3" rows="4" columns="3">
17976 <features rotate="0" tabularvalignment="middle">
17977 <column alignment="center" valignment="top">
17978 <column alignment="center" valignment="top" width="0pt">
17979 <column alignment="center" valignment="top" width="0pt">
17981 <cell alignment="center" valignment="top" usebox="none">
17984 \begin_layout Plain Layout
17990 <cell alignment="center" valignment="top" usebox="none">
17993 \begin_layout Plain Layout
17999 <cell alignment="center" valignment="top" usebox="none">
18002 \begin_layout Plain Layout
18010 <cell alignment="center" valignment="top" usebox="none">
18013 \begin_layout Plain Layout
18019 <cell alignment="center" valignment="top" usebox="none">
18022 \begin_layout Plain Layout
18028 <cell alignment="center" valignment="top" usebox="none">
18031 \begin_layout Plain Layout
18039 <cell alignment="center" valignment="top" usebox="none">
18042 \begin_layout Plain Layout
18048 <cell alignment="center" valignment="top" usebox="none">
18051 \begin_layout Plain Layout
18057 <cell alignment="center" valignment="top" usebox="none">
18060 \begin_layout Plain Layout
18068 <cell alignment="center" valignment="top" usebox="none">
18071 \begin_layout Plain Layout
18077 <cell alignment="center" valignment="top" usebox="none">
18080 \begin_layout Plain Layout
18086 <cell alignment="center" valignment="top" usebox="none">
18089 \begin_layout Plain Layout
18108 \begin_layout Standard
18112 \begin_layout Plain Layout
18118 hline]{1}{lightgray}{cyan}
18126 \begin_layout Standard
18127 \begin_inset Float table
18133 \begin_layout Plain Layout
18134 \begin_inset Caption Standard
18136 \begin_layout Plain Layout
18137 \begin_inset CommandInset label
18139 name "tab:Table-rowcolors-2"
18143 Table where every second row is colored cyan and at which there is a line
18152 \begin_layout Plain Layout
18154 \begin_inset Tabular
18155 <lyxtabular version="3" rows="4" columns="3">
18156 <features rotate="0" tabularvalignment="middle">
18157 <column alignment="center" valignment="top">
18158 <column alignment="center" valignment="top">
18159 <column alignment="center" valignment="top" width="0pt">
18161 <cell alignment="center" valignment="top" usebox="none">
18164 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" usebox="none">
18182 \begin_layout Plain Layout
18190 <cell alignment="center" valignment="top" usebox="none">
18193 \begin_layout Plain Layout
18199 <cell alignment="center" valignment="top" usebox="none">
18202 \begin_layout Plain Layout
18208 <cell alignment="center" valignment="top" usebox="none">
18211 \begin_layout Plain Layout
18219 <cell alignment="center" valignment="top" usebox="none">
18222 \begin_layout Plain Layout
18228 <cell alignment="center" valignment="top" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" usebox="none">
18240 \begin_layout Plain Layout
18248 <cell alignment="center" valignment="top" usebox="none">
18251 \begin_layout Plain Layout
18257 <cell alignment="center" valignment="top" usebox="none">
18260 \begin_layout Plain Layout
18266 <cell alignment="center" valignment="top" usebox="none">
18269 \begin_layout Plain Layout
18288 \begin_layout Standard
18292 \begin_layout Plain Layout
18302 \begin_inset Note Note
18305 \begin_layout Plain Layout
18306 turns off the row coloring
18314 \begin_layout Standard
18318 \begin_layout Plain Layout
18328 \begin_inset Note Note
18331 \begin_layout Plain Layout
18332 The following will be displayed when the LaTeX-package
18344 \begin_layout Standard
18345 You need to install the package
18349 to see the content of this section in the output.
18352 \begin_layout Standard
18356 \begin_layout Plain Layout
18368 \begin_layout Subsection
18370 \begin_inset Index idx
18373 \begin_layout Plain Layout
18374 Table Color ! for Lines
18380 \begin_inset Index idx
18383 \begin_layout Plain Layout
18384 Color ! for Table Lines
18392 \begin_layout Standard
18393 As described in section
18394 \begin_inset space ~
18398 \begin_inset CommandInset ref
18400 reference "sub:Line-Thickness"
18404 , the line thickness for all lines in a table can be adjusted with the length
18413 \begin_inset space \thinspace{}
18416 pt for all tables of this section.
18420 \begin_layout Plain Layout
18426 arrayrulewidth}{1.5pt}
18434 \begin_layout Standard
18435 To color vertical lines for example with green, create the following column
18436 format in the document preamble, according to the description in section
18437 \begin_inset space ~
18441 \begin_inset CommandInset ref
18443 reference "sub:Customized-Format"
18450 \begin_layout Standard
18455 newcolumntype{W}{!{
18462 \begin_layout Standard
18464 \begin_inset space ~
18468 \begin_inset CommandInset ref
18470 reference "tab:Table-with-vertical-colored"
18478 was used for the last column and
18482 for the other columns.
18485 \begin_layout Standard
18486 If you want to have several colors, define more column formats.
18489 \begin_layout Standard
18490 \begin_inset Float table
18496 \begin_layout Plain Layout
18497 \begin_inset Caption Standard
18499 \begin_layout Plain Layout
18500 \begin_inset CommandInset label
18502 name "tab:Table-with-vertical-colored"
18506 Table with colored vertical lines
18514 \begin_layout Plain Layout
18516 \begin_inset Tabular
18517 <lyxtabular version="3" rows="3" columns="3">
18518 <features rotate="0" tabularvalignment="middle">
18519 <column alignment="center" valignment="top" special="Wc">
18520 <column alignment="center" valignment="top" special="Wc">
18521 <column alignment="center" valignment="top" special="WcW">
18523 <cell alignment="center" valignment="top" topline="true" usebox="none">
18526 \begin_layout Plain Layout
18532 <cell alignment="center" valignment="top" topline="true" usebox="none">
18535 \begin_layout Plain Layout
18541 <cell alignment="center" valignment="top" topline="true" usebox="none">
18544 \begin_layout Plain Layout
18552 <cell alignment="center" valignment="top" topline="true" usebox="none">
18555 \begin_layout Plain Layout
18561 <cell alignment="center" valignment="top" topline="true" usebox="none">
18564 \begin_layout Plain Layout
18570 <cell alignment="center" valignment="top" topline="true" usebox="none">
18573 \begin_layout Plain Layout
18581 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18584 \begin_layout Plain Layout
18590 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18593 \begin_layout Plain Layout
18599 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18602 \begin_layout Plain Layout
18621 \begin_layout Standard
18622 \begin_inset VSpace bigskip
18625 To color horizontal lines for example with red, as in Table
18626 \begin_inset space ~
18630 \begin_inset CommandInset ref
18632 reference "tab:Table-with-horizontal-colored"
18636 , insert these commands in TeX-Code before the table or table float:
18639 \begin_layout Standard
18649 \begin_inset Newline newline
18657 \begin_inset Newline newline
18661 \begin_inset Phantom HPhantom
18664 \begin_layout Plain Layout
18667 \begin_inset space ~
18677 arrayrulecolor{red}
18681 arrayrulecolor{black}}
18684 \begin_layout Standard
18688 \begin_layout Plain Layout
18699 \begin_layout Plain Layout
18708 \begin_layout Plain Layout
18712 arrayrulecolor{red}
18716 arrayrulecolor{black}}
18722 \begin_inset Float table
18728 \begin_layout Plain Layout
18729 \begin_inset Caption Standard
18731 \begin_layout Plain Layout
18732 \begin_inset CommandInset label
18734 name "tab:Table-with-horizontal-colored"
18738 Table with colored horizontal lines
18746 \begin_layout Plain Layout
18748 \begin_inset Tabular
18749 <lyxtabular version="3" rows="3" columns="3">
18750 <features rotate="0" tabularvalignment="middle">
18751 <column alignment="center" valignment="top">
18752 <column alignment="center" valignment="top">
18753 <column alignment="center" valignment="top">
18755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18758 \begin_layout Plain Layout
18764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18767 \begin_layout Plain Layout
18773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18776 \begin_layout Plain Layout
18784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18787 \begin_layout Plain Layout
18793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18796 \begin_layout Plain Layout
18802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18805 \begin_layout Plain Layout
18813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18816 \begin_layout Plain Layout
18822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18825 \begin_layout Plain Layout
18831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18834 \begin_layout Plain Layout
18853 \begin_layout Standard
18854 To return to the default line color black, insert this command in TeX-Code
18855 after the table or table float:
18858 \begin_layout Standard
18870 \begin_layout Standard
18872 \begin_inset space ~
18876 \begin_inset CommandInset ref
18878 reference "tab:Table-with-colored"
18882 is an example with colored vertical and horizontal lines.
18885 \begin_layout Standard
18886 \begin_inset Float table
18892 \begin_layout Plain Layout
18893 \begin_inset Caption Standard
18895 \begin_layout Plain Layout
18896 \begin_inset CommandInset label
18898 name "tab:Table-with-colored"
18902 Table with colored lines
18910 \begin_layout Plain Layout
18912 \begin_inset Tabular
18913 <lyxtabular version="3" rows="3" columns="3">
18914 <features rotate="0" tabularvalignment="middle">
18915 <column alignment="center" valignment="top" special="Wc">
18916 <column alignment="center" valignment="top" special="Wc">
18917 <column alignment="center" valignment="top" special="WcW">
18919 <cell alignment="center" valignment="top" topline="true" usebox="none">
18922 \begin_layout Plain Layout
18928 <cell alignment="center" valignment="top" topline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" usebox="none">
18940 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" topline="true" usebox="none">
18951 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" topline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" topline="true" usebox="none">
18969 \begin_layout Plain Layout
18976 <row topspace="default">
18977 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18980 \begin_layout Plain Layout
18986 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18989 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18998 \begin_layout Plain Layout
19017 \begin_layout Standard
19021 \begin_layout Plain Layout
19037 \begin_layout Standard
19041 \begin_layout Plain Layout
19047 arrayrulewidth}{0.4pt}
19055 \begin_layout Section
19056 Rotated Table Cells
19057 \begin_inset CommandInset label
19059 name "sec:Rotated-Table-Cells"
19064 \begin_inset Index idx
19067 \begin_layout Plain Layout
19068 Table ! Rotated Cells
19074 \begin_inset Index idx
19077 \begin_layout Plain Layout
19086 \begin_layout Standard
19087 \begin_inset Note Greyedout
19090 \begin_layout Plain Layout
19095 Not all DVI-viewers are able to display rotations.
19103 \begin_layout Standard
19105 \begin_inset space ~
19109 \begin_inset CommandInset ref
19111 reference "tab:Table-with-rotated-multi"
19115 is an example where 3
19116 \begin_inset space ~
19119 cells were rotated by 45
19120 \begin_inset space \thinspace{}
19126 \begin_layout Standard
19127 \begin_inset Float table
19133 \begin_layout Plain Layout
19134 \begin_inset Caption Standard
19136 \begin_layout Plain Layout
19137 \begin_inset CommandInset label
19139 name "tab:Table-with-rotated"
19143 Table with rotated cells in the first row.
19151 \begin_layout Plain Layout
19154 \begin_inset Tabular
19155 <lyxtabular version="3" rows="2" columns="3">
19156 <features rotate="0" tabularvalignment="middle">
19157 <column alignment="center" valignment="top" width="0pt">
19158 <column alignment="center" valignment="top" width="0pt">
19159 <column alignment="center" valignment="top" width="0pt">
19161 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19164 \begin_layout Plain Layout
19170 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19173 \begin_layout Plain Layout
19179 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19182 \begin_layout Plain Layout
19190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19193 \begin_layout Plain Layout
19199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19202 \begin_layout Plain Layout
19208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19211 \begin_layout Plain Layout
19230 \begin_layout Standard
19231 \begin_inset Note Greyedout
19234 \begin_layout Plain Layout
19239 Line breaks (shortcut
19242 arg "newline-insert newline"
19245 ) are not allowed in rotated cells.
19253 \begin_layout Standard
19254 If you want to rotate table cells containing line breaks, you have to put
19255 the cell content into a minipage or a parbox.
19259 \begin_layout Plain Layout
19260 For more about these boxes see sec.
19261 \begin_inset space \thinspace{}
19265 \begin_inset CommandInset ref
19267 reference "sec:Minipages"
19272 \begin_inset CommandInset ref
19274 reference "sec:Parboxes"
19283 If you rotate this cell by 90
19284 \begin_inset space \thinspace{}
19287 ° the width of the box is the height of the cell.
19289 \begin_inset space ~
19293 \begin_inset CommandInset ref
19295 reference "tab:Table-with-rotated-multi"
19299 is an example for a rotated multiline cell where the box width was set
19301 \begin_inset space \thinspace{}
19307 \begin_layout Standard
19308 \begin_inset Float table
19313 \begin_layout Plain Layout
19314 \begin_inset Caption Standard
19316 \begin_layout Plain Layout
19317 \begin_inset CommandInset label
19319 name "tab:Table-with-rotated-multi"
19323 Table with rotated multiline cell.
19331 \begin_layout Plain Layout
19334 \begin_inset Tabular
19335 <lyxtabular version="3" rows="2" columns="3">
19336 <features rotate="0" tabularvalignment="middle">
19337 <column alignment="center" valignment="top">
19338 <column alignment="center" valignment="top" width="0pt">
19339 <column alignment="center" valignment="top">
19341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19344 \begin_layout Plain Layout
19350 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19353 \begin_layout Plain Layout
19354 \begin_inset Box Frameless
19364 height_special "totalheight"
19367 \begin_layout Plain Layout
19369 \begin_inset Newline newline
19382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19385 \begin_layout Plain Layout
19393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19396 \begin_layout Plain Layout
19402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19405 \begin_layout Plain Layout
19411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19414 \begin_layout Plain Layout
19433 \begin_layout Section
19434 Table Width Calculation
19435 \begin_inset CommandInset label
19437 name "sec:Table-Width-Calculation"
19444 \begin_layout Standard
19445 For wide tables it is sometimes difficult to assure that the table does
19446 not protrude over the page margin.
19447 Setting a fixed width for every column of the table is the solution, but
19448 what amount of space is needed for each column?
19451 \begin_layout Standard
19453 \begin_inset Formula $W_{\mathrm{table}}$
19456 can be calculated: Every column has the width of the specified column width
19458 \begin_inset Formula $W_{\mathrm{column}}$
19461 (that the content of the column can consume) plus two times the separation
19462 between the column content and the column border (LaTeX length
19469 \begin_inset space \thinspace{}
19472 pt) plus the width of a border line (LaTeX length
19479 \begin_inset space \thinspace{}
19483 \begin_inset Formula $n$
19487 \begin_inset space ~
19490 columns have the same width, the table width is
19491 \begin_inset Formula
19493 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19501 \begin_layout Standard
19502 The available width for a table is the space between the page margins or
19503 the width of a text column (for a two-column document) (LaTeX length
19510 If all table columns should have the same width and
19511 \begin_inset Formula $W_{\mathrm{table}}$
19515 \begin_inset space \thinspace{}
19521 \begin_inset Formula $W_{\mathrm{column}}$
19524 can easily be calculated.
19527 \begin_layout Standard
19528 To be able to perform calculations you need to load the LaTeX-package
19533 \begin_inset Index idx
19536 \begin_layout Plain Layout
19537 LaTeX-packages ! calc
19542 in the document preamble.
19543 To set the width in the table dialog you have to use the field
19548 The command scheme for this field is the same that is explained in section
19549 \begin_inset space ~
19553 \begin_inset CommandInset ref
19555 reference "sub:Multicolumn-Calculations"
19561 \begin_inset space \thinspace{}
19564 columns with an uniform width and centered text, enter there for each column
19568 \begin_layout Standard
19575 columnwidth-62.4pt)/5}
19578 \begin_layout Standard
19580 \begin_inset space \thinspace{}
19583 columns where 2 should have 0.75
19584 \begin_inset space ~
19587 times the width than the 3 others, the calculation is
19588 \begin_inset Formula
19590 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19591 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19592 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19593 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19601 \begin_layout Standard
19602 In the table therefore the command
19605 \begin_layout Standard
19612 columnwidth-62.4pt)/
19617 \begin_layout Standard
19618 is used for the wider columns and
19621 \begin_layout Standard
19628 columnwidth-62.4pt)/
19635 \begin_layout Standard
19636 for the smaller ones:
19639 \begin_layout Standard
19640 \begin_inset Tabular
19641 <lyxtabular version="3" rows="2" columns="5">
19642 <features rotate="0" tabularvalignment="middle">
19643 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19644 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19645 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19646 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19647 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19652 \begin_layout Plain Layout
19658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19661 \begin_layout Plain Layout
19667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19670 \begin_layout Plain Layout
19676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19679 \begin_layout Plain Layout
19685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19688 \begin_layout Plain Layout
19696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19699 \begin_layout Plain Layout
19700 111111 1111111 111111 111111111 11111 11111 1111
19705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19708 \begin_layout Plain Layout
19714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19717 \begin_layout Plain Layout
19718 2222 22222 222222 222222222 2222222 22 22222
19723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19726 \begin_layout Plain Layout
19732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19735 \begin_layout Plain Layout
19736 333333 333333 333333 33333 3333333 333
19749 \begin_layout Section
19750 Table Customization
19751 \begin_inset Index idx
19754 \begin_layout Plain Layout
19755 Table Customization
19761 \begin_inset Index idx
19764 \begin_layout Plain Layout
19765 Table ! Customization
19773 \begin_layout Subsection
19775 \begin_inset CommandInset label
19777 name "sub:Row-Spacing"
19782 \begin_inset Index idx
19785 \begin_layout Plain Layout
19786 Table Customization ! Row Spacing
19794 \begin_layout Standard
19795 You can add vertical space to table rows in the
19799 tab of the table dialog.
19800 You find there three possibilities:
19803 \begin_layout Description
19805 \begin_inset space ~
19809 \begin_inset space ~
19812 row will add space above the characters of the table row.
19813 If the table is a formal table
19817 \begin_layout Plain Layout
19818 Formal tables are explained in section
19819 \begin_inset space ~
19823 \begin_inset CommandInset ref
19825 reference "sec:Formal-Tables"
19834 LyX will insert as default 0.5
19835 \begin_inset space \thinspace{}
19839 For normal tables the inserted space will unfortunately destroy the vertical
19840 table lines as in the following table:
19841 \begin_inset VSpace medskip
19845 \begin_inset Newline newline
19849 \begin_inset space \hspace*{}
19854 \begin_inset space \hfill{}
19858 \begin_inset Tabular
19859 <lyxtabular version="3" rows="3" columns="1">
19860 <features rotate="0" tabularvalignment="middle">
19861 <column alignment="center" valignment="top">
19863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19866 \begin_layout Plain Layout
19873 <row topspace="3mm">
19874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19877 \begin_layout Plain Layout
19879 \begin_inset space \thinspace{}
19882 mm space top of row
19889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19892 \begin_layout Plain Layout
19904 \begin_inset space \hfill{}
19908 \begin_inset space \hspace*{}
19913 \begin_inset VSpace medskip
19917 \begin_inset Newline newline
19920 So inserting space in the top of row for normal tables is only useful when
19921 you don't have vertical lines.
19924 \begin_layout Description
19926 \begin_inset space ~
19930 \begin_inset space ~
19933 row will add space below the characters of the table row.
19934 If the table is a formal table LyX will insert as default 0.5
19935 \begin_inset space \thinspace{}
19938 em space, for normal tables the default size is 2
19939 \begin_inset space \thinspace{}
19945 \begin_layout Description
19947 \begin_inset space ~
19950 rows adds space between the current and the following row.
19951 If the table is a formal table LyX will insert as default 0.5
19952 \begin_inset space \thinspace{}
19956 For normal tables the inserted space will unfortunately destroy the vertical
19957 table lines as in the following table:
19958 \begin_inset VSpace medskip
19962 \begin_inset Newline newline
19966 \begin_inset space \hspace*{}
19971 \begin_inset space \hfill{}
19975 \begin_inset Tabular
19976 <lyxtabular version="3" rows="3" columns="1">
19977 <features rotate="0" tabularvalignment="middle">
19978 <column alignment="center" valignment="top">
19980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19983 \begin_layout Plain Layout
19990 <row interlinespace="3mm">
19991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19994 \begin_layout Plain Layout
19995 \begin_inset Formula $\downarrow$
19999 \begin_inset space \thinspace{}
20002 mm space between row
20003 \begin_inset Formula $\downarrow$
20013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20016 \begin_layout Plain Layout
20017 \begin_inset Formula $\uparrow$
20021 \begin_inset space \thinspace{}
20024 mm space between row
20025 \begin_inset Formula $\uparrow$
20039 \begin_inset space \hfill{}
20043 \begin_inset space \hspace*{}
20048 \begin_inset VSpace medskip
20052 \begin_inset Newline newline
20055 So inserting space between rows for normal tables is only useful when you
20056 don't have vertical lines.
20059 \begin_layout Standard
20060 \begin_inset VSpace bigskip
20063 When you want to add extra height to all cells of all tables, you can do
20064 this with the following preamble lines:
20067 \begin_layout Standard
20072 @ifundefined{extrarowheight}
20073 \begin_inset Newline newline
20077 \begin_inset Phantom HPhantom
20080 \begin_layout Plain Layout
20083 \begin_inset space ~
20093 usepackage{array}}{}
20094 \begin_inset Newline newline
20101 extrarowheight}{height}
20104 \begin_layout Standard
20105 But this has the disadvantage that the cell texts are no longer exactly
20106 vertically centered.
20111 will be loaded automatically by LyX when you use self defined table formats.
20112 To avoid that it being loaded twice the command
20118 is used in the above command.)
20121 \begin_layout Standard
20122 If you are using font sizes larger than the normal size, the table borders
20123 are often too close to the letters.
20124 This can be corrected by inserting the command
20130 in TeX-Code at the beginning of a table row.
20132 \begin_inset space ~
20136 \begin_inset CommandInset ref
20138 reference "tab:Vertical-alignment-of"
20142 illustrates the effect.
20145 \begin_layout Standard
20147 \begin_inset Float table
20153 \begin_layout Plain Layout
20154 \begin_inset Caption Standard
20156 \begin_layout Plain Layout
20157 \begin_inset CommandInset label
20159 name "tab:Vertical-alignment-of"
20163 Vertical alignment of text with large font sizes.
20171 \begin_layout Plain Layout
20172 \begin_inset space \hfill{}
20176 \begin_inset Float table
20181 \begin_layout Plain Layout
20182 \begin_inset Caption Standard
20184 \begin_layout Plain Layout
20193 \begin_layout Plain Layout
20196 \begin_inset Tabular
20197 <lyxtabular version="3" rows="6" columns="1">
20198 <features rotate="0" tabularvalignment="middle">
20199 <column alignment="left" valignment="top">
20201 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20204 \begin_layout Plain Layout
20212 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20215 \begin_layout Plain Layout
20225 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20228 \begin_layout Plain Layout
20238 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20241 \begin_layout Plain Layout
20251 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20254 \begin_layout Plain Layout
20264 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20267 \begin_layout Plain Layout
20286 \begin_inset space \hfill{}
20290 \begin_inset Float table
20295 \begin_layout Plain Layout
20296 \begin_inset Caption Standard
20298 \begin_layout Plain Layout
20299 Table using the command
20313 \begin_layout Plain Layout
20316 \begin_inset Tabular
20317 <lyxtabular version="3" rows="6" columns="1">
20318 <features rotate="0" tabularvalignment="middle">
20319 <column alignment="left" valignment="top">
20321 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20324 \begin_layout Plain Layout
20332 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20335 \begin_layout Plain Layout
20341 \begin_layout Plain Layout
20357 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20360 \begin_layout Plain Layout
20366 \begin_layout Plain Layout
20382 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20385 \begin_layout Plain Layout
20391 \begin_layout Plain Layout
20407 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20410 \begin_layout Plain Layout
20416 \begin_layout Plain Layout
20432 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20435 \begin_layout Plain Layout
20441 \begin_layout Plain Layout
20468 \begin_inset space \hfill{}
20479 \begin_layout Subsection
20480 Special Cell Alignment
20481 \begin_inset CommandInset label
20483 name "sub:Special-Cell-Alignment"
20488 \begin_inset Index idx
20491 \begin_layout Plain Layout
20492 Table Customization ! Special Cell Alignment
20500 \begin_layout Standard
20501 Sometimes it looks better when the cell entries of a column are aligned
20502 with a special character, e.
20503 \begin_inset space \thinspace{}
20507 \begin_inset space \space{}
20510 with the decimal separator as in Table
20511 \begin_inset space ~
20515 \begin_inset CommandInset ref
20517 reference "tab:Table-cells-align"
20522 This alignment is achieved by setting the cursor into the column and then
20523 either pressing the toolbar button
20526 arg "inset-modify tabular align-decimal"
20529 or setting the alignment in the table settings to
20532 \begin_inset space ~
20536 \begin_inset space ~
20542 The alignment character can be a character of your choice and is specified
20543 in the table settings.
20546 \begin_layout Standard
20547 \begin_inset Float table
20553 \begin_layout Plain Layout
20554 \begin_inset Caption Standard
20556 \begin_layout Plain Layout
20557 \begin_inset CommandInset label
20559 name "tab:Table-cells-align"
20563 Table cells of a column aligned with the decimal separator.
20571 \begin_layout Plain Layout
20573 \begin_inset Tabular
20574 <lyxtabular version="3" rows="4" columns="1">
20575 <features rotate="0" booktabs="true" tabularvalignment="middle">
20576 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20578 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20581 \begin_layout Plain Layout
20589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20592 \begin_layout Plain Layout
20600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20603 \begin_layout Plain Layout
20611 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20614 \begin_layout Plain Layout
20633 \begin_layout Standard
20634 \begin_inset Float table
20640 \begin_layout Plain Layout
20641 \begin_inset Caption Standard
20643 \begin_layout Plain Layout
20644 \begin_inset CommandInset label
20646 name "tab:Table-align-operator"
20650 Table cells of a column aligned with the operators.
20658 \begin_layout Plain Layout
20660 \begin_inset Tabular
20661 <lyxtabular version="3" rows="4" columns="2">
20662 <features rotate="0" booktabs="true" tabularvalignment="middle">
20663 <column alignment="right" valignment="top" width="0pt">
20664 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20666 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20669 \begin_layout Plain Layout
20675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20678 \begin_layout Plain Layout
20686 <cell alignment="center" valignment="top" usebox="none">
20689 \begin_layout Plain Layout
20690 \begin_inset Formula $12\,+$
20698 <cell alignment="center" valignment="top" usebox="none">
20701 \begin_layout Plain Layout
20702 \begin_inset Formula $\,6$
20712 <cell alignment="center" valignment="top" usebox="none">
20715 \begin_layout Plain Layout
20716 \begin_inset Formula $0\,-$
20724 <cell alignment="center" valignment="top" usebox="none">
20727 \begin_layout Plain Layout
20728 \begin_inset Formula $\,68$
20738 <cell alignment="center" valignment="top" usebox="none">
20741 \begin_layout Plain Layout
20742 \begin_inset Formula $-123\,/$
20750 <cell alignment="center" valignment="top" usebox="none">
20753 \begin_layout Plain Layout
20754 \begin_inset Formula $\,0$
20775 \begin_layout Standard
20776 For alignments at characters in formulas this method does not work because
20777 the field to specify the alignment character does not allow formulas.
20778 In this case one need to use the method from Table
20779 \begin_inset space ~
20783 \begin_inset CommandInset ref
20785 reference "tab:Table-align-operator"
20790 This table was created with a 4×2 table.
20791 The heading is a centered multicolumn.
20792 The first column is right-aligned and contains the first part including
20794 The second column is left aligned and contains the rest.
20795 A small space was added at the beginning of each cell of the second column
20796 to get the space that is usually around operators.
20797 To omit the space that is normally between two table columns, the following
20798 LaTeX-argument was used for the second column:
20801 \begin_layout Standard
20807 \begin_layout Standard
20809 \begin_inset space ~
20813 \begin_inset CommandInset ref
20815 reference "tab:Several-table-cell"
20819 shows some example alignments.
20820 For the alignment with the relation sign, a small space was added like
20821 for the second column of Table
20822 \begin_inset space ~
20826 \begin_inset CommandInset ref
20828 reference "tab:Table-align-operator"
20835 \begin_layout Standard
20836 \begin_inset Float table
20842 \begin_layout Plain Layout
20843 \begin_inset Caption Standard
20845 \begin_layout Plain Layout
20846 \begin_inset CommandInset label
20848 name "tab:Several-table-cell"
20852 Several table cell alignments.
20860 \begin_layout Plain Layout
20862 \begin_inset Tabular
20863 <lyxtabular version="3" rows="4" columns="6">
20864 <features rotate="0" tabularvalignment="middle">
20865 <column alignment="right" valignment="top">
20866 <column alignment="left" valignment="top" special="@{}l">
20867 <column alignment="right" valignment="top">
20868 <column alignment="left" valignment="top" special="@{}l">
20869 <column alignment="right" valignment="top">
20870 <column alignment="left" valignment="top" special="@{}l">
20872 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20875 \begin_layout Plain Layout
20881 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20884 \begin_layout Plain Layout
20890 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20893 \begin_layout Plain Layout
20899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20902 \begin_layout Plain Layout
20908 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20911 \begin_layout Plain Layout
20917 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20920 \begin_layout Plain Layout
20928 <cell alignment="center" valignment="top" usebox="none">
20931 \begin_layout Plain Layout
20937 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20940 \begin_layout Plain Layout
20942 \begin_inset space \thinspace{}
20950 <cell alignment="center" valignment="top" usebox="none">
20953 \begin_layout Plain Layout
20954 \begin_inset Formula $10\cdot$
20962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20965 \begin_layout Plain Layout
20966 \begin_inset Formula $10^{\mbox{-}17}$
20974 <cell alignment="center" valignment="top" usebox="none">
20977 \begin_layout Plain Layout
20978 \begin_inset Formula $\Gamma(t)\propto$
20986 <cell alignment="center" valignment="top" usebox="none">
20989 \begin_layout Plain Layout
20990 \begin_inset Formula $\:\Upsilon(t)$
21000 <cell alignment="center" valignment="top" usebox="none">
21003 \begin_layout Plain Layout
21009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21012 \begin_layout Plain Layout
21014 \begin_inset space \thinspace{}
21022 <cell alignment="center" valignment="top" usebox="none">
21025 \begin_layout Plain Layout
21026 \begin_inset Formula $5.78\cdot$
21034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21037 \begin_layout Plain Layout
21038 \begin_inset Formula $10^{7}$
21046 <cell alignment="center" valignment="top" usebox="none">
21049 \begin_layout Plain Layout
21050 \begin_inset Formula $A\ne$
21058 <cell alignment="center" valignment="top" usebox="none">
21061 \begin_layout Plain Layout
21062 \begin_inset Formula $\:B_{\mathrm{red}}$
21072 <cell alignment="center" valignment="top" usebox="none">
21075 \begin_layout Plain Layout
21081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21084 \begin_layout Plain Layout
21086 \begin_inset space \thinspace{}
21094 <cell alignment="center" valignment="top" usebox="none">
21097 \begin_layout Plain Layout
21099 \begin_inset Formula $33.5\cdot$
21107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21110 \begin_layout Plain Layout
21111 \begin_inset Formula $10^{4}$
21119 <cell alignment="center" valignment="top" usebox="none">
21122 \begin_layout Plain Layout
21123 \begin_inset Formula $\sin(\alpha)\ge$
21131 <cell alignment="center" valignment="top" usebox="none">
21134 \begin_layout Plain Layout
21135 \begin_inset Formula $\:\sin(\beta)$
21156 \begin_layout Subsection
21157 Customized Cell/Column Format
21158 \begin_inset CommandInset label
21160 name "sub:Customized-Format"
21165 \begin_inset Index idx
21168 \begin_layout Plain Layout
21169 Table Customization ! Cell/Column Format
21177 \begin_layout Standard
21178 Calculating the required width for normal columns as described in section
21179 \begin_inset space ~
21183 \begin_inset CommandInset ref
21185 reference "sec:Table-Width-Calculation"
21189 or for spanned columns as described in section
21190 \begin_inset space ~
21194 \begin_inset CommandInset ref
21196 reference "sub:Multicolumn-Calculations"
21200 is very annoying if you have several tables where a calculation is necessary.
21201 To make life easier, you can define a cell/column format in the preamble,
21202 that can be used in all tables of the document.
21203 The format is defined with the command
21206 \begin_layout Standard
21211 newcolumntype{name of format}[number of arguments]{commands}
21214 \begin_layout Standard
21215 The format name may only consist of one letter.
21240 are predefined and cannot be used.
21241 But all letters are allowed as capitals.
21244 \begin_layout Standard
21245 \begin_inset VSpace medskip
21251 \begin_layout Standard
21252 For vertically and horizontally centered multicolumn cells with a fixed
21253 width you can define the cell format
21256 \begin_layout Standard
21261 newcolumntype{M}[1]{>{
21268 \begin_layout Standard
21275 avoids the problem of hyphenating the first word, as described in section
21276 \begin_inset space ~
21280 \begin_inset CommandInset ref
21282 reference "sub:Multiple-Lines-in"
21287 Now you can simply enter
21290 \begin_layout Standard
21296 \begin_layout Standard
21301 in the table dialog to create a multicolumn.
21304 \begin_layout Standard
21305 \begin_inset VSpace bigskip
21311 \begin_layout Standard
21312 For cells spanned by a multicolumn cell, you can define the format
21315 \begin_layout Standard
21320 newcolumntype{S}[2]{>{
21325 \begin_inset Newline newline
21329 \begin_inset Phantom HPhantom
21332 \begin_layout Plain Layout
21346 arrayrulewidth)*(1-#2))/#2}}
21349 \begin_layout Standard
21350 This format uses equation
21351 \begin_inset CommandInset ref
21357 to calculate the required width so that each spanned cell has the same
21361 \begin_layout Standard
21365 \begin_layout Standard
21368 S{width of multicolumn cell}{number of spanned columns}
21371 \begin_layout Standard
21372 as LaTeX-argument of the column.
21375 \begin_layout Standard
21376 \begin_inset VSpace bigskip
21382 \begin_layout Standard
21383 For colored columns, you can define
21386 \begin_layout Standard
21391 newcolumntype{K}[1]{>{
21398 \begin_layout Standard
21400 \begin_inset Quotes eld
21404 \begin_inset Quotes erd
21407 at the end creates a column with a flexible width whose text is horizontally
21412 \begin_layout Standard
21418 \begin_layout Standard
21422 \begin_layout Standard
21423 \begin_inset VSpace bigskip
21429 \begin_layout Standard
21431 \begin_inset space ~
21435 \begin_inset CommandInset ref
21437 reference "tab:Table-using-user-defined"
21441 use the LaTeX-arguments
21444 \begin_layout Standard
21450 \begin_layout Standard
21451 for the first column and the multicolumn,
21454 \begin_layout Standard
21460 \begin_layout Standard
21461 for the last column, and
21464 \begin_layout Standard
21470 \begin_layout Standard
21471 for the cells in the second column.
21474 \begin_layout Standard
21475 \begin_inset Float table
21481 \begin_layout Plain Layout
21482 \begin_inset Caption Standard
21484 \begin_layout Plain Layout
21485 \begin_inset CommandInset label
21487 name "tab:Table-using-user-defined"
21491 Table using user-defined table formats
21499 \begin_layout Plain Layout
21501 \begin_inset Tabular
21502 <lyxtabular version="3" rows="3" columns="4">
21503 <features rotate="0" tabularvalignment="middle">
21504 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21505 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21506 <column alignment="center" valignment="middle">
21507 <column alignment="center" valignment="middle" special="K{red}">
21509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21512 \begin_layout Plain Layout
21513 verylongtablecellword
21518 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21521 \begin_layout Plain Layout
21522 multiple lines multicolumn
21527 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21530 \begin_layout Plain Layout
21536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21539 \begin_layout Plain Layout
21547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21550 \begin_layout Plain Layout
21556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21559 \begin_layout Plain Layout
21565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21568 \begin_layout Plain Layout
21574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21577 \begin_layout Plain Layout
21585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21588 \begin_layout Plain Layout
21594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21597 \begin_layout Plain Layout
21603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21606 \begin_layout Plain Layout
21612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21615 \begin_layout Plain Layout
21634 \begin_layout Subsection
21636 \begin_inset CommandInset label
21638 name "sub:Line-Thickness"
21643 \begin_inset Index idx
21646 \begin_layout Plain Layout
21647 Table Customization ! Line Thickness
21655 \begin_layout Standard
21656 The line thickness for all lines in a table can be adjusted with the length
21664 To set for example a line thickness of 1.5
21665 \begin_inset space \thinspace{}
21669 \begin_inset space ~
21673 \begin_inset CommandInset ref
21675 reference "tab:Table-with-1.5"
21679 , insert the command
21682 \begin_layout Standard
21689 arrayrulewidth}{1.5pt}
21692 \begin_layout Standard
21693 in TeX-Code before the table or table float.
21694 The changed thickness is valid for all subsequent tables.
21695 To use the default value again, set
21702 \begin_inset space \thinspace{}
21705 pt in TeX-Code after the table or table float.
21708 \begin_layout Standard
21712 \begin_layout Plain Layout
21718 arrayrulewidth}{1.5pt}
21724 \begin_inset Float table
21729 \begin_layout Plain Layout
21730 \begin_inset Caption Standard
21732 \begin_layout Plain Layout
21733 \begin_inset CommandInset label
21735 name "tab:Table-with-1.5"
21740 \begin_inset space \thinspace{}
21751 \begin_layout Plain Layout
21753 \begin_inset Tabular
21754 <lyxtabular version="3" rows="3" columns="3">
21755 <features rotate="0" tabularvalignment="middle">
21756 <column alignment="center" valignment="top">
21757 <column alignment="center" valignment="top">
21758 <column alignment="center" valignment="top">
21760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21763 \begin_layout Plain Layout
21769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21772 \begin_layout Plain Layout
21778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21781 \begin_layout Plain Layout
21789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21792 \begin_layout Plain Layout
21798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21801 \begin_layout Plain Layout
21807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21810 \begin_layout Plain Layout
21818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21821 \begin_layout Plain Layout
21827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21830 \begin_layout Plain Layout
21836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21839 \begin_layout Plain Layout
21859 \begin_layout Plain Layout
21865 arrayrulewidth}{0.4pt}
21873 \begin_layout Standard
21874 \begin_inset VSpace bigskip
21877 To set the line thickness to 1.5
21878 \begin_inset space \thinspace{}
21881 pt only for horizontal lines, as in Table
21882 \begin_inset space ~
21886 \begin_inset CommandInset ref
21888 reference "tab:Table-with-horizontal"
21892 , insert these commands in TeX-Code before the table or table float:
21895 \begin_layout Standard
21905 \begin_inset Newline newline
21913 \begin_inset Newline newline
21922 arrayrulewidth 1.5pt}
21923 \begin_inset Newline newline
21934 arrayrulewidth 0.4pt}}
21937 \begin_layout Standard
21938 To return to the default line thickness, insert this command in TeX-Code
21939 after the table or table float:
21942 \begin_layout Standard
21954 \begin_layout Standard
21958 \begin_layout Plain Layout
21969 \begin_layout Plain Layout
21978 \begin_layout Plain Layout
21986 arrayrulewidth 1.5pt}
21989 \begin_layout Plain Layout
21999 arrayrulewidth 0.4pt}}
22005 \begin_inset Float table
22010 \begin_layout Plain Layout
22011 \begin_inset Caption Standard
22013 \begin_layout Plain Layout
22014 \begin_inset CommandInset label
22016 name "tab:Table-with-horizontal"
22021 \begin_inset space \thinspace{}
22024 pt thick horizontal lines
22032 \begin_layout Plain Layout
22034 \begin_inset Tabular
22035 <lyxtabular version="3" rows="3" columns="3">
22036 <features rotate="0" tabularvalignment="middle">
22037 <column alignment="center" valignment="top">
22038 <column alignment="center" valignment="top">
22039 <column alignment="center" valignment="top">
22041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22044 \begin_layout Plain Layout
22050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22053 \begin_layout Plain Layout
22059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22062 \begin_layout Plain Layout
22070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22073 \begin_layout Plain Layout
22079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22082 \begin_layout Plain Layout
22088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22091 \begin_layout Plain Layout
22099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22102 \begin_layout Plain Layout
22108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22111 \begin_layout Plain Layout
22117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22120 \begin_layout Plain Layout
22140 \begin_layout Plain Layout
22156 \begin_layout Standard
22157 \begin_inset VSpace bigskip
22160 To set the line thickness to 1.5
22161 \begin_inset space \thinspace{}
22164 pt only for vertical lines, create the following column format in the document
22165 preamble, according to the description in section
22166 \begin_inset space ~
22170 \begin_inset CommandInset ref
22172 reference "sub:Customized-Format"
22179 \begin_layout Standard
22184 newcolumntype{V}{!{
22186 vrule width 1.5pt}}
22189 \begin_layout Standard
22191 \begin_inset space ~
22195 \begin_inset CommandInset ref
22197 reference "tab:Table-with-vertical"
22204 \begin_layout Standard
22210 \begin_layout Standard
22211 was used for the last column and
22214 \begin_layout Standard
22220 \begin_layout Standard
22221 for the other columns.
22224 \begin_layout Standard
22225 \begin_inset Float table
22230 \begin_layout Plain Layout
22231 \begin_inset Caption Standard
22233 \begin_layout Plain Layout
22234 \begin_inset CommandInset label
22236 name "tab:Table-with-vertical"
22241 \begin_inset space \thinspace{}
22244 pt thick vertical lines
22252 \begin_layout Plain Layout
22254 \begin_inset Tabular
22255 <lyxtabular version="3" rows="3" columns="3">
22256 <features rotate="0" tabularvalignment="middle">
22257 <column alignment="center" valignment="top" special="Vc">
22258 <column alignment="center" valignment="top" special="Vc">
22259 <column alignment="center" valignment="top" special="VcV">
22261 <cell alignment="center" valignment="top" topline="true" usebox="none">
22264 \begin_layout Plain Layout
22270 <cell alignment="center" valignment="top" topline="true" usebox="none">
22273 \begin_layout Plain Layout
22279 <cell alignment="center" valignment="top" topline="true" usebox="none">
22282 \begin_layout Plain Layout
22290 <cell alignment="center" valignment="top" topline="true" usebox="none">
22293 \begin_layout Plain Layout
22299 <cell alignment="center" valignment="top" topline="true" usebox="none">
22302 \begin_layout Plain Layout
22308 <cell alignment="center" valignment="top" topline="true" usebox="none">
22311 \begin_layout Plain Layout
22319 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22322 \begin_layout Plain Layout
22328 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22331 \begin_layout Plain Layout
22337 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22340 \begin_layout Plain Layout
22359 \begin_layout Subsection
22361 \begin_inset Index idx
22364 \begin_layout Plain Layout
22365 Table Customization ! Dashed Lines
22373 \begin_layout Standard
22377 \begin_layout Plain Layout
22387 \begin_inset Note Note
22390 \begin_layout Plain Layout
22391 The following section will only be displayed when the LaTeX-package
22403 \begin_layout Standard
22404 \begin_inset Float table
22410 \begin_layout Plain Layout
22411 \begin_inset Caption Standard
22413 \begin_layout Plain Layout
22414 \begin_inset CommandInset label
22416 name "tab:Table-with-dashed"
22420 Table with dashed lines
22428 \begin_layout Plain Layout
22430 \begin_inset Tabular
22431 <lyxtabular version="3" rows="5" columns="5">
22432 <features rotate="0" tabularvalignment="middle">
22433 <column alignment="center" valignment="top">
22434 <column alignment="center" valignment="top">
22435 <column alignment="center" valignment="top" special=":c">
22436 <column alignment="center" valignment="top">
22437 <column alignment="center" valignment="top">
22439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22442 \begin_layout Plain Layout
22448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22451 \begin_layout Plain Layout
22457 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22460 \begin_layout Plain Layout
22466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22469 \begin_layout Plain Layout
22475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22478 \begin_layout Plain Layout
22486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22489 \begin_layout Plain Layout
22495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22498 \begin_layout Plain Layout
22504 <cell alignment="center" valignment="top" topline="true" usebox="none">
22507 \begin_layout Plain Layout
22513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22516 \begin_layout Plain Layout
22522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22525 \begin_layout Plain Layout
22533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22536 \begin_layout Plain Layout
22540 \begin_layout Plain Layout
22554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22557 \begin_layout Plain Layout
22563 <cell alignment="center" valignment="top" usebox="none">
22566 \begin_layout Plain Layout
22572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22575 \begin_layout Plain Layout
22581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22584 \begin_layout Plain Layout
22592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22595 \begin_layout Plain Layout
22599 \begin_layout Plain Layout
22613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22616 \begin_layout Plain Layout
22622 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22625 \begin_layout Plain Layout
22631 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22634 \begin_layout Plain Layout
22640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22643 \begin_layout Plain Layout
22651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22654 \begin_layout Plain Layout
22660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22663 \begin_layout Plain Layout
22669 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22672 \begin_layout Plain Layout
22678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22681 \begin_layout Plain Layout
22687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22690 \begin_layout Plain Layout
22709 \begin_layout Standard
22710 LyX does not natively support dashed lines, so you have to use TeX-Code.
22711 As a prerequisite the LaTeX-package
22716 \begin_inset Index idx
22719 \begin_layout Plain Layout
22720 LaTeX-packages ! arydshln
22725 must be loaded in the document preamble with the command
22728 \begin_layout Standard
22733 usepackage{arydshln}
22736 \begin_layout Standard
22737 To make a vertical line dashed, enter the colon
22738 \begin_inset Quotes eld
22742 \begin_inset Quotes erd
22745 together with the character for the horizontal alignment as LaTeX-argument
22746 in the table cell dialog.
22749 \begin_layout Standard
22750 For a horizontal dashed line add the command
22753 \begin_layout Standard
22761 \begin_layout Standard
22762 in TeX-Code as first element of the first cell in the table row.
22765 \begin_layout Standard
22766 For dashed multicolumn lines use the command
22769 \begin_layout Standard
22774 cdashline{line number
22779 \begin_layout Standard
22780 in TeX-Code as the first element of the first cell in the table row.
22781 If you have for example a multicolumn spanning columns 2 to 4 and you want
22782 to have a dashed line above, add the command
22785 \begin_layout Standard
22793 \begin_layout Standard
22794 as the first element of the first cell in the row of the multicolumn.
22797 \begin_layout Standard
22798 \begin_inset VSpace bigskip
22804 \begin_layout Standard
22806 \begin_inset space ~
22810 \begin_inset CommandInset ref
22812 reference "tab:Table-with-dashed"
22817 \begin_inset Quotes eld
22825 \begin_inset Quotes erd
22828 as LaTeX-argument of the third column.
22829 The TeX-Code command
22835 was inserted in the first cell of the third row and the TeX-Code command
22836 \begin_inset Newline newline
22845 was inserted in the first cell of the fourth row.
22848 \begin_layout Standard
22849 \begin_inset VSpace bigskip
22855 \begin_layout Standard
22856 Tables with dashed lines can also be colored as shown by Table
22857 \begin_inset space ~
22861 \begin_inset CommandInset ref
22863 reference "tab:Colored-table-with"
22870 \begin_layout Standard
22874 \begin_layout Plain Layout
22880 arrayrulewidth}{1pt}
22886 \begin_inset Note Note
22889 \begin_layout Plain Layout
22890 thicker lines for better visualization of the line color
22898 \begin_layout Standard
22902 \begin_layout Plain Layout
22906 dashgapcolor{green}
22912 \begin_inset Note Note
22915 \begin_layout Plain Layout
22916 color gaps between dashes green
22924 \begin_layout Standard
22928 \begin_layout Plain Layout
22939 \begin_layout Plain Layout
22948 \begin_layout Plain Layout
22952 arrayrulecolor{red}
22956 arrayrulecolor{black}}
22962 \begin_inset Note Note
22965 \begin_layout Plain Layout
22966 color horizontal, dashed lines red
22974 \begin_layout Standard
22978 \begin_layout Plain Layout
22989 \begin_layout Plain Layout
22998 \begin_layout Plain Layout
23002 arrayrulecolor{yellow}
23006 arrayrulecolor{black}}
23012 \begin_inset Note Note
23015 \begin_layout Plain Layout
23016 color partial horizontal, dashed lines yellow
23024 \begin_layout Standard
23025 \begin_inset Float table
23031 \begin_layout Plain Layout
23032 \begin_inset Caption Standard
23034 \begin_layout Plain Layout
23035 \begin_inset CommandInset label
23037 name "tab:Colored-table-with"
23041 Colored table with dashed lines
23049 \begin_layout Plain Layout
23051 \begin_inset Tabular
23052 <lyxtabular version="3" rows="5" columns="5">
23053 <features rotate="0" tabularvalignment="middle">
23054 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23055 <column alignment="center" valignment="top" width="0pt">
23056 <column alignment="center" valignment="top" width="0pt" special=":c">
23057 <column alignment="center" valignment="top">
23058 <column alignment="center" valignment="top">
23060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23063 \begin_layout Plain Layout
23069 <cell alignment="center" valignment="top" topline="true" usebox="none">
23072 \begin_layout Plain Layout
23078 <cell alignment="center" valignment="top" topline="true" usebox="none">
23081 \begin_layout Plain Layout
23087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23090 \begin_layout Plain Layout
23096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23099 \begin_layout Plain Layout
23107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23110 \begin_layout Plain Layout
23116 <cell alignment="center" valignment="top" topline="true" usebox="none">
23119 \begin_layout Plain Layout
23125 <cell alignment="center" valignment="top" topline="true" usebox="none">
23128 \begin_layout Plain Layout
23134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23137 \begin_layout Plain Layout
23143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23146 \begin_layout Plain Layout
23154 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23157 \begin_layout Plain Layout
23161 \begin_layout Plain Layout
23174 \begin_layout Plain Layout
23188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23191 \begin_layout Plain Layout
23197 <cell alignment="center" valignment="top" usebox="none">
23200 \begin_layout Plain Layout
23206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23209 \begin_layout Plain Layout
23215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23218 \begin_layout Plain Layout
23226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23229 \begin_layout Plain Layout
23233 \begin_layout Plain Layout
23247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23250 \begin_layout Plain Layout
23256 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23259 \begin_layout Plain Layout
23265 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23268 \begin_layout Plain Layout
23274 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23277 \begin_layout Plain Layout
23285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23288 \begin_layout Plain Layout
23294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23297 \begin_layout Plain Layout
23303 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23306 \begin_layout Plain Layout
23312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23315 \begin_layout Plain Layout
23321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23324 \begin_layout Plain Layout
23328 \begin_layout Plain Layout
23355 \begin_layout Standard
23359 \begin_layout Plain Layout
23373 \begin_inset Note Note
23376 \begin_layout Plain Layout
23385 \begin_layout Standard
23389 \begin_layout Plain Layout
23403 \begin_inset Note Note
23406 \begin_layout Plain Layout
23415 \begin_layout Standard
23419 \begin_layout Plain Layout
23429 \begin_inset Note Note
23432 \begin_layout Plain Layout
23441 \begin_layout Standard
23445 \begin_layout Plain Layout
23451 arrayrulewidth}{0.4pt}
23457 \begin_inset Note Note
23460 \begin_layout Plain Layout
23469 \begin_layout Standard
23470 The coloring of lines, columns and lines works as decribed in section
23471 \begin_inset space ~
23475 \begin_inset CommandInset ref
23477 reference "sec:Colored-Tables"
23482 Coloring horizontal lines works analogically as described there as well,
23483 one only needs to replace in the commands
23507 ; so one uses the command
23510 \begin_layout Standard
23520 \begin_inset Newline newline
23528 \begin_inset Newline newline
23532 \begin_inset Phantom HPhantom
23535 \begin_layout Plain Layout
23536 \begin_inset space ~
23546 arrayrulecolor{red}
23550 arrayrulecolor{black}}
23553 \begin_layout Standard
23563 \begin_layout Standard
23573 \begin_inset Newline newline
23581 \begin_inset Newline newline
23585 \begin_inset Phantom HPhantom
23588 \begin_layout Plain Layout
23589 \begin_inset space ~
23599 arrayrulecolor{red}
23603 arrayrulecolor{black}}
23606 \begin_layout Standard
23607 To get back the black line color, one needs to insert the following commands
23608 as TeX-Code behind the table:
23611 \begin_layout Standard
23619 \begin_layout Standard
23631 \begin_layout Standard
23639 \begin_layout Standard
23651 \begin_layout Standard
23652 To color the gaps between the dashes the command
23655 \begin_layout Standard
23660 dashgapcolor{color}
23663 \begin_layout Standard
23664 can be used in front of a table as TeX-Code.
23665 color is hereby the name of a defined color.
23669 \begin_layout Standard
23677 \begin_layout Standard
23678 unsets the changes made by
23687 \begin_layout Standard
23688 \begin_inset Note Greyedout
23691 \begin_layout Plain Layout
23697 : If there are multiple commands in a cell, the command of
23701 needs to be the first one in the cell.
23707 \begin_inset space ~
23711 \begin_inset CommandInset ref
23713 reference "tab:Colored-table-with"
23737 \begin_layout Standard
23738 \begin_inset Note Greyedout
23741 \begin_layout Plain Layout
23751 must be loaded in the document preamble before the LaTeX-package
23756 \begin_inset Index idx
23759 \begin_layout Plain Layout
23760 LaTeX-packages ! colortbl
23773 \begin_layout Standard
23777 \begin_layout Plain Layout
23787 \begin_inset Note Note
23790 \begin_layout Plain Layout
23791 The following will be displayed when the LaTeX-package
23803 \begin_layout Standard
23804 You need to install the package
23808 to see the content of this section in the output.
23811 \begin_layout Standard
23815 \begin_layout Plain Layout
23827 \begin_layout Standard
23828 For more information about dashed lines see the documentation of
23833 \begin_inset CommandInset citation
23842 \begin_layout Chapter
23844 \begin_inset CommandInset label
23851 \begin_inset Index idx
23854 \begin_layout Plain Layout
23863 \begin_layout Section
23865 \begin_inset CommandInset label
23867 name "sec:FloatIntroduction"
23872 \begin_inset Index idx
23875 \begin_layout Plain Layout
23876 Floats ! Introduction
23884 \begin_layout Standard
23885 A float is a block of text associated with some sort of label, which doesn't
23886 have a fixed location.
23888 \begin_inset Quotes eld
23892 \begin_inset Quotes erd
23895 forward or backward a page or two, to wherever it fits best.
23903 \begin_inset space ~
23908 are also floats because they can float to the next page when there are
23909 too many notes on the page.
23912 \begin_layout Standard
23913 Floats allow a high quality layout.
23914 Images and tables can be spread evenly among the pages to avoid white space
23915 and pages without text.
23916 As the floating often destroys the context between the text and the image/table
23917 , every float can be referenced in the text.
23918 Floats are therefore numbered.
23919 Referencing is described in section
23920 \begin_inset space ~
23924 \begin_inset CommandInset ref
23926 reference "sec:Referencing-Floats"
23933 \begin_layout Standard
23934 To insert a float, use the menu
23936 Insert\SpecialChar \menuseparator
23942 arg "float-insert figure"
23948 arg "float-insert table"
23956 inset, a box with a label.
23957 The label will automatically be translated to the document language in
23959 After the label you can insert the caption text.
23960 The image or table is inserted above or below the caption in a separate
23961 paragraph within the float.
23962 More about the caption placement is contained in section
23963 \begin_inset space ~
23967 \begin_inset CommandInset ref
23969 reference "sec:Caption-Placement"
23974 To keep your LyX-document readable, you can open and close the float box
23975 by left-clicking on the box label.
23976 A closed float box looks like this:
23977 \begin_inset Graphics
23978 filename clipart/floatQt4.png
23980 scaleBeforeRotation
23984 – a gray button with a red label.
23987 \begin_layout Standard
23988 It is recommended that you insert floats as separate standard paragraphs
23989 to avoid possible LaTeX-errors that can occur when the surrounding text
23990 is specially formatted.
23993 \begin_layout Standard
23994 Existing figures or tables can be put into a float by highlighting them
23995 and then pressing the corresponding toolbar button for a new float.
23998 \begin_layout Section
24002 \begin_layout Standard
24003 Besides figure and table floats that are described in sections
24004 \begin_inset space ~
24008 \begin_inset CommandInset ref
24010 reference "sec:Figure-Floats"
24015 \begin_inset CommandInset ref
24017 reference "sec:Table-Floats"
24021 respectively, LyX offers the float types
24030 The latter are explained in sec.
24031 \begin_inset space \thinspace{}
24035 \begin_inset CommandInset ref
24037 reference "sec:Wrap-Floats"
24044 \begin_layout Subsection
24046 \begin_inset Index idx
24049 \begin_layout Plain Layout
24050 Floats ! Algorithms
24058 \begin_layout Standard
24059 \begin_inset Float algorithm
24065 \begin_layout Plain Layout
24066 \begin_inset Caption Standard
24068 \begin_layout Plain Layout
24069 \begin_inset CommandInset label
24071 name "alg:Example-Algorithm-float"
24075 Example Algorithm float
24083 \begin_layout LyX-Code
24085 \begin_inset Newline newline
24088 Sum:= Sum + A(I); /*comment*/
24089 \begin_inset Newline newline
24093 \begin_inset VSpace -4mm
24104 \begin_layout Standard
24105 This float type is inserted with the menu
24107 Insert\SpecialChar \menuseparator
24108 Float\SpecialChar \menuseparator
24112 It is used for program codes and descriptions of algorithms and can be
24113 seen as an alternative to program code listings that are explained in chapter
24114 \begin_inset space ~
24118 \begin_inset CommandInset ref
24120 reference "cha:Program-Code-Listings"
24125 A possible environment for algorithms is the
24129 , described in LyX's
24135 \begin_inset space ~
24139 \begin_inset CommandInset ref
24141 reference "alg:Example-Algorithm-float"
24145 is an example of an algorithm float where -4
24146 \begin_inset space \thinspace{}
24149 mm vertical space was added at the end of the float to have the bottom rule
24150 exactly below the last text line.
24153 \begin_layout Standard
24154 The float label is not automatically translated into the document language.
24155 If your document is not in English, you have to do this manually by adding
24156 the following line to the document preamble
24161 \begin_layout Standard
24166 floatname{algorithm}{your
24167 \begin_inset space ~
24173 \begin_layout Standard
24177 \begin_inset space ~
24183 \begin_inset Quotes eld
24191 \begin_inset Quotes erd
24197 \begin_layout Standard
24198 To insert the list of algorithms you can use the menu
24200 Insert\SpecialChar \menuseparator
24202 \begin_inset space \thinspace{}
24206 \begin_inset space \thinspace{}
24209 TOC\SpecialChar \menuseparator
24212 when your document has the same language as LyX's menu names.
24213 In other cases use this command in TeX-Code instead:
24216 \begin_layout Standard
24221 listof{algorithm}{your
24222 \begin_inset space ~
24228 \begin_layout Standard
24232 \begin_inset space ~
24238 \begin_inset Quotes eld
24246 \begin_inset Quotes erd
24252 \begin_layout Standard
24253 Algorithm floats are not by default numbered in the scheme
24254 \begin_inset Quotes eld
24258 \begin_inset Quotes erd
24261 as is the case for table and figure floats in many document-classes.
24262 To number algorithm floats in the same scheme, add this command to your
24266 \begin_layout Standard
24271 numberwithin{algorithm}{chapter}
24274 \begin_layout Standard
24275 To be able to use the command
24284 \begin_inset space ~
24289 in the document settings the option
24292 \begin_inset space ~
24296 \begin_inset space ~
24300 \begin_inset space ~
24308 \begin_layout Section
24310 \begin_inset Index idx
24313 \begin_layout Plain Layout
24322 \begin_layout Standard
24323 Floats are usually numbered either independently from the sections the floats
24324 are in, or in the scheme
24325 \begin_inset Quotes eld
24329 \begin_inset Quotes erd
24333 \begin_inset Quotes eld
24337 \begin_inset Quotes erd
24341 This depends on the document class used.
24344 \begin_layout Standard
24345 To change section-independent numbering, you can use this command in the
24349 \begin_layout Standard
24361 \begin_layout Standard
24368 is the command that prints the table number.
24369 For figure floats, the command would be
24382 in the command above prints the table number as a small roman number.
24385 \begin_layout Standard
24386 To change the numbering scheme for example to
24387 \begin_inset Quotes eld
24391 \begin_inset Quotes erd
24394 , use this command in the preamble:
24397 \begin_layout Standard
24402 numberwithin{table}{subsection}
24405 \begin_layout Standard
24406 To be able to use the command
24415 \begin_inset space ~
24420 in the document settings the option
24423 \begin_inset space ~
24427 \begin_inset space ~
24431 \begin_inset space ~
24439 \begin_layout Standard
24440 Please also have a look at section
24441 \begin_inset space ~
24445 \begin_inset CommandInset ref
24447 reference "sub:Footnote-Numbering"
24451 for the details and important notes about the numbering commands.
24454 \begin_layout Section
24456 \begin_inset CommandInset label
24458 name "sec:Referencing-Floats"
24463 \begin_inset Index idx
24466 \begin_layout Plain Layout
24467 Floats ! References
24473 \begin_inset Index idx
24476 \begin_layout Plain Layout
24477 References ! to Floats
24485 \begin_layout Standard
24486 To reference a float, insert a label into its caption using the menu
24488 Insert\SpecialChar \menuseparator
24491 or the toolbar button
24498 A grey label box like this one:
24499 \begin_inset Graphics
24500 filename clipart/labelQt4.png
24502 scaleBeforeRotation
24506 will be inserted and the label window pops up asking for the label text.
24507 LyX offers as text the first words of the caption with a prefix.
24508 The prefix depends on the float type, e.
24509 \begin_inset space \thinspace{}
24513 \begin_inset space \space{}
24516 for figure floats the prefix will be "
24523 \begin_layout Standard
24524 The label is used as anchor and name for the reference.
24525 You can refer to the label using the menu
24527 Insert\SpecialChar \menuseparator
24530 or the toolbar button
24533 arg "dialog-show-new-inset ref"
24537 The cross-reference window appears showing all labels of the document.
24538 If you have multiple LyX-documents opened, choose the one you are working
24539 on from the drop-list at the top of the dialog.
24540 You can now sort the labels alphabetically and then choose one.
24541 A grey cross-reference box like this one:
24542 \begin_inset Graphics
24543 filename clipart/referenceQt4.png
24545 scaleBeforeRotation
24550 At the position of the cross-reference box the float number will appear
24554 \begin_layout Standard
24555 It is recommended that you use a protected space between the cross-reference
24556 name and its number to avoid line breaks between them.
24557 If a cross-reference refers to a non-existing label, you will see two question
24558 marks in the output instead of the reference.
24561 \begin_layout Standard
24562 You can change labels at any time by clicking on the label box.
24563 References to the changed label will automatically update their links to
24564 the new label text.
24567 \begin_layout Standard
24571 \begin_inset space ~
24575 \begin_inset space ~
24580 in the cross-reference window sets the cursor before the referred label.
24581 The button text changes then to Go
24582 \begin_inset space ~
24585 Back and you can use it to set the cursor back to the cross-reference.
24588 \begin_layout Subsection
24589 Cross-Reference Formats
24590 \begin_inset CommandInset label
24592 name "sub:Cross-Reference-Formats"
24597 \begin_inset Index idx
24600 \begin_layout Plain Layout
24601 References ! Formats
24609 \begin_layout Standard
24610 There are six varieties of cross-references:
24613 \begin_layout Description
24614 <reference>: prints the float number, this is the default:
24615 \begin_inset CommandInset ref
24617 reference "fig:Two-distorted-images"
24624 \begin_layout Description
24625 (<reference>): prints the float number within two parentheses, this is the
24626 style normally used to reference formulas, especially when the reference
24628 \begin_inset Quotes eld
24632 \begin_inset Quotes erd
24636 \begin_inset CommandInset ref
24645 \begin_layout Description
24646 <page>: prints the page number: Page
24647 \begin_inset space ~
24651 \begin_inset CommandInset ref
24652 LatexCommand pageref
24653 reference "fig:Two-distorted-images"
24660 \begin_layout Description
24662 \begin_inset space ~
24666 \begin_inset space ~
24669 <page>: prints the text "on page" and the page number:
24670 \begin_inset CommandInset ref
24671 LatexCommand vpageref
24672 reference "fig:Two-distorted-images"
24679 \begin_layout Description
24681 \begin_inset space ~
24685 \begin_inset space ~
24689 \begin_inset space ~
24692 <page>: prints the float number, the text "on page", and the page number:
24694 \begin_inset CommandInset ref
24696 reference "fig:Two-distorted-images"
24703 \begin_layout Description
24705 \begin_inset space ~
24708 reference: prints a self-defined cross-reference format.
24709 \begin_inset Newline newline
24713 \begin_inset Note Greyedout
24716 \begin_layout Plain Layout
24721 This feature is only available when you have the LaTeX-package
24730 \begin_inset Index idx
24733 \begin_layout Plain Layout
24734 LaTeX-packages ! prettyref
24740 \begin_inset Index idx
24743 \begin_layout Plain Layout
24744 LaTeX-packages ! refstyle
24755 \begin_inset Newline newline
24758 You can select which LaTeX-package should be used for this feature by setting
24761 Use refstyle (not prettyref) for cross-references
24765 Document\SpecialChar \menuseparator
24766 Settings\SpecialChar \menuseparator
24770 The format is specified by adding the command
24782 (refstyle) to the preamble of the document.
24783 For example redefining all references to figures (which have the label
24785 \begin_inset Quotes eld
24793 \begin_inset Quotes erd
24796 ) can be done with this command
24797 \begin_inset Newline newline
24804 newref{fig}{refcmd={Image on page
24809 \begin_inset Newline newline
24812 For more information about the format, have a look at the package documentations
24814 \begin_inset CommandInset citation
24816 key "prettyref,refstyle"
24823 \begin_layout Description
24825 \begin_inset space ~
24828 reference: prints the caption of the reference:
24829 \begin_inset CommandInset ref
24830 LatexCommand nameref
24831 reference "fig:Two-distorted-images"
24838 \begin_layout Standard
24843 will not print the page number if the label is on the previous, the same,
24846 \begin_inset space \thinspace{}
24850 \begin_inset space \space{}
24854 \begin_inset Quotes eld
24862 \begin_inset Quotes erd
24868 <reference> on page <page>
24870 will not print anything about the page if the label is on the same page.
24873 \begin_layout Standard
24874 The number and current page of the part of the document referred to in the
24875 output is automatically calculated by LaTeX.
24876 The varieties are adjusted in the field
24880 of the cross-reference window that appears when you click on the cross-referenc
24884 \begin_layout Standard
24885 \begin_inset Note Greyedout
24888 \begin_layout Plain Layout
24893 It is recommended to use the LaTeX-package
24898 \begin_inset Index idx
24901 \begin_layout Plain Layout
24902 LaTeX-packages ! refstyle
24912 \begin_inset Index idx
24915 \begin_layout Plain Layout
24916 LaTeX-packages ! prettyref
24921 does not know all of LyX's possible label shortcuts
24925 \begin_layout Plain Layout
24926 \begin_inset Quotes eld
24930 \begin_inset Quotes erd
24933 is for example LyX's shortcut for labels in figure captions.
24938 and is not internationalized.
24946 \begin_layout Standard
24947 \begin_inset Note Greyedout
24950 \begin_layout Plain Layout
24955 Due to a bug in the LaTeX-package
24959 version 1.4w, some cross-reference formats will cause LaTeX errors for document
24960 languages that make the period character active (like French).
24961 For a workaround, see
24962 \begin_inset Newline newline
24966 \begin_inset CommandInset href
24968 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
24980 \begin_layout Subsection
24981 Automatic Reference Naming
24982 \begin_inset Index idx
24985 \begin_layout Plain Layout
24986 References ! Automatic Reference Naming
24994 \begin_layout Standard
25000 \begin_inset Index idx
25003 \begin_layout Plain Layout
25004 LaTeX-packages ! hyperref
25009 , that is enabled in the
25017 dialog, provides a very useful feature that cross-references automatically
25018 include the name of the referenced floats (or text parts like
25023 So you will save having to write e.
25024 \begin_inset space \thinspace{}
25028 \begin_inset space \space{}
25032 \begin_inset Quotes eld
25036 \begin_inset Quotes erd
25039 before every reference to a figure.
25040 To use this feature, enable
25044 and insert this line to the LaTeX preamble:
25047 \begin_layout Standard
25063 \begin_layout Standard
25064 When you prefer other reference names than the default ones, for example
25065 you want instead of
25066 \begin_inset Quotes eld
25070 \begin_inset Quotes erd
25074 \begin_inset Quotes eld
25078 \begin_inset space \thinspace{}
25082 \begin_inset Quotes eld
25085 , you can redefine the name by inserting this in the preamble:
25088 \begin_layout Standard
25099 sectionautorefname}
25100 \begin_inset Newline newline
25104 \begin_inset Phantom HPhantom
25107 \begin_layout Plain Layout
25110 \begin_inset space ~
25123 \begin_layout Standard
25124 When you are using another document language than English, replace
25125 \begin_inset Newline newline
25140 , where *** is the name of the language used.
25143 \begin_layout Standard
25144 To get automatic names, but not for certain reference types, for example
25145 not for equations, use this preamble code:
25148 \begin_layout Standard
25159 equationautorefname}[1]{}}
25162 \begin_layout Standard
25163 More about this topic can be found in
25168 \begin_inset CommandInset citation
25177 \begin_layout Standard
25178 \begin_inset Note Greyedout
25181 \begin_layout Plain Layout
25186 Automatic reference naming cannot be used when you use cross-references
25190 \begin_inset space ~
25195 style, as described in section
25196 \begin_inset space ~
25200 \begin_inset CommandInset ref
25202 reference "sub:Cross-Reference-Formats"
25214 \begin_layout Standard
25219 manual is an example where automatic reference naming is used.
25222 \begin_layout Subsection
25224 \begin_inset CommandInset label
25226 name "sub:Reference-Position"
25231 \begin_inset Index idx
25234 \begin_layout Plain Layout
25235 References ! Reference Position
25243 \begin_layout Standard
25249 \begin_inset Index idx
25252 \begin_layout Plain Layout
25253 LaTeX-packages ! hyperref
25266 dialog to link cross-references in the output, you will see that clicking
25267 on an image float reference jumps to the image label.
25268 The caption will be the first text part on the screen, so that you cannot
25269 see the image without scrolling.
25270 This is because the reference link anchor is placed at the position of
25272 With the use of the package
25277 \begin_inset Index idx
25280 \begin_layout Plain Layout
25281 LaTeX-packages ! hypcap
25286 , which is part of the LaTeX-package
25291 \begin_inset Index idx
25294 \begin_layout Plain Layout
25295 LaTeX-packages ! oberdiek
25300 , the link anchor is placed at the beginning of a float.
25301 To use this feature for figure floats, load
25305 in the document preamble with the line
25308 \begin_layout Standard
25313 usepackage[figure]{hypcap}
25316 \begin_layout Standard
25321 for all float types but this is not recommended for stability reasons.
25322 For more information, have a look at
25327 \begin_inset CommandInset citation
25336 \begin_layout Standard
25337 \begin_inset Note Greyedout
25340 \begin_layout Plain Layout
25349 has no effect on references to subfigures.
25357 \begin_layout Section
25359 \begin_inset CommandInset label
25361 name "sec:Float-Placement"
25366 \begin_inset Index idx
25369 \begin_layout Plain Layout
25378 \begin_layout Standard
25379 Right-clicking on a float-box and clicking on
25383 opens a dialog where you can alter the placement options that LaTeX uses
25384 for positioning the float.
25385 \begin_inset Newline newline
25391 \begin_inset space ~
25396 is only useful for two-column documents: If you select it, the float will
25397 span both columns on the page instead of being confined to just one.
25398 \begin_inset Newline newline
25404 \begin_inset space ~
25409 is used to rotate floats, see section
25410 \begin_inset CommandInset ref
25412 reference "sec:Rotated-Floats"
25419 \begin_layout Standard
25420 You can use one or more of the following options in the float dialog to
25421 set the placement for a particular float when you uncheck the option
25424 \begin_inset space ~
25428 \begin_inset space ~
25436 \begin_layout Description
25438 \begin_inset space ~
25442 \begin_inset space ~
25445 possible try to place the float on the position where it has been inserted
25448 \begin_layout Description
25450 \begin_inset space ~
25454 \begin_inset space ~
25457 page try to place the float at the top of the current page
25460 \begin_layout Description
25462 \begin_inset space ~
25466 \begin_inset space ~
25469 page try to place the float at the bottom of the current page
25472 \begin_layout Description
25474 \begin_inset space ~
25478 \begin_inset space ~
25481 floats try to place the float on its own page
25484 \begin_layout Standard
25485 The order of the above option is
25490 That means, if you use the default placement, LaTeX will first try out
25494 \begin_inset space ~
25498 \begin_inset space ~
25506 \begin_inset space ~
25510 \begin_inset space ~
25515 , and then the others.
25516 If you do not use the default, LaTeX will try only the checked options
25517 but in the same order.
25519 \begin_inset space ~
25522 placements is possible the procedure is internally repeated trying to put
25523 the float on the following page.
25526 \begin_layout Standard
25527 By default, each option has its own rules:
25530 \begin_layout Labeling
25531 \labelwidthstring 00.00.0000
25535 \begin_inset space ~
25539 \begin_inset space ~
25544 only floats occupying less than 70
25545 \begin_inset space \thinspace{}
25548 % of the page can be placed at the top of a page (
25557 \begin_layout Labeling
25558 \labelwidthstring 00.00.0000
25562 \begin_inset space ~
25566 \begin_inset space ~
25571 : only floats occupying less than 30
25572 \begin_inset space \thinspace{}
25575 % of the page can be placed at the bottom of a page.
25585 \begin_layout Labeling
25586 \labelwidthstring 00.00.0000
25590 \begin_inset space ~
25594 \begin_inset space ~
25599 : only if more than 50
25600 \begin_inset space \thinspace{}
25603 % of the page is occupied by floats, several floats can be set together
25614 \begin_layout Standard
25615 If you don't like these rules, you can ignore them by using the additional
25619 \begin_inset space ~
25623 \begin_inset space ~
25629 \begin_inset Newline newline
25632 You can also redefine the rules with LaTeX-commands that are given in parenthese
25633 s after the rules description above.
25634 To increase for example the often too small default of the bottom-rule
25636 \begin_inset space \thinspace{}
25639 % of the page, add this line to your document preamble:
25642 \begin_layout Standard
25649 bottomfraction}{0.5}
25652 \begin_layout Standard
25653 Sometimes you might need, under all circumstances, a float to be placed
25654 exactly at the position where it is inserted.
25655 For this case you can use the option
25658 \begin_inset space ~
25664 Use this option very rarely and only if the document is almost ready to
25665 be printed, because the float is then no longer able to
25666 \begin_inset Quotes eld
25670 \begin_inset Quotes erd
25673 when you change your document and this will often destroy the page layout.
25676 \begin_layout Standard
25677 There are no placement options for text wrap floats, because they are always
25678 surrounded by the text of a certain paragraph.
25679 \begin_inset VSpace bigskip
25685 \begin_layout Standard
25686 Sometimes you have the problem that a float is placed at the top of a page
25687 while its corresponding section starts at the middle of the page, so that
25688 the reader could think the float is part of the previous section.
25689 To avoid this the LaTeX-command
25696 It suppresses a given float placement for the page where it is inserted
25697 and can therefore be used to avoid floats being set before a section starts.
25698 To get this, add these commands to your document preamble:
25701 \begin_layout Standard
25711 \begin_inset Newline newline
25725 \begin_layout Standard
25726 You can define the same for all section headings, like chapters and subsections.
25727 This definition is not recommended to be used for small text parts like
25728 subsubsections because LaTeX may then have problems finding a suitable
25732 \begin_layout Standard
25733 \begin_inset VSpace bigskip
25736 In some cases it is required to have all figures/tables at the end of the
25738 For this purpose the LaTeX-package
25743 \begin_inset Index idx
25746 \begin_layout Plain Layout
25747 LaTeX-packages ! endfloat
25753 It puts all figure and table floats at the end of the document into their
25755 At the original float position a text hint like
25756 \begin_inset Quotes eld
25762 \begin_inset space ~
25768 \begin_inset Quotes erd
25772 The endfloat-package is loaded in the preamble with the line
25775 \begin_layout Standard
25780 usepackage[options]{endfloat}
25783 \begin_layout Standard
25784 There are various package options to format the created figure/table sections.
25785 For more information we refer you to the
25790 \begin_inset CommandInset citation
25797 \begin_inset Newline newline
25801 \begin_inset Note Greyedout
25804 \begin_layout Plain Layout
25809 doesn't provide an automatic translation for the text hint, you have to
25810 do this manually, see section
25811 \begin_inset space ~
25815 \begin_inset CommandInset citation
25827 \begin_inset Newline newline
25831 \begin_inset Note Greyedout
25834 \begin_layout Plain Layout
25839 There is currently a bug in
25843 when the caption contains a German
25844 \begin_inset Quotes eld
25848 \begin_inset Quotes erd
25852 Use in this case the command
25853 \begin_inset Quotes eld
25863 \begin_inset Quotes erd
25866 in TeX-Code instead of
25867 \begin_inset Quotes eld
25871 \begin_inset Quotes erd
25882 \begin_layout Standard
25883 \begin_inset VSpace bigskip
25886 For more details about float placements, have a look at LaTeX books,
25887 \begin_inset CommandInset citation
25889 key "latexcompanion,latexguide,latexbook"
25896 \begin_layout Section
25898 \begin_inset CommandInset label
25900 name "sec:Rotated-Floats"
25905 \begin_inset Index idx
25908 \begin_layout Plain Layout
25917 \begin_layout Standard
25918 Especially for wide tables you might have floats rotated.
25919 To rotate a whole float including the caption, right-click on the float-box
25923 \begin_inset space ~
25931 \begin_layout Standard
25932 Rotated floats are always placed on a page of their own (or column of their
25933 own; in case you have a multi-column document).
25934 You can let them span several columns using the float settings option
25937 \begin_inset space ~
25943 Floats are rotated so that you can read them from the outside margin.
25944 To force a certain rotation direction for all pages, you can add either
25953 to the document class options.
25956 \begin_layout Standard
25957 Referencing rotated floats is the same as for normal floats, the caption
25958 format is also the same: Table
25959 \begin_inset space ~
25963 \begin_inset CommandInset ref
25965 reference "tab:Rotated-table"
25969 is an example of a rotated table float.
25972 \begin_layout Standard
25973 \begin_inset Note Greyedout
25976 \begin_layout Plain Layout
25981 Not all DVI-viewers are able to display rotated floats.
25989 \begin_layout Standard
25990 \begin_inset Float table
25995 \begin_layout Plain Layout
25996 \begin_inset Caption Standard
25998 \begin_layout Plain Layout
25999 \begin_inset CommandInset label
26001 name "tab:Rotated-table"
26013 \begin_layout Plain Layout
26015 \begin_inset Tabular
26016 <lyxtabular version="3" rows="1" columns="5">
26017 <features rotate="0" tabularvalignment="middle">
26018 <column alignment="center" valignment="top">
26019 <column alignment="center" valignment="top">
26020 <column alignment="center" valignment="top">
26021 <column alignment="center" valignment="top">
26022 <column alignment="center" valignment="top">
26024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26027 \begin_layout Plain Layout
26033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26036 \begin_layout Plain Layout
26042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26045 \begin_layout Plain Layout
26051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26054 \begin_layout Plain Layout
26060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26063 \begin_layout Plain Layout
26082 \begin_layout Section
26084 \begin_inset Index idx
26087 \begin_layout Plain Layout
26096 \begin_layout Standard
26097 Subfloats are for example used when a figure consists of several images.
26098 They are created by inserting a float into an existing float.
26099 The placement of the subfloats can be controlled in the same way as for
26100 paragraphs as shown in table
26101 \begin_inset space ~
26105 \begin_inset CommandInset ref
26107 reference "tab:Two-subtables-side"
26112 \begin_inset CommandInset ref
26114 reference "tab:Two-subtables-upon"
26121 \begin_layout Standard
26122 Referencing subfloats works as for normal floats: Table
26123 \begin_inset space ~
26127 \begin_inset CommandInset ref
26129 reference "tab:This-is-subtable-a"
26134 \begin_inset CommandInset ref
26136 reference "tab:This-is-subtable-b"
26140 are subtables of table
26141 \begin_inset space ~
26145 \begin_inset CommandInset ref
26147 reference "tab:Two-subtables-side"
26154 \begin_layout Standard
26155 \begin_inset Float table
26160 \begin_layout Plain Layout
26161 \begin_inset Caption Standard
26163 \begin_layout Plain Layout
26164 \begin_inset CommandInset label
26166 name "tab:Two-subtables-side"
26170 Two subtables placed side by side.
26178 \begin_layout Plain Layout
26180 \begin_inset space \hfill{}
26184 \begin_inset Float table
26189 \begin_layout Plain Layout
26190 \begin_inset Caption Standard
26192 \begin_layout Plain Layout
26193 \begin_inset CommandInset label
26195 name "tab:This-is-subtable-a"
26199 This is subtable a.
26207 \begin_layout Plain Layout
26209 \begin_inset Tabular
26210 <lyxtabular version="3" rows="1" columns="5">
26211 <features rotate="0" tabularvalignment="middle">
26212 <column alignment="center" valignment="top">
26213 <column alignment="center" valignment="top">
26214 <column alignment="center" valignment="top">
26215 <column alignment="center" valignment="top">
26216 <column alignment="center" valignment="top">
26218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26221 \begin_layout Plain Layout
26227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26230 \begin_layout Plain Layout
26236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26239 \begin_layout Plain Layout
26245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26248 \begin_layout Plain Layout
26254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26257 \begin_layout Plain Layout
26274 \begin_inset space \hfill{}
26278 \begin_inset Float table
26283 \begin_layout Plain Layout
26284 \begin_inset Caption Standard
26286 \begin_layout Plain Layout
26287 \begin_inset CommandInset label
26289 name "tab:This-is-subtable-b"
26293 This is subtable b.
26301 \begin_layout Plain Layout
26303 \begin_inset Tabular
26304 <lyxtabular version="3" rows="1" columns="5">
26305 <features rotate="0" tabularvalignment="middle">
26306 <column alignment="center" valignment="top">
26307 <column alignment="center" valignment="top">
26308 <column alignment="center" valignment="top">
26309 <column alignment="center" valignment="top">
26310 <column alignment="center" valignment="top">
26312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26315 \begin_layout Plain Layout
26321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26324 \begin_layout Plain Layout
26330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26333 \begin_layout Plain Layout
26339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26342 \begin_layout Plain Layout
26348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26351 \begin_layout Plain Layout
26368 \begin_inset space \hfill{}
26379 \begin_layout Standard
26380 \begin_inset Float table
26385 \begin_layout Plain Layout
26386 \begin_inset Caption Standard
26388 \begin_layout Plain Layout
26389 \begin_inset CommandInset label
26391 name "tab:Two-subtables-upon"
26395 Two subtables placed one above the other.
26396 (a) table with 4 cells, (b) table with 5 cells.
26404 \begin_layout Plain Layout
26406 \begin_inset Float table
26411 \begin_layout Plain Layout
26412 \begin_inset Caption Standard
26414 \begin_layout Plain Layout
26423 \begin_layout Plain Layout
26425 \begin_inset Tabular
26426 <lyxtabular version="3" rows="1" columns="4">
26427 <features rotate="0" tabularvalignment="middle">
26428 <column alignment="center" valignment="top">
26429 <column alignment="center" valignment="top">
26430 <column alignment="center" valignment="top">
26431 <column alignment="center" valignment="top">
26433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26436 \begin_layout Plain Layout
26442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26445 \begin_layout Plain Layout
26451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26454 \begin_layout Plain Layout
26460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26463 \begin_layout Plain Layout
26482 \begin_layout Plain Layout
26484 \begin_inset Float table
26489 \begin_layout Plain Layout
26490 \begin_inset Caption Standard
26492 \begin_layout Plain Layout
26501 \begin_layout Plain Layout
26503 \begin_inset Tabular
26504 <lyxtabular version="3" rows="1" columns="5">
26505 <features rotate="0" tabularvalignment="middle">
26506 <column alignment="center" valignment="top">
26507 <column alignment="center" valignment="top">
26508 <column alignment="center" valignment="top">
26509 <column alignment="center" valignment="top">
26510 <column alignment="center" valignment="top">
26512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26515 \begin_layout Plain Layout
26521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26524 \begin_layout Plain Layout
26530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26533 \begin_layout Plain Layout
26539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26542 \begin_layout Plain Layout
26548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26551 \begin_layout Plain Layout
26575 \begin_layout Section
26576 Floats Side by Side
26577 \begin_inset Index idx
26580 \begin_layout Plain Layout
26581 Floats ! Side by side
26589 \begin_layout Standard
26590 To place floats side by side, as in Figures
26591 \begin_inset space ~
26595 \begin_inset CommandInset ref
26597 reference "fig:Float-left"
26602 \begin_inset CommandInset ref
26604 reference "fig:Float-right"
26613 In it two minipage boxes are inserted.
26617 \begin_layout Plain Layout
26618 Minipages are explained in section
26619 \begin_inset space ~
26623 \begin_inset CommandInset ref
26625 reference "sec:Minipages"
26634 The width is set to 45
26635 \begin_inset space \thinspace{}
26639 \begin_inset space \thinspace{}
26642 column% and the box alignment to
26647 The minipage boxes contain the image and the caption in the same way as
26648 they are in a float.
26649 The only difference is that the image unit
26652 \begin_inset space ~
26656 \begin_inset space ~
26661 is now calculated according to the width of the minipage boxes.
26664 \begin_layout Standard
26665 \begin_inset Float figure
26670 \begin_layout Plain Layout
26671 \begin_inset Box Frameless
26681 height_special "totalheight"
26684 \begin_layout Plain Layout
26686 \begin_inset Graphics
26687 filename clipart/mobius.eps
26690 scaleBeforeRotation
26697 \begin_layout Plain Layout
26698 \begin_inset Caption Standard
26700 \begin_layout Plain Layout
26701 \begin_inset CommandInset label
26703 name "fig:Float-left"
26707 Float on the left side.
26718 \begin_inset space \hfill{}
26722 \begin_inset Box Frameless
26732 height_special "totalheight"
26735 \begin_layout Plain Layout
26737 \begin_inset Graphics
26738 filename clipart/platypus.eps
26741 scaleBeforeRotation
26748 \begin_layout Plain Layout
26749 \begin_inset Caption Standard
26751 \begin_layout Plain Layout
26752 \begin_inset CommandInset label
26754 name "fig:Float-right"
26758 Float on the right side.
26771 \begin_layout Plain Layout
26780 \begin_layout Section
26782 \begin_inset Index idx
26785 \begin_layout Plain Layout
26786 Caption ! Formatting
26792 \begin_inset Index idx
26795 \begin_layout Plain Layout
26796 Floats ! Caption Formatting
26802 \begin_inset CommandInset label
26804 name "sec:Caption-Formatting"
26811 \begin_layout Standard
26816 environment is the default paragraph environment for
26821 On the LyX screen captions appear as a label, e.
26822 \begin_inset space \thinspace{}
26826 \begin_inset space \space{}
26830 \begin_inset Quotes eld
26838 \begin_inset Quotes erd
26841 followed by the caption text.
26843 \begin_inset Quotes eld
26847 \begin_inset Quotes erd
26850 is the actual reference number.
26851 By default the label and the number are in the same font as the caption
26852 text and a colon follows the number to divide the label from the text.
26853 This caption format is suitable for many but not all documents.
26857 \begin_layout Standard
26858 To change the default caption format, load the LaTeX-package
26863 \begin_inset Index idx
26866 \begin_layout Plain Layout
26867 LaTeX-packages ! caption
26872 in the document preamble with this line:
26875 \begin_layout Standard
26880 usepackage[format definition]{caption}
26883 \begin_layout Standard
26884 To have for example the label and the number in sans-serif, bold font and
26885 the table captions always above the table as in this document, use the
26889 \begin_layout Standard
26894 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26897 \begin_layout Standard
26898 You can also define different caption formats for the different float types.
26899 In this case load the
26903 package without format specific options and define the different formats
26904 with the help of the command
26907 \begin_layout Standard
26912 captionsetup[float type]{format definition}
26915 \begin_layout Standard
26916 in the document preamble.
26917 For example the caption formats of Figure
26918 \begin_inset space ~
26922 \begin_inset CommandInset ref
26924 reference "fig:This-is-an-fig"
26929 \begin_inset space ~
26933 \begin_inset CommandInset ref
26935 reference "tab:This-is-an-tab"
26939 can be created using these commands in the document preamble:
26942 \begin_layout Standard
26947 usepackage[tableposition=top]{caption}
26950 \begin_inset Newline newline
26957 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
26958 \begin_inset Newline newline
26962 \begin_inset Phantom HPhantom
26965 \begin_layout Plain Layout
26970 captionsetup[figure]{
26976 \begin_inset Newline newline
26981 captionsetup[table]{labelfont={bf,sf}}
26984 \begin_layout Standard
26985 \begin_inset Note Greyedout
26988 \begin_layout Plain Layout
26997 has no effect when a
27002 \begin_inset Index idx
27005 \begin_layout Plain Layout
27006 LaTeX-packages ! KOMA-Script
27011 document class is used.
27012 In this case the document class option
27014 captions=tableheading
27024 \begin_layout Standard
27025 For more information about the package
27029 we refer to its documentation
27030 \begin_inset CommandInset citation
27039 \begin_layout Standard
27040 To change the label name from e.
27041 \begin_inset space \thinspace{}
27045 \begin_inset space \space{}
27049 \begin_inset Quotes eld
27053 \begin_inset Quotes erd
27057 \begin_inset Quotes eld
27061 \begin_inset Quotes erd
27064 use this preamble command:
27067 \begin_layout Standard
27074 fnum@figure}{Image~
27079 \begin_layout Standard
27086 inserts the figure number and
27089 \begin_inset Quotes eld
27095 \begin_inset Quotes erd
27098 creates a protected space.
27101 \begin_layout Standard
27102 \begin_inset VSpace bigskip
27110 \begin_inset Index idx
27113 \begin_layout Plain Layout
27114 LaTeX-packages ! KOMA-Script
27121 article (KOMA-Script)
27129 letter (KOMA-Script)
27133 report (KOMA-Script)
27136 \begin_inset space \thinspace{}
27139 ), you can alternatively to the
27147 's built-in command
27154 For example, to have the caption label in bold, add this command to your
27158 \begin_layout Standard
27163 setkomafont{captionlabel}{
27168 \begin_layout Standard
27169 For more information about
27180 \begin_inset CommandInset citation
27189 \begin_layout Standard
27193 \begin_layout Plain Layout
27197 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27204 \begin_inset Note Note
27207 \begin_layout Plain Layout
27208 The caption format is changed only for this example.
27216 \begin_layout Standard
27217 \begin_inset Float figure
27223 \begin_layout Plain Layout
27225 \begin_inset Graphics
27226 filename clipart/mobius.eps
27229 scaleBeforeRotation
27236 \begin_layout Plain Layout
27237 \begin_inset Caption Standard
27239 \begin_layout Plain Layout
27240 \begin_inset CommandInset label
27242 name "fig:This-is-an-fig"
27246 This is an example figure caption that is longer than one line to show the
27247 different caption format.
27248 Here a self-defined caption format is used.
27261 \begin_layout Standard
27265 \begin_layout Plain Layout
27269 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27278 \begin_layout Standard
27279 \begin_inset Float table
27285 \begin_layout Plain Layout
27286 \begin_inset Caption Standard
27288 \begin_layout Plain Layout
27289 \begin_inset CommandInset label
27291 name "tab:This-is-an-tab"
27295 This is an example table caption that is longer than one line to show the
27296 different caption format.
27297 Here the standard caption format for tables in this document is used.
27305 \begin_layout Plain Layout
27307 \begin_inset Tabular
27308 <lyxtabular version="3" rows="1" columns="5">
27309 <features rotate="0" tabularvalignment="middle">
27310 <column alignment="center" valignment="top">
27311 <column alignment="center" valignment="top">
27312 <column alignment="center" valignment="top">
27313 <column alignment="center" valignment="top">
27314 <column alignment="center" valignment="top">
27316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27319 \begin_layout Plain Layout
27325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27328 \begin_layout Plain Layout
27334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27337 \begin_layout Plain Layout
27343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27346 \begin_layout Plain Layout
27352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27355 \begin_layout Plain Layout
27374 \begin_layout Section
27376 \begin_inset Index idx
27379 \begin_layout Plain Layout
27380 Caption ! Placement
27386 \begin_inset Index idx
27389 \begin_layout Plain Layout
27390 Floats ! Caption Placement
27396 \begin_inset CommandInset label
27398 name "sec:Caption-Placement"
27405 \begin_layout Standard
27406 The common caption placement rule is:
27409 \begin_layout Description
27410 Figure: Caption is set below the figure
27413 \begin_layout Description
27414 Table: Caption is set above the table
27417 \begin_layout Standard
27418 Having the caption above the table is unfortunately not supported in LaTeX's
27420 That means if you are using the document classes
27436 there will be no space between the caption and the table.
27437 To insert the necessary space, load the LaTeX-package
27442 \begin_inset Index idx
27445 \begin_layout Plain Layout
27446 LaTeX-packages ! caption
27451 in your document preamble with the option
27455 \begin_layout Plain Layout
27457 \begin_inset space ~
27461 \begin_inset CommandInset ref
27463 reference "sec:Caption-Formatting"
27467 for more information of the package
27479 \begin_layout Standard
27485 \begin_layout Standard
27491 \begin_inset Index idx
27494 \begin_layout Plain Layout
27495 LaTeX-packages ! KOMA-Script
27502 article (KOMA-Script)
27510 letter (KOMA-Script)
27514 report (KOMA-Script)
27517 \begin_inset space \thinspace{}
27520 ), you can alternatively to the
27524 package set the document class option
27528 \begin_layout Plain Layout
27529 That option is used in this document.
27537 \begin_layout Standard
27540 captions=tableheading
27543 \begin_layout Standard
27544 In documents with a KOMA-Script document class you can also right-click
27545 on a caption and mark in the context menu if this should be a caption above
27546 or below the table/figure.
27547 This way you can override the document-wide caption placement for certain
27550 \begin_inset space ~
27554 \begin_inset CommandInset ref
27556 reference "tab:A-caption-marked"
27560 is an example where the caption is marked a being below the table while
27562 For comparison the caption in Table
27563 \begin_inset space ~
27567 \begin_inset CommandInset ref
27569 reference "tab:A-standard-table"
27576 \begin_layout Standard
27577 \begin_inset Float table
27582 \begin_layout Plain Layout
27583 \begin_inset Caption Below
27585 \begin_layout Plain Layout
27586 \begin_inset CommandInset label
27588 name "tab:A-caption-marked"
27592 A caption marked as being below the table.
27600 \begin_layout Plain Layout
27602 \begin_inset Tabular
27603 <lyxtabular version="3" rows="3" columns="3">
27604 <features rotate="0" tabularvalignment="middle">
27605 <column alignment="center" valignment="top" width="0pt">
27606 <column alignment="center" valignment="top" width="0pt">
27607 <column alignment="center" valignment="top" width="0pt">
27609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27612 \begin_layout Plain Layout
27618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27621 \begin_layout Plain Layout
27627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27630 \begin_layout Plain Layout
27638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27641 \begin_layout Plain Layout
27647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27650 \begin_layout Plain Layout
27656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27659 \begin_layout Plain Layout
27667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27670 \begin_layout Plain Layout
27671 \begin_inset Formula $\int x^{2}dx$
27679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27682 \begin_layout Plain Layout
27683 \begin_inset Formula $\left[\begin{array}{cc}
27686 \end{array}\right]$
27694 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27697 \begin_layout Plain Layout
27698 \begin_inset Formula $1+1=2$
27719 \begin_layout Standard
27720 \begin_inset Float table
27725 \begin_layout Plain Layout
27726 \begin_inset Caption Standard
27728 \begin_layout Plain Layout
27729 \begin_inset CommandInset label
27731 name "tab:A-standard-table"
27735 A standard table caption.
27743 \begin_layout Plain Layout
27745 \begin_inset Tabular
27746 <lyxtabular version="3" rows="3" columns="3">
27747 <features rotate="0" tabularvalignment="middle">
27748 <column alignment="center" valignment="top" width="0pt">
27749 <column alignment="center" valignment="top" width="0pt">
27750 <column alignment="center" valignment="top" width="0pt">
27752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27755 \begin_layout Plain Layout
27761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27764 \begin_layout Plain Layout
27770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27773 \begin_layout Plain Layout
27781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27784 \begin_layout Plain Layout
27790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27793 \begin_layout Plain Layout
27799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27802 \begin_layout Plain Layout
27810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27813 \begin_layout Plain Layout
27814 \begin_inset Formula $\int x^{2}dx$
27822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27825 \begin_layout Plain Layout
27826 \begin_inset Formula $\left[\begin{array}{cc}
27829 \end{array}\right]$
27837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27840 \begin_layout Plain Layout
27841 \begin_inset Formula $1+1=2$
27862 \begin_layout Standard
27863 \begin_inset VSpace bigskip
27866 It is also possible to set the caption beside a figure or table.
27867 To get this the LaTeX-package
27872 \begin_inset Index idx
27875 \begin_layout Plain Layout
27876 LaTeX-packages ! sidecap
27881 has to be loaded in the document preamble with the line
27884 \begin_layout Standard
27889 usepackage[option]{sidecap}
27892 \begin_layout Standard
27893 If you set no option, the caption is placed on the side of the outer page
27894 margin – to the right on odd pages, to the left on even pages.
27895 You can change the placement to inner margin with the option
27900 To force the placement always to the right or left, use the option
27911 \begin_layout Standard
27915 \begin_layout Plain Layout
27925 \begin_inset Note Note
27928 \begin_layout Plain Layout
27929 The following section will only be displayed when the LaTeX-package
27941 \begin_layout Standard
27942 To place in LyX the caption of a float on the side, it is necessary to add
27943 these commands to the document preamble:
27946 \begin_layout Standard
27948 \begin_inset CommandInset line
27959 \begin_layout Standard
27966 TabBesBeg}[1][1.0]{%
27967 \begin_inset Newline newline
27971 \begin_inset Phantom HPhantom
27974 \begin_layout Plain Layout
27975 \begin_inset space ~
27990 \begin_inset Newline newline
27994 \begin_inset Phantom HPhantom
27997 \begin_layout Plain Layout
28000 \begin_inset space ~
28015 \begin_inset Newline newline
28019 \begin_inset Phantom HPhantom
28022 \begin_layout Plain Layout
28025 \begin_inset space ~
28035 renewenvironment{table}[1]{
28037 begin{SCtable}[#1]##1}{
28042 \begin_layout Standard
28050 \begin_inset Newline newline
28054 \begin_inset Phantom HPhantom
28057 \begin_layout Plain Layout
28058 \begin_inset space ~
28073 \begin_inset Newline newline
28077 \begin_inset Phantom HPhantom
28080 \begin_layout Plain Layout
28081 \begin_inset space ~
28098 \begin_layout Standard
28105 FigBesBeg}[1][1.0]{%
28106 \begin_inset Newline newline
28110 \begin_inset Phantom HPhantom
28113 \begin_layout Plain Layout
28114 \begin_inset space ~
28129 \begin_inset Newline newline
28133 \begin_inset Phantom HPhantom
28136 \begin_layout Plain Layout
28137 \begin_inset space ~
28152 \begin_inset Newline newline
28156 \begin_inset Phantom HPhantom
28159 \begin_layout Plain Layout
28160 \begin_inset space ~
28170 renewenvironment{figure}[1]{
28172 begin{SCfigure}[#1]##1}{
28177 \begin_layout Standard
28185 \begin_inset Newline newline
28189 \begin_inset Phantom HPhantom
28192 \begin_layout Plain Layout
28193 \begin_inset space ~
28208 \begin_inset Newline newline
28212 \begin_inset Phantom HPhantom
28215 \begin_layout Plain Layout
28216 \begin_inset space ~
28233 \begin_layout Standard
28235 \begin_inset CommandInset line
28246 \begin_layout Standard
28247 The commands allow you to redefine the floats so that the caption is set
28249 For figure floats use the command
28252 \begin_layout Standard
28260 \begin_layout Standard
28261 in TeX-Code before the float.
28262 And insert the command
28265 \begin_layout Standard
28273 \begin_layout Standard
28274 in TeX-Code at the point where you want to get back to the original float
28278 \begin_layout Standard
28279 For table floats use the corresponding commands
28282 \begin_layout Standard
28296 \begin_layout Standard
28298 \begin_inset space ~
28302 \begin_inset CommandInset ref
28304 reference "fig:cap-beside-fig"
28309 \begin_inset space ~
28313 \begin_inset CommandInset ref
28315 reference "tab:cap-beside-tab"
28319 are examples where the caption is set beside.
28322 \begin_layout Standard
28323 You can see in the examples that the caption text appears at the top of
28324 the floats for table floats and at the bottom for figure floats.
28325 To change this, you can use the command
28328 \begin_layout Standard
28333 sidecaptionvpos{float type}{placement}
28336 \begin_layout Standard
28337 in the document preamble or in TeX-Code before the float.
28338 The float type is either
28346 , the placement can be
28347 \begin_inset Quotes eld
28355 \begin_inset Quotes erd
28359 \begin_inset Quotes eld
28367 \begin_inset Quotes erd
28371 \begin_inset Quotes eld
28379 \begin_inset Quotes erd
28383 To have for example the caption of figure floats vertically centered, use
28387 \begin_layout Standard
28392 sidecaptionvpos{figure}{c}
28395 \begin_layout Standard
28396 This was used for Figure
28397 \begin_inset space ~
28401 \begin_inset CommandInset ref
28403 reference "fig:cap-beside-fig-2"
28410 \begin_layout Standard
28411 \begin_inset VSpace medskip
28417 \begin_layout Standard
28418 The default caption width is the width of the image/table.
28419 For thin image/tables, like in Table
28420 \begin_inset space ~
28424 \begin_inset CommandInset ref
28426 reference "tab:cap-beside-tab"
28430 , this leads to captions that are too thin.
28431 You can increase the width by specifying a factor that will be multiplied
28432 with the image/table width to get the caption width.
28433 The caption width will automatically be recalculated in case it would protrude
28434 over the page or column margin due to the specified width.
28439 can either be given as optional argument for
28448 \begin_layout Standard
28456 \begin_layout Standard
28457 or in the definition of
28467 with another value.
28468 If you do the latter, your factor will be the default if
28474 is used without an argument.
28476 \begin_inset space ~
28480 \begin_inset CommandInset ref
28482 reference "tab:cap-beside-tab-wider"
28486 the factor 5 was used.
28489 \begin_layout Standard
28490 \begin_inset Note Greyedout
28493 \begin_layout Plain Layout
28498 For floats with captions set beside, you cannot use the float placement
28502 \begin_inset space ~
28507 because it is not supported by
28519 \begin_layout Standard
28520 \begin_inset VSpace medskip
28523 For more information about the package
28527 we refer to its documentation
28528 \begin_inset CommandInset citation
28537 \begin_layout Standard
28538 \begin_inset Note Greyedout
28541 \begin_layout Plain Layout
28551 \begin_inset Index idx
28554 \begin_layout Plain Layout
28555 LaTeX-packages ! hypcap
28560 , described in section
28561 \begin_inset space ~
28565 \begin_inset CommandInset ref
28567 reference "sub:Reference-Position"
28571 , has no effect on floats with the caption set beside.
28579 \begin_layout Standard
28583 \begin_layout Plain Layout
28595 \begin_layout Standard
28596 \begin_inset Float figure
28601 \begin_layout Plain Layout
28602 \begin_inset Graphics
28603 filename clipart/escher-lsd.eps
28605 scaleBeforeRotation
28612 \begin_layout Plain Layout
28613 \begin_inset Caption Standard
28615 \begin_layout Plain Layout
28616 \begin_inset CommandInset label
28618 name "fig:cap-beside-fig"
28622 This is a caption beside a figure.
28635 \begin_layout Standard
28639 \begin_layout Plain Layout
28651 \begin_layout Standard
28655 \begin_layout Plain Layout
28667 \begin_layout Standard
28668 \begin_inset Float table
28673 \begin_layout Plain Layout
28674 \begin_inset Caption Standard
28676 \begin_layout Plain Layout
28677 \begin_inset CommandInset label
28679 name "tab:cap-beside-tab"
28683 This is a caption beside a table.
28691 \begin_layout Plain Layout
28692 \begin_inset Tabular
28693 <lyxtabular version="3" rows="4" columns="5">
28694 <features rotate="0" tabularvalignment="middle">
28695 <column alignment="center" valignment="top">
28696 <column alignment="center" valignment="top">
28697 <column alignment="center" valignment="top">
28698 <column alignment="center" valignment="top">
28699 <column alignment="center" valignment="top">
28701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28704 \begin_layout Plain Layout
28710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28713 \begin_layout Plain Layout
28719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28722 \begin_layout Plain Layout
28728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28731 \begin_layout Plain Layout
28737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28740 \begin_layout Plain Layout
28748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28751 \begin_layout Plain Layout
28757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28760 \begin_layout Plain Layout
28766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28769 \begin_layout Plain Layout
28775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28778 \begin_layout Plain Layout
28784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28787 \begin_layout Plain Layout
28795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28798 \begin_layout Plain Layout
28804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28807 \begin_layout Plain Layout
28813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28816 \begin_layout Plain Layout
28822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28825 \begin_layout Plain Layout
28831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28834 \begin_layout Plain Layout
28842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28845 \begin_layout Plain Layout
28851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28854 \begin_layout Plain Layout
28860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28863 \begin_layout Plain Layout
28869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28872 \begin_layout Plain Layout
28878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28881 \begin_layout Plain Layout
28900 \begin_layout Standard
28904 \begin_layout Plain Layout
28916 \begin_layout Standard
28920 \begin_layout Plain Layout
28933 \begin_layout Plain Layout
28937 sidecaptionvpos{figure}{c}
28943 \begin_inset Float figure
28948 \begin_layout Plain Layout
28949 \begin_inset Graphics
28950 filename clipart/escher-lsd.eps
28952 scaleBeforeRotation
28959 \begin_layout Plain Layout
28960 \begin_inset Caption Standard
28962 \begin_layout Plain Layout
28963 \begin_inset CommandInset label
28965 name "fig:cap-beside-fig-2"
28969 This is a vertically centered caption beside a figure.
28982 \begin_layout Standard
28986 \begin_layout Plain Layout
28998 \begin_layout Standard
29002 \begin_layout Plain Layout
29014 \begin_layout Standard
29015 \begin_inset Float table
29020 \begin_layout Plain Layout
29021 \begin_inset Caption Standard
29023 \begin_layout Plain Layout
29024 \begin_inset CommandInset label
29026 name "tab:cap-beside-tab-wider"
29030 This caption is wider than the one in Table
29031 \begin_inset space ~
29035 \begin_inset CommandInset ref
29037 reference "tab:cap-beside-tab"
29049 \begin_layout Plain Layout
29050 \begin_inset Tabular
29051 <lyxtabular version="3" rows="4" columns="5">
29052 <features rotate="0" tabularvalignment="middle">
29053 <column alignment="center" valignment="top">
29054 <column alignment="center" valignment="top">
29055 <column alignment="center" valignment="top">
29056 <column alignment="center" valignment="top">
29057 <column alignment="center" valignment="top">
29059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29062 \begin_layout Plain Layout
29068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29071 \begin_layout Plain Layout
29077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29080 \begin_layout Plain Layout
29086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29089 \begin_layout Plain Layout
29095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29098 \begin_layout Plain Layout
29106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29109 \begin_layout Plain Layout
29115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29118 \begin_layout Plain Layout
29124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29127 \begin_layout Plain Layout
29133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29136 \begin_layout Plain Layout
29142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29145 \begin_layout Plain Layout
29153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29156 \begin_layout Plain Layout
29162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29165 \begin_layout Plain Layout
29171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29174 \begin_layout Plain Layout
29180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29183 \begin_layout Plain Layout
29189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29192 \begin_layout Plain Layout
29200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29203 \begin_layout Plain Layout
29209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29212 \begin_layout Plain Layout
29218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29221 \begin_layout Plain Layout
29227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29230 \begin_layout Plain Layout
29236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29239 \begin_layout Plain Layout
29258 \begin_layout Standard
29262 \begin_layout Plain Layout
29274 \begin_layout Standard
29278 \begin_layout Plain Layout
29288 \begin_inset Note Note
29291 \begin_layout Plain Layout
29292 The following will be displayed when the LaTeX-package
29304 \begin_layout Standard
29305 You need to install the LaTeX-package
29309 to see the following part of this section in the output.
29312 \begin_layout Standard
29316 \begin_layout Plain Layout
29328 \begin_layout Section
29330 \begin_inset Index idx
29333 \begin_layout Plain Layout
29334 Floats ! Float Lists
29342 \begin_layout Standard
29343 Similar to the table of contents where the sections of the document are
29344 listed, there are listings for all float types, like the figures of the
29346 You can insert them via the
29348 Insert\SpecialChar \menuseparator
29350 \begin_inset space ~
29354 \begin_inset space ~
29362 \begin_layout Standard
29363 The list entries are the float captions or its short title, the float number,
29364 and the page number where they appear in the document.
29367 \begin_layout Standard
29368 You can find the list of figures and tables at the end of this document.
29371 \begin_layout Chapter
29375 \begin_layout Section
29377 \begin_inset Index idx
29380 \begin_layout Plain Layout
29389 \begin_layout Standard
29390 Notes are inserted with the toolbar button
29398 Insert\SpecialChar \menuseparator
29402 There are three types of notes:
29405 \begin_layout Description
29407 \begin_inset space ~
29410 Note This note type is for internal notes that won't appear in the output.
29411 Its note-box looks like this:
29412 \begin_inset Newline newline
29416 \begin_inset Newline newline
29420 \begin_inset Graphics
29421 filename clipart/LyXNoteImageQt4.png
29424 scaleBeforeRotation
29429 \begin_inset Note Note
29432 \begin_layout Plain Layout
29433 This is text in a note box that doesn't appear in the output.
29441 \begin_layout Description
29442 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29443 ent, when you export the document to LaTeX via the menu
29445 File\SpecialChar \menuseparator
29446 Export\SpecialChar \menuseparator
29447 LaTeX (pdflatex) / (plain)
29450 Its note-box looks like this:
29451 \begin_inset Newline newline
29455 \begin_inset Newline newline
29459 \begin_inset Graphics
29460 filename clipart/CommentNoteImageQt4.png
29463 scaleBeforeRotation
29468 \begin_inset Note Comment
29471 \begin_layout Plain Layout
29472 This is text in a note box that only appears as comment in LaTeX-files.
29480 \begin_layout Description
29482 \begin_inset space ~
29485 Out This note will appear in the output as grey text.
29486 Its note-box looks like this:
29487 \begin_inset Newline newline
29491 \begin_inset Newline newline
29495 \begin_inset Graphics
29496 filename clipart/GreyedOutNoteImageQt4.png
29499 scaleBeforeRotation
29504 \begin_inset Newline newline
29511 \begin_layout Plain Layout
29515 renewenvironment{lyxgreyedout}
29518 \begin_layout Plain Layout
29522 textcolor[gray]{0.8}
29532 \begin_inset Note Greyedout
29535 \begin_layout Plain Layout
29540 \begin_layout Plain Layout
29541 This is an example footnote within a greyed out note.
29546 of a comment that appears in the output as grey text.
29555 \begin_layout Plain Layout
29559 renewenvironment{lyxgreyedout}
29562 \begin_layout Plain Layout
29576 \begin_inset Note Note
29579 \begin_layout Plain Layout
29580 The greyed out note is here redefined to show it with the original LyX definitio
29581 n because greyed out notes are redefined in the preamble of this document,
29582 as described below, to have blue text.
29588 \begin_inset Newline newline
29592 \begin_inset Newline newline
29595 As you can see in the example, the first line of greyed out notes is a bit
29596 indented and greyed out notes can have footnotes.
29599 \begin_layout Standard
29600 \begin_inset VSpace bigskip
29603 When you use the toolbar button
29612 \begin_inset space ~
29618 You can switch between the three note types by right-clicking on the note-box.
29623 If you want to turn existing text into a note, mark it and click on the
29637 To change a note to text, press the backspace key when the cursor is in
29638 the first position of a note, or press the delete key when the cursor is
29639 in the very last position of the note, respectively.
29642 \begin_layout Standard
29643 \begin_inset VSpace bigskip
29646 You can change the text color of the greyed out notes in the menu
29648 Document\SpecialChar \menuseparator
29649 Settings\SpecialChar \menuseparator
29655 \begin_layout Section
29657 \begin_inset CommandInset label
29659 name "sec:Footnotes"
29664 \begin_inset Index idx
29667 \begin_layout Plain Layout
29674 \begin_inset Index idx
29677 \begin_layout Plain Layout
29686 \begin_layout Standard
29687 Footnotes can be inserted using the toolbar button
29690 arg "footnote-insert"
29695 Insert\SpecialChar \menuseparator
29699 You will then see the following footnote-box:
29700 \begin_inset Graphics
29701 filename clipart/footnoteQt4.png
29703 scaleBeforeRotation
29711 where you can enter the footnote text.
29712 If you want to turn existing text into a footnote, mark it and click on
29738 key when the cursor is in the first position of a
29750 key when the cursor is in the very last position of the
29761 \begin_layout Standard
29762 Here is an example footnote:
29770 \begin_layout Plain Layout
29771 \begin_inset CommandInset label
29773 name "foot:This-is-an"
29777 This is an example footnote.
29790 \begin_layout Plain Layout
29794 newcounter{MyRepeatFoot}
29797 \begin_layout Plain Layout
29801 setcounter{MyRepeatFoot}{
29811 \begin_layout Standard
29812 The footnote will appear in the output as a superscript number at the text
29813 position where the footnote box is placed.
29814 The footnote text is placed at the bottom of the current page.
29815 The footnote number is calculated by LaTeX; the numbers are consecutive.
29816 Whether the footnote number is reset for every chapter depends on your
29820 \begin_layout Standard
29821 Footnotes can be referenced like floats: Insert a label into the footnote
29822 and cross-reference this label in the text as described in section
29823 \begin_inset space ~
29827 \begin_inset CommandInset ref
29829 reference "sec:Referencing-Floats"
29834 \begin_inset Newline newline
29837 This is a cross-reference of Footnote
29838 \begin_inset space ~
29842 \begin_inset CommandInset ref
29844 reference "foot:This-is-an"
29851 \begin_layout Standard
29852 \begin_inset VSpace defskip
29855 Footnotes in title environments are usually not numbered with symbols and
29856 they cannot contain several paragraphs.
29857 See for example the footnote in the titling of this document.
29860 \begin_layout Standard
29861 \begin_inset VSpace defskip
29864 Footnotes in tables are not printed by LaTeX due to technical reasons.
29865 However there exists another method to print them: Instead of the footnote
29872 is inserted as TeX-code.
29873 The text of the footnote is entered as an argument of the TeX-code command
29881 \begin_inset Newline newline
29884 This was done for the following table with the command
29887 \begin_layout Standard
29894 Printed table footnote.
29899 \begin_layout Standard
29900 \begin_inset Tabular
29901 <lyxtabular version="3" rows="2" columns="1">
29902 <features rotate="0" tabularvalignment="middle">
29903 <column alignment="center" valignment="top">
29905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29908 \begin_layout Plain Layout
29909 This an example text.
29913 \begin_layout Plain Layout
29914 This footnote will not be printed!
29926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29929 \begin_layout Plain Layout
29930 This an example text.
29934 \begin_layout Plain Layout
29957 \begin_layout Plain Layout
29966 Printed table footnote.
29970 \begin_layout Plain Layout
29980 \begin_layout Standard
29981 Footnotes in longtables are described in section
29982 \begin_inset space ~
29986 \begin_inset CommandInset ref
29988 reference "sub:Footnotes-in-Longtables"
29995 \begin_layout Standard
29996 Footnotes in minipage boxes are printed, but inside the box and with a different
29997 numbering because a minipage box is like a page inside a page.
29998 (For more about minipages, see section
29999 \begin_inset space ~
30003 \begin_inset CommandInset ref
30005 reference "sec:Minipages"
30009 .) To get a footnote in the minipage that is output at the bottom of the
30010 page like normal footnotes, also use the method of
30025 \begin_layout Standard
30026 \begin_inset Box Frameless
30036 height_special "totalheight"
30039 \begin_layout Plain Layout
30040 This an example text in a minipage.
30044 \begin_layout Plain Layout
30045 Footnote in the minipage.
30053 \begin_layout Plain Layout
30054 This an example text in a minipage.
30058 \begin_layout Plain Layout
30075 \begin_layout Standard
30079 \begin_layout Plain Layout
30088 Footnote outside the minipage.
30092 \begin_layout Plain Layout
30102 \begin_layout Standard
30103 \begin_inset VSpace defskip
30109 \begin_layout Standard
30110 To refer to the same footnote several times without printing the footnote
30111 text every time, use the command
30115 footnotemark[number]
30118 \begin_inset Newline newline
30121 As you do not know the number of the repeating footnote while you are writing
30122 the text, you have to store its number.
30123 For the following footnote mark example, these commands were inserted in
30124 TeX-code after Footnote
30125 \begin_inset space ~
30129 \begin_inset CommandInset ref
30131 reference "foot:This-is-an"
30135 to store the footnote number:
30138 \begin_layout Standard
30143 newcounter{MyRepeatFoot}
30144 \begin_inset Newline newline
30149 setcounter{MyRepeatFoot}{
30154 \begin_layout Standard
30155 The footnote mark was then created with this command:
30158 \begin_layout Standard
30168 \begin_layout Standard
30169 Here is a repeated footnote:
30177 \begin_layout Plain Layout
30191 \begin_layout Standard
30192 If you want to repeat the previous footnote, you can omit the storage of
30193 the footnote number and just use this command instead:
30196 \begin_layout Standard
30206 \begin_layout Standard
30207 Here is another repeated footnote:
30215 \begin_layout Plain Layout
30229 \begin_layout Subsection
30231 \begin_inset CommandInset label
30233 name "sub:Footnote-Numbering"
30238 \begin_inset Index idx
30241 \begin_layout Plain Layout
30242 Footnotes ! Numbering
30250 \begin_layout Standard
30251 To reset the footnote number back to 1 after each section
30253 , add this command to your document preamble:
30256 \begin_layout Standard
30261 @addtoreset{footnote}{section}
30264 \begin_layout Standard
30265 \begin_inset VSpace bigskip
30268 The following preamble command changes the footnote numbering style to small
30272 \begin_layout Standard
30284 \begin_layout Standard
30288 \begin_layout Plain Layout
30301 This is a footnote with roman numbering:
30305 \begin_layout Plain Layout
30306 This is an example footnote with roman numbering.
30314 \begin_layout Standard
30315 To change the numbering style to capital roman numerals replace in the command
30330 \begin_inset Quotes eld
30334 \begin_inset Quotes erd
30337 footnotes with capital or small Latin letters use
30351 \begin_inset Quotes eld
30355 \begin_inset Quotes erd
30358 footnotes with symbols use
30367 \begin_layout Standard
30368 \begin_inset Note Greyedout
30371 \begin_layout Plain Layout
30376 You can only number 26 footnotes with Latin letters, because this numbering
30377 is limited to single letters.
30383 \begin_inset Newline newline
30387 \begin_inset Note Greyedout
30390 \begin_layout Plain Layout
30395 You can only number 9 footnotes with symbols.
30403 \begin_layout Standard
30404 To return to the default numbering style after you have changed to another
30417 in the command above.
30421 \begin_layout Plain Layout
30437 \begin_layout Standard
30438 \begin_inset VSpace bigskip
30444 \begin_layout Standard
30445 If you want to have footnotes numbered in the scheme
30446 \begin_inset Quotes eld
30450 \begin_inset Quotes erd
30453 , add the following command to your document preamble:
30456 \begin_layout Standard
30461 numberwithin{footnote}{chapter}
30464 \begin_layout Standard
30465 To be able to use the command
30474 \begin_inset space ~
30479 in the document settings the option
30482 \begin_inset space ~
30486 \begin_inset space ~
30490 \begin_inset space ~
30498 \begin_layout Standard
30502 \begin_layout Plain Layout
30506 numberwithin{footnote}{chapter}
30511 This is another example footnote:
30517 \begin_layout Plain Layout
30518 This is a footnote numbered in the scheme
30519 \begin_inset Quotes eld
30523 \begin_inset Quotes erd
30537 \begin_layout Plain Layout
30553 \begin_layout Standard
30554 \begin_inset Note Greyedout
30557 \begin_layout Plain Layout
30568 always prints out the footnote number as arabic number; previous redefinitions
30569 to get non-arabic numbers are overwritten.
30577 \begin_layout Standard
30578 So to get for example the scheme
30579 \begin_inset Quotes eld
30585 \begin_inset Quotes erd
30588 , use this command instead of
30597 \begin_layout Standard
30611 \begin_layout Subsection
30613 \begin_inset Index idx
30616 \begin_layout Plain Layout
30617 Footnotes ! Placement
30625 \begin_layout Standard
30626 If you have several footnotes in one page, they appear without vertical
30627 space between them at the bottom of the page.
30628 To make them more readable you can e.
30629 \begin_inset space \thinspace{}
30633 \begin_inset space \space{}
30637 \begin_inset space \thinspace{}
30640 mm space with the following preamble command:
30643 \begin_layout Standard
30653 \begin_inset Newline newline
30667 \begin_layout Standard
30668 \begin_inset VSpace bigskip
30671 In a two-column document the footnotes appear at the bottom of every column,
30673 \begin_inset space ~
30677 \begin_inset CommandInset ref
30679 reference "fig:Standard-footnote-placement"
30684 If the footnotes should only appear at the bottom of the right column,
30686 \begin_inset space ~
30690 \begin_inset CommandInset ref
30692 reference "fig:Footnote-placement-in"
30696 , use the LaTeX-package
30701 \begin_inset Index idx
30704 \begin_layout Plain Layout
30705 LaTeX-packages ! ftnright
30710 with this command in the document preamble:
30713 \begin_layout Standard
30718 usepackage{ftnright}
30721 \begin_layout Standard
30722 \begin_inset Float figure
30728 \begin_layout Plain Layout
30732 \begin_layout Plain Layout
30742 \begin_inset Graphics
30743 filename clipart/without_fntright.pdf
30745 scaleBeforeRotation
30753 \begin_layout Plain Layout
30763 \begin_layout Plain Layout
30764 \begin_inset Caption Standard
30766 \begin_layout Plain Layout
30767 \begin_inset CommandInset label
30769 name "fig:Standard-footnote-placement"
30773 Standard footnote placement in two-column documents.
30786 \begin_layout Standard
30787 \begin_inset Float figure
30793 \begin_layout Plain Layout
30797 \begin_layout Plain Layout
30807 \begin_inset Graphics
30808 filename clipart/with_fntright.pdf
30810 scaleBeforeRotation
30818 \begin_layout Plain Layout
30828 \begin_layout Plain Layout
30829 \begin_inset Caption Standard
30831 \begin_layout Plain Layout
30832 \begin_inset CommandInset label
30834 name "fig:Footnote-placement-in"
30838 Footnote placement in two-column documents when the LaTeX-package
30855 \begin_layout Standard
30856 \begin_inset VSpace bigskip
30859 In some scientific literature it is usual to collect the footnotes and print
30860 them in a separate paragraph at the end of a section, as in Figure
30861 \begin_inset space ~
30865 \begin_inset CommandInset ref
30867 reference "fig:Endnotes"
30872 They are then called
30873 \begin_inset Quotes eld
30877 \begin_inset Quotes erd
30881 \begin_inset Index idx
30884 \begin_layout Plain Layout
30890 To use endnotes instead of footnotes in your document, load in the menu
30893 Document\SpecialChar \menuseparator
30894 Settings\SpecialChar \menuseparator
30900 \begin_inset space ~
30904 \begin_inset space ~
30910 To insert the collected footnotes, insert the command
30913 \begin_layout Standard
30921 \begin_layout Standard
30922 in TeX-Code at the end of a section or chapter.
30925 \begin_layout Standard
30926 \begin_inset Float figure
30931 \begin_layout Plain Layout
30936 \begin_layout Plain Layout
30946 \begin_inset Graphics
30947 filename clipart/endnotes.pdf
30948 scaleBeforeRotation
30956 \begin_layout Plain Layout
30966 \begin_layout Plain Layout
30967 \begin_inset Caption Standard
30969 \begin_layout Plain Layout
30970 \begin_inset CommandInset label
30972 name "fig:Endnotes"
30976 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30990 \begin_layout Standard
30991 \begin_inset VSpace medskip
30994 The paragraph heading for the endnotes isn't automatically translated into
30995 the document language, this must be done manually.
30996 The following preamble command translates the default English
30997 \begin_inset Quotes eld
31001 \begin_inset Quotes erd
31005 \begin_inset Quotes eld
31009 \begin_inset Quotes erd
31015 \begin_layout Standard
31022 notesname}{Anmerkungen}
31025 \begin_layout Standard
31026 \begin_inset VSpace medskip
31029 The numbering of endnotes can be changed like the footnote numbering as
31030 described in section
31031 \begin_inset space ~
31035 \begin_inset CommandInset ref
31037 reference "sub:Footnote-Numbering"
31041 ; just replace the command
31054 To reset the endnote number use the command
31060 as described in section
31061 \begin_inset space ~
31065 \begin_inset CommandInset ref
31067 reference "sub:Footnote-Numbering"
31071 and replace the command parameter
31082 \begin_layout Standard
31083 For endnotes there is the command
31087 endnotemark[number]
31089 similar to the command
31095 , that is described in section
31096 \begin_inset space ~
31100 \begin_inset CommandInset ref
31102 reference "sec:Footnotes"
31109 \begin_layout Standard
31110 \begin_inset VSpace bigskip
31113 Footnotes can also be placed in the page margin and the footnote text alignment
31114 can be changed, see the LaTeX-package
31119 \begin_inset Index idx
31122 \begin_layout Plain Layout
31123 LaTeX-packages ! footmisc
31129 \begin_inset CommandInset citation
31135 for more information about this.
31138 \begin_layout Standard
31139 For various further footnote formatting issues have a look at LaTeX-books,
31141 \begin_inset CommandInset citation
31143 key "latexcompanion,latexguide,latexbook"
31153 \begin_inset Index idx
31156 \begin_layout Plain Layout
31157 LaTeX-packages ! KOMA-Script
31162 document class, you can adjust all footnote settings using class-specific
31164 \begin_inset CommandInset citation
31173 \begin_layout Section
31175 \begin_inset Index idx
31178 \begin_layout Plain Layout
31179 Notes ! Margin Notes
31187 \begin_layout Standard
31188 Margin notes look and behave in LyX like footnotes.
31189 They are inserted via the menu
31191 Insert\SpecialChar \menuseparator
31193 \begin_inset space ~
31198 or the toolbar button
31201 arg "marginalnote-insert"
31215 \begin_inset Quotes eld
31219 \begin_inset Quotes erd
31222 appears where you can enter the text of the margin note.
31225 \begin_layout Standard
31226 At the side is an example margin note.
31231 \begin_inset Marginal
31234 \begin_layout Plain Layout
31235 This is a margin note.
31243 \begin_layout Standard
31244 Margin notes appear at the right side in single-sided documents.
31245 In double-sided documents they appear in the outer margin – left on even
31246 pages, right on odd pages.
31247 The text of margin notes is aligned opposite to the outer margin – right-aligne
31248 d when the note appears in the left margin.
31249 The first line of the margin note is placed at the position of the text
31250 line where it is inserted in the document.
31253 \begin_layout Standard
31254 \begin_inset VSpace bigskip
31257 To place the margin note in the inner margin, add the command
31260 \begin_layout Standard
31268 \begin_layout Standard
31269 in TeX-Code before a margin note.
31270 The new placement is valid for all subsequent margin notes.
31275 \begin_layout Plain Layout
31285 \begin_inset Marginal
31288 \begin_layout Plain Layout
31289 This is a margin note in the inner margin.
31297 \begin_inset Newline newline
31303 \begin_inset Note Greyedout
31306 \begin_layout Plain Layout
31311 There is often not enough space in the inner margin so that the notes are
31312 not correctly displayed in the output.
31320 \begin_layout Standard
31321 To return to the default placement insert the command
31324 \begin_layout Standard
31332 \begin_layout Standard
31337 \begin_layout Plain Layout
31347 \begin_inset Note Greyedout
31350 \begin_layout Plain Layout
31355 The command is ignored when it is within a paragraph where also the command
31370 \begin_layout Standard
31371 \begin_inset VSpace bigskip
31378 \begin_inset Marginal
31381 \begin_layout Plain Layout
31382 AVeryLongMarginParWord that isn't hyphenated.
31390 Similar to the case described in section
31391 \begin_inset space ~
31395 \begin_inset CommandInset ref
31397 reference "sub:Multiple-Lines-in"
31401 , long words cannot be hyphenated when they are the first word in a margin
31403 To avoid this, insert 0
31404 \begin_inset space \thinspace{}
31407 pt horizontal space before the word
31412 \begin_inset Marginal
31415 \begin_layout Plain Layout
31416 \begin_inset space \hspace*{}
31420 AVeryLongMarginParWord that is hyphenated.
31428 \begin_layout Standard
31429 \begin_inset VSpace bigskip
31435 \begin_layout Standard
31436 \begin_inset Note Greyedout
31439 \begin_layout Plain Layout
31444 Margin notes can normally not be used inside tables, floats, and footnotes.
31452 \begin_layout Standard
31453 \begin_inset VSpace bigskip
31459 \begin_layout Standard
31463 \begin_layout Plain Layout
31473 \begin_inset Note Note
31476 \begin_layout Plain Layout
31477 The following section will only be displayed when the LaTeX-package
31489 \begin_layout Standard
31490 This restriction can be evaded by using the LaTeX-package
31495 \begin_inset Index idx
31498 \begin_layout Plain Layout
31499 LaTeX-packages ! marginnote
31505 By adding these two lines to your document preamble, the command used by
31506 LyX for margin notes is redefined to use the command provided by the
31513 \begin_layout Standard
31518 usepackage{marginnote}
31519 \begin_inset Newline newline
31531 \begin_layout Standard
31532 This is also used in this document because
31536 has another useful feature: You can set a vertical offset for the note.
31537 This is often needed when too many margin notes are too close together
31538 or for a better page layout.
31539 The offset is set in LyX as TeX-Code directly after the margin note in
31543 \begin_layout Standard
31549 \begin_layout Standard
31550 where the offset is a length with one of the units listed in Table
31551 \begin_inset space ~
31555 \begin_inset CommandInset ref
31557 reference "tab:Units"
31562 A negative value shifts the note up, a positive value shifts it down.
31566 For example the margin note beside this text line is shifted up 1.5
31567 \begin_inset space \thinspace{}
31570 cm with the TeX-Code-command
31571 \begin_inset Quotes eld
31581 \begin_inset Quotes erd
31585 \begin_inset Marginal
31588 \begin_layout Plain Layout
31589 This margin note is shifted up 1.5
31590 \begin_inset space \thinspace{}
31593 cm from its original position.
31605 \begin_layout Plain Layout
31615 \begin_layout Standard
31616 \begin_inset VSpace medskip
31623 you can also change the alignment of the text in the margin note.
31624 For example the commands
31627 \begin_layout Standard
31634 raggedleftmarginnote}{
31637 \begin_inset Newline newline
31644 raggedrightmarginnote}{
31649 \begin_layout Standard
31650 set the alignment to centered.
31655 raggedleftmarginnote
31657 denotes margin notes that appear at the left side.
31664 \begin_layout Plain Layout
31670 raggedleftmarginnote}{
31675 \begin_layout Plain Layout
31681 raggedrightmarginnote}{
31689 \begin_inset Marginal
31692 \begin_layout Plain Layout
31693 The text of this margin note is centered.
31704 \begin_layout Standard
31711 raggedleftmarginnote}{
31714 \begin_inset Newline newline
31721 raggedrightmarginnote}{
31730 \begin_layout Plain Layout
31736 raggedleftmarginnote}{
31741 \begin_layout Plain Layout
31747 raggedrightmarginnote}{
31757 \begin_layout Standard
31758 \begin_inset VSpace medskip
31761 For the other features of
31765 refer to its documentation
31766 \begin_inset CommandInset citation
31775 \begin_layout Standard
31776 \begin_inset VSpace bigskip
31779 You can adjust the layout of margin notes by changing its definition.
31780 To create for example a header for all margin notes with the underlined,
31781 sans-serif, and bold header text
31782 \begin_inset Quotes eld
31794 \begin_inset Quotes erd
31797 , add this to your document preamble:
31800 \begin_layout Standard
31810 \begin_inset Newline newline
31820 \begin_inset Newline newline
31824 \begin_inset Phantom HPhantom
31827 \begin_layout Plain Layout
31830 \begin_inset space ~
31846 underbar{Attention!}}}%
31847 \begin_inset Newline newline
31851 \begin_inset Phantom HPhantom
31854 \begin_layout Plain Layout
31857 \begin_inset space ~
31874 \begin_layout Standard
31881 \begin_layout Plain Layout
31892 \begin_layout Plain Layout
31903 \begin_layout Plain Layout
31911 underbar{Attention!}}}%
31914 \begin_layout Plain Layout
31928 \begin_inset Marginal
31931 \begin_layout Plain Layout
31932 This is a margin note with a defined heading.
31944 \begin_layout Plain Layout
31958 \begin_layout Plain Layout
31975 \begin_inset Note Note
31978 \begin_layout Plain Layout
31979 The margin note format is changed only for this example.
31987 \begin_layout Standard
31991 \begin_layout Plain Layout
32001 \begin_inset Note Note
32004 \begin_layout Plain Layout
32005 The following will be displayed when the LaTeX-package
32017 \begin_layout Standard
32018 You need to install the LaTeX-package
32022 to see the following part of this section in the output.
32025 \begin_layout Standard
32029 \begin_layout Plain Layout
32041 \begin_layout Chapter
32045 \begin_layout Section
32047 \begin_inset Index idx
32050 \begin_layout Plain Layout
32051 Boxes ! Introduction
32059 \begin_layout Standard
32060 Boxes are used to format a block of text.
32061 Boxes can be used to write documents with multiple languages, see section
32062 \begin_inset space ~
32066 \begin_inset CommandInset ref
32068 reference "sec:Minipages"
32072 , to frame texts, see section
32073 \begin_inset space ~
32077 \begin_inset CommandInset ref
32079 reference "sec:Decoration"
32083 , to prevent words from being hyphenated, see section
32084 \begin_inset space ~
32088 \begin_inset CommandInset ref
32090 reference "sec:Prevent-Hyphenation"
32094 , to align text, see section
32095 \begin_inset space ~
32099 \begin_inset CommandInset ref
32101 reference "sub:Vertical-Alignment"
32105 , or to set the background color of texts, see section
32106 \begin_inset space ~
32110 \begin_inset CommandInset ref
32112 reference "sec:Colored-Boxes"
32119 \begin_layout Standard
32120 Boxes can be inserted with the menu
32122 Insert\SpecialChar \menuseparator
32125 or the toolbar button
32128 arg "box-insert Frameless"
32132 A grey box with the label
32137 \begin_inset Graphics
32138 filename clipart/BoxInsetDefaultQt4.png
32140 scaleBeforeRotation
32145 The box type can be specified by right-clicking on the box and selecting
32151 The box dialog offers the
32154 \begin_inset space ~
32176 is the default for new boxes and is explained in section
32177 \begin_inset space ~
32181 \begin_inset CommandInset ref
32183 reference "sec:Minipages"
32191 is described in section
32192 \begin_inset space ~
32196 \begin_inset CommandInset ref
32198 reference "sec:Parboxes"
32207 \begin_inset CommandInset ref
32209 reference "sec:Prevent-Hyphenation"
32216 \begin_layout Standard
32217 Boxes are not numbered and can therefore not be referenced like floats or
32221 \begin_layout Standard
32222 \begin_inset Note Greyedout
32225 \begin_layout Plain Layout
32230 Boxes must not be the item in an
32246 \begin_layout Standard
32247 \begin_inset Note Greyedout
32250 \begin_layout Plain Layout
32255 For an unknown reason you can only set the
32258 \begin_inset space ~
32267 when you use a framed box.
32271 \begin_inset space ~
32276 type and without frames are explained in section
32277 \begin_inset space ~
32281 \begin_inset CommandInset ref
32283 reference "sec:Prevent-Hyphenation"
32295 \begin_layout Section
32297 \begin_inset CommandInset label
32299 name "sec:Box-Dialog"
32304 \begin_inset Index idx
32307 \begin_layout Plain Layout
32316 \begin_layout Subsection
32318 \begin_inset Index idx
32321 \begin_layout Plain Layout
32330 \begin_layout Standard
32331 In the box dialog you can adjust the box geometry in the fields
32340 The available units for the geometry are explained in Table
32341 \begin_inset space ~
32345 \begin_inset CommandInset ref
32347 reference "tab:Units"
32356 offers the following additional sizes:
32359 \begin_layout Description
32360 Depth This is the plain text
32361 \begin_inset Quotes eld
32365 \begin_inset Quotes erd
32369 It ignores the total depth when there are multiple text lines in the box:
32370 \begin_inset Newline newline
32374 \begin_inset Newline newline
32378 \begin_inset Newline newline
32382 \begin_inset Box Boxed
32392 height_special "depth"
32395 \begin_layout Plain Layout
32397 Box height set to 1
32398 \begin_inset space \thinspace{}
32407 \begin_inset Newline newline
32411 \begin_inset Newline newline
32417 \begin_layout Description
32418 Height This is the height of the text that is inside the box.
32420 \begin_inset space \thinspace{}
32424 \begin_inset space \space{}
32427 2 for this size will set the box height to 2
32428 \begin_inset space ~
32431 times the text height:
32432 \begin_inset Box Boxed
32442 height_special "height"
32445 \begin_layout Plain Layout
32447 Box height set to 2
32448 \begin_inset space \thinspace{}
32459 \begin_layout Description
32461 \begin_inset space ~
32464 Height This is the Height
32465 \begin_inset space \thinspace{}
32469 \begin_inset space \thinspace{}
32473 \begin_inset Box Boxed
32483 height_special "totalheight"
32486 \begin_layout Plain Layout
32488 Box height set to 1
32489 \begin_inset space \thinspace{}
32493 \begin_inset space ~
32504 \begin_layout Description
32505 Width This sets the width of the box as height:
32506 \begin_inset Box Boxed
32516 height_special "width"
32519 \begin_layout Plain Layout
32521 Box height set to 1
32522 \begin_inset space \thinspace{}
32533 \begin_layout Subsection
32535 \begin_inset Index idx
32538 \begin_layout Plain Layout
32547 \begin_layout Standard
32548 When you have chosen an
32551 \begin_inset space ~
32556 , the vertical box alignment can be:
32559 \begin_layout Description
32560 Top This is an example text line.
32562 \begin_inset Box Boxed
32572 height_special "totalheight"
32575 \begin_layout Plain Layout
32577 This box is top-aligned.
32582 This is an example text line.
32585 \begin_layout Description
32586 Middle This is an example text line.
32588 \begin_inset Box Boxed
32598 height_special "totalheight"
32601 \begin_layout Plain Layout
32603 This box is middle-aligned.
32608 This is an example text line.
32611 \begin_layout Description
32612 Bottom This is an example text line.
32614 \begin_inset Box Boxed
32624 height_special "totalheight"
32627 \begin_layout Plain Layout
32629 This box is bottom-aligned.
32634 This is an example text line.
32637 \begin_layout Standard
32638 \begin_inset Note Greyedout
32641 \begin_layout Plain Layout
32646 The vertical box alignment can be lost in the output when you have two
32647 boxes in a line and one has e.
32648 \begin_inset space \thinspace{}
32652 \begin_inset space \space{}
32655 a shadow and the other one not.
32663 \begin_layout Standard
32664 The horizontal box alignment can be set via LyX's paragraph dialog when
32665 you set the box into its own paragraph.
32668 \begin_layout Standard
32669 \begin_inset VSpace bigskip
32672 When you have chosen an
32675 \begin_inset space ~
32680 , the box content can be aligned vertically to:
32683 \begin_layout Description
32684 top This is an example text line.
32686 \begin_inset Box Boxed
32696 height_special "totalheight"
32699 \begin_layout Plain Layout
32701 This box text is top-aligned.
32706 This is an example text line.
32709 \begin_layout Description
32710 middle This is an example text line.
32712 \begin_inset Box Boxed
32722 height_special "totalheight"
32725 \begin_layout Plain Layout
32727 This box text is middle-aligned.
32732 This is an example text line.
32735 \begin_layout Description
32736 bottom This is an example text line.
32738 \begin_inset Box Boxed
32748 height_special "totalheight"
32751 \begin_layout Plain Layout
32753 This box text is bottom-aligned.
32758 This is an example text line.
32761 \begin_layout Description
32762 stretch This is an example text line.
32764 \begin_inset Box Boxed
32774 height_special "totalheight"
32777 \begin_layout Plain Layout
32782 \begin_layout Plain Layout
32787 \begin_layout Plain Layout
32794 This is an example text line.
32797 \begin_layout Standard
32798 To stretch the box content, it must consist of more than one paragraph.
32799 In the example above every text line is in an own paragraph.
32802 \begin_layout Standard
32803 \begin_inset VSpace bigskip
32806 To align the box content horizontally you can use LyX's paragraph dialog
32807 when you have chosen an
32810 \begin_inset space ~
32818 \begin_layout Standard
32820 \begin_inset Box Boxed
32830 height_special "totalheight"
32833 \begin_layout Plain Layout
32838 \begin_layout Plain Layout
32843 \begin_layout Plain Layout
32853 \begin_layout Standard
32854 If you have not set an
32857 \begin_inset space ~
32862 , you can align the box content horizontally in the box dialog.
32865 \begin_layout Standard
32867 \begin_inset Box Boxed
32877 height_special "totalheight"
32880 \begin_layout Plain Layout
32881 This box text is horizontally stretched.
32889 \begin_layout Subsection
32891 \begin_inset CommandInset label
32893 name "sec:Decoration"
32898 \begin_inset Index idx
32901 \begin_layout Plain Layout
32910 \begin_layout Standard
32911 The type of the box can be specified in the box dialog in the drop-down
32917 The following types are possible:
32920 \begin_layout Description
32922 \begin_inset space ~
32925 frame Nothing is drawn.
32928 \begin_layout Description
32930 \begin_inset space ~
32934 \begin_inset space ~
32937 frame This draws a rectangular frame around the box.
32938 The frame line thickness has the size of
32946 \begin_inset Box Boxed
32956 height_special "totalheight"
32959 \begin_layout Plain Layout
32969 \begin_layout Description
32971 \begin_inset space ~
32975 \begin_inset space ~
32978 thin This draws an oval frame around the box.
32979 The frame line thickness has the size 0.4
32980 \begin_inset space \thinspace{}
32985 \begin_inset Box ovalbox
32995 height_special "totalheight"
32998 \begin_layout Plain Layout
33008 \begin_layout Description
33010 \begin_inset space ~
33014 \begin_inset space ~
33017 thick This draws an oval frame around the box.
33018 The frame line thickness has the size 0.8
33019 \begin_inset space \thinspace{}
33024 \begin_inset Box Ovalbox
33034 height_special "totalheight"
33037 \begin_layout Plain Layout
33047 \begin_layout Description
33049 \begin_inset space ~
33052 shadow This draws a rectangular frame with a shadow around the box.
33053 The frame line thickness has the size of
33059 , the shadow has a width of 4
33060 \begin_inset space \thinspace{}
33065 \begin_inset Box Shadowbox
33075 height_special "totalheight"
33078 \begin_layout Plain Layout
33088 \begin_layout Description
33090 \begin_inset space ~
33093 background This draws a box with a red background.
33094 Unlike colored boxes
33098 \begin_layout Plain Layout
33100 \begin_inset space \thinspace{}
33104 \begin_inset CommandInset ref
33106 reference "sec:Colored-Boxes"
33115 , it always uses the whole column width and the box is set as its own paragraph.
33117 \begin_inset Box Shaded
33127 height_special "totalheight"
33130 \begin_layout Plain Layout
33131 Shaded background box
33139 \begin_layout Description
33141 \begin_inset space ~
33145 \begin_inset space ~
33148 frame This draws a double-line rectangular frame around the box.
33149 The line thickness of the inner frame is 0.75
33150 \begin_inset space \thinspace{}
33159 , the thickness of the outer frame is 1.5
33160 \begin_inset space \thinspace{}
33170 The distance between the lines is 1.5
33171 \begin_inset space \thinspace{}
33181 \begin_inset space \thinspace{}
33185 \begin_inset space \thinspace{}
33189 \begin_inset space \thinspace{}
33194 \begin_inset Box Doublebox
33204 height_special "totalheight"
33207 \begin_layout Plain Layout
33209 Double rectangular box
33217 \begin_layout Standard
33218 \begin_inset VSpace bigskip
33221 LyX's box label will reflect the different frame types.
33222 To be able to use all types, the LaTeX-package
33227 \begin_inset Index idx
33230 \begin_layout Plain Layout
33231 LaTeX-packages ! fancybox
33239 \begin_layout Standard
33240 \begin_inset VSpace bigskip
33243 When you use the decoration
33245 simple rectangular frame
33247 and no inner box, you can allow page breaks within a box.
33248 Note that then, unlike other framed boxes, the frame always uses the whole
33249 column width, the box is set as its own paragraph, and
33261 have no effect on this box type.
33262 The frame line thickness has the size of
33270 \begin_inset Box Framed
33280 height_special "totalheight"
33283 \begin_layout Plain Layout
33284 Allow page break box
33292 \begin_layout Section
33294 \begin_inset Index idx
33297 \begin_layout Plain Layout
33298 Boxes ! Customization
33306 \begin_layout Standard
33307 The default value for the size
33314 \begin_inset space \thinspace{}
33318 It can be changed with the following command in TeX-code to e.
33319 \begin_inset space \thinspace{}
33323 \begin_inset space \space{}
33327 \begin_inset space \thinspace{}
33333 \begin_layout Standard
33343 \begin_layout Standard
33347 \begin_layout Plain Layout
33359 \begin_inset Box Boxed
33369 height_special "totalheight"
33372 \begin_layout Plain Layout
33374 Rectangular box with
33381 \begin_inset space \thinspace{}
33385 \begin_inset space \thinspace{}
33389 \begin_inset space \thinspace{}
33401 \begin_layout Plain Layout
33415 \begin_layout Standard
33416 \begin_inset VSpace bigskip
33419 The space between the frame and the box content is for all frame styles
33421 \begin_inset space \thinspace{}
33425 You can change it by setting the length
33432 For example the command
33435 \begin_layout Standard
33445 \begin_layout Standard
33446 sets the value to 10
33447 \begin_inset space \thinspace{}
33450 pt, as with the following box:
33453 \begin_layout Standard
33457 \begin_layout Plain Layout
33469 \begin_inset Box Boxed
33479 height_special "totalheight"
33482 \begin_layout Plain Layout
33484 Rectangular box with
33491 \begin_inset space \thinspace{}
33495 \begin_inset space \thinspace{}
33499 \begin_inset space \thinspace{}
33511 \begin_layout Plain Layout
33525 \begin_layout Standard
33526 \begin_inset VSpace bigskip
33529 The diameter of the round corners of the oval boxes can be set with the
33540 \begin_layout Standard
33548 \begin_layout Standard
33549 sets the diameter to 1
33550 \begin_inset space \thinspace{}
33557 \begin_layout Standard
33565 \begin_layout Standard
33566 sets the diameter to
33569 \begin_inset space \thinspace{}
33573 \begin_inset space \thinspace{}
33576 minimum(width and height of box)
33588 \begin_layout Standard
33592 \begin_layout Plain Layout
33602 \begin_inset Box Ovalbox
33612 height_special "totalheight"
33615 \begin_layout Plain Layout
33624 \begin_inset space \thinspace{}
33628 \begin_inset space \thinspace{}
33632 \begin_inset space \thinspace{}
33644 \begin_layout Plain Layout
33656 \begin_layout Standard
33657 \begin_inset VSpace bigskip
33660 The size of the shadow can be adjusted by changing the length
33668 \begin_inset space \thinspace{}
33671 pt for the following box by this command:
33674 \begin_layout Standard
33684 \begin_layout Standard
33688 \begin_layout Plain Layout
33700 \begin_inset Box Shadowbox
33710 height_special "totalheight"
33713 \begin_layout Plain Layout
33722 \begin_inset space \thinspace{}
33726 \begin_inset space \thinspace{}
33730 \begin_inset space \thinspace{}
33742 \begin_layout Plain Layout
33756 \begin_layout Standard
33757 \begin_inset VSpace bigskip
33763 \begin_layout Standard
33764 The default value for the size
33771 \begin_inset space \thinspace{}
33775 The default space between the note content and the frame is 9
33776 \begin_inset space \thinspace{}
33779 pt and can be changed with the value of
33786 For example the frame appearance of the following
33790 is set with the TeX-Code commands
33793 \begin_layout Standard
33801 \begin_inset Newline newline
33811 \begin_layout Standard
33815 \begin_layout Plain Layout
33824 \begin_layout Plain Layout
33836 \begin_inset Box Framed
33846 height_special "totalheight"
33849 \begin_layout Plain Layout
33863 \begin_layout Plain Layout
33872 \begin_layout Plain Layout
33886 \begin_layout Standard
33887 \begin_inset VSpace bigskip
33893 \begin_layout Standard
33898 boxes the default space between the box content and the box border is 3
33899 \begin_inset space \thinspace{}
33902 pt and can be changed with the value of
33909 The default background color red can either be changed locally with the
33914 definecolor{shadecolor}
33916 or globally with the menu
33918 Tools\SpecialChar \menuseparator
33919 Preferences\SpecialChar \menuseparator
33920 Colors\SpecialChar \menuseparator
33922 \begin_inset space ~
33934 command is explained in section
33935 \begin_inset space ~
33939 \begin_inset CommandInset ref
33941 reference "sec:Colored-Tables"
33949 \begin_layout Plain Layout
33956 requires the LaTeX-package
33960 in the preamble, see section
33961 \begin_inset space ~
33965 \begin_inset CommandInset ref
33967 reference "sec:Colored-Boxes"
33976 For example the appearance of the following shaded background box is set
33977 with the TeX-Code commands
33980 \begin_layout Standard
33990 \begin_inset Newline newline
33997 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34000 \begin_layout Standard
34004 \begin_layout Plain Layout
34013 \begin_layout Plain Layout
34017 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34023 \begin_inset Box Shaded
34033 height_special "totalheight"
34036 \begin_layout Plain Layout
34039 This is yellow text in a
34049 box with dark green background.
34058 \begin_layout Plain Layout
34067 \begin_layout Plain Layout
34071 definecolor{shadecolor}{rgb}{1,0,0}
34079 \begin_layout Standard
34080 \begin_inset VSpace bigskip
34083 Changed lengths and widths are valid for all boxes following the commands
34087 \begin_layout Section
34089 \begin_inset CommandInset label
34091 name "sec:Minipages"
34096 \begin_inset Index idx
34099 \begin_layout Plain Layout
34108 \begin_layout Standard
34109 Minipages are treated by LaTeX as pages within pages and can therefore for
34110 example have their own footnotes.
34113 \begin_layout Standard
34114 Minipages are useful when you write documents with different languages.
34117 \begin_layout Standard
34118 Below are two example minipages side by side.
34119 Their width is set to 45
34120 \begin_inset space \thinspace{}
34123 col% and they are separated by a horizontal fill, that was inserted via
34126 Insert\SpecialChar \menuseparator
34128 \begin_inset space ~
34131 Formatting\SpecialChar \menuseparator
34133 \begin_inset space ~
34139 \begin_inset Newpage newpage
34145 \begin_layout Standard
34146 \begin_inset Box Frameless
34156 height_special "totalheight"
34159 \begin_layout Plain Layout
34162 Dies ist ein deutscher Text.
34163 Dies ist ein deutscher Text.
34164 Dies ist ein deutscher Text.
34165 Dies ist ein deutscher Text.
34166 Dies ist ein deutscher Text.
34167 Dies ist ein deutscher Text.
34168 Dies ist ein deutscher Text.
34169 Dies ist ein deutscher Text.
34170 Dies ist ein deutscher Text.
34171 Dies ist ein deutscher Text.
34172 Dies ist ein deutscher Text.
34173 Dies ist ein deutscher Text.
34174 Dies ist ein deutscher Text
34178 \begin_layout Plain Layout
34181 Dies ist eine deutsche Fußnote.
34187 Dies ist ein deutscher Text.
34188 Dies ist ein deutscher Text.
34194 \begin_inset space \hfill{}
34198 \begin_inset Box Frameless
34208 height_special "totalheight"
34211 \begin_layout Plain Layout
34212 This is an English Text.
34213 This is an English Text.
34214 This is an English Text.
34215 This is an English Text.
34216 This is an English Text.
34217 This is an English Text.
34218 This is an English Text.
34219 This is an English Text.
34220 This is an English Text.
34221 This is an English Text.
34222 This is an English Text.
34223 This is an English Text.
34224 This is an English Text.
34225 This is an English Text.
34226 This is an English Text.
34227 This is an English Text.
34231 \begin_layout Plain Layout
34232 This is an English footnote.
34237 This is an English Text.
34245 \begin_layout Standard
34246 \begin_inset VSpace bigskip
34249 The document-wide paragraph settings are ignored within minipages.
34250 That means that there will be no space between paragraphs in minipages
34251 although you set it to e.
34252 \begin_inset space \thinspace{}
34256 \begin_inset space \space{}
34263 in the document settings.
34266 \begin_layout Standard
34267 Minipages can also be used to set a background color for text parts, see
34269 \begin_inset space ~
34273 \begin_inset CommandInset ref
34275 reference "sub:Color-for-Paragraphs"
34282 \begin_layout Standard
34283 \begin_inset Note Greyedout
34286 \begin_layout Plain Layout
34291 You cannot have floats or margin notes inside minipages but minipages can
34292 be used inside tables, floats, and other boxes.
34300 \begin_layout Section
34302 \begin_inset CommandInset label
34304 name "sec:Parboxes"
34309 \begin_inset Index idx
34312 \begin_layout Plain Layout
34321 \begin_layout Standard
34322 Parboxes are very similar to minipages with the difference that they cannot
34326 \begin_layout Standard
34328 \begin_inset Box Frameless
34338 height_special "totalheight"
34341 \begin_layout Plain Layout
34342 This a text within a parbox.
34343 This a text within a parbox.
34346 \begin_layout Plain Layout
34347 This footnote won't appear:
34351 \begin_layout Plain Layout
34352 This footnote is inside a parbox and will therefore not appear.
34365 \begin_layout Section
34366 Boxes for Words and Characters
34367 \begin_inset Index idx
34370 \begin_layout Plain Layout
34371 Boxes ! for Characters
34379 \begin_layout Subsection
34380 Prevent Hyphenation
34381 \begin_inset CommandInset label
34383 name "sec:Prevent-Hyphenation"
34388 \begin_inset Index idx
34391 \begin_layout Plain Layout
34392 Boxes ! to Prevent Hyphenation
34400 \begin_layout Standard
34401 You can use the box type
34405 to prevent words or text from being hyphenated.
34406 \begin_inset Newline newline
34409 Here is an example text:
34412 \begin_layout Standard
34413 This line is an example to show how you can prevent the hyphenation of
34414 \begin_inset Quotes eld
34418 \begin_inset Quotes erd
34424 \begin_layout Standard
34425 To prevent the hyphenation of the word
34426 \begin_inset Quotes eld
34430 \begin_inset Quotes erd
34433 , put the word into a box, set the
34436 \begin_inset space ~
34445 and use no explicit width.
34448 \begin_layout Standard
34449 This is the result:
34452 \begin_layout Standard
34453 This line is an example to show how you can prevent the hyphenation of
34454 \begin_inset Box Frameless
34464 height_special "totalheight"
34467 \begin_layout Plain Layout
34468 \begin_inset Quotes eld
34472 \begin_inset Quotes erd
34483 \begin_layout Standard
34484 You can alternatively set the command
34485 \begin_inset Quotes eld
34495 \begin_inset Quotes grd
34498 as TeX-Code directly before the word:
34501 \begin_layout Standard
34502 This line is an example to show how you can prevent the hyphenation of
34503 \begin_inset Quotes eld
34510 \begin_layout Plain Layout
34520 \begin_inset Quotes erd
34526 \begin_layout Standard
34527 Of course the word now protrudes over the side margin.
34528 To avoid this, add via the menu
34530 Insert\SpecialChar \menuseparator
34531 Formatting\SpecialChar \menuseparator
34533 \begin_inset space ~
34537 \begin_inset space ~
34545 arg "newline-insert newline"
34548 ) a line break before the word:
34551 \begin_layout Standard
34552 This line is an example to show how you can prevent the hyphenation of
34553 \begin_inset Newline newline
34557 \begin_inset Box Frameless
34567 height_special "totalheight"
34570 \begin_layout Plain Layout
34571 \begin_inset Quotes eld
34575 \begin_inset Quotes erd
34586 \begin_layout Subsection
34588 \begin_inset CommandInset label
34590 name "sub:Vertical-Alignment"
34595 \begin_inset Index idx
34598 \begin_layout Plain Layout
34599 Boxes ! for Vertical Alignment
34605 \begin_inset Index idx
34608 \begin_layout Plain Layout
34617 \begin_layout Standard
34618 With the help of the command
34624 you can align words, characters or other boxes vertically relative to the
34632 is used with the following scheme:
34635 \begin_layout Standard
34640 raisebox{lift}[height][depth]{box content}
34643 \begin_layout Standard
34644 The lift can be a positive value to raise the box or a negative value to
34648 \begin_layout Standard
34649 To align for example the word
34650 \begin_inset Quotes eld
34654 \begin_inset Quotes erd
34657 so that the bottom of the
34658 \begin_inset Quotes eld
34662 \begin_inset Quotes erd
34666 \begin_inset Quotes eld
34670 \begin_inset Quotes erd
34673 is at the baseline, insert the command
34676 \begin_layout Standard
34686 \begin_layout Standard
34687 in TeX-Code before the word.
34688 After the word insert a closing brace
34689 \begin_inset Quotes eld
34697 \begin_inset Quotes erd
34701 \begin_inset Newline newline
34704 This is the result:
34707 \begin_layout Standard
34708 This is a text line with the word
34712 \begin_layout Plain Layout
34724 \begin_inset Quotes eld
34728 \begin_inset Quotes erd
34735 \begin_layout Plain Layout
34745 \begin_layout Standard
34746 \begin_inset VSpace bigskip
34749 When you raise or lower characters in a line, the line distance will be
34753 \begin_layout Standard
34754 This is a text line with the word
34758 \begin_layout Plain Layout
34770 \begin_inset Quotes eld
34774 \begin_inset Quotes erd
34781 \begin_layout Plain Layout
34789 \begin_inset Newline newline
34792 This is a text line with the word
34796 \begin_layout Plain Layout
34806 \begin_inset Quotes eld
34810 \begin_inset Quotes erd
34817 \begin_layout Plain Layout
34827 \begin_layout Standard
34828 If you want to prevent this for a certain reason, set the box height to
34833 \begin_layout Standard
34843 \begin_layout Standard
34844 This is a text line with the word
34848 \begin_layout Plain Layout
34860 \begin_inset Quotes eld
34864 \begin_inset Quotes erd
34871 \begin_layout Plain Layout
34879 \begin_inset Newline newline
34882 This is a text line with the word
34886 \begin_layout Plain Layout
34890 raisebox{0.5cm}[0pt]{
34896 \begin_inset Quotes eld
34900 \begin_inset Quotes erd
34907 \begin_layout Plain Layout
34917 \begin_layout Section
34919 \begin_inset CommandInset label
34921 name "sec:Colored-Boxes"
34926 \begin_inset Index idx
34929 \begin_layout Plain Layout
34938 \begin_layout Subsection
34940 \begin_inset Index idx
34943 \begin_layout Plain Layout
34952 \begin_layout Standard
34953 To color the background of text the text must be put into a so called
34954 \begin_inset Quotes eld
34958 \begin_inset Quotes erd
34962 This requires that the LaTeX-package
34967 \begin_inset Index idx
34970 \begin_layout Plain Layout
34971 LaTeX-packages ! color
34976 is loaded in the document preamble with the command
34979 \begin_layout Standard
34984 @ifundefined{textcolor}
34985 \begin_inset Newline newline
34989 \begin_inset Phantom HPhantom
34992 \begin_layout Plain Layout
34995 \begin_inset space ~
35005 usepackage{color}}{}
35008 \begin_layout Standard
35013 will be loaded automatically by LyX when you color text.
35017 \begin_layout Plain Layout
35018 To avoid it being loaded twice the command
35032 \begin_layout Standard
35033 \begin_inset VSpace medskip
35036 Colorboxes are created with the command
35043 This will be used with the following scheme:
35046 \begin_layout Standard
35051 colorbox{color}{box content}
35054 \begin_layout Standard
35055 The box content can also be a box and colorboxes can also be within other
35059 \begin_layout Standard
35060 The following colors are predefined:
35061 \begin_inset Newline newline
35100 \begin_inset Newline newline
35103 You can also define your own color as described in section
35104 \begin_inset space ~
35108 \begin_inset CommandInset ref
35110 reference "sec:Colored-Tables"
35117 \begin_layout Standard
35119 \begin_inset space \thinspace{}
35123 \begin_inset space \space{}
35126 a red background for a word, insert the command
35129 \begin_layout Standard
35137 \begin_layout Standard
35138 before the word in TeX-Code.
35139 After the word insert a closing brace
35140 \begin_inset Quotes eld
35148 \begin_inset Quotes erd
35152 \begin_inset Newline newline
35155 This is the result:
35158 \begin_layout Standard
35159 This is a line where the word
35163 \begin_layout Plain Layout
35173 \begin_inset Quotes eld
35177 \begin_inset Quotes erd
35184 \begin_layout Plain Layout
35191 has a red background.
35194 \begin_layout Standard
35195 \begin_inset VSpace bigskip
35198 If you would like the box frame in a different color, you can use the command
35205 with the following scheme:
35208 \begin_layout Standard
35213 fcolorbox{frame color}{box color}{box content}
35216 \begin_layout Standard
35230 The frame thickness and the space between the frame and the box content
35231 can be adjusted with the lengths
35243 , respectively, as described in section
35244 \begin_inset space ~
35248 \begin_inset CommandInset ref
35250 reference "sec:Decoration"
35257 \begin_layout Standard
35258 For the following example the command
35261 \begin_layout Standard
35266 fcolorbox{cyan}{magenta}{
35269 \begin_layout Standard
35273 \begin_layout Standard
35274 Here is an example where the frame line thickness was set to 1
35275 \begin_inset space \thinspace{}
35279 \begin_inset Newline newline
35286 \begin_layout Plain Layout
35301 \begin_layout Plain Layout
35305 fcolorbox{cyan}{magenta}{
35310 This is text within a colored, framed box.
35314 \begin_layout Plain Layout
35324 \begin_layout Standard
35325 \begin_inset VSpace bigskip
35328 Of course you can also have colored text inside a colorbox:
35329 \begin_inset Newline newline
35336 \begin_layout Plain Layout
35340 fcolorbox{cyan}{magenta}{
35347 This is colored text within a colored, framed box.
35353 \begin_layout Plain Layout
35364 \begin_layout Plain Layout
35378 \begin_layout Standard
35379 \begin_inset VSpace medskip
35385 \begin_layout Standard
35386 \begin_inset Note Greyedout
35389 \begin_layout Plain Layout
35394 Text in colorboxes cannot have line breaks.
35395 To color multiple text lines or paragraphs, use a box inside a colorbox
35396 as described in the following.
35404 \begin_layout Subsection
35405 Color for Paragraphs
35406 \begin_inset CommandInset label
35408 name "sub:Color-for-Paragraphs"
35413 \begin_inset Index idx
35416 \begin_layout Plain Layout
35417 Color ! for Paragraphs
35425 \begin_layout Standard
35426 To set the background color for more than one text line, put the text into
35428 Before the minipage insert the
35437 \begin_layout Standard
35445 \begin_layout Standard
35447 After the minipage insert a closing brace
35448 \begin_inset Quotes eld
35456 \begin_inset Quotes erd
35462 \begin_layout Standard
35466 \begin_layout Plain Layout
35470 colorbox{lightgrey}{
35476 \begin_inset Box Frameless
35486 height_special "totalheight"
35489 \begin_layout Plain Layout
35490 This is text with background color.
35491 This is text with background color.
35494 \begin_layout Plain Layout
35495 \begin_inset VSpace defskip
35498 The text can have footnotes
35502 \begin_layout Plain Layout
35503 Another example footnote
35508 and can include tables and figures.
35511 \begin_layout Plain Layout
35513 \begin_inset Tabular
35514 <lyxtabular version="3" rows="3" columns="3">
35515 <features rotate="0" tabularvalignment="middle">
35516 <column alignment="center" valignment="top">
35517 <column alignment="center" valignment="top">
35518 <column alignment="center" valignment="top">
35520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35523 \begin_layout Plain Layout
35529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35532 \begin_layout Plain Layout
35538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35541 \begin_layout Plain Layout
35549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35552 \begin_layout Plain Layout
35558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35561 \begin_layout Plain Layout
35563 \begin_inset Quotes erd
35571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35574 \begin_layout Plain Layout
35582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35585 \begin_layout Plain Layout
35591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35594 \begin_layout Plain Layout
35600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35603 \begin_layout Plain Layout
35623 \begin_layout Plain Layout
35633 \begin_layout Section
35634 Rotated and Scaled Boxes
35637 \begin_layout Standard
35638 To use the commands described in this section, the LaTeX-package
35643 \begin_inset Index idx
35646 \begin_layout Plain Layout
35647 LaTeX-packages ! graphicx
35652 needs to be loaded in the document preamble with the command
35655 \begin_layout Standard
35660 @ifundefined{rotatebox}
35661 \begin_inset Newline newline
35665 \begin_inset Phantom HPhantom
35668 \begin_layout Plain Layout
35671 \begin_inset space ~
35681 usepackage{graphicx}}{}
35684 \begin_layout Standard
35685 \begin_inset Note Greyedout
35688 \begin_layout Plain Layout
35693 Not all DVI-viewers are able to display rotated or scaled material.
35701 \begin_layout Standard
35702 \begin_inset Note Greyedout
35705 \begin_layout Plain Layout
35710 Floats are not allowed inside a rotated or scaled box.
35718 \begin_layout Subsection
35720 \begin_inset Index idx
35723 \begin_layout Plain Layout
35730 \begin_inset Index idx
35733 \begin_layout Plain Layout
35742 \begin_layout Standard
35743 To rotate material, you can put it into a rotated box.
35744 Such a box is created using the command
35750 in TeX-Code with the following scheme:
35753 \begin_layout Standard
35758 rotatebox[rotation origin]{rotation angle}{box content}
35761 \begin_layout Standard
35762 The rotation origin is specified in the form
35767 The following positions are possible:
35787 (top), along with meaningful combinations of the four base positions.
35792 means that the rotation origin is at the top left corner of the box.
35793 When no rotation origin is specified, the position
35798 The rotation angle is a number that can be negative that specifies the
35800 The rotation direction is counterclockwise.
35803 \begin_layout Standard
35804 In the following example the command
35808 rotatebox[origin=c]{60}{
35810 was inserted as TeX-Code before the text
35811 \begin_inset Quotes eld
35815 \begin_inset Quotes erd
35818 ; after the text the box was closed by a closing brace
35825 \begin_layout Standard
35830 \begin_layout Plain Layout
35834 rotatebox[origin=c]{60}{
35843 \begin_layout Plain Layout
35853 \begin_layout Standard
35854 The box content can also be another box or an inline formula:
35857 \begin_layout Standard
35862 \begin_layout Plain Layout
35866 rotatebox[origin=r]{-60}{
35872 \begin_inset Box Doublebox
35882 height_special "totalheight"
35885 \begin_layout Plain Layout
35895 \begin_layout Plain Layout
35906 \begin_layout Plain Layout
35910 rotatebox[origin=lb]{60}{
35916 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35923 \begin_layout Plain Layout
35933 \begin_layout Standard
35934 or an image or table:
35937 \begin_layout Standard
35942 \begin_layout Plain Layout
35946 rotatebox[origin=lb]{90}{
35952 \begin_inset Graphics
35953 filename clipart/platypus.eps
35963 \begin_layout Plain Layout
35970 with a rotated image
35974 \begin_layout Plain Layout
35978 rotatebox[origin=l]{-90}{
35984 \begin_inset Tabular
35985 <lyxtabular version="3" rows="2" columns="2">
35986 <features rotate="0" tabularvalignment="middle">
35987 <column alignment="center" valignment="top">
35988 <column alignment="center" valignment="top">
35990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35993 \begin_layout Plain Layout
35999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36002 \begin_layout Plain Layout
36010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36013 \begin_layout Plain Layout
36019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36022 \begin_layout Plain Layout
36037 \begin_layout Plain Layout
36045 \begin_inset Index idx
36048 \begin_layout Plain Layout
36055 \begin_inset Index idx
36058 \begin_layout Plain Layout
36059 Table Customization ! Rotating
36067 \begin_layout Subsection
36069 \begin_inset Index idx
36072 \begin_layout Plain Layout
36079 \begin_inset Index idx
36082 \begin_layout Plain Layout
36091 \begin_layout Standard
36092 To scale material the commands
36104 can be used as TeX-Code.
36107 \begin_layout Standard
36114 is used with the following scheme:
36117 \begin_layout Standard
36122 scalebox{horizontal}[vertical]{box content}
36125 \begin_layout Standard
36126 Horizontal and vertical are the corresponding scaling factors.
36127 If no vertical scaling factor is given, the horizontal factor will also
36128 be used as the vertical one.
36131 \begin_layout Standard
36138 creates for example a double size
36142 \begin_layout Plain Layout
36155 \begin_layout Plain Layout
36162 , compared with the document text size.
36165 \begin_layout Standard
36170 scalebox{2}[1]{Hello}
36172 on the other hand distorts the
36176 \begin_layout Plain Layout
36189 \begin_layout Plain Layout
36199 \begin_layout Standard
36200 If the scaling factor is negative, the box content will be mirrored.
36201 Therefore the command
36205 scalebox{-1}[1]{Hello}
36207 can be used to create mirror writing:
36211 \begin_layout Plain Layout
36224 \begin_layout Plain Layout
36234 \begin_layout Standard
36239 scalebox{1}[-1]{Hello}
36245 \begin_layout Plain Layout
36258 \begin_layout Plain Layout
36268 \begin_layout Standard
36273 scalebox{-1}[1]{box content}
36275 there exists the command
36276 \begin_inset Newline newline
36283 reflectbox{box content}
36288 \begin_layout Standard
36289 \begin_inset VSpace bigskip
36298 is used to scale the box to a defined width and height.
36299 The command scheme is:
36302 \begin_layout Standard
36307 resizebox{width}{height}{box content}
36310 \begin_layout Standard
36311 If one of the two command arguments given is an exclamation mark
36315 , the size is set so that the aspect ratio of the box content is kept.
36318 \begin_layout Standard
36323 resizebox{2cm}{1cm}{Hello}
36329 \begin_layout Plain Layout
36333 resizebox{2cm}{1cm}{
36342 \begin_layout Plain Layout
36350 \begin_inset Newline newline
36357 resizebox{2cm}{!}{Hello}
36363 \begin_layout Plain Layout
36376 \begin_layout Plain Layout
36386 \begin_layout Standard
36387 \begin_inset VSpace bigskip
36391 \begin_inset Note Greyedout
36394 \begin_layout Plain Layout
36411 are set to zero, no LaTeX-errors occur when exporting the document but
36412 the exported files can not or only partly be displayed.
36420 \begin_layout Standard
36421 \begin_inset VSpace bigskip
36427 \begin_layout Standard
36428 The boxes can be combined in any order.
36430 \begin_inset space \thinspace{}
36434 \begin_inset space \space{}
36438 \begin_inset Newline newline
36445 rotatebox[origin=c]{-45}{
36449 reflectbox{Hello}}}
36450 \begin_inset Newline newline
36458 \begin_layout Standard
36463 \begin_layout Plain Layout
36467 rotatebox[origin=c]{-45}{
36480 \begin_layout Plain Layout
36490 \begin_layout Standard
36492 Images, tables, and inline formulas are allowed as box content:
36495 \begin_layout Standard
36500 \begin_layout Plain Layout
36504 rotatebox[origin=c]{-30}{
36514 \begin_inset Graphics
36515 filename clipart/platypus.eps
36525 \begin_layout Plain Layout
36536 \begin_layout Plain Layout
36540 rotatebox[origin=c]{-45}{
36550 \begin_inset Tabular
36551 <lyxtabular version="3" rows="2" columns="2">
36552 <features rotate="0" tabularvalignment="middle">
36553 <column alignment="center" valignment="top">
36554 <column alignment="center" valignment="top">
36556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36559 \begin_layout Plain Layout
36565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36568 \begin_layout Plain Layout
36576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36579 \begin_layout Plain Layout
36585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36588 \begin_layout Plain Layout
36603 \begin_layout Plain Layout
36614 \begin_layout Plain Layout
36618 rotatebox[origin=c]{-45}{
36628 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36635 \begin_layout Plain Layout
36643 \begin_inset Index idx
36646 \begin_layout Plain Layout
36653 \begin_inset Index idx
36656 \begin_layout Plain Layout
36657 Table Customization ! Scaling
36665 \begin_layout Standard
36666 When the global formula style
36670 is used in the document
36674 \begin_layout Plain Layout
36676 \begin_inset Quotes eld
36680 \begin_inset Quotes erd
36683 is added to the document class options.
36688 , display style formulas can also be scaled.
36691 \begin_layout Chapter
36692 Objects Surrounded by Text
36693 \begin_inset Index idx
36696 \begin_layout Plain Layout
36705 \begin_layout Section
36707 \begin_inset CommandInset label
36709 name "sec:Wrap-Floats"
36714 \begin_inset Index idx
36717 \begin_layout Plain Layout
36718 Floats ! Wrap Floats
36724 \begin_inset Index idx
36727 \begin_layout Plain Layout
36728 Surrounded by text ! Wrap Floats
36736 \begin_layout Standard
36737 \begin_inset Wrap figure
36744 \begin_layout Plain Layout
36745 \begin_inset Graphics
36746 filename clipart/mobius.eps
36748 scaleBeforeRotation
36749 rotateOrigin center
36756 \begin_layout Plain Layout
36757 \begin_inset Caption Standard
36759 \begin_layout Plain Layout
36760 \begin_inset CommandInset label
36762 name "fig:This-is-a"
36766 This is a figure wrap float.
36776 This float type is used if you want to wrap text around a figure or table
36777 so that it only occupies some fraction of the column width.
36778 It can be inserted using the menu
36780 Insert\SpecialChar \menuseparator
36781 Floats\SpecialChar \menuseparator
36783 \begin_inset space ~
36787 \begin_inset space ~
36795 \begin_inset space ~
36799 \begin_inset space ~
36804 if the LaTeX-package
36809 \begin_inset Index idx
36812 \begin_layout Plain Layout
36813 LaTeX-packages ! wrapfig
36822 \begin_layout Plain Layout
36823 Installing a LaTeX-package is explained it in the
36826 \begin_inset space ~
36836 The settings of the float can be modified by right-clicking on the float
36838 The mandatory settings are the float
36851 that specifies how much the float is set into the paragraph
36852 \begin_inset space \thinspace{}
36856 \begin_inset space \thinspace{}
36859 page margin, and the
36862 \begin_inset space ~
36867 that specifies how many text lines the float will approximately need.
36868 The line span is often hard to approximate; so it is better only to use
36869 it when you encounter float placement problems.
36870 You can furthermore decide if LaTeX is allowed to let the float float within
36871 the paragraph or to surrounding paragraphs.
36873 \begin_inset space ~
36877 \begin_inset CommandInset ref
36879 reference "fig:This-is-a"
36883 is an example text wrap float with a width of 40
36884 \begin_inset space \thinspace{}
36888 \begin_inset space \thinspace{}
36891 cm overhang, set to the left.
36894 \begin_layout Standard
36895 \begin_inset Note Greyedout
36898 \begin_layout Plain Layout
36904 \begin_inset space ~
36907 wrap float floats are fragile! E.
36908 \begin_inset space \thinspace{}
36912 \begin_inset space \space{}
36915 having a figure too close to the bottom of the page can mess things up in
36916 such a way that the float does not appear in the output or that it is placed
36917 over some other text.
36925 \begin_layout Standard
36926 In general, the following applies for wrap floats:
36929 \begin_layout Itemize
36930 They should not be placed in paragraphs that run over a page break.
36931 That means that wrap floats are better inserted in their exact place when
36932 the document is almost finished and you are able to estimate where page
36933 breaks will appear.
36936 \begin_layout Itemize
36937 They should either be placed in their own paragraph before the paragraph
36938 where they should wrap into or within a paragraph.
36941 \begin_layout Itemize
36942 In consecutive paragraphs they may cause troubles, so ensure that there
36943 is a text paragraph between them as separator.
36946 \begin_layout Itemize
36947 They are not allowed in section headings or tables.
36950 \begin_layout Itemize
36951 Their numbering and referencing works as described in chap.
36952 \begin_inset space \thinspace{}
36956 \begin_inset CommandInset ref
36958 reference "chap:Floats"
36965 \begin_layout Section
36966 Surrounded Fixed Objects
36967 \begin_inset Index idx
36970 \begin_layout Plain Layout
36971 Surrounded by text ! Fixed objects
36979 \begin_layout Standard
36980 The wrap floats described in sec.
36981 \begin_inset space \thinspace{}
36985 \begin_inset CommandInset ref
36987 reference "sec:Wrap-Floats"
36991 have these positions in the paragraph:
36994 \begin_layout Standard
36997 \begin_inset Tabular
36998 <lyxtabular version="3" rows="2" columns="2">
36999 <features rotate="0" tabularvalignment="middle">
37000 <column alignment="center" valignment="top">
37001 <column alignment="center" valignment="top">
37003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37006 \begin_layout Plain Layout
37007 \begin_inset Graphics
37008 filename ../images/dialog-show-new-inset_graphics.png
37010 scaleBeforeRotation
37019 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37022 \begin_layout Plain Layout
37030 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37033 \begin_layout Plain Layout
37039 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37042 \begin_layout Plain Layout
37054 \begin_inset Tabular
37055 <lyxtabular version="3" rows="2" columns="2">
37056 <features rotate="0" tabularvalignment="middle">
37057 <column alignment="center" valignment="top">
37058 <column alignment="center" valignment="top">
37060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37063 \begin_layout Plain Layout
37069 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37072 \begin_layout Plain Layout
37073 \begin_inset Graphics
37074 filename ../images/dialog-show-new-inset_graphics.png
37076 scaleBeforeRotation
37087 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37090 \begin_layout Plain Layout
37096 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37099 \begin_layout Plain Layout
37113 \begin_layout Standard
37114 To get an object exactly at the position where it is inserted, for example
37115 to get one of these positions:
37116 \begin_inset VSpace defskip
37122 \begin_layout Standard
37125 \begin_inset Tabular
37126 <lyxtabular version="3" rows="2" columns="2">
37127 <features rotate="0" tabularvalignment="middle">
37128 <column alignment="center" valignment="top">
37129 <column alignment="center" valignment="top">
37131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37134 \begin_layout Plain Layout
37140 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37143 \begin_layout Plain Layout
37151 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37154 \begin_layout Plain Layout
37155 \begin_inset Graphics
37156 filename ../images/dialog-show-new-inset_graphics.png
37158 scaleBeforeRotation
37167 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37170 \begin_layout Plain Layout
37182 \begin_inset Tabular
37183 <lyxtabular version="3" rows="2" columns="2">
37184 <features rotate="0" tabularvalignment="middle">
37185 <column alignment="center" valignment="top">
37186 <column alignment="center" valignment="top">
37188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37191 \begin_layout Plain Layout
37197 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37200 \begin_layout Plain Layout
37208 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37211 \begin_layout Plain Layout
37217 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37220 \begin_layout Plain Layout
37221 \begin_inset Graphics
37222 filename ../images/dialog-show-new-inset_graphics.png
37224 scaleBeforeRotation
37239 \begin_inset Tabular
37240 <lyxtabular version="3" rows="2" columns="3">
37241 <features rotate="0" tabularvalignment="middle">
37242 <column alignment="center" valignment="top">
37243 <column alignment="center" valignment="top">
37244 <column alignment="center" valignment="top">
37246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37249 \begin_layout Plain Layout
37255 <cell alignment="center" valignment="top" topline="true" usebox="none">
37258 \begin_layout Plain Layout
37259 \begin_inset Graphics
37260 filename ../images/dialog-show-new-inset_graphics.png
37262 scaleBeforeRotation
37271 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37274 \begin_layout Plain Layout
37282 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37285 \begin_layout Plain Layout
37291 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37294 \begin_layout Plain Layout
37300 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37303 \begin_layout Plain Layout
37315 \begin_inset Tabular
37316 <lyxtabular version="3" rows="2" columns="3">
37317 <features rotate="0" tabularvalignment="middle">
37318 <column alignment="center" valignment="top">
37319 <column alignment="center" valignment="top">
37320 <column alignment="center" valignment="top">
37322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37325 \begin_layout Plain Layout
37331 <cell alignment="center" valignment="top" topline="true" usebox="none">
37334 \begin_layout Plain Layout
37340 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37343 \begin_layout Plain Layout
37351 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37354 \begin_layout Plain Layout
37360 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37363 \begin_layout Plain Layout
37364 \begin_inset Graphics
37365 filename ../images/dialog-show-new-inset_graphics.png
37367 scaleBeforeRotation
37376 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37379 \begin_layout Plain Layout
37393 \begin_layout Standard
37396 \begin_inset Tabular
37397 <lyxtabular version="3" rows="3" columns="2">
37398 <features rotate="0" tabularvalignment="middle">
37399 <column alignment="center" valignment="top">
37400 <column alignment="center" valignment="top">
37402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37405 \begin_layout Plain Layout
37411 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37414 \begin_layout Plain Layout
37422 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37425 \begin_layout Plain Layout
37426 \begin_inset Graphics
37427 filename ../images/dialog-show-new-inset_graphics.png
37429 scaleBeforeRotation
37438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37441 \begin_layout Plain Layout
37449 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37452 \begin_layout Plain Layout
37458 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37461 \begin_layout Plain Layout
37473 \begin_inset Tabular
37474 <lyxtabular version="3" rows="3" columns="3">
37475 <features rotate="0" tabularvalignment="middle">
37476 <column alignment="center" valignment="top">
37477 <column alignment="center" valignment="top">
37478 <column alignment="center" valignment="top">
37480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37483 \begin_layout Plain Layout
37489 <cell alignment="center" valignment="top" topline="true" usebox="none">
37492 \begin_layout Plain Layout
37498 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37501 \begin_layout Plain Layout
37509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37512 \begin_layout Plain Layout
37518 <cell alignment="center" valignment="top" usebox="none">
37521 \begin_layout Plain Layout
37522 \begin_inset Graphics
37523 filename ../images/dialog-show-new-inset_graphics.png
37525 scaleBeforeRotation
37534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37537 \begin_layout Plain Layout
37545 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37548 \begin_layout Plain Layout
37554 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37557 \begin_layout Plain Layout
37563 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37566 \begin_layout Plain Layout
37578 \begin_inset Tabular
37579 <lyxtabular version="3" rows="3" columns="2">
37580 <features rotate="0" tabularvalignment="middle">
37581 <column alignment="center" valignment="top">
37582 <column alignment="center" valignment="top">
37584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37587 \begin_layout Plain Layout
37593 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37596 \begin_layout Plain Layout
37604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37607 \begin_layout Plain Layout
37613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37616 \begin_layout Plain Layout
37617 \begin_inset Graphics
37618 filename ../images/dialog-show-new-inset_graphics.png
37620 scaleBeforeRotation
37631 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37634 \begin_layout Plain Layout
37640 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37643 \begin_layout Plain Layout
37657 \begin_layout Standard
37659 you can use the LaTeX-package
37664 \begin_inset Index idx
37667 \begin_layout Plain Layout
37668 LaTeX-packages ! picinpar
37674 Here is an example:
37677 \begin_layout Standard
37681 \begin_layout Plain Layout
37691 \begin_inset Note Note
37694 \begin_layout Plain Layout
37695 The following section will only be displayed when the LaTeX-package
37707 \begin_layout Standard
37711 \begin_layout Plain Layout
37715 begin{window}[2,c,{
37721 \begin_inset Graphics
37722 filename clipart/mobius.eps
37725 scaleBeforeRotation
37726 rotateOrigin center
37734 \begin_layout Plain Layout
37739 \begin_layout Plain Layout
37748 It was in the spring of the year 1894 that all London was interested, and
37749 the fashionable world dismayed, by the murder of the Honourable Ronald
37750 Adair under most unusual and inexplicable circumstances.
37751 The public has already learned those particulars of the crime which
37757 \begin_layout Plain Layout
37768 came out in the police investigation, but a good deal was suppressed upon
37769 that occasion, since the case for the prosecution was so overwhelmingly
37770 strong that it was not necessary to bring forward all the facts.
37771 Only now, at the end of nearly ten years, am I allowed to supply those
37772 missing links which make up the whole of that remarkable chain.
37778 \begin_layout Plain Layout
37790 \begin_layout Standard
37794 \begin_layout Plain Layout
37803 Footnote of the paragraph with the fixed object.
37807 \begin_layout Plain Layout
37817 \begin_layout Standard
37818 Surrounded fixed objects are used to let text float around them, at which
37819 the object's position in the paragraph can be determined by the number
37821 In contrary to floats is it not possible to have a numbered caption.
37824 \begin_layout Standard
37825 A fixed object is inserted by adding the command
37828 \begin_layout Standard
37833 begin{window}[2,c,{
37836 \begin_layout Standard
37837 as TeX-Code at the beginning of the paragraph.
37838 The first parameter in the bracket, here '2', defines the number of lines
37839 above the object, the second, here 'c', the position of the object.
37840 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37841 Behind the command you insert the object.
37842 In this example an image with a width of 40
37843 \begin_inset space \thinspace{}
37846 % of the text column width was inserted.
37847 The object can also be a table, a box or an equation.
37848 Behind the object the command
37851 \begin_layout Standard
37854 },description text]
37855 \begin_inset Newline newline
37861 \begin_layout Standard
37864 \begin_inset Quotes eld
37872 \begin_inset Quotes erd
37875 is in the second line.
37876 The description text is optional.
37877 The text surrounding the object must be in the same paragraph as the object,
37878 so it must begin directly after the
37883 At the end of the paragraph insert the command:
37886 \begin_layout Standard
37894 \begin_layout Standard
37895 Within a paragraph with a fixed object, you cannot insert footnotes in the
37897 You have to use instead the command
37903 inside the paragraph and outside the command
37909 as described in sec.
37910 \begin_inset space \thinspace{}
37914 \begin_inset CommandInset ref
37916 reference "sec:Footnotes"
37923 \begin_layout Standard
37927 \begin_layout Plain Layout
37937 \begin_inset Note Note
37940 \begin_layout Plain Layout
37941 The following will be displayed when the LaTeX-package
37953 \begin_layout Standard
37954 You need to install the LaTeX-package
37958 to see the following part of this section in the output.
37961 \begin_layout Standard
37965 \begin_layout Plain Layout
37977 \begin_layout Section
37979 \begin_inset Index idx
37982 \begin_layout Plain Layout
37989 \begin_inset Index idx
37992 \begin_layout Plain Layout
37993 Surrounded by text ! Initials
38001 \begin_layout Standard
38002 To use initials, you must have the LaTeX-package
38007 \begin_inset Index idx
38010 \begin_layout Plain Layout
38011 LaTeX-packages ! lettrine
38016 installed and use the module
38020 in your document (menu
38022 Document\SpecialChar \menuseparator
38023 Settings\SpecialChar \menuseparator
38027 To insert an initial, use the style
38032 This style has a mandatory and two optional arguments.
38033 The arguments are inserted via the
38038 The mandatory argument
38042 contains the letter(s) that is the initial, the argument
38045 \begin_inset space ~
38049 \begin_inset space ~
38054 contains the rest of the word or text of the initial letter(s).
38059 contains parameters to modify the initial.
38060 For more information about the possible parameters see the documentation
38066 \begin_inset CommandInset citation
38073 The style itself contains the text that is surrounding the initial.
38074 The usual style is hereby that the word whose first letter is the initial,
38082 \begin_layout Standard
38083 Here are some examples:
38086 \begin_layout Standard
38090 \begin_layout Plain Layout
38100 \begin_inset Note Note
38103 \begin_layout Plain Layout
38104 The following section will only be displayed when the LaTeX-package
38116 \begin_layout Enumerate
38117 No optional argument, the initial is the letter 'I' in the math font
38118 \begin_inset Formula $\mathfrak{Fraktur}$
38125 \begin_layout Initial
38126 \begin_inset Argument 2
38129 \begin_layout Plain Layout
38130 \begin_inset Formula $\mathfrak{I}$
38139 \begin_inset Argument 3
38142 \begin_layout Plain Layout
38148 was in the spring of the year 1894 that all London was interested, and
38149 the fashionable world dismayed, by the murder of the Honourable Ronald
38150 Adair under most unusual and inexplicable circumstances.
38151 The public has already learned those particulars of the crime which came
38152 out in the police investigation, but a good deal was suppressed upon that
38153 occasion, since the case for the prosecution was so overwhelmingly strong
38154 that it was not necessary to bring forward all the facts.
38155 \begin_inset Newpage newpage
38162 \begin_layout Enumerate
38163 Only one line is surrounding the initial, which is formed by two letters
38164 in standard font and no text is printed in small caps:
38168 \begin_layout Initial
38169 \begin_inset Argument 1
38172 \begin_layout Plain Layout
38179 \begin_inset Argument 2
38182 \begin_layout Plain Layout
38188 was in the spring of the year 1894 that all London was interested, and
38189 the fashionable world dismayed, by the murder of the Honourable Ronald
38190 Adair under most unusual and inexplicable circumstances.
38191 The public has already learned those particulars of the crime which came
38192 out in the police investigation, but a good deal was suppressed upon that
38193 occasion, since the case for the prosecution was so overwhelmingly strong
38194 that it was not necessary to bring forward all the facts.
38198 \begin_layout Enumerate
38199 Magenta, hanging initial over 3
38200 \begin_inset space ~
38203 lines in the math font
38204 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
38208 \begin_inset Quotes eld
38211 t was in the spring
38212 \begin_inset Quotes erd
38219 ; to color the initial, you must insert this command before the initial:
38220 \begin_inset Newline newline
38234 \begin_inset Newline newline
38242 \begin_inset Quotes eld
38246 \begin_inset Quotes erd
38250 \begin_inset Quotes eld
38254 \begin_inset Quotes erd
38258 \begin_inset Quotes eld
38262 \begin_inset Quotes erd
38266 \begin_inset Quotes eld
38270 \begin_inset Quotes erd
38274 \begin_inset Quotes eld
38278 \begin_inset Quotes erd
38282 \begin_inset Quotes eld
38286 \begin_inset Quotes erd
38290 \begin_inset Quotes eld
38294 \begin_inset Quotes erd
38298 \begin_inset Quotes eld
38302 \begin_inset Quotes erd
38305 , and add this command to the document preamble:
38306 \begin_inset Newline newline
38313 @ifundefined{textcolor}
38314 \begin_inset Newline newline
38318 \begin_inset space ~
38323 usepackage{color}}{}
38327 \begin_layout Standard
38331 \begin_layout Plain Layout
38345 \begin_inset Note Note
38348 \begin_layout Plain Layout
38349 makes the initial magenta
38357 \begin_layout Initial
38358 \begin_inset Argument 1
38361 \begin_layout Plain Layout
38362 lines=3, lhang=0.33, loversize=0.25
38368 \begin_inset Argument 2
38371 \begin_layout Plain Layout
38372 \begin_inset Formula $\mathcal{I}$
38381 \begin_inset Argument 3
38384 \begin_layout Plain Layout
38385 t was in the spring
38390 of the year 1894 that all London was interested, and the fashionable world
38391 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38392 and inexplicable circumstances.
38393 The public has already learned those particulars of the crime which came
38394 out in the police investigation, but a good deal was suppressed upon that
38395 occasion, since the case for the prosecution was so overwhelmingly strong
38396 that it was not necessary to bring forward all the facts.
38400 \begin_layout Standard
38404 \begin_layout Plain Layout
38414 \begin_inset Note Note
38417 \begin_layout Plain Layout
38418 The following will be displayed when the LaTeX-package
38430 \begin_layout Standard
38431 You need to install the LaTeX-package
38435 to see the following part of this section in the output.
38438 \begin_layout Standard
38442 \begin_layout Plain Layout
38454 \begin_layout Chapter
38455 External Document Parts
38456 \begin_inset Index idx
38459 \begin_layout Plain Layout
38460 External Document Parts
38468 \begin_layout Standard
38471 Insert\SpecialChar \menuseparator
38474 you can insert external material into your document.
38478 \begin_layout Description
38480 \begin_inset space ~
38483 Document Another LyX document; its content is directly inserted to your
38487 \begin_layout Description
38489 \begin_inset space ~
38492 Text A text document; each line is inserted in your document as a separate
38496 \begin_layout Description
38498 \begin_inset space ~
38502 \begin_inset space ~
38506 \begin_inset space ~
38509 Lines A text document; text lines are inserted in your document continuously
38510 but an empty text line creates a new paragraph.
38513 \begin_layout Description
38515 \begin_inset space ~
38518 Material Files in various formats.
38521 \begin_layout Description
38523 \begin_inset space ~
38526 Document LyX or LaTeX-documents.
38529 \begin_layout Section
38531 \begin_inset Index idx
38534 \begin_layout Plain Layout
38535 External Document Parts ! External Material
38543 \begin_layout Standard
38544 The external material feature allows you to insert files into your document
38545 without converting them to a format that can be read by the document output
38547 LyX takes care of the necessary conversions.
38548 This is similar to images that can be inserted in various image formats
38550 When you have enabled Instant Preview in LyX's preferences under
38553 \begin_inset space ~
38557 \begin_inset space ~
38560 feel\SpecialChar \menuseparator
38563 , the external material types Dia and Xfig are directly shown in LyX.
38566 \begin_layout Standard
38567 External material can be inserted via the
38571 dialog that is accessible with the menu
38573 Insert\SpecialChar \menuseparator
38574 File\SpecialChar \menuseparator
38576 \begin_inset space ~
38582 Currently the following file types (
38589 \begin_layout Description
38590 ChessDiagram This template supports chess position diagrams made with the
38594 \begin_inset CommandInset href
38597 target "http://en.wikipedia.org/wiki/XBoard"
38606 \begin_layout Description
38607 Date This inserts the date in the form
38612 This is a date inserted as external material:
38613 \begin_inset External
38620 \begin_inset space ~
38624 \begin_inset Note Note
38627 \begin_layout Plain Layout
38628 Remove the protected space when bug 4398 is fixed!
38634 \begin_inset Newline newline
38637 The date is not shown within LyX, only in the output.
38638 There are two other methods of inserting a date: Via menu
38640 Insert\SpecialChar \menuseparator
38643 and with the LaTeX command
38650 The different methods are compared in Table
38651 \begin_inset space ~
38655 \begin_inset CommandInset ref
38657 reference "tab:Comparison-of-the"
38664 \begin_layout Description
38665 Dia This template supports diagrams created with the program
38668 \begin_inset CommandInset href
38671 target "http://en.wikipedia.org/wiki/Dia_(software)"
38680 \begin_layout Description
38681 GnumericSpreadsheet With this template you can insert spreadsheets
38682 \begin_inset space \thinspace{}
38686 \begin_inset space \thinspace{}
38689 tables in the format of
38692 \begin_inset CommandInset href
38695 target "http://en.wikipedia.org/wiki/Gnumeric"
38702 \begin_inset CommandInset href
38704 name "OpenDocument"
38705 target "http://en.wikipedia.org/wiki/OpenDocument"
38710 \begin_inset CommandInset href
38712 name "Microsoft Office XML"
38713 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38718 \begin_inset CommandInset href
38720 name "Office Open XML"
38721 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38726 For this feature LyX must have found the program
38730 during its configuration.
38731 This program is part of Gnumeric, so that you must have Gnumeric installed,
38732 also if you don't have tables in the Gnumeric format.
38733 For examples and possible limitations have a look at LyX's example file
38741 \begin_layout Description
38742 LilyPond This template is used for music notation typeset with the program
38743 \begin_inset Newline linebreak
38749 \begin_inset CommandInset href
38752 target "http://en.wikipedia.org/wiki/LilyPond"
38759 For LyX's extended support for LilyPond have a look at LyX's example file
38767 \begin_layout Description
38768 PDFPages With this template you can insert PDF documents to your document.
38769 To specify the range of pages that should be included, use the option
38779 LaTeX and LyX options
38782 The argument of this option is a comma separated list, containing page
38783 numbers (insert as option
38787 ), ranges of page numbers (
38791 ) or any combination.
38792 To insert empty pages use {}.
38794 \begin_inset space \thinspace{}
38798 \begin_inset space ~
38803 pages={3,{},8-11,15}
38805 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38806 Page ranges are specified in the syntax
38815 This selects all pages from
38828 defaults to the first page; omitting
38832 defaults to the last page of the document.
38833 The last page can also be selected with the keyword
38838 (This is only permitted in a page range.) So
38842 will insert all pages of the document and
38846 will insert all pages in reverse order.
38847 If the pages option is not specified, only the first page of the PDF is
38849 \begin_inset Newline newline
38856 inserts the pages with their original size, if this option is not given,
38857 the pages will be resized to fith the width of the page of your document.
38862 you can specify the width and height of the input pages and their rotation.
38863 If another width than 100
38864 \begin_inset space \thinspace{}
38867 Scale% is used, the option
38871 will be overwritten.
38872 For more info and possible options, have a look into the documentation
38873 of the LaTeX-package
38878 \begin_inset CommandInset citation
38885 \begin_inset Index idx
38888 \begin_layout Plain Layout
38889 LaTeX-packages ! pdfpages
38895 \begin_inset Newline newline
38898 To use this template in a
38902 presentation you need to first insert an
38906 environment and in a subsequent paragraph a TeX-Code box containing the
38911 setbeamertemplate{background canvas}{}
38914 Then you can insert as many paragraphs containing the PDFPages template
38916 Behind the included PDF pages you can resume the Beamer presentation by
38917 beginning a new frame or by starting a new section.
38918 To avoid stray blank pages prior to the PDF pages, make sure to use the
38923 alignment for the paragraph containing the template.
38924 \begin_inset Newline newline
38927 Here is an included PDF which is rotated by -5°:
38928 \begin_inset External
38930 filename clipart/Abstract.pdf
38931 extra LaTeX "noautoscale, pages=-"
38933 rotateOrigin bottomleft
38940 \begin_layout Description
38941 RasterImage This can be used for bitmap images.
38942 The image can be treated in the
38946 dialog like the images that are usually included via the
38950 dialog as described in section
38951 \begin_inset space ~
38955 \begin_inset CommandInset ref
38957 reference "sec:Graphics-Dialog"
38962 The difference to the normal image input is that only raster images are
38963 allowed; that means that PDF and EPS-images are not supported.
38964 Here is an inserted raster image:
38965 \begin_inset External
38966 template RasterImage
38967 filename clipart/ToolbarEnvBox.png
38974 \begin_layout Description
38975 XFig This template supports images created with the program
38978 \begin_inset CommandInset href
38981 target "http://en.wikipedia.org/wiki/Xfig"
38990 \begin_layout Standard
38991 \begin_inset Float table
38997 \begin_layout Plain Layout
38998 \begin_inset Caption Standard
39000 \begin_layout Plain Layout
39001 \begin_inset CommandInset label
39003 name "tab:Comparison-of-the"
39007 Comparison of the date input methods.
39015 \begin_layout Plain Layout
39017 \begin_inset Tabular
39018 <lyxtabular version="3" rows="4" columns="4">
39019 <features rotate="0" tabularvalignment="middle">
39020 <column alignment="center" valignment="top">
39021 <column alignment="center" valignment="top">
39022 <column alignment="center" valignment="top">
39023 <column alignment="center" valignment="top">
39025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39028 \begin_layout Plain Layout
39034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39037 \begin_layout Plain Layout
39040 External Material\SpecialChar \menuseparator
39046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39049 \begin_layout Plain Layout
39052 Insert\SpecialChar \menuseparator
39058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39061 \begin_layout Plain Layout
39073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39076 \begin_layout Plain Layout
39082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39085 \begin_layout Plain Layout
39091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39094 \begin_layout Plain Layout
39100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39103 \begin_layout Plain Layout
39104 as TeX-Code inset box
39111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39114 \begin_layout Plain Layout
39120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39123 \begin_layout Plain Layout
39129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39132 \begin_layout Plain Layout
39138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39141 \begin_layout Plain Layout
39149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39152 \begin_layout Plain Layout
39158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39161 \begin_layout Plain Layout
39167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39170 \begin_layout Plain Layout
39176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39179 \begin_layout Plain Layout
39198 \begin_layout Standard
39199 When you use the option
39211 dialog, only the path to the inserted file is shown in the output.
39212 \begin_inset Newline newline
39215 External material is displayed in LyX either as a box like this:
39216 \begin_inset Graphics
39217 filename clipart/ExternalMaterialQt4.png
39219 scaleBeforeRotation
39223 or as image, depending on the option
39229 LaTeX and LyX options
39234 \begin_layout Standard
39241 manual explains how you can define your own templates.
39244 \begin_layout Section
39246 \begin_inset CommandInset label
39248 name "sec:Child-Documents"
39253 \begin_inset Index idx
39256 \begin_layout Plain Layout
39257 External Document Parts ! Child Documents
39263 \begin_inset Index idx
39266 \begin_layout Plain Layout
39275 \begin_layout Standard
39276 Child documents are used if you have a long document consisting of several
39277 larger parts or sections.
39278 For maintenance it is often useful and sometimes even required to split
39279 the document into several files that can be revised separately.
39280 The different documents are then the so called
39281 \begin_inset Quotes eld
39285 \begin_inset Quotes erd
39288 , and a master document connects them to print the full document or parts
39290 A child document inherits elements from its master, for example the LaTeX
39291 preamble, the bibliography, and labels for cross-references.
39294 \begin_layout Standard
39295 To be able to work on child documents without the need to open their master,
39296 specify in the child document the master in the menu
39298 Document\SpecialChar \menuseparator
39299 Settings\SpecialChar \menuseparator
39301 \begin_inset space ~
39307 This master document will then be used in the background by LyX when you
39308 edit the child document.
39311 \begin_layout Standard
39312 Included documents are displayed in LyX as a box like this:
39313 \begin_inset Graphics
39314 filename clipart/ChildDocumentQt4.png
39316 scaleBeforeRotation
39320 To include child documents in a master document use the menu
39322 Insert\SpecialChar \menuseparator
39323 File\SpecialChar \menuseparator
39325 \begin_inset space ~
39331 A dialog pops up where you can choose between four include methods:
39334 \begin_layout Description
39335 Include You can include LyX- and LaTeX-documents.
39344 dialog, the included document will be opened in LyX in a new file tab so
39345 that you can modify it.
39346 \begin_inset Newline newline
39352 \begin_layout Standard
39353 Here is a child document inserted using
39358 \begin_inset CommandInset include
39359 LatexCommand include
39360 filename "DummyDocument1.lyx"
39367 \begin_layout Standard
39368 The section numbering includes the sections of the included files in the
39369 order they are inserted in the master document.
39370 The included example document has for example a subsection that is numbered
39371 as a subsection of this section.
39372 Labels of included documents can be referenced: Subsection
39373 \begin_inset space ~
39377 \begin_inset CommandInset ref
39379 reference "sub:External-Subsection-1"
39386 \begin_layout Standard
39387 The preamble of the child document is ignored; only the preamble of the
39388 master document is used.
39389 Branches in child documents will be ignored by the master document when
39390 the master document does not have a branch with the same name.
39391 Included documents are inserted starting on a new page and ending with
39395 \begin_layout Standard
39396 \begin_inset Note Greyedout
39399 \begin_layout Plain Layout
39404 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39405 the document in case the child document uses another document class than
39406 the master document as this will lead to unexpected outputs.
39414 \begin_layout Description
39415 Input This method is very similar to the Include method.
39416 The differences are:
39420 \begin_layout Itemize
39421 Input files don't start with a new page and don't end with a page break.
39424 \begin_layout Itemize
39425 Input files can be previewed in LyX when
39428 \begin_inset space ~
39433 is enabled in LyX's preferences under
39436 \begin_inset space ~
39440 \begin_inset space ~
39443 feel\SpecialChar \menuseparator
39449 \begin_layout Itemize
39450 You cannot exclude Input files via the menu
39452 Document\SpecialChar \menuseparator
39453 Settings\SpecialChar \menuseparator
39460 \begin_layout Standard
39461 Here is a child document inserted using
39466 \begin_inset CommandInset include
39468 filename "DummyDocument2.lyx"
39475 \begin_layout Description
39476 Verbatim With this method any text file can be included.
39477 The file is shown in the output with its source code; no command used in
39478 the text is invoked.
39479 You can use the option
39481 Mark spaces in output
39483 that displays the character
39484 \begin_inset Quotes eld
39491 \begin_layout Plain Layout
39501 \begin_inset Quotes erd
39504 for every space character in the source code.
39505 The difference from the method via the menu
39507 Insert\SpecialChar \menuseparator
39508 File\SpecialChar \menuseparator
39510 \begin_inset space ~
39515 is that the document content is not shown in LyX.
39518 \begin_layout Standard
39519 Here is a child document inserted as Verbatim:
39520 \begin_inset CommandInset include
39521 LatexCommand verbatiminput
39522 filename "DummyTextDocument.txt"
39527 \begin_inset VSpace bigskip
39530 Here is a child document inserted as Verbatim using the
39532 Mark spaces in output
39535 \begin_inset CommandInset include
39536 LatexCommand verbatiminput*
39537 filename "DummyTextDocument.txt"
39544 \begin_layout Standard
39545 \begin_inset VSpace bigskip
39551 \begin_layout Standard
39552 \begin_inset Note Greyedout
39555 \begin_layout Plain Layout
39560 As you can see in the examples above, the text of the documents included
39565 is not broken at the end of the document lines.
39573 \begin_layout Description
39574 Listings This type is described in chapter
39575 \begin_inset space ~
39579 \begin_inset CommandInset ref
39581 reference "cha:Program-Code-Listings"
39588 \begin_layout Standard
39589 \begin_inset Note Greyedout
39592 \begin_layout Plain Layout
39597 Including the same document twice in a document using different methods
39598 could cause LaTeX-problems.
39606 \begin_layout Standard
39607 If you want to view/export only selected children of your master document,
39608 either because you want to save compiling time or because you want to distribut
39609 e single chapters of the book you are just writing, you can exclude children
39611 This is done via the menu
39613 Document\SpecialChar \menuseparator
39614 Settings\SpecialChar \menuseparator
39618 You can exclude\SpecialChar \slash{}
39619 include children by double-clicking on the
39623 column of the respective child document in the list (note that this only
39624 works for documents embedded via
39625 \begin_inset Quotes eld
39629 \begin_inset Quotes erd
39633 \begin_inset Quotes eld
39637 \begin_inset Quotes erd
39643 Maintain counters and references
39645 is enabled, LyX will assure that all page numbers, references etc.
39646 \begin_inset space ~
39649 are correct as if the whole document was processed.
39650 This is useful if you want the selected sub-documents to look exactly as
39651 in the context of the whole document.
39652 However, LyX needs to process the whole document in the background for
39654 So if you want to save compile time and if counters and references do not
39655 need to be correct, disable this checkbox.
39658 \begin_layout Standard
39659 Alternatively, you can put each included file into a branch.
39663 \begin_layout Plain Layout
39664 Branches are described in section
39677 By enabling\SpecialChar \slash{}
39678 disabling branches you can decide which included files will
39679 appear in the output.
39680 This has the advantage that it also works with Input'ed sub-documents.
39681 However, counters and references will not be maintained with this approach.
39684 \begin_layout Chapter
39685 Program Code Listings
39686 \begin_inset CommandInset label
39688 name "cha:Program-Code-Listings"
39693 \begin_inset Index idx
39696 \begin_layout Plain Layout
39703 \begin_inset Index idx
39706 \begin_layout Plain Layout
39713 \begin_inset Index idx
39716 \begin_layout Plain Layout
39725 \begin_layout Standard
39726 To include and typeset program code you can use the
39730 inset that can be inserted via the menu
39732 Insert\SpecialChar \menuseparator
39741 \begin_inset Index idx
39744 \begin_layout Plain Layout
39745 LaTeX-packages ! listings
39750 provides a powerful and flexible way to insert program source code into
39754 \begin_layout Standard
39755 Right-clicking on a listings inset opens the context menu containing where
39756 you can set the listings format.
39759 \begin_layout Standard
39760 By default, a listing starts a new paragraph in the output.
39761 The placement option
39764 \begin_inset space ~
39769 prints the listing inline like this:
39770 \begin_inset listings
39771 lstparams "language={C++}"
39775 \begin_layout Plain Layout
39783 \begin_inset Newline newline
39790 creates a listings float where you can specify the placement options
39791 \begin_inset Quotes eld
39799 \begin_inset Quotes erd
39803 \begin_inset Quotes eld
39811 \begin_inset Quotes erd
39815 \begin_inset Quotes eld
39823 \begin_inset Quotes erd
39827 \begin_inset Quotes eld
39835 \begin_inset Quotes erd
39838 corresponding to the float placement options described in section
39839 \begin_inset space ~
39843 \begin_inset CommandInset ref
39845 reference "sec:Float-Placement"
39850 The placement options can be mixed and are inserted without any separation,
39852 \begin_inset space \thinspace{}
39856 \begin_inset space \space{}
39860 \begin_inset Quotes eld
39868 \begin_inset Quotes erd
39873 \begin_inset Quotes eld
39877 \begin_inset Quotes erd
39880 has sometimes no effect, but you don't need to use the
39884 option in this case as also non-float listings can have captions and be
39888 \begin_layout Standard
39889 You can add captions to listings with the menu
39891 Insert\SpecialChar \menuseparator
39895 Listings can be referenced like floats: Listing
39896 \begin_inset space ~
39900 \begin_inset CommandInset ref
39902 reference "lst:Example-Listing"
39907 A list of listings which contains all listings with captions can be created
39910 Insert\SpecialChar \menuseparator
39912 \begin_inset space ~
39916 \begin_inset space ~
39919 TOC\SpecialChar \menuseparator
39923 The list entries are the listing caption and the listing number.
39926 \begin_layout Standard
39927 \begin_inset listings
39928 lstparams "language=Python"
39932 \begin_layout Plain Layout
39934 \begin_inset Caption Standard
39936 \begin_layout Plain Layout
39937 \begin_inset CommandInset label
39939 name "lst:Example-Listing"
39943 Example Listing float
39948 # Example listing float
39951 \begin_layout Plain Layout
39956 \begin_layout Plain Layout
39958 'this is a python function'
39961 \begin_layout Plain Layout
39971 \begin_layout Standard
39972 When you have set a programming language in the listings dialog, the keywords
39973 of this language will be recognized and specially typeset in the output.
39974 In the example listings the Python keyword
39975 \begin_inset Quotes eld
39979 \begin_inset Quotes erd
39982 is recognized and printed bold in the output.
39985 \begin_layout Standard
39986 \begin_inset Note Greyedout
39989 \begin_layout Plain Layout
39994 If you don't get bold keywords when using typewriter fonts, your
39998 font probably doesn't provide a bold shape.
39999 In this case select a different one in the menu
40001 Document\SpecialChar \menuseparator
40002 Settings\SpecialChar \menuseparator
40014 provide bold shapes.)
40022 \begin_layout Standard
40026 \begin_inset space ~
40031 of the listings dialog you can specify the line numbering style.
40032 You can insert a number to specify which lines are numbered in the field
40039 \begin_inset space \thinspace{}
40043 \begin_inset space \space{}
40047 \begin_inset Quotes eld
40051 \begin_inset Quotes erd
40054 , only every 3rd line will be numbered.
40057 \begin_layout Standard
40058 You can furthermore specify a range of lines; only these will then appear
40062 Extended character table
40064 should be used when you use national characters like the German umlauts
40066 \begin_inset Newline newline
40069 Here is an example listing with left line numbering, step
40070 \begin_inset Quotes eld
40074 \begin_inset Quotes erd
40078 \begin_inset Quotes eld
40082 \begin_inset Quotes erd
40086 \begin_inset Quotes eld
40089 Extended character table
40090 \begin_inset Quotes erd
40094 \begin_inset Quotes eld
40098 \begin_inset space ~
40102 \begin_inset space ~
40106 \begin_inset Quotes erd
40110 \begin_inset space \thinspace{}
40114 \begin_inset space \thinspace{}
40120 \begin_layout Standard
40121 \begin_inset listings
40122 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
40126 \begin_layout Plain Layout
40131 \begin_layout Plain Layout
40133 'this is a python function'
40136 \begin_layout Plain Layout
40141 \begin_layout Plain Layout
40146 \begin_layout Plain Layout
40148 'This is a German word: Tschüß'
40151 \begin_layout Plain Layout
40156 \begin_layout Plain Layout
40161 \begin_layout Plain Layout
40163 'this is a python function'
40166 \begin_layout Plain Layout
40176 \begin_layout Standard
40177 When you have tabulators in your listing, you can specify the number of
40178 characters that are spanned by a tabulator in the field
40181 \begin_inset space ~
40189 \begin_layout Standard
40190 \begin_inset Note Greyedout
40193 \begin_layout Plain Layout
40198 Due to a bug in the
40202 package the line numbering is shifted by a line by every previous listing.
40203 That's the reason why the lines 2 and 5 are numbered in the above listing
40204 and not the lines 3 and 6.
40212 \begin_layout Standard
40213 \begin_inset VSpace bigskip
40219 \begin_layout Standard
40220 It is also possible to print lines from a file as listing.
40221 To do this, use the menu
40223 Insert\SpecialChar \menuseparator
40224 File\SpecialChar \menuseparator
40227 and choose the type
40235 \begin_layout Plain Layout
40236 The other child document types are described in section
40237 \begin_inset space ~
40241 \begin_inset CommandInset ref
40243 reference "sec:Child-Documents"
40252 In the child document dialog you can specify the listing parameters in
40254 To show a list of all available parameters, type in a question mark
40255 \begin_inset Quotes eld
40259 \begin_inset Quotes erd
40265 \begin_layout Standard
40266 To reference child document listings, write a label text into the corresponding
40267 field of the child document dialog.
40268 The label can then be referenced using the menu
40270 Insert\SpecialChar \menuseparator
40276 \begin_layout Standard
40278 \begin_inset space ~
40282 \begin_inset CommandInset ref
40284 reference "lst:file-listing"
40288 is an example for a listing of a file; there the lines 10
40289 \begin_inset space \thinspace{}
40293 \begin_inset space \thinspace{}
40296 15 of this LyX file are listed.
40299 \begin_layout Standard
40300 \begin_inset CommandInset include
40301 LatexCommand lstinputlisting
40302 filename "EmbeddedObjects.lyx"
40303 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40310 \begin_layout Standard
40311 \begin_inset VSpace bigskip
40317 \begin_layout Standard
40318 Inserting a formula into a listing can be done the following way:
40321 \begin_layout Enumerate
40322 Open the listings dialog and add
40323 \begin_inset Newline newline
40331 \begin_inset Newline newline
40334 to the field of the
40341 \begin_layout Enumerate
40342 Create a formula outside the listing
40345 \begin_layout Enumerate
40346 Copy the content of the formula (not the formula inset) to the clipboard
40356 \begin_layout Enumerate
40357 In the listing write
40358 \begin_inset Quotes eld
40366 \begin_inset Quotes erd
40369 and copy from the clipboard between the dollar-signs (shortcut
40378 \begin_layout Standard
40379 \begin_inset listings
40380 lstparams "language=Python,mathescape=true"
40384 \begin_layout Plain Layout
40386 \begin_inset Caption Standard
40388 \begin_layout Plain Layout
40389 Example Listing float containing a formula
40394 # Example listing float
40397 \begin_layout Plain Layout
40402 \begin_layout Plain Layout
40415 \begin_layout Plain Layout
40425 \begin_layout Standard
40426 \begin_inset VSpace bigskip
40432 \begin_layout Standard
40433 Global listings settings can be set in the
40435 Document\SpecialChar \menuseparator
40436 Settings\SpecialChar \menuseparator
40440 To get there a list of available options, type in a question mark
40441 \begin_inset Quotes eld
40445 \begin_inset Quotes erd
40451 \begin_layout Standard
40452 For more information about the
40456 package, we refer to its documentation
40457 \begin_inset CommandInset citation
40466 \begin_layout Standard
40467 \begin_inset Newpage newpage
40473 \begin_layout Chapter
40475 Units available in LyX
40476 \begin_inset Index idx
40479 \begin_layout Plain Layout
40486 \begin_inset CommandInset label
40488 name "cha:Units-available-in"
40495 \begin_layout Standard
40496 To understand the units described in this documentation, Table
40497 \begin_inset space ~
40501 \begin_inset CommandInset ref
40503 reference "tab:Units"
40507 explains all units available in LyX.
40510 \begin_layout Standard
40511 \begin_inset Float table
40517 \begin_layout Plain Layout
40518 \begin_inset Caption Standard
40520 \begin_layout Plain Layout
40521 \begin_inset CommandInset label
40535 \begin_layout Plain Layout
40536 \begin_inset VSpace medskip
40542 \begin_layout Plain Layout
40544 \begin_inset Tabular
40545 <lyxtabular version="3" rows="20" columns="2">
40546 <features rotate="0" tabularvalignment="middle">
40547 <column alignment="center" valignment="top">
40548 <column alignment="center" valignment="top">
40550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40553 \begin_layout Plain Layout
40559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40562 \begin_layout Plain Layout
40570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40573 \begin_layout Plain Layout
40579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40582 \begin_layout Plain Layout
40590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40593 \begin_layout Plain Layout
40599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40602 \begin_layout Plain Layout
40610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40613 \begin_layout Plain Layout
40619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40622 \begin_layout Plain Layout
40630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40633 \begin_layout Plain Layout
40639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40642 \begin_layout Plain Layout
40644 \begin_inset space \thinspace{}
40648 \begin_inset space \thinspace{}
40658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40661 \begin_layout Plain Layout
40667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40670 \begin_layout Plain Layout
40672 \begin_inset space \thinspace{}
40676 \begin_inset space \thinspace{}
40686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40689 \begin_layout Plain Layout
40695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40698 \begin_layout Plain Layout
40699 scaled point (65536
40700 \begin_inset space \thinspace{}
40704 \begin_inset space \thinspace{}
40714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40717 \begin_layout Plain Layout
40723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40726 \begin_layout Plain Layout
40728 \begin_inset space \thinspace{}
40732 \begin_inset space \thinspace{}
40742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40745 \begin_layout Plain Layout
40751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40754 \begin_layout Plain Layout
40756 \begin_inset space \thinspace{}
40760 \begin_inset Formula $\approx$
40764 \begin_inset space \thinspace{}
40774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40777 \begin_layout Plain Layout
40783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40786 \begin_layout Plain Layout
40788 \begin_inset space \thinspace{}
40792 \begin_inset space \thinspace{}
40802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40805 \begin_layout Plain Layout
40811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40814 \begin_layout Plain Layout
40815 % of original image width
40822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40825 \begin_layout Plain Layout
40831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40834 \begin_layout Plain Layout
40842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40845 \begin_layout Plain Layout
40851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40854 \begin_layout Plain Layout
40862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40865 \begin_layout Plain Layout
40871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40874 \begin_layout Plain Layout
40882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40885 \begin_layout Plain Layout
40891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40894 \begin_layout Plain Layout
40902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40905 \begin_layout Plain Layout
40911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40914 \begin_layout Plain Layout
40922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40925 \begin_layout Plain Layout
40931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40934 \begin_layout Plain Layout
40942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40945 \begin_layout Plain Layout
40951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40954 \begin_layout Plain Layout
40966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40969 \begin_layout Plain Layout
40975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40978 \begin_layout Plain Layout
40990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40993 \begin_layout Plain Layout
40999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41002 \begin_layout Plain Layout
41004 \begin_inset space \thinspace{}
41008 \begin_inset space \thinspace{}
41029 \begin_layout Chapter
41030 Output File Formats with Graphics
41031 \begin_inset CommandInset label
41033 name "cha:Output-File-Formats"
41040 \begin_layout Section
41042 \begin_inset Index idx
41045 \begin_layout Plain Layout
41052 \begin_inset Index idx
41055 \begin_layout Plain Layout
41060 \begin_layout Plain Layout
41071 \begin_layout Plain Layout
41086 \begin_layout Standard
41087 This file type has the extension
41088 \begin_inset Quotes eld
41096 \begin_inset Quotes erd
41101 \begin_inset Quotes eld
41105 \begin_inset Quotes erd
41108 (DVI), because it is completely portable; you can move them from one machine
41109 to another without needing to do any sort of conversion.
41110 At the time when this file-format was developed, this was no matter of
41112 DVIs are used for quick previews and as pre-stage for other output formats,
41116 \begin_layout Standard
41117 \begin_inset Note Greyedout
41120 \begin_layout Plain Layout
41125 DVI-files do not contain images; they will only be a linked.
41130 So don't forget this, if you move your
41134 file to another computer.
41135 This property can also slow down your computer when you view the DVI, because
41136 the DVI-viewer has to convert the image in the background to make it visible
41137 when you scroll in the DVI.
41138 So it is recommended that you use PDF for files with many images.
41141 \begin_layout Standard
41142 You can export your document to DVI by using the menu
41144 File\SpecialChar \menuseparator
41145 Export\SpecialChar \menuseparator
41149 You can view your document as DVI via the
41156 \begin_layout Section
41158 \begin_inset CommandInset label
41160 name "sec:PostScript"
41165 \begin_inset Index idx
41168 \begin_layout Plain Layout
41169 File Formats ! PostScript
41175 \begin_inset Index idx
41178 \begin_layout Plain Layout
41183 \begin_layout Plain Layout
41194 \begin_layout Plain Layout
41209 \begin_layout Standard
41210 This file type has the extension
41211 \begin_inset Quotes eld
41219 \begin_inset Quotes erd
41223 PostScript was developed by the company
41227 as a printer language.
41228 The file therefore contains commands that the printer uses to print the
41230 PostScript can be seen as a
41231 \begin_inset Quotes eld
41234 programming language
41235 \begin_inset Quotes erd
41238 ; you can calculate with it and draw diagrams and images
41242 \begin_layout Plain Layout
41243 If you are interested to learn more about this, have a look at the LaTeX-package
41249 \begin_inset CommandInset citation
41261 Due to this ability, the files are often bigger than PDFs.
41264 \begin_layout Standard
41265 PostScript can only contain images in the format
41266 \begin_inset Quotes eld
41269 Encapsulated PostScript
41270 \begin_inset Quotes erd
41273 (EPS, file extension
41274 \begin_inset Quotes eld
41282 \begin_inset Quotes erd
41286 As LyX allows you to use any known image format in your document, it has
41287 to convert images in the background to EPS.
41289 \begin_inset space ~
41293 \begin_inset space ~
41296 images in your document, LyX has to do 50
41297 \begin_inset space ~
41300 conversions whenever you view or export your document.
41301 This will slow down your work flow with LyX drastically.
41302 So if you plan to use PostScript, you can insert your images directly as
41303 EPS to avoid this problem.
41306 \begin_layout Standard
41307 You can export your document to PostScript using the menu
41309 File\SpecialChar \menuseparator
41310 Export\SpecialChar \menuseparator
41314 You can view your document as PostScript via the
41321 \begin_layout Section
41323 \begin_inset Index idx
41326 \begin_layout Plain Layout
41333 \begin_inset Index idx
41336 \begin_layout Plain Layout
41345 \begin_layout Standard
41346 This file type has the extension
41347 \begin_inset Quotes eld
41355 \begin_inset Quotes erd
41360 \begin_inset Quotes eld
41363 Portable Document Format
41364 \begin_inset Quotes erd
41367 (PDF) was developed by
41371 as a derivative of PostScript.
41372 It is more compressed and it uses fewer commands than PostScript.
41374 \begin_inset Quotes eld
41378 \begin_inset Quotes erd
41381 implies, it can be processed at any computer system and the printed output
41382 looks exactly the same.
41385 \begin_layout Standard
41386 PDF can contain images in its own PDF format, in the format
41387 \begin_inset Quotes eld
41390 Joint Photographic Experts Group
41391 \begin_inset Quotes erd
41394 (JPG, file extension
41395 \begin_inset Quotes eld
41403 \begin_inset Quotes erd
41407 \begin_inset Quotes eld
41415 \begin_inset Quotes erd
41418 ), and in the format
41419 \begin_inset Quotes eld
41422 Portable Network Graphics
41423 \begin_inset Quotes erd
41426 (PNG, file extension
41427 \begin_inset Quotes eld
41435 \begin_inset Quotes erd
41439 Nevertheless you can use any other image format, because LyX converts them
41440 in the background to one of these formats.
41441 But as described in the section about PostScript, the image conversion
41442 will slow down your work flow.
41443 So it is recommended that you use images in one of the three mentioned
41447 \begin_layout Standard
41448 You can export your document to PDF via the menu
41450 File\SpecialChar \menuseparator
41453 in three different ways:
41456 \begin_layout Description
41458 \begin_inset space ~
41461 (ps2pdf) This uses the program
41465 that creates a PDF from a PostScript-version of your file.
41466 The PostScript-version is produced by the program
41470 which uses a DVI-version as intermediate step.
41471 So this export variant consists of three conversions.
41474 \begin_layout Description
41476 \begin_inset space ~
41479 (dvipdfm) This uses the program
41483 that converts your file in the background to DVI and in a second step to
41487 \begin_layout Description
41489 \begin_inset space ~
41492 (pdflatex) This uses the program
41496 that converts your file directly to PDF.
41499 \begin_layout Standard
41500 It is recommended that you use
41503 \begin_inset space ~
41512 supports all features of actual PDF-versions, is quick and works stable.
41517 is not under development and therefore a bit outdated.
41520 \begin_layout Standard
41521 You can view your document as PDF via the
41525 menu or by using a toolbar button.
41528 \begin_layout Chapter
41529 List of dvips color names
41530 \begin_inset CommandInset label
41532 name "chap:List-of-dvips-colornames"
41539 \begin_layout Standard
41540 \begin_inset Tabular
41541 <lyxtabular version="3" rows="17" columns="4">
41542 <features rotate="0" tabularvalignment="middle">
41543 <column alignment="left" valignment="top" width="0pt">
41544 <column alignment="left" valignment="top" width="0pt">
41545 <column alignment="left" valignment="top" width="0pt">
41546 <column alignment="left" valignment="top" width="0pt">
41548 <cell alignment="left" valignment="top" usebox="none">
41551 \begin_layout Plain Layout
41555 \begin_layout Plain Layout
41568 \begin_layout Plain Layout
41579 \begin_layout Plain Layout
41591 <cell alignment="left" valignment="top" usebox="none">
41594 \begin_layout Plain Layout
41598 \begin_layout Plain Layout
41611 \begin_layout Plain Layout
41622 \begin_layout Plain Layout
41634 <cell alignment="left" valignment="top" usebox="none">
41637 \begin_layout Plain Layout
41641 \begin_layout Plain Layout
41654 \begin_layout Plain Layout
41665 \begin_layout Plain Layout
41677 <cell alignment="left" valignment="top" usebox="none">
41680 \begin_layout Plain Layout
41684 \begin_layout Plain Layout
41697 \begin_layout Plain Layout
41708 \begin_layout Plain Layout
41722 <cell alignment="center" valignment="top" usebox="none">
41725 \begin_layout Plain Layout
41729 \begin_layout Plain Layout
41742 \begin_layout Plain Layout
41750 \begin_inset Phantom Phantom
41753 \begin_layout Plain Layout
41763 \begin_layout Plain Layout
41775 <cell alignment="center" valignment="top" usebox="none">
41778 \begin_layout Plain Layout
41782 \begin_layout Plain Layout
41795 \begin_layout Plain Layout
41803 \begin_inset Phantom Phantom
41806 \begin_layout Plain Layout
41816 \begin_layout Plain Layout
41828 <cell alignment="center" valignment="top" usebox="none">
41831 \begin_layout Plain Layout
41835 \begin_layout Plain Layout
41848 \begin_layout Plain Layout
41856 \begin_inset Phantom Phantom
41859 \begin_layout Plain Layout
41869 \begin_layout Plain Layout
41881 <cell alignment="center" valignment="top" usebox="none">
41884 \begin_layout Plain Layout
41888 \begin_layout Plain Layout
41901 \begin_layout Plain Layout
41909 \begin_inset Phantom Phantom
41912 \begin_layout Plain Layout
41922 \begin_layout Plain Layout
41936 <cell alignment="left" valignment="top" usebox="none">
41939 \begin_layout Plain Layout
41943 \begin_layout Plain Layout
41956 \begin_layout Plain Layout
41964 \begin_inset Phantom Phantom
41967 \begin_layout Plain Layout
41977 \begin_layout Plain Layout
41989 <cell alignment="left" valignment="top" usebox="none">
41992 \begin_layout Plain Layout
41996 \begin_layout Plain Layout
42009 \begin_layout Plain Layout
42017 \begin_inset Phantom Phantom
42020 \begin_layout Plain Layout
42030 \begin_layout Plain Layout
42042 <cell alignment="left" valignment="top" usebox="none">
42045 \begin_layout Plain Layout
42049 \begin_layout Plain Layout
42062 \begin_layout Plain Layout
42070 \begin_inset Phantom Phantom
42073 \begin_layout Plain Layout
42083 \begin_layout Plain Layout
42095 <cell alignment="left" valignment="top" usebox="none">
42098 \begin_layout Plain Layout
42102 \begin_layout Plain Layout
42115 \begin_layout Plain Layout
42123 \begin_inset Phantom Phantom
42126 \begin_layout Plain Layout
42136 \begin_layout Plain Layout
42150 <cell alignment="left" valignment="top" usebox="none">
42153 \begin_layout Plain Layout
42157 \begin_layout Plain Layout
42170 \begin_layout Plain Layout
42178 \begin_inset Phantom Phantom
42181 \begin_layout Plain Layout
42191 \begin_layout Plain Layout
42203 <cell alignment="left" valignment="top" usebox="none">
42206 \begin_layout Plain Layout
42210 \begin_layout Plain Layout
42223 \begin_layout Plain Layout
42231 \begin_inset Phantom Phantom
42234 \begin_layout Plain Layout
42244 \begin_layout Plain Layout
42256 <cell alignment="left" valignment="top" usebox="none">
42259 \begin_layout Plain Layout
42263 \begin_layout Plain Layout
42276 \begin_layout Plain Layout
42284 \begin_inset Phantom Phantom
42287 \begin_layout Plain Layout
42297 \begin_layout Plain Layout
42309 <cell alignment="left" valignment="top" usebox="none">
42312 \begin_layout Plain Layout
42316 \begin_layout Plain Layout
42329 \begin_layout Plain Layout
42337 \begin_inset Phantom Phantom
42340 \begin_layout Plain Layout
42350 \begin_layout Plain Layout
42364 <cell alignment="left" valignment="top" usebox="none">
42367 \begin_layout Plain Layout
42371 \begin_layout Plain Layout
42384 \begin_layout Plain Layout
42392 \begin_inset Phantom Phantom
42395 \begin_layout Plain Layout
42405 \begin_layout Plain Layout
42417 <cell alignment="left" valignment="top" usebox="none">
42420 \begin_layout Plain Layout
42424 \begin_layout Plain Layout
42437 \begin_layout Plain Layout
42445 \begin_inset Phantom Phantom
42448 \begin_layout Plain Layout
42458 \begin_layout Plain Layout
42470 <cell alignment="left" valignment="top" usebox="none">
42473 \begin_layout Plain Layout
42477 \begin_layout Plain Layout
42490 \begin_layout Plain Layout
42498 \begin_inset Phantom Phantom
42501 \begin_layout Plain Layout
42511 \begin_layout Plain Layout
42523 <cell alignment="left" valignment="top" usebox="none">
42526 \begin_layout Plain Layout
42530 \begin_layout Plain Layout
42543 \begin_layout Plain Layout
42551 \begin_inset Phantom Phantom
42554 \begin_layout Plain Layout
42564 \begin_layout Plain Layout
42578 <cell alignment="left" valignment="top" usebox="none">
42581 \begin_layout Plain Layout
42585 \begin_layout Plain Layout
42598 \begin_layout Plain Layout
42606 \begin_inset Phantom Phantom
42609 \begin_layout Plain Layout
42619 \begin_layout Plain Layout
42631 <cell alignment="left" valignment="top" usebox="none">
42634 \begin_layout Plain Layout
42638 \begin_layout Plain Layout
42651 \begin_layout Plain Layout
42659 \begin_inset Phantom Phantom
42662 \begin_layout Plain Layout
42672 \begin_layout Plain Layout
42684 <cell alignment="left" valignment="top" usebox="none">
42687 \begin_layout Plain Layout
42691 \begin_layout Plain Layout
42704 \begin_layout Plain Layout
42712 \begin_inset Phantom Phantom
42715 \begin_layout Plain Layout
42725 \begin_layout Plain Layout
42737 <cell alignment="left" valignment="top" usebox="none">
42740 \begin_layout Plain Layout
42744 \begin_layout Plain Layout
42757 \begin_layout Plain Layout
42765 \begin_inset Phantom Phantom
42768 \begin_layout Plain Layout
42778 \begin_layout Plain Layout
42792 <cell alignment="center" valignment="top" usebox="none">
42795 \begin_layout Plain Layout
42799 \begin_layout Plain Layout
42812 \begin_layout Plain Layout
42820 \begin_inset Phantom Phantom
42823 \begin_layout Plain Layout
42833 \begin_layout Plain Layout
42845 <cell alignment="center" valignment="top" usebox="none">
42848 \begin_layout Plain Layout
42852 \begin_layout Plain Layout
42865 \begin_layout Plain Layout
42873 \begin_inset Phantom Phantom
42876 \begin_layout Plain Layout
42886 \begin_layout Plain Layout
42898 <cell alignment="center" valignment="top" usebox="none">
42901 \begin_layout Plain Layout
42905 \begin_layout Plain Layout
42918 \begin_layout Plain Layout
42926 \begin_inset Phantom Phantom
42929 \begin_layout Plain Layout
42939 \begin_layout Plain Layout
42951 <cell alignment="center" valignment="top" usebox="none">
42954 \begin_layout Plain Layout
42958 \begin_layout Plain Layout
42971 \begin_layout Plain Layout
42979 \begin_inset Phantom Phantom
42982 \begin_layout Plain Layout
42992 \begin_layout Plain Layout
43006 <cell alignment="left" valignment="top" usebox="none">
43009 \begin_layout Plain Layout
43013 \begin_layout Plain Layout
43026 \begin_layout Plain Layout
43034 \begin_inset Phantom Phantom
43037 \begin_layout Plain Layout
43047 \begin_layout Plain Layout
43059 <cell alignment="left" valignment="top" usebox="none">
43062 \begin_layout Plain Layout
43066 \begin_layout Plain Layout
43079 \begin_layout Plain Layout
43087 \begin_inset Phantom Phantom
43090 \begin_layout Plain Layout
43100 \begin_layout Plain Layout
43112 <cell alignment="left" valignment="top" usebox="none">
43115 \begin_layout Plain Layout
43119 \begin_layout Plain Layout
43132 \begin_layout Plain Layout
43140 \begin_inset Phantom Phantom
43143 \begin_layout Plain Layout
43153 \begin_layout Plain Layout
43165 <cell alignment="left" valignment="top" usebox="none">
43168 \begin_layout Plain Layout
43172 \begin_layout Plain Layout
43185 \begin_layout Plain Layout
43193 \begin_inset Phantom Phantom
43196 \begin_layout Plain Layout
43206 \begin_layout Plain Layout
43220 <cell alignment="left" valignment="top" usebox="none">
43223 \begin_layout Plain Layout
43227 \begin_layout Plain Layout
43240 \begin_layout Plain Layout
43248 \begin_inset Phantom Phantom
43251 \begin_layout Plain Layout
43261 \begin_layout Plain Layout
43273 <cell alignment="left" valignment="top" usebox="none">
43276 \begin_layout Plain Layout
43280 \begin_layout Plain Layout
43293 \begin_layout Plain Layout
43301 \begin_inset Phantom Phantom
43304 \begin_layout Plain Layout
43314 \begin_layout Plain Layout
43326 <cell alignment="left" valignment="top" usebox="none">
43329 \begin_layout Plain Layout
43333 \begin_layout Plain Layout
43346 \begin_layout Plain Layout
43354 \begin_inset Phantom Phantom
43357 \begin_layout Plain Layout
43367 \begin_layout Plain Layout
43379 <cell alignment="left" valignment="top" usebox="none">
43382 \begin_layout Plain Layout
43386 \begin_layout Plain Layout
43399 \begin_layout Plain Layout
43407 \begin_inset Phantom Phantom
43410 \begin_layout Plain Layout
43420 \begin_layout Plain Layout
43434 <cell alignment="left" valignment="top" usebox="none">
43437 \begin_layout Plain Layout
43441 \begin_layout Plain Layout
43454 \begin_layout Plain Layout
43462 \begin_inset Phantom Phantom
43465 \begin_layout Plain Layout
43475 \begin_layout Plain Layout
43487 <cell alignment="left" valignment="top" usebox="none">
43490 \begin_layout Plain Layout
43494 \begin_layout Plain Layout
43507 \begin_layout Plain Layout
43515 \begin_inset Phantom Phantom
43518 \begin_layout Plain Layout
43528 \begin_layout Plain Layout
43540 <cell alignment="left" valignment="top" usebox="none">
43543 \begin_layout Plain Layout
43547 \begin_layout Plain Layout
43560 \begin_layout Plain Layout
43568 \begin_inset Phantom Phantom
43571 \begin_layout Plain Layout
43581 \begin_layout Plain Layout
43593 <cell alignment="left" valignment="top" usebox="none">
43596 \begin_layout Plain Layout
43600 \begin_layout Plain Layout
43613 \begin_layout Plain Layout
43621 \begin_inset Phantom Phantom
43624 \begin_layout Plain Layout
43634 \begin_layout Plain Layout
43648 <cell alignment="left" valignment="top" usebox="none">
43651 \begin_layout Plain Layout
43655 \begin_layout Plain Layout
43668 \begin_layout Plain Layout
43676 \begin_inset Phantom Phantom
43679 \begin_layout Plain Layout
43689 \begin_layout Plain Layout
43701 <cell alignment="left" valignment="top" usebox="none">
43704 \begin_layout Plain Layout
43708 \begin_layout Plain Layout
43721 \begin_layout Plain Layout
43729 \begin_inset Phantom Phantom
43732 \begin_layout Plain Layout
43742 \begin_layout Plain Layout
43754 <cell alignment="left" valignment="top" usebox="none">
43757 \begin_layout Plain Layout
43761 \begin_layout Plain Layout
43774 \begin_layout Plain Layout
43782 \begin_inset Phantom Phantom
43785 \begin_layout Plain Layout
43795 \begin_layout Plain Layout
43807 <cell alignment="left" valignment="top" usebox="none">
43810 \begin_layout Plain Layout
43814 \begin_layout Plain Layout
43827 \begin_layout Plain Layout
43835 \begin_inset Phantom Phantom
43838 \begin_layout Plain Layout
43848 \begin_layout Plain Layout
43862 <cell alignment="left" valignment="top" usebox="none">
43865 \begin_layout Plain Layout
43869 \begin_layout Plain Layout
43882 \begin_layout Plain Layout
43890 \begin_inset Phantom Phantom
43893 \begin_layout Plain Layout
43903 \begin_layout Plain Layout
43915 <cell alignment="left" valignment="top" usebox="none">
43918 \begin_layout Plain Layout
43922 \begin_layout Plain Layout
43935 \begin_layout Plain Layout
43943 \begin_inset Phantom Phantom
43946 \begin_layout Plain Layout
43956 \begin_layout Plain Layout
43968 <cell alignment="left" valignment="top" usebox="none">
43971 \begin_layout Plain Layout
43975 \begin_layout Plain Layout
43988 \begin_layout Plain Layout
43996 \begin_inset Phantom Phantom
43999 \begin_layout Plain Layout
44009 \begin_layout Plain Layout
44021 <cell alignment="left" valignment="top" usebox="none">
44024 \begin_layout Plain Layout
44028 \begin_layout Plain Layout
44041 \begin_layout Plain Layout
44049 \begin_inset Phantom Phantom
44052 \begin_layout Plain Layout
44062 \begin_layout Plain Layout
44076 <cell alignment="left" valignment="top" usebox="none">
44079 \begin_layout Plain Layout
44083 \begin_layout Plain Layout
44096 \begin_layout Plain Layout
44104 \begin_inset Phantom Phantom
44107 \begin_layout Plain Layout
44117 \begin_layout Plain Layout
44129 <cell alignment="left" valignment="top" usebox="none">
44132 \begin_layout Plain Layout
44136 \begin_layout Plain Layout
44149 \begin_layout Plain Layout
44157 \begin_inset Phantom Phantom
44160 \begin_layout Plain Layout
44170 \begin_layout Plain Layout
44182 <cell alignment="left" valignment="top" usebox="none">
44185 \begin_layout Plain Layout
44189 \begin_layout Plain Layout
44202 \begin_layout Plain Layout
44210 \begin_inset Phantom Phantom
44213 \begin_layout Plain Layout
44223 \begin_layout Plain Layout
44235 <cell alignment="left" valignment="top" usebox="none">
44238 \begin_layout Plain Layout
44242 \begin_layout Plain Layout
44255 \begin_layout Plain Layout
44263 \begin_inset Phantom Phantom
44266 \begin_layout Plain Layout
44276 \begin_layout Plain Layout
44290 <cell alignment="left" valignment="top" usebox="none">
44293 \begin_layout Plain Layout
44297 \begin_layout Plain Layout
44310 \begin_layout Plain Layout
44318 \begin_inset Phantom Phantom
44321 \begin_layout Plain Layout
44331 \begin_layout Plain Layout
44343 <cell alignment="left" valignment="top" usebox="none">
44346 \begin_layout Plain Layout
44350 \begin_layout Plain Layout
44363 \begin_layout Plain Layout
44371 \begin_inset Phantom Phantom
44374 \begin_layout Plain Layout
44384 \begin_layout Plain Layout
44396 <cell alignment="left" valignment="top" usebox="none">
44399 \begin_layout Plain Layout
44403 \begin_layout Plain Layout
44416 \begin_layout Plain Layout
44424 \begin_inset Phantom Phantom
44427 \begin_layout Plain Layout
44437 \begin_layout Plain Layout
44449 <cell alignment="left" valignment="top" usebox="none">
44452 \begin_layout Plain Layout
44456 \begin_layout Plain Layout
44469 \begin_layout Plain Layout
44477 \begin_inset Phantom Phantom
44480 \begin_layout Plain Layout
44490 \begin_layout Plain Layout
44504 <cell alignment="left" valignment="top" usebox="none">
44507 \begin_layout Plain Layout
44511 \begin_layout Plain Layout
44524 \begin_layout Plain Layout
44532 \begin_inset Phantom Phantom
44535 \begin_layout Plain Layout
44545 \begin_layout Plain Layout
44557 <cell alignment="left" valignment="top" usebox="none">
44560 \begin_layout Plain Layout
44564 \begin_layout Plain Layout
44577 \begin_layout Plain Layout
44585 \begin_inset Phantom Phantom
44588 \begin_layout Plain Layout
44598 \begin_layout Plain Layout
44610 <cell alignment="left" valignment="top" usebox="none">
44613 \begin_layout Plain Layout
44617 \begin_layout Plain Layout
44630 \begin_layout Plain Layout
44638 \begin_inset Phantom Phantom
44641 \begin_layout Plain Layout
44651 \begin_layout Plain Layout
44663 <cell alignment="left" valignment="top" usebox="none">
44666 \begin_layout Plain Layout
44670 \begin_layout Plain Layout
44683 \begin_layout Plain Layout
44691 \begin_inset Phantom Phantom
44694 \begin_layout Plain Layout
44704 \begin_layout Plain Layout
44718 <cell alignment="left" valignment="top" usebox="none">
44721 \begin_layout Plain Layout
44725 \begin_layout Plain Layout
44738 \begin_layout Plain Layout
44746 \begin_inset Phantom Phantom
44749 \begin_layout Plain Layout
44759 \begin_layout Plain Layout
44771 <cell alignment="left" valignment="top" usebox="none">
44774 \begin_layout Plain Layout
44778 \begin_layout Plain Layout
44791 \begin_layout Plain Layout
44799 \begin_inset Phantom Phantom
44802 \begin_layout Plain Layout
44812 \begin_layout Plain Layout
44824 <cell alignment="left" valignment="top" usebox="none">
44827 \begin_layout Plain Layout
44831 \begin_layout Plain Layout
44844 \begin_layout Plain Layout
44852 \begin_inset Phantom Phantom
44855 \begin_layout Plain Layout
44865 \begin_layout Plain Layout
44877 <cell alignment="left" valignment="top" usebox="none">
44880 \begin_layout Plain Layout
44884 \begin_layout Plain Layout
44897 \begin_layout Plain Layout
44905 \begin_inset Phantom Phantom
44908 \begin_layout Plain Layout
44918 \begin_layout Plain Layout
44932 <cell alignment="left" valignment="top" usebox="none">
44935 \begin_layout Plain Layout
44939 \begin_layout Plain Layout
44952 \begin_layout Plain Layout
44960 \begin_inset Phantom Phantom
44963 \begin_layout Plain Layout
44973 \begin_layout Plain Layout
44985 <cell alignment="left" valignment="top" usebox="none">
44988 \begin_layout Plain Layout
44994 <cell alignment="left" valignment="top" usebox="none">
44997 \begin_layout Plain Layout
45003 <cell alignment="left" valignment="top" usebox="none">
45006 \begin_layout Plain Layout
45020 \begin_layout Chapter
45021 Explanation of Equation
45022 \begin_inset space ~
45026 \begin_inset CommandInset ref
45033 \begin_inset CommandInset label
45035 name "cha:Explanation-of-Equation"
45042 \begin_layout Standard
45043 We can calculate the total width of
45048 \begin_inset Formula $W_{\mathrm{tot\,n}}$
45052 \begin_inset Formula
45054 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
45060 \begin_inset Formula $W_{g\,n}$
45063 is the given width of all cells,
45069 is the LaTeX-length between the cell text and the cell border (its default
45071 \begin_inset space \thinspace{}
45081 is the thickness of the cell border line, the default is 0.4
45082 \begin_inset space \thinspace{}
45088 \begin_layout Standard
45090 \begin_inset space ~
45094 \begin_inset CommandInset ref
45096 reference "eq:Wtot_n"
45100 , the total width of a multicolumn
45101 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45105 \begin_inset Formula
45107 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45115 \begin_layout Standard
45116 By setting equation
45117 \begin_inset space ~
45121 \begin_inset CommandInset ref
45123 reference "eq:Wtot_n"
45128 \begin_inset CommandInset ref
45130 reference "eq:Wtot_mult"
45134 equal we can calculate the needed given width
45135 \begin_inset Formula $W_{g\,n}$
45142 columns are spanned, so that each column has a total width of
45143 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45147 \begin_inset Formula
45149 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45157 \begin_layout Bibliography
45158 \begin_inset CommandInset bibitem
45159 LatexCommand bibitem
45160 key "latexcompanion"
45164 Frank Mittelbach and Michel Goossens:
45166 The LaTeX Companion Second Edition.
45169 Addison-Wesley, 2004
45172 \begin_layout Bibliography
45173 \begin_inset CommandInset bibitem
45174 LatexCommand bibitem
45179 Helmut Kopka and Patrick W.
45182 A Guide to LaTeX Fourth Edition.
45185 Addison-Wesley, 2003
45188 \begin_layout Bibliography
45189 \begin_inset CommandInset bibitem
45190 LatexCommand bibitem
45197 LaTeX: A Document Preparation System.
45200 Addison-Wesley, second edition, 1994
45203 \begin_layout Bibliography
45204 \begin_inset CommandInset bibitem
45205 LatexCommand bibitem
45210 Documentation of the LaTeX-package
45213 \begin_inset CommandInset href
45216 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45223 \begin_inset Index idx
45226 \begin_layout Plain Layout
45227 LaTeX-packages ! arydshln
45235 \begin_layout Bibliography
45236 \begin_inset CommandInset bibitem
45237 LatexCommand bibitem
45242 Documentation of the LaTeX-package
45245 \begin_inset CommandInset href
45248 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45255 \begin_inset Index idx
45258 \begin_layout Plain Layout
45259 LaTeX-packages ! booktabs
45267 \begin_layout Bibliography
45268 \begin_inset CommandInset bibitem
45269 LatexCommand bibitem
45274 Documentation of the LaTeX-package
45277 \begin_inset CommandInset href
45280 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45287 \begin_inset Index idx
45290 \begin_layout Plain Layout
45291 LaTeX-packages ! caption
45299 \begin_layout Bibliography
45300 \begin_inset CommandInset bibitem
45301 LatexCommand bibitem
45306 Documentation of the LaTeX-package
45309 \begin_inset CommandInset href
45312 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45319 \begin_inset Index idx
45322 \begin_layout Plain Layout
45323 LaTeX-packages ! diagbox
45331 \begin_layout Bibliography
45332 \begin_inset CommandInset bibitem
45333 LatexCommand bibitem
45338 Documentation of the LaTeX-package
45341 \begin_inset CommandInset href
45344 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45351 \begin_inset Index idx
45354 \begin_layout Plain Layout
45355 LaTeX-packages ! endfloat
45363 \begin_layout Bibliography
45364 \begin_inset CommandInset bibitem
45365 LatexCommand bibitem
45370 Documentation of the LaTeX-package
45373 \begin_inset CommandInset href
45376 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45383 \begin_inset Index idx
45386 \begin_layout Plain Layout
45387 LaTeX-packages ! footmisc
45395 \begin_layout Bibliography
45396 \begin_inset CommandInset bibitem
45397 LatexCommand bibitem
45402 Documentation of the LaTeX-package
45405 \begin_inset CommandInset href
45408 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45415 \begin_inset Index idx
45418 \begin_layout Plain Layout
45419 LaTeX-packages ! hyperref
45427 \begin_layout Bibliography
45428 \begin_inset CommandInset bibitem
45429 LatexCommand bibitem
45434 Documentation of the LaTeX-package
45437 \begin_inset CommandInset href
45440 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45447 \begin_inset Index idx
45450 \begin_layout Plain Layout
45451 LaTeX-packages ! hyperref
45459 \begin_layout Bibliography
45460 \begin_inset CommandInset bibitem
45461 LatexCommand bibitem
45466 Documentation of the LaTeX-package
45469 \begin_inset CommandInset href
45472 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45479 \begin_inset Index idx
45482 \begin_layout Plain Layout
45483 LaTeX-packages ! KOMA-Script
45491 \begin_layout Bibliography
45492 \begin_inset CommandInset bibitem
45493 LatexCommand bibitem
45498 Documentation of the LaTeX-package
45501 \begin_inset CommandInset href
45504 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45511 \begin_inset CommandInset href
45514 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45519 \begin_inset Index idx
45522 \begin_layout Plain Layout
45523 LaTeX-packages ! lettrine
45531 \begin_layout Bibliography
45532 \begin_inset CommandInset bibitem
45533 LatexCommand bibitem
45538 Documentation of the LaTeX-package
45541 \begin_inset CommandInset href
45544 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45551 \begin_inset Index idx
45554 \begin_layout Plain Layout
45555 LaTeX-packages ! listings
45563 \begin_layout Bibliography
45564 \begin_inset CommandInset bibitem
45565 LatexCommand bibitem
45570 Documentation of the LaTeX-package
45573 \begin_inset CommandInset href
45576 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45583 \begin_inset Index idx
45586 \begin_layout Plain Layout
45587 LaTeX-packages ! marginnote
45595 \begin_layout Bibliography
45596 \begin_inset CommandInset bibitem
45597 LatexCommand bibitem
45602 Documentation of the LaTeX-package
45605 \begin_inset CommandInset href
45608 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45615 \begin_inset Index idx
45618 \begin_layout Plain Layout
45619 LaTeX-packages ! pdfpages
45627 \begin_layout Bibliography
45628 \begin_inset CommandInset bibitem
45629 LatexCommand bibitem
45634 Documentation of the LaTeX-package
45637 \begin_inset CommandInset href
45640 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45647 \begin_inset Index idx
45650 \begin_layout Plain Layout
45651 LaTeX-packages ! prettyref
45659 \begin_layout Bibliography
45660 \begin_inset CommandInset bibitem
45661 LatexCommand bibitem
45666 Web page of the LaTeX-package
45669 \begin_inset CommandInset href
45672 target "http://tug.org/PSTricks/"
45679 \begin_inset Index idx
45682 \begin_layout Plain Layout
45683 LaTeX-packages ! PSTricks
45691 \begin_layout Bibliography
45692 \begin_inset CommandInset bibitem
45693 LatexCommand bibitem
45698 Documentation of the LaTeX-package
45701 \begin_inset CommandInset href
45704 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45711 \begin_inset Index idx
45714 \begin_layout Plain Layout
45715 LaTeX-packages ! refstyle
45723 \begin_layout Bibliography
45724 \begin_inset CommandInset bibitem
45725 LatexCommand bibitem
45730 Documentation of the LaTeX-package
45733 \begin_inset CommandInset href
45736 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45743 \begin_inset Index idx
45746 \begin_layout Plain Layout
45747 LaTeX-packages ! sidecap
45755 \begin_layout Bibliography
45756 \begin_inset CommandInset bibitem
45757 LatexCommand bibitem
45763 \begin_inset CommandInset href
45766 target "http://wiki.lyx.org/LyX/NewInLyX20"
45770 about new features in
45777 \begin_layout Standard
45778 \begin_inset CommandInset index_print
45779 LatexCommand printindex