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 fleqn,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(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[width](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 width is 0.03
15331 \begin_inset space \thinspace{}
15335 Startcol is the number of the column where the line starts and endcol the
15336 column number where the line ends.
15337 The endcol always needs to be specified, also when the line should span
15339 The optional parameter trim could be either
15347 where the trimwidth is also optional.
15348 Using for example the parameter
15352 means that the line is trimmed from its left end by 2
15353 \begin_inset space \thinspace{}
15357 If you don't specify the trimwidth the lines are trimmed by the default
15359 \begin_inset space \thinspace{}
15365 \begin_layout Standard
15366 \begin_inset VSpace bigskip
15370 \begin_inset space ~
15374 \begin_inset CommandInset ref
15376 reference "tab:Example-booktabs-table"
15380 was created using the commands
15383 \begin_layout Standard
15393 \begin_layout Standard
15394 at the beginning of the second row and
15397 \begin_layout Standard
15402 cmidrule(l{10pt}){1-1}
15405 \begin_layout Standard
15409 \begin_layout Standard
15410 \begin_inset VSpace bigskip
15416 \begin_layout Standard
15417 You might want to have overlapping
15424 \begin_inset space ~
15428 \begin_inset CommandInset ref
15430 reference "tab:Special-booktabs-table"
15435 This can be achieved with the TeX-Code command
15438 \begin_layout Standard
15446 \begin_layout Standard
15447 The command that was used for the second row of Table
15448 \begin_inset space ~
15452 \begin_inset CommandInset ref
15454 reference "tab:Special-booktabs-table"
15461 \begin_layout Standard
15475 \begin_layout Standard
15476 The command for the sixth row is
15479 \begin_layout Standard
15491 \begin_layout Standard
15492 \begin_inset VSpace bigskip
15498 \begin_layout Standard
15499 If you are in any way not satisfied with the border line spacing, you can
15500 use the following command to produce lines that span over all table columns
15505 \begin_layout Standard
15510 specialrule{width}{space above}{space below}
15513 \begin_layout Standard
15514 For more information about these features, refer to the manual of the LaTeX-pack
15520 \begin_inset CommandInset citation
15527 \begin_inset Index idx
15530 \begin_layout Plain Layout
15531 LaTeX-packages ! booktabs
15539 \begin_layout Standard
15540 \begin_inset Float table
15546 \begin_layout Plain Layout
15547 \begin_inset Caption Standard
15549 \begin_layout Plain Layout
15550 \begin_inset CommandInset label
15552 name "tab:Special-booktabs-table"
15556 Special booktabs-table
15564 \begin_layout Plain Layout
15566 \begin_inset Tabular
15567 <lyxtabular version="3" rows="8" columns="4">
15568 <features rotate="0" booktabs="true" tabularvalignment="middle">
15569 <column alignment="center" valignment="top">
15570 <column alignment="center" valignment="top">
15571 <column alignment="center" valignment="top">
15572 <column alignment="center" valignment="top">
15574 <cell alignment="center" valignment="top" topline="true" usebox="none">
15577 \begin_layout Plain Layout
15583 <cell alignment="center" valignment="top" topline="true" usebox="none">
15586 \begin_layout Plain Layout
15588 \begin_inset space \thinspace{}
15596 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15599 \begin_layout Plain Layout
15601 \begin_inset space \thinspace{}
15609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15612 \begin_layout Plain Layout
15620 <cell alignment="center" valignment="top" usebox="none">
15623 \begin_layout Plain Layout
15627 \begin_layout Plain Layout
15640 \begin_layout Plain Layout
15653 \begin_layout Plain Layout
15666 \begin_layout Plain Layout
15675 Detector thickness in µm
15680 <cell alignment="center" valignment="top" usebox="none">
15683 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" usebox="none">
15692 \begin_layout Plain Layout
15698 <cell alignment="center" valignment="top" usebox="none">
15701 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" usebox="none">
15712 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" usebox="none">
15730 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" usebox="none">
15739 \begin_layout Plain Layout
15746 <row topspace="default">
15747 <cell alignment="center" valignment="top" usebox="none">
15750 \begin_layout Plain Layout
15751 Spatial resolution in µm
15756 <cell alignment="center" valignment="top" usebox="none">
15759 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" usebox="none">
15768 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" usebox="none">
15777 \begin_layout Plain Layout
15784 <row topspace="default">
15785 <cell alignment="center" valignment="top" usebox="none">
15788 \begin_layout Plain Layout
15790 \begin_inset Formula $f_{\mathrm{max}}$
15798 <cell alignment="center" valignment="top" usebox="none">
15801 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15816 <cell alignment="center" valignment="top" usebox="none">
15819 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" topline="true" usebox="none">
15830 \begin_layout Plain Layout
15834 \begin_layout Plain Layout
15847 \begin_layout Plain Layout
15856 LSF-spatial resolution
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" topline="true" usebox="none">
15873 \begin_layout Plain Layout
15879 <cell alignment="center" valignment="top" topline="true" usebox="none">
15882 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" usebox="none">
15902 \begin_layout Plain Layout
15908 <cell alignment="center" valignment="top" usebox="none">
15911 \begin_layout Plain Layout
15917 <cell alignment="center" valignment="top" usebox="none">
15920 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15940 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15949 \begin_layout Plain Layout
15955 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15958 \begin_layout Plain Layout
15977 \begin_layout Section
15978 Vertical Table Alignment
15979 \begin_inset Index idx
15982 \begin_layout Plain Layout
15991 \begin_layout Standard
15992 To align tables vertically in a text line, the table must be inside a box.
15993 The box can then be vertically aligned as described in section
15994 \begin_inset space ~
15998 \begin_inset CommandInset ref
16000 reference "sec:Box-Dialog"
16007 \begin_layout Standard
16008 In the following example the tables are inside a minipage
16012 \begin_layout Plain Layout
16013 Minipages are described in section
16014 \begin_inset space ~
16018 \begin_inset CommandInset ref
16020 reference "sec:Minipages"
16029 box that has a width of 15
16030 \begin_inset space \thinspace{}
16036 \begin_layout Itemize
16038 \begin_inset Box Frameless
16048 height_special "totalheight"
16051 \begin_layout Plain Layout
16052 \begin_inset Tabular
16053 <lyxtabular version="3" rows="3" columns="3">
16054 <features rotate="0" tabularvalignment="middle">
16055 <column alignment="center" valignment="top">
16056 <column alignment="center" valignment="top">
16057 <column alignment="center" valignment="top">
16059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16062 \begin_layout Plain Layout
16068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16071 \begin_layout Plain Layout
16077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16080 \begin_layout Plain Layout
16088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16091 \begin_layout Plain Layout
16097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16100 \begin_layout Plain Layout
16106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16109 \begin_layout Plain Layout
16117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16120 \begin_layout Plain Layout
16126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16129 \begin_layout Plain Layout
16135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16138 \begin_layout Plain Layout
16158 \begin_layout Plain Layout
16170 \begin_inset Box Frameless
16180 height_special "totalheight"
16183 \begin_layout Plain Layout
16184 \begin_inset Tabular
16185 <lyxtabular version="3" rows="3" columns="3">
16186 <features rotate="0" tabularvalignment="middle">
16187 <column alignment="center" valignment="top">
16188 <column alignment="center" valignment="top">
16189 <column alignment="center" valignment="top">
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16194 \begin_layout Plain Layout
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16203 \begin_layout Plain Layout
16209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16212 \begin_layout Plain Layout
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16223 \begin_layout Plain Layout
16229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16232 \begin_layout Plain Layout
16238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16241 \begin_layout Plain Layout
16249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16252 \begin_layout Plain Layout
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16261 \begin_layout Plain Layout
16267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16270 \begin_layout Plain Layout
16290 \begin_layout Plain Layout
16300 \begin_layout Itemize
16302 \begin_inset Box Frameless
16312 height_special "totalheight"
16315 \begin_layout Plain Layout
16316 \begin_inset Tabular
16317 <lyxtabular version="3" rows="3" columns="3">
16318 <features rotate="0" tabularvalignment="middle">
16319 <column alignment="center" valignment="top">
16320 <column alignment="center" valignment="top">
16321 <column alignment="center" valignment="top">
16323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16326 \begin_layout Plain Layout
16332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16335 \begin_layout Plain Layout
16341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16344 \begin_layout Plain Layout
16352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16355 \begin_layout Plain Layout
16361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16364 \begin_layout Plain Layout
16370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16373 \begin_layout Plain Layout
16381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16384 \begin_layout Plain Layout
16390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16393 \begin_layout Plain Layout
16399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16402 \begin_layout Plain Layout
16421 \begin_layout Itemize
16423 \begin_inset Box Frameless
16433 height_special "totalheight"
16436 \begin_layout Plain Layout
16437 \begin_inset Tabular
16438 <lyxtabular version="3" rows="3" columns="3">
16439 <features rotate="0" tabularvalignment="middle">
16440 <column alignment="center" valignment="top">
16441 <column alignment="center" valignment="top">
16442 <column alignment="center" valignment="top">
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16476 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16485 \begin_layout Plain Layout
16491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16494 \begin_layout Plain Layout
16502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16505 \begin_layout Plain Layout
16511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16514 \begin_layout Plain Layout
16520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16523 \begin_layout Plain Layout
16543 \begin_layout Plain Layout
16555 \begin_inset Box Frameless
16565 height_special "totalheight"
16568 \begin_layout Plain Layout
16569 \begin_inset Tabular
16570 <lyxtabular version="3" rows="3" columns="3">
16571 <features rotate="0" tabularvalignment="middle">
16572 <column alignment="center" valignment="top">
16573 <column alignment="center" valignment="top">
16574 <column alignment="center" valignment="top">
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16579 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16588 \begin_layout Plain Layout
16594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16597 \begin_layout Plain Layout
16605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16608 \begin_layout Plain Layout
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16617 \begin_layout Plain Layout
16623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16626 \begin_layout Plain Layout
16634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16637 \begin_layout Plain Layout
16643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16646 \begin_layout Plain Layout
16652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16655 \begin_layout Plain Layout
16675 \begin_layout Plain Layout
16685 \begin_layout Standard
16686 As you will see, the content of the first and last table row is not correctly
16688 To get this alignment, the minipage box must be set into a raisebox
16692 \begin_layout Plain Layout
16693 Raiseboxes are described in section
16694 \begin_inset space ~
16698 \begin_inset CommandInset ref
16700 reference "sub:Vertical-Alignment"
16710 In the example above the second table in the first item is aligned using
16711 the TeX-Code-command
16714 \begin_layout Standard
16724 \begin_layout Standard
16726 After the box the closing brace
16730 is inserted as TeX-Code.
16731 For the second table in the last item the command
16734 \begin_layout Standard
16744 \begin_layout Standard
16748 \begin_layout Standard
16749 \begin_inset Note Greyedout
16752 \begin_layout Plain Layout
16757 The alignment of the table row content to the surrounding text line is
16759 The required value for the
16765 command for this alignment depends on the document font, the font size,
16766 and the table line thickness.
16774 \begin_layout Section
16776 \begin_inset CommandInset label
16778 name "sec:Colored-Tables"
16783 \begin_inset Index idx
16786 \begin_layout Plain Layout
16795 \begin_layout Subsection
16797 \begin_inset Index idx
16800 \begin_layout Plain Layout
16801 Table Color ! for Cells
16807 \begin_inset Index idx
16810 \begin_layout Plain Layout
16811 Color ! for Table Cells
16819 \begin_layout Standard
16820 \begin_inset Float table
16826 \begin_layout Plain Layout
16827 \begin_inset Caption Standard
16829 \begin_layout Plain Layout
16830 \begin_inset CommandInset label
16832 name "tab:Table-colored-without"
16836 Table colored without using the package
16841 \begin_inset Argument 1
16844 \begin_layout Plain Layout
16845 Table without colortbl
16858 \begin_layout Plain Layout
16860 \begin_inset Tabular
16861 <lyxtabular version="3" rows="3" columns="3">
16862 <features rotate="0" tabularvalignment="middle">
16863 <column alignment="center" valignment="top">
16864 <column alignment="center" valignment="top">
16865 <column alignment="center" valignment="top">
16867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16870 \begin_layout Plain Layout
16878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16881 \begin_layout Plain Layout
16889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16892 \begin_layout Plain Layout
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16905 \begin_layout Plain Layout
16913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16916 \begin_layout Plain Layout
16924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16927 \begin_layout Plain Layout
16937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16940 \begin_layout Plain Layout
16948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16951 \begin_layout Plain Layout
16959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16962 \begin_layout Plain Layout
16983 \begin_layout Standard
16984 If you only need colored text, mark the cells and choose a color in the
16988 \begin_inset space ~
16993 dialog (toolbar button
16996 arg "dialog-show character"
17000 This was used to create Table
17001 \begin_inset space ~
17005 \begin_inset CommandInset ref
17007 reference "tab:Table-colored-without"
17012 In any other case you have to use the LaTeX-package
17017 \begin_inset Index idx
17020 \begin_layout Plain Layout
17021 LaTeX-packages ! colortbl
17029 \begin_layout Standard
17033 \begin_layout Plain Layout
17043 \begin_inset Note Note
17046 \begin_layout Plain Layout
17047 The following section part will only be displayed when the LaTeX-package
17060 \begin_layout Standard
17061 To create colored tables,
17065 must be loaded in the preamble with the line
17068 \begin_layout Standard
17073 usepackage{colortbl}
17076 \begin_layout Standard
17077 The color of a column is adjusted with the command
17080 \begin_layout Standard
17085 columncolor{name of color}
17088 \begin_layout Standard
17094 More about the command
17098 is contained in section
17099 \begin_inset space ~
17103 \begin_inset CommandInset ref
17105 reference "sub:Multicolumn-Calculations"
17112 \begin_layout Standard
17113 The following color names are predefined:
17116 \begin_layout Standard
17150 \begin_layout Standard
17151 \begin_inset VSpace medskip
17157 \begin_layout Standard
17158 If you add the options
17161 \begin_layout Standard
17164 usenames,dvipsnames
17167 \begin_layout Standard
17168 to the document class options in the document settings, you can additionally
17170 \begin_inset space ~
17174 These colors are listed in appendix
17175 \begin_inset space ~
17179 \begin_inset CommandInset ref
17181 reference "chap:List-of-dvips-colornames"
17186 One of these colors,
17190 , is used as example in Table
17191 \begin_inset space ~
17195 \begin_inset CommandInset ref
17197 reference "tab:Table-colored-using"
17204 \begin_layout Standard
17205 \begin_inset VSpace medskip
17211 \begin_layout Standard
17212 You can also define your own color with the command
17215 \begin_layout Standard
17220 definecolor{color name}{color model}{color values}
17223 \begin_layout Standard
17224 The color model can be
17227 \begin_layout Labeling
17228 \labelwidthstring 00.00.0000
17229 cmyk: cyan, magenta, yellow, black
17232 \begin_layout Labeling
17233 \labelwidthstring 00.00.0000
17234 rgb: red, green blue
17237 \begin_layout Labeling
17238 \labelwidthstring 00.00.0000
17242 \begin_layout Standard
17243 and the color values are comma separated numbers between 0 and 1 describing
17244 the factor for the corresponding color of the color model.
17247 \begin_layout Standard
17249 \begin_inset space \thinspace{}
17253 \begin_inset space \space{}
17260 " in the preamble with
17263 \begin_layout Standard
17268 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17271 \begin_layout Standard
17279 \begin_layout Standard
17284 definecolor{lightgray}{gray}{0.8}
17287 \begin_layout Standard
17288 \begin_inset VSpace medskip
17294 \begin_layout Standard
17295 Lines are colored with the command
17298 \begin_layout Standard
17303 rowcolor{name of color}
17306 \begin_layout Standard
17307 and cells are colored with the command
17310 \begin_layout Standard
17315 cellcolor{name of color}
17318 \begin_layout Standard
17319 Both commands are inserted at the beginning of a cell as TeX-Code.
17322 \begin_layout Standard
17323 To color characters in the table, mark the cells and use the
17326 \begin_inset space ~
17332 If a cell contains TeX-Code mark only the characters, otherwise the colored
17333 TeX-Code will cause LaTeX-errors.
17336 \begin_layout Standard
17337 \begin_inset Note Greyedout
17340 \begin_layout Plain Layout
17345 Not all DVI-viewers are able to display self-defined colors.
17353 \begin_layout Standard
17354 \begin_inset VSpace bigskip
17360 \begin_layout Standard
17362 \begin_inset space ~
17366 \begin_inset CommandInset ref
17368 reference "tab:Table-colored-using"
17372 do the following: The color of the first column should be
17380 \begin_layout Standard
17385 columncolor{darkgreen}
17390 \begin_layout Standard
17391 as LaTeX-argument for this column.
17392 The first row should be light blue, therefore the TeX-Code command
17395 \begin_layout Standard
17403 \begin_layout Standard
17404 is inserted to the first cell of this row.
17405 Note that this overwrites the column color for the first cell.
17406 The last cell of the last row is colored maroon by inserting the TeX-Code
17410 \begin_layout Standard
17418 \begin_layout Standard
17419 The characters could now be colored using the menu
17421 Edit\SpecialChar \menuseparator
17423 \begin_inset space ~
17431 \begin_layout Standard
17432 \begin_inset Float table
17438 \begin_layout Plain Layout
17439 \begin_inset Caption Standard
17441 \begin_layout Plain Layout
17442 \begin_inset CommandInset label
17444 name "tab:Table-colored-using"
17448 Table colored using the package
17453 \begin_inset Argument 1
17456 \begin_layout Plain Layout
17457 Table with colortbl
17470 \begin_layout Plain Layout
17472 \begin_inset Tabular
17473 <lyxtabular version="3" rows="3" columns="3">
17474 <features rotate="0" tabularvalignment="middle">
17475 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17476 <column alignment="center" valignment="top">
17477 <column alignment="center" valignment="top">
17479 <cell alignment="center" valignment="top" usebox="none">
17482 \begin_layout Plain Layout
17486 \begin_layout Plain Layout
17502 <cell alignment="center" valignment="top" usebox="none">
17505 \begin_layout Plain Layout
17513 <cell alignment="center" valignment="top" usebox="none">
17516 \begin_layout Plain Layout
17526 <cell alignment="center" valignment="top" usebox="none">
17529 \begin_layout Plain Layout
17537 <cell alignment="center" valignment="top" usebox="none">
17540 \begin_layout Plain Layout
17548 <cell alignment="center" valignment="top" usebox="none">
17551 \begin_layout Plain Layout
17561 <cell alignment="center" valignment="top" usebox="none">
17564 \begin_layout Plain Layout
17572 <cell alignment="center" valignment="top" usebox="none">
17575 \begin_layout Plain Layout
17583 <cell alignment="center" valignment="top" usebox="none">
17586 \begin_layout Plain Layout
17590 \begin_layout Plain Layout
17619 \begin_layout Standard
17623 \begin_layout Plain Layout
17633 \begin_inset Note Note
17636 \begin_layout Plain Layout
17637 The following will be displayed when the LaTeX-package
17649 \begin_layout Standard
17650 You need to install the package
17654 to see the content of this section in the output.
17657 \begin_layout Standard
17661 \begin_layout Plain Layout
17673 \begin_layout Subsection
17675 \begin_inset Index idx
17678 \begin_layout Plain Layout
17679 Table Color ! for Rows
17685 \begin_inset Index idx
17688 \begin_layout Plain Layout
17689 Color ! for Table Rows
17697 \begin_layout Standard
17698 In case every second table row needs to be colored there is an alternative
17699 to the method described in the previous section: One loads the package
17705 \begin_inset Index idx
17708 \begin_layout Plain Layout
17709 LaTeX-packages ! xcolor
17713 \begin_layout Plain Layout
17727 in the document preamble with the command
17730 \begin_layout Standard
17735 usepackage[table]{xcolor}
17738 \begin_layout Standard
17743 automatically loads also the package
17748 \begin_inset Index idx
17751 \begin_layout Plain Layout
17752 LaTeX-packages ! colortbl
17761 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17764 \begin_layout Standard
17768 \begin_layout Plain Layout
17778 \begin_inset Note Note
17781 \begin_layout Plain Layout
17782 The following section part will only be displayed when the LaTeX-package
17795 \begin_layout Standard
17796 The table rows are colored with the command
17799 \begin_layout Standard
17804 rowcolors[commands]{row number}{odd row color}{even row color}
17807 \begin_layout Standard
17808 that is either inserted in the document preamble or as TeX-Code before the
17809 first table to be colored.
17811 \begin_inset space ~
17814 number is the number of the first row which should be colored according
17815 to the odd row color.
17816 commands can be additional commands that are executed before every table
17818 So for example the command
17821 \begin_layout Standard
17826 rowcolors{1}{white}{lightgray}
17829 \begin_layout Standard
17830 leads to the coloring scheme of Table
17831 \begin_inset space ~
17835 \begin_inset CommandInset ref
17837 reference "tab:Table-rowcolors"
17845 \begin_layout Standard
17852 hline]{1}{lightgray}{cyan}
17855 \begin_layout Standard
17856 leads to the coloring scheme of Table
17857 \begin_inset space ~
17861 \begin_inset CommandInset ref
17863 reference "tab:Table-rowcolors-2"
17869 \begin_inset space ~
17873 \begin_inset space ~
17877 \begin_inset space ~
17881 \begin_inset space ~
17884 color are left empty, no color will be used so that the command
17887 \begin_layout Standard
17895 \begin_layout Standard
17896 deletes all colors.
17903 affects all tables following that command.
17906 \begin_layout Standard
17910 \begin_layout Plain Layout
17914 rowcolors{1}{white}{lightgray}
17922 \begin_layout Standard
17923 \begin_inset Float table
17929 \begin_layout Plain Layout
17930 \begin_inset Caption Standard
17932 \begin_layout Plain Layout
17933 \begin_inset CommandInset label
17935 name "tab:Table-rowcolors"
17939 Table where every second row is colored light gray.
17947 \begin_layout Plain Layout
17949 \begin_inset Tabular
17950 <lyxtabular version="3" rows="4" columns="3">
17951 <features rotate="0" tabularvalignment="middle">
17952 <column alignment="center" valignment="top">
17953 <column alignment="center" valignment="top" width="0pt">
17954 <column alignment="center" valignment="top" width="0pt">
17956 <cell alignment="center" valignment="top" usebox="none">
17959 \begin_layout Plain Layout
17965 <cell alignment="center" valignment="top" usebox="none">
17968 \begin_layout Plain Layout
17974 <cell alignment="center" valignment="top" usebox="none">
17977 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" usebox="none">
17997 \begin_layout Plain Layout
18003 <cell alignment="center" valignment="top" usebox="none">
18006 \begin_layout Plain Layout
18014 <cell alignment="center" valignment="top" usebox="none">
18017 \begin_layout Plain Layout
18023 <cell alignment="center" valignment="top" usebox="none">
18026 \begin_layout Plain Layout
18032 <cell alignment="center" valignment="top" usebox="none">
18035 \begin_layout Plain Layout
18043 <cell alignment="center" valignment="top" usebox="none">
18046 \begin_layout Plain Layout
18052 <cell alignment="center" valignment="top" usebox="none">
18055 \begin_layout Plain Layout
18061 <cell alignment="center" valignment="top" usebox="none">
18064 \begin_layout Plain Layout
18083 \begin_layout Standard
18087 \begin_layout Plain Layout
18093 hline]{1}{lightgray}{cyan}
18101 \begin_layout Standard
18102 \begin_inset Float table
18108 \begin_layout Plain Layout
18109 \begin_inset Caption Standard
18111 \begin_layout Plain Layout
18112 \begin_inset CommandInset label
18114 name "tab:Table-rowcolors-2"
18118 Table where every second row is colored cyan and at which there is a line
18127 \begin_layout Plain Layout
18129 \begin_inset Tabular
18130 <lyxtabular version="3" rows="4" columns="3">
18131 <features rotate="0" tabularvalignment="middle">
18132 <column alignment="center" valignment="top">
18133 <column alignment="center" valignment="top">
18134 <column alignment="center" valignment="top" width="0pt">
18136 <cell alignment="center" valignment="top" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18154 <cell alignment="center" valignment="top" usebox="none">
18157 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18183 <cell alignment="center" valignment="top" usebox="none">
18186 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" usebox="none">
18206 \begin_layout Plain Layout
18212 <cell alignment="center" valignment="top" usebox="none">
18215 \begin_layout Plain Layout
18223 <cell alignment="center" valignment="top" usebox="none">
18226 \begin_layout Plain Layout
18232 <cell alignment="center" valignment="top" usebox="none">
18235 \begin_layout Plain Layout
18241 <cell alignment="center" valignment="top" usebox="none">
18244 \begin_layout Plain Layout
18263 \begin_layout Standard
18267 \begin_layout Plain Layout
18277 \begin_inset Note Note
18280 \begin_layout Plain Layout
18281 turns off the row coloring
18289 \begin_layout Standard
18293 \begin_layout Plain Layout
18303 \begin_inset Note Note
18306 \begin_layout Plain Layout
18307 The following will be displayed when the LaTeX-package
18319 \begin_layout Standard
18320 You need to install the package
18324 to see the content of this section in the output.
18327 \begin_layout Standard
18331 \begin_layout Plain Layout
18343 \begin_layout Subsection
18345 \begin_inset Index idx
18348 \begin_layout Plain Layout
18349 Table Color ! for Lines
18355 \begin_inset Index idx
18358 \begin_layout Plain Layout
18359 Color ! for Table Lines
18367 \begin_layout Standard
18368 As described in section
18369 \begin_inset space ~
18373 \begin_inset CommandInset ref
18375 reference "sub:Line-Thickness"
18379 , the line thickness for all lines in a table can be adjusted with the length
18388 \begin_inset space \thinspace{}
18391 pt for all tables of this section.
18395 \begin_layout Plain Layout
18401 arrayrulewidth}{1.5pt}
18409 \begin_layout Standard
18410 To color vertical lines for example with green, create the following column
18411 format in the document preamble, according to the description in section
18412 \begin_inset space ~
18416 \begin_inset CommandInset ref
18418 reference "sub:Customized-Format"
18425 \begin_layout Standard
18430 newcolumntype{W}{!{
18437 \begin_layout Standard
18439 \begin_inset space ~
18443 \begin_inset CommandInset ref
18445 reference "tab:Table-with-vertical-colored"
18453 was used for the last column and
18457 for the other columns.
18460 \begin_layout Standard
18461 If you want to have several colors, define more column formats.
18464 \begin_layout Standard
18465 \begin_inset Float table
18471 \begin_layout Plain Layout
18472 \begin_inset Caption Standard
18474 \begin_layout Plain Layout
18475 \begin_inset CommandInset label
18477 name "tab:Table-with-vertical-colored"
18481 Table with colored vertical lines
18489 \begin_layout Plain Layout
18491 \begin_inset Tabular
18492 <lyxtabular version="3" rows="3" columns="3">
18493 <features rotate="0" tabularvalignment="middle">
18494 <column alignment="center" valignment="top" special="Wc">
18495 <column alignment="center" valignment="top" special="Wc">
18496 <column alignment="center" valignment="top" special="WcW">
18498 <cell alignment="center" valignment="top" topline="true" usebox="none">
18501 \begin_layout Plain Layout
18507 <cell alignment="center" valignment="top" topline="true" usebox="none">
18510 \begin_layout Plain Layout
18516 <cell alignment="center" valignment="top" topline="true" usebox="none">
18519 \begin_layout Plain Layout
18527 <cell alignment="center" valignment="top" topline="true" usebox="none">
18530 \begin_layout Plain Layout
18536 <cell alignment="center" valignment="top" topline="true" usebox="none">
18539 \begin_layout Plain Layout
18545 <cell alignment="center" valignment="top" topline="true" usebox="none">
18548 \begin_layout Plain Layout
18556 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18559 \begin_layout Plain Layout
18565 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18568 \begin_layout Plain Layout
18574 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18577 \begin_layout Plain Layout
18596 \begin_layout Standard
18597 \begin_inset VSpace bigskip
18600 To color horizontal lines for example with red, as in Table
18601 \begin_inset space ~
18605 \begin_inset CommandInset ref
18607 reference "tab:Table-with-horizontal-colored"
18611 , insert these commands in TeX-Code before the table or table float:
18614 \begin_layout Standard
18624 \begin_inset Newline newline
18632 \begin_inset Newline newline
18636 \begin_inset Phantom HPhantom
18639 \begin_layout Plain Layout
18642 \begin_inset space ~
18652 arrayrulecolor{red}
18656 arrayrulecolor{black}}
18659 \begin_layout Standard
18663 \begin_layout Plain Layout
18674 \begin_layout Plain Layout
18683 \begin_layout Plain Layout
18687 arrayrulecolor{red}
18691 arrayrulecolor{black}}
18697 \begin_inset Float table
18703 \begin_layout Plain Layout
18704 \begin_inset Caption Standard
18706 \begin_layout Plain Layout
18707 \begin_inset CommandInset label
18709 name "tab:Table-with-horizontal-colored"
18713 Table with colored horizontal lines
18721 \begin_layout Plain Layout
18723 \begin_inset Tabular
18724 <lyxtabular version="3" rows="3" columns="3">
18725 <features rotate="0" tabularvalignment="middle">
18726 <column alignment="center" valignment="top">
18727 <column alignment="center" valignment="top">
18728 <column alignment="center" valignment="top">
18730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18742 \begin_layout Plain Layout
18748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18751 \begin_layout Plain Layout
18759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18771 \begin_layout Plain Layout
18777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18780 \begin_layout Plain Layout
18788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18791 \begin_layout Plain Layout
18797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18800 \begin_layout Plain Layout
18806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18809 \begin_layout Plain Layout
18828 \begin_layout Standard
18829 To return to the default line color black, insert this command in TeX-Code
18830 after the table or table float:
18833 \begin_layout Standard
18845 \begin_layout Standard
18847 \begin_inset space ~
18851 \begin_inset CommandInset ref
18853 reference "tab:Table-with-colored"
18857 is an example with colored vertical and horizontal lines.
18860 \begin_layout Standard
18861 \begin_inset Float table
18867 \begin_layout Plain Layout
18868 \begin_inset Caption Standard
18870 \begin_layout Plain Layout
18871 \begin_inset CommandInset label
18873 name "tab:Table-with-colored"
18877 Table with colored lines
18885 \begin_layout Plain Layout
18887 \begin_inset Tabular
18888 <lyxtabular version="3" rows="3" columns="3">
18889 <features rotate="0" tabularvalignment="middle">
18890 <column alignment="center" valignment="top" special="Wc">
18891 <column alignment="center" valignment="top" special="Wc">
18892 <column alignment="center" valignment="top" special="WcW">
18894 <cell alignment="center" valignment="top" topline="true" usebox="none">
18897 \begin_layout Plain Layout
18903 <cell alignment="center" valignment="top" topline="true" usebox="none">
18906 \begin_layout Plain Layout
18912 <cell alignment="center" valignment="top" topline="true" usebox="none">
18915 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" topline="true" usebox="none">
18926 \begin_layout Plain Layout
18932 <cell alignment="center" valignment="top" topline="true" usebox="none">
18935 \begin_layout Plain Layout
18941 <cell alignment="center" valignment="top" topline="true" usebox="none">
18944 \begin_layout Plain Layout
18951 <row topspace="default">
18952 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18955 \begin_layout Plain Layout
18961 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18964 \begin_layout Plain Layout
18970 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18973 \begin_layout Plain Layout
18992 \begin_layout Standard
18996 \begin_layout Plain Layout
19012 \begin_layout Standard
19016 \begin_layout Plain Layout
19022 arrayrulewidth}{0.4pt}
19030 \begin_layout Section
19031 Rotated Table Cells
19032 \begin_inset CommandInset label
19034 name "sec:Rotated-Table-Cells"
19039 \begin_inset Index idx
19042 \begin_layout Plain Layout
19043 Table ! Rotated Cells
19049 \begin_inset Index idx
19052 \begin_layout Plain Layout
19061 \begin_layout Standard
19062 \begin_inset Note Greyedout
19065 \begin_layout Plain Layout
19070 Not all DVI-viewers are able to display rotations.
19078 \begin_layout Standard
19079 Currently LyX only offers to rotate table cells by 90
19080 \begin_inset space \thinspace{}
19083 ° counter-clockwise.
19084 To rotate cells by an angle of your choice, you have to add this to the
19088 \begin_layout Standard
19093 @ifundefined{turnbox}{
19095 usepackage{rotating}}{}
19098 \begin_layout Standard
19099 In the table cell that should be rotated, add at the beginning this command
19103 \begin_layout Standard
19111 \begin_layout Standard
19112 where angle is the rotation angle in °.
19113 At the end of the cell the command
19116 \begin_layout Standard
19124 \begin_layout Standard
19125 is inserted as TeX-code.
19128 \begin_layout Standard
19130 \begin_inset space ~
19134 \begin_inset CommandInset ref
19136 reference "tab:Table-with-rotated-multi"
19140 is an example where 3
19141 \begin_inset space ~
19144 cells were rotated by 45
19145 \begin_inset space \thinspace{}
19151 \begin_layout Standard
19152 \begin_inset Float table
19157 \begin_layout Plain Layout
19158 \begin_inset Caption Standard
19160 \begin_layout Plain Layout
19161 \begin_inset CommandInset label
19163 name "tab:Table-with-rotated"
19167 Table with rotated cells in the first row.
19175 \begin_layout Plain Layout
19178 \begin_inset Tabular
19179 <lyxtabular version="3" rows="2" columns="3">
19180 <features rotate="0" tabularvalignment="middle">
19181 <column alignment="center" valignment="top">
19182 <column alignment="center" valignment="top" width="0pt">
19183 <column alignment="center" valignment="top">
19185 <cell alignment="center" valignment="top" usebox="none">
19188 \begin_layout Plain Layout
19192 \begin_layout Plain Layout
19205 \begin_layout Plain Layout
19219 <cell alignment="center" valignment="top" usebox="none">
19222 \begin_layout Plain Layout
19226 \begin_layout Plain Layout
19239 \begin_layout Plain Layout
19253 <cell alignment="center" valignment="top" usebox="none">
19256 \begin_layout Plain Layout
19260 \begin_layout Plain Layout
19273 \begin_layout Plain Layout
19289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19292 \begin_layout Plain Layout
19298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19301 \begin_layout Plain Layout
19307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19310 \begin_layout Plain Layout
19329 \begin_layout Standard
19330 \begin_inset Note Greyedout
19333 \begin_layout Plain Layout
19338 Line breaks (shortcut
19341 arg "newline-insert newline"
19344 ) are not allowed in rotated cells.
19352 \begin_layout Standard
19353 If you want to rotate table cells containing line breaks, you have to put
19354 the cell content into a minipage or a parbox.
19358 \begin_layout Plain Layout
19359 For more about these boxes see sec.
19360 \begin_inset space \thinspace{}
19364 \begin_inset CommandInset ref
19366 reference "sec:Minipages"
19371 \begin_inset CommandInset ref
19373 reference "sec:Parboxes"
19382 If you rotate this cell by 90
19383 \begin_inset space \thinspace{}
19386 ° the width of the box is the height of the cell.
19388 \begin_inset space ~
19392 \begin_inset CommandInset ref
19394 reference "tab:Table-with-rotated-multi"
19398 is an example for a rotated multiline cell where the box width was set
19400 \begin_inset space \thinspace{}
19406 \begin_layout Standard
19407 \begin_inset Float table
19412 \begin_layout Plain Layout
19413 \begin_inset Caption Standard
19415 \begin_layout Plain Layout
19416 \begin_inset CommandInset label
19418 name "tab:Table-with-rotated-multi"
19422 Table with rotated multiline cell.
19430 \begin_layout Plain Layout
19433 \begin_inset Tabular
19434 <lyxtabular version="3" rows="2" columns="3">
19435 <features rotate="0" tabularvalignment="middle">
19436 <column alignment="center" valignment="top">
19437 <column alignment="center" valignment="top" width="0pt">
19438 <column alignment="center" valignment="top">
19440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19443 \begin_layout Plain Layout
19449 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19452 \begin_layout Plain Layout
19453 \begin_inset Box Frameless
19463 height_special "totalheight"
19466 \begin_layout Plain Layout
19468 \begin_inset Newline newline
19481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19484 \begin_layout Plain Layout
19492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19495 \begin_layout Plain Layout
19501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19504 \begin_layout Plain Layout
19510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19513 \begin_layout Plain Layout
19532 \begin_layout Section
19533 Table Width Calculation
19534 \begin_inset CommandInset label
19536 name "sec:Table-Width-Calculation"
19543 \begin_layout Standard
19544 For wide tables it is sometimes difficult to assure that the table does
19545 not protrude over the page margin.
19546 Setting a fixed width for every column of the table is the solution, but
19547 what amount of space is needed for each column?
19550 \begin_layout Standard
19552 \begin_inset Formula $W_{\mathrm{table}}$
19555 can be calculated: Every column has the width of the specified column width
19557 \begin_inset Formula $W_{\mathrm{column}}$
19560 (that the content of the column can consume) plus two times the separation
19561 between the column content and the column border (LaTeX length
19568 \begin_inset space \thinspace{}
19571 pt) plus the width of a border line (LaTeX length
19578 \begin_inset space \thinspace{}
19582 \begin_inset Formula $n$
19586 \begin_inset space ~
19589 columns have the same width, the table width is
19590 \begin_inset Formula
19592 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19600 \begin_layout Standard
19601 The available width for a table is the space between the page margins or
19602 the width of a text column (for a two-column document) (LaTeX length
19609 If all table columns should have the same width and
19610 \begin_inset Formula $W_{\mathrm{table}}$
19614 \begin_inset space \thinspace{}
19620 \begin_inset Formula $W_{\mathrm{column}}$
19623 can easily be calculated.
19626 \begin_layout Standard
19627 To be able to perform calculations you need to load the LaTeX-package
19632 \begin_inset Index idx
19635 \begin_layout Plain Layout
19636 LaTeX-packages ! calc
19641 in the document preamble.
19642 To set the width in the table dialog you have to use the field
19647 The command scheme for this field is the same that is explained in section
19648 \begin_inset space ~
19652 \begin_inset CommandInset ref
19654 reference "sub:Multicolumn-Calculations"
19660 \begin_inset space \thinspace{}
19663 columns with an uniform width and centered text, enter there for each column
19667 \begin_layout Standard
19674 columnwidth-62.4pt)/5}
19677 \begin_layout Standard
19679 \begin_inset space \thinspace{}
19682 columns where 2 should have 0.75
19683 \begin_inset space ~
19686 times the width than the 3 others, the calculation is
19687 \begin_inset Formula
19689 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19690 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19691 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19692 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19700 \begin_layout Standard
19701 In the table therefore the command
19704 \begin_layout Standard
19711 columnwidth-62.4pt)/
19716 \begin_layout Standard
19717 is used for the wider columns and
19720 \begin_layout Standard
19727 columnwidth-62.4pt)/
19734 \begin_layout Standard
19735 for the smaller ones:
19738 \begin_layout Standard
19739 \begin_inset Tabular
19740 <lyxtabular version="3" rows="2" columns="5">
19741 <features rotate="0" tabularvalignment="middle">
19742 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19743 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19744 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19745 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19746 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19751 \begin_layout Plain Layout
19757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19760 \begin_layout Plain Layout
19766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19769 \begin_layout Plain Layout
19775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19778 \begin_layout Plain Layout
19784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19787 \begin_layout Plain Layout
19795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19798 \begin_layout Plain Layout
19799 111111 1111111 111111 111111111 11111 11111 1111
19804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19807 \begin_layout Plain Layout
19813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19816 \begin_layout Plain Layout
19817 2222 22222 222222 222222222 2222222 22 22222
19822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19825 \begin_layout Plain Layout
19831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19834 \begin_layout Plain Layout
19835 333333 333333 333333 33333 3333333 333
19848 \begin_layout Section
19849 Table Customization
19850 \begin_inset Index idx
19853 \begin_layout Plain Layout
19854 Table Customization
19860 \begin_inset Index idx
19863 \begin_layout Plain Layout
19864 Table ! Customization
19872 \begin_layout Subsection
19874 \begin_inset CommandInset label
19876 name "sub:Row-Spacing"
19881 \begin_inset Index idx
19884 \begin_layout Plain Layout
19885 Table Customization ! Row Spacing
19893 \begin_layout Standard
19894 You can add vertical space to table rows in the
19898 tab of the table dialog.
19899 You find there three possibilities:
19902 \begin_layout Description
19904 \begin_inset space ~
19908 \begin_inset space ~
19911 row will add space above the characters of the table row.
19912 If the table is a formal table
19916 \begin_layout Plain Layout
19917 Formal tables are explained in section
19918 \begin_inset space ~
19922 \begin_inset CommandInset ref
19924 reference "sec:Formal-Tables"
19933 LyX will insert as default 0.5
19934 \begin_inset space \thinspace{}
19938 For normal tables the inserted space will unfortunately destroy the vertical
19939 table lines as in the following table:
19940 \begin_inset VSpace medskip
19944 \begin_inset Newline newline
19948 \begin_inset space \hspace*{}
19953 \begin_inset space \hfill{}
19957 \begin_inset Tabular
19958 <lyxtabular version="3" rows="3" columns="1">
19959 <features rotate="0" tabularvalignment="middle">
19960 <column alignment="center" valignment="top">
19962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19965 \begin_layout Plain Layout
19972 <row topspace="3mm">
19973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19976 \begin_layout Plain Layout
19978 \begin_inset space \thinspace{}
19981 mm space top of row
19988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19991 \begin_layout Plain Layout
20003 \begin_inset space \hfill{}
20007 \begin_inset space \hspace*{}
20012 \begin_inset VSpace medskip
20016 \begin_inset Newline newline
20019 So inserting space in the top of row for normal tables is only useful when
20020 you don't have vertical lines.
20023 \begin_layout Description
20025 \begin_inset space ~
20029 \begin_inset space ~
20032 row will add space below the characters of the table row.
20033 If the table is a formal table LyX will insert as default 0.5
20034 \begin_inset space \thinspace{}
20037 em space, for normal tables the default size is 2
20038 \begin_inset space \thinspace{}
20044 \begin_layout Description
20046 \begin_inset space ~
20049 rows adds space between the current and the following row.
20050 If the table is a formal table LyX will insert as default 0.5
20051 \begin_inset space \thinspace{}
20055 For normal tables the inserted space will unfortunately destroy the vertical
20056 table lines as in the following table:
20057 \begin_inset VSpace medskip
20061 \begin_inset Newline newline
20065 \begin_inset space \hspace*{}
20070 \begin_inset space \hfill{}
20074 \begin_inset Tabular
20075 <lyxtabular version="3" rows="3" columns="1">
20076 <features rotate="0" tabularvalignment="middle">
20077 <column alignment="center" valignment="top">
20079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20082 \begin_layout Plain Layout
20089 <row interlinespace="3mm">
20090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20093 \begin_layout Plain Layout
20094 \begin_inset Formula $\downarrow$
20098 \begin_inset space \thinspace{}
20101 mm space between row
20102 \begin_inset Formula $\downarrow$
20112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20115 \begin_layout Plain Layout
20116 \begin_inset Formula $\uparrow$
20120 \begin_inset space \thinspace{}
20123 mm space between row
20124 \begin_inset Formula $\uparrow$
20138 \begin_inset space \hfill{}
20142 \begin_inset space \hspace*{}
20147 \begin_inset VSpace medskip
20151 \begin_inset Newline newline
20154 So inserting space between rows for normal tables is only useful when you
20155 don't have vertical lines.
20158 \begin_layout Standard
20159 \begin_inset VSpace bigskip
20162 When you want to add extra height to all cells of all tables, you can do
20163 this with the following preamble lines:
20166 \begin_layout Standard
20171 @ifundefined{extrarowheight}
20172 \begin_inset Newline newline
20176 \begin_inset Phantom HPhantom
20179 \begin_layout Plain Layout
20182 \begin_inset space ~
20192 usepackage{array}}{}
20193 \begin_inset Newline newline
20200 extrarowheight}{height}
20203 \begin_layout Standard
20204 But this has the disadvantage that the cell texts are no longer exactly
20205 vertically centered.
20210 will be loaded automatically by LyX when you use self defined table formats.
20211 To avoid that it being loaded twice the command
20217 is used in the above command.)
20220 \begin_layout Standard
20221 If you are using font sizes larger than the normal size, the table borders
20222 are often too close to the letters.
20223 This can be corrected by inserting the command
20229 in TeX-Code at the beginning of a table row.
20231 \begin_inset space ~
20235 \begin_inset CommandInset ref
20237 reference "tab:Vertical-alignment-of"
20241 illustrates the effect.
20244 \begin_layout Standard
20246 \begin_inset Float table
20252 \begin_layout Plain Layout
20253 \begin_inset Caption Standard
20255 \begin_layout Plain Layout
20256 \begin_inset CommandInset label
20258 name "tab:Vertical-alignment-of"
20262 Vertical alignment of text with large font sizes.
20270 \begin_layout Plain Layout
20271 \begin_inset space \hfill{}
20275 \begin_inset Float table
20280 \begin_layout Plain Layout
20281 \begin_inset Caption Standard
20283 \begin_layout Plain Layout
20292 \begin_layout Plain Layout
20295 \begin_inset Tabular
20296 <lyxtabular version="3" rows="6" columns="1">
20297 <features rotate="0" tabularvalignment="middle">
20298 <column alignment="left" valignment="top">
20300 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20303 \begin_layout Plain Layout
20311 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20314 \begin_layout Plain Layout
20324 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20327 \begin_layout Plain Layout
20337 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20340 \begin_layout Plain Layout
20350 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20353 \begin_layout Plain Layout
20363 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20366 \begin_layout Plain Layout
20385 \begin_inset space \hfill{}
20389 \begin_inset Float table
20394 \begin_layout Plain Layout
20395 \begin_inset Caption Standard
20397 \begin_layout Plain Layout
20398 Table using the command
20412 \begin_layout Plain Layout
20415 \begin_inset Tabular
20416 <lyxtabular version="3" rows="6" columns="1">
20417 <features rotate="0" tabularvalignment="middle">
20418 <column alignment="left" valignment="top">
20420 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20423 \begin_layout Plain Layout
20431 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20434 \begin_layout Plain Layout
20440 \begin_layout Plain Layout
20456 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20459 \begin_layout Plain Layout
20465 \begin_layout Plain Layout
20481 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20484 \begin_layout Plain Layout
20490 \begin_layout Plain Layout
20506 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20509 \begin_layout Plain Layout
20515 \begin_layout Plain Layout
20531 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20534 \begin_layout Plain Layout
20540 \begin_layout Plain Layout
20567 \begin_inset space \hfill{}
20578 \begin_layout Subsection
20579 Special Cell Alignment
20580 \begin_inset CommandInset label
20582 name "sub:Special-Cell-Alignment"
20587 \begin_inset Index idx
20590 \begin_layout Plain Layout
20591 Table Customization ! Special Cell Alignment
20599 \begin_layout Standard
20600 Sometimes it looks better when the cell entries of a column are aligned
20601 with a special character, e.
20602 \begin_inset space \thinspace{}
20606 \begin_inset space \space{}
20609 with the decimal separator as in Table
20610 \begin_inset space ~
20614 \begin_inset CommandInset ref
20616 reference "tab:Table-cells-align"
20621 This alignment is achieved by setting the cursor into the column and then
20622 either pressing the toolbar button
20625 arg "inset-modify tabular align-decimal"
20628 or setting the alignment in the table settings to
20631 \begin_inset space ~
20635 \begin_inset space ~
20641 The alignment character can be a character of your choice and is specified
20642 in the table settings.
20645 \begin_layout Standard
20646 \begin_inset Float table
20652 \begin_layout Plain Layout
20653 \begin_inset Caption Standard
20655 \begin_layout Plain Layout
20656 \begin_inset CommandInset label
20658 name "tab:Table-cells-align"
20662 Table cells of a column aligned with the decimal separator.
20670 \begin_layout Plain Layout
20672 \begin_inset Tabular
20673 <lyxtabular version="3" rows="4" columns="1">
20674 <features rotate="0" booktabs="true" tabularvalignment="middle">
20675 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20677 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20680 \begin_layout Plain Layout
20688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20691 \begin_layout Plain Layout
20699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20702 \begin_layout Plain Layout
20710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20713 \begin_layout Plain Layout
20732 \begin_layout Standard
20733 \begin_inset Float table
20739 \begin_layout Plain Layout
20740 \begin_inset Caption Standard
20742 \begin_layout Plain Layout
20743 \begin_inset CommandInset label
20745 name "tab:Table-align-operator"
20749 Table cells of a column aligned with the operators.
20757 \begin_layout Plain Layout
20759 \begin_inset Tabular
20760 <lyxtabular version="3" rows="4" columns="2">
20761 <features rotate="0" booktabs="true" tabularvalignment="middle">
20762 <column alignment="right" valignment="top" width="0pt">
20763 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20765 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20768 \begin_layout Plain Layout
20774 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20777 \begin_layout Plain Layout
20785 <cell alignment="center" valignment="top" usebox="none">
20788 \begin_layout Plain Layout
20789 \begin_inset Formula $12\,+$
20797 <cell alignment="center" valignment="top" usebox="none">
20800 \begin_layout Plain Layout
20801 \begin_inset Formula $\,6$
20811 <cell alignment="center" valignment="top" usebox="none">
20814 \begin_layout Plain Layout
20815 \begin_inset Formula $0\,-$
20823 <cell alignment="center" valignment="top" usebox="none">
20826 \begin_layout Plain Layout
20827 \begin_inset Formula $\,68$
20837 <cell alignment="center" valignment="top" usebox="none">
20840 \begin_layout Plain Layout
20841 \begin_inset Formula $-123\,/$
20849 <cell alignment="center" valignment="top" usebox="none">
20852 \begin_layout Plain Layout
20853 \begin_inset Formula $\,0$
20874 \begin_layout Standard
20875 For alignments at characters in formulas this method does not work because
20876 the field to specify the alignment character does not allow formulas.
20877 In this case one need to use the method from Table
20878 \begin_inset space ~
20882 \begin_inset CommandInset ref
20884 reference "tab:Table-align-operator"
20889 This table was created with a 4×2 table.
20890 The heading is a centered multicolumn.
20891 The first column is right-aligned and contains the first part including
20893 The second column is left aligned and contains the rest.
20894 A small space was added at the beginning of each cell of the second column
20895 to get the space that is usually around operators.
20896 To omit the space that is normally between two table columns, the following
20897 LaTeX-argument was used for the second column:
20900 \begin_layout Standard
20906 \begin_layout Standard
20908 \begin_inset space ~
20912 \begin_inset CommandInset ref
20914 reference "tab:Several-table-cell"
20918 shows some example alignments.
20919 For the alignment with the relation sign, a small space was added like
20920 for the second column of Table
20921 \begin_inset space ~
20925 \begin_inset CommandInset ref
20927 reference "tab:Table-align-operator"
20934 \begin_layout Standard
20935 \begin_inset Float table
20941 \begin_layout Plain Layout
20942 \begin_inset Caption Standard
20944 \begin_layout Plain Layout
20945 \begin_inset CommandInset label
20947 name "tab:Several-table-cell"
20951 Several table cell alignments.
20959 \begin_layout Plain Layout
20961 \begin_inset Tabular
20962 <lyxtabular version="3" rows="4" columns="6">
20963 <features rotate="0" tabularvalignment="middle">
20964 <column alignment="right" valignment="top">
20965 <column alignment="left" valignment="top" special="@{}l">
20966 <column alignment="right" valignment="top">
20967 <column alignment="left" valignment="top" special="@{}l">
20968 <column alignment="right" valignment="top">
20969 <column alignment="left" valignment="top" special="@{}l">
20971 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20974 \begin_layout Plain Layout
20980 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20983 \begin_layout Plain Layout
20989 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20992 \begin_layout Plain Layout
20998 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21001 \begin_layout Plain Layout
21007 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21010 \begin_layout Plain Layout
21016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21019 \begin_layout Plain Layout
21027 <cell alignment="center" valignment="top" usebox="none">
21030 \begin_layout Plain Layout
21036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21039 \begin_layout Plain Layout
21041 \begin_inset space \thinspace{}
21049 <cell alignment="center" valignment="top" usebox="none">
21052 \begin_layout Plain Layout
21053 \begin_inset Formula $10\cdot$
21061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21064 \begin_layout Plain Layout
21065 \begin_inset Formula $10^{\mbox{-}17}$
21073 <cell alignment="center" valignment="top" usebox="none">
21076 \begin_layout Plain Layout
21077 \begin_inset Formula $\Gamma(t)\propto$
21085 <cell alignment="center" valignment="top" usebox="none">
21088 \begin_layout Plain Layout
21089 \begin_inset Formula $\:\Upsilon(t)$
21099 <cell alignment="center" valignment="top" usebox="none">
21102 \begin_layout Plain Layout
21108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21111 \begin_layout Plain Layout
21113 \begin_inset space \thinspace{}
21121 <cell alignment="center" valignment="top" usebox="none">
21124 \begin_layout Plain Layout
21125 \begin_inset Formula $5.78\cdot$
21133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21136 \begin_layout Plain Layout
21137 \begin_inset Formula $10^{7}$
21145 <cell alignment="center" valignment="top" usebox="none">
21148 \begin_layout Plain Layout
21149 \begin_inset Formula $A\ne$
21157 <cell alignment="center" valignment="top" usebox="none">
21160 \begin_layout Plain Layout
21161 \begin_inset Formula $\: B_{\mathrm{red}}$
21171 <cell alignment="center" valignment="top" usebox="none">
21174 \begin_layout Plain Layout
21180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21183 \begin_layout Plain Layout
21185 \begin_inset space \thinspace{}
21193 <cell alignment="center" valignment="top" usebox="none">
21196 \begin_layout Plain Layout
21198 \begin_inset Formula $33.5\cdot$
21206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21209 \begin_layout Plain Layout
21210 \begin_inset Formula $10^{4}$
21218 <cell alignment="center" valignment="top" usebox="none">
21221 \begin_layout Plain Layout
21222 \begin_inset Formula $\sin(\alpha)\ge$
21230 <cell alignment="center" valignment="top" usebox="none">
21233 \begin_layout Plain Layout
21234 \begin_inset Formula $\:\sin(\beta)$
21255 \begin_layout Subsection
21256 Customized Cell/Column Format
21257 \begin_inset CommandInset label
21259 name "sub:Customized-Format"
21264 \begin_inset Index idx
21267 \begin_layout Plain Layout
21268 Table Customization ! Cell/Column Format
21276 \begin_layout Standard
21277 Calculating the required width for normal columns as described in section
21278 \begin_inset space ~
21282 \begin_inset CommandInset ref
21284 reference "sec:Table-Width-Calculation"
21288 or for spanned columns as described in section
21289 \begin_inset space ~
21293 \begin_inset CommandInset ref
21295 reference "sub:Multicolumn-Calculations"
21299 is very annoying if you have several tables where a calculation is necessary.
21300 To make life easier, you can define a cell/column format in the preamble,
21301 that can be used in all tables of the document.
21302 The format is defined with the command
21305 \begin_layout Standard
21310 newcolumntype{name of format}[number of arguments]{commands}
21313 \begin_layout Standard
21314 The format name may only consist of one letter.
21339 are predefined and cannot be used.
21340 But all letters are allowed as capitals.
21343 \begin_layout Standard
21344 \begin_inset VSpace medskip
21350 \begin_layout Standard
21351 For vertically and horizontally centered multicolumn cells with a fixed
21352 width you can define the cell format
21355 \begin_layout Standard
21360 newcolumntype{M}[1]{>{
21367 \begin_layout Standard
21374 avoids the problem of hyphenating the first word, as described in section
21375 \begin_inset space ~
21379 \begin_inset CommandInset ref
21381 reference "sub:Multiple-Lines-in"
21386 Now you can simply enter
21389 \begin_layout Standard
21395 \begin_layout Standard
21400 in the table dialog to create a multicolumn.
21403 \begin_layout Standard
21404 \begin_inset VSpace bigskip
21410 \begin_layout Standard
21411 For cells spanned by a multicolumn cell, you can define the format
21414 \begin_layout Standard
21419 newcolumntype{S}[2]{>{
21424 \begin_inset Newline newline
21428 \begin_inset Phantom HPhantom
21431 \begin_layout Plain Layout
21445 arrayrulewidth)*(1-#2))/#2}}
21448 \begin_layout Standard
21449 This format uses equation
21450 \begin_inset CommandInset ref
21456 to calculate the required width so that each spanned cell has the same
21460 \begin_layout Standard
21464 \begin_layout Standard
21467 S{width of multicolumn cell}{number of spanned columns}
21470 \begin_layout Standard
21471 as LaTeX-argument of the column.
21474 \begin_layout Standard
21475 \begin_inset VSpace bigskip
21481 \begin_layout Standard
21482 For colored columns, you can define
21485 \begin_layout Standard
21490 newcolumntype{K}[1]{>{
21497 \begin_layout Standard
21499 \begin_inset Quotes eld
21503 \begin_inset Quotes erd
21506 at the end creates a column with a flexible width whose text is horizontally
21511 \begin_layout Standard
21517 \begin_layout Standard
21521 \begin_layout Standard
21522 \begin_inset VSpace bigskip
21528 \begin_layout Standard
21530 \begin_inset space ~
21534 \begin_inset CommandInset ref
21536 reference "tab:Table-using-user-defined"
21540 use the LaTeX-arguments
21543 \begin_layout Standard
21549 \begin_layout Standard
21550 for the first column and the multicolumn,
21553 \begin_layout Standard
21559 \begin_layout Standard
21560 for the last column, and
21563 \begin_layout Standard
21569 \begin_layout Standard
21570 for the cells in the second column.
21573 \begin_layout Standard
21574 \begin_inset Float table
21580 \begin_layout Plain Layout
21581 \begin_inset Caption Standard
21583 \begin_layout Plain Layout
21584 \begin_inset CommandInset label
21586 name "tab:Table-using-user-defined"
21590 Table using user-defined table formats
21598 \begin_layout Plain Layout
21600 \begin_inset Tabular
21601 <lyxtabular version="3" rows="3" columns="4">
21602 <features rotate="0" tabularvalignment="middle">
21603 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21604 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21605 <column alignment="center" valignment="middle">
21606 <column alignment="center" valignment="middle" special="K{red}">
21608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21611 \begin_layout Plain Layout
21612 verylongtablecellword
21617 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21620 \begin_layout Plain Layout
21621 multiple lines multicolumn
21626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21629 \begin_layout Plain Layout
21635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21638 \begin_layout Plain Layout
21646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21649 \begin_layout Plain Layout
21655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21658 \begin_layout Plain Layout
21664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21667 \begin_layout Plain Layout
21673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21676 \begin_layout Plain Layout
21684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21687 \begin_layout Plain Layout
21693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21696 \begin_layout Plain Layout
21702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21705 \begin_layout Plain Layout
21711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21714 \begin_layout Plain Layout
21733 \begin_layout Subsection
21735 \begin_inset CommandInset label
21737 name "sub:Line-Thickness"
21742 \begin_inset Index idx
21745 \begin_layout Plain Layout
21746 Table Customization ! Line Thickness
21754 \begin_layout Standard
21755 The line thickness for all lines in a table can be adjusted with the length
21763 To set for example a line thickness of 1.5
21764 \begin_inset space \thinspace{}
21768 \begin_inset space ~
21772 \begin_inset CommandInset ref
21774 reference "tab:Table-with-1.5"
21778 , insert the command
21781 \begin_layout Standard
21788 arrayrulewidth}{1.5pt}
21791 \begin_layout Standard
21792 in TeX-Code before the table or table float.
21793 The changed thickness is valid for all subsequent tables.
21794 To use the default value again, set
21801 \begin_inset space \thinspace{}
21804 pt in TeX-Code after the table or table float.
21807 \begin_layout Standard
21811 \begin_layout Plain Layout
21817 arrayrulewidth}{1.5pt}
21823 \begin_inset Float table
21828 \begin_layout Plain Layout
21829 \begin_inset Caption Standard
21831 \begin_layout Plain Layout
21832 \begin_inset CommandInset label
21834 name "tab:Table-with-1.5"
21839 \begin_inset space \thinspace{}
21850 \begin_layout Plain Layout
21852 \begin_inset Tabular
21853 <lyxtabular version="3" rows="3" columns="3">
21854 <features rotate="0" tabularvalignment="middle">
21855 <column alignment="center" valignment="top">
21856 <column alignment="center" valignment="top">
21857 <column alignment="center" valignment="top">
21859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21862 \begin_layout Plain Layout
21868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21871 \begin_layout Plain Layout
21877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21880 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21900 \begin_layout Plain Layout
21906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21909 \begin_layout Plain Layout
21917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21920 \begin_layout Plain Layout
21926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21929 \begin_layout Plain Layout
21935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21938 \begin_layout Plain Layout
21958 \begin_layout Plain Layout
21964 arrayrulewidth}{0.4pt}
21972 \begin_layout Standard
21973 \begin_inset VSpace bigskip
21976 To set the line thickness to 1.5
21977 \begin_inset space \thinspace{}
21980 pt only for horizontal lines, as in Table
21981 \begin_inset space ~
21985 \begin_inset CommandInset ref
21987 reference "tab:Table-with-horizontal"
21991 , insert these commands in TeX-Code before the table or table float:
21994 \begin_layout Standard
22004 \begin_inset Newline newline
22012 \begin_inset Newline newline
22021 arrayrulewidth 1.5pt}
22022 \begin_inset Newline newline
22033 arrayrulewidth 0.4pt}}
22036 \begin_layout Standard
22037 To return to the default line thickness, insert this command in TeX-Code
22038 after the table or table float:
22041 \begin_layout Standard
22053 \begin_layout Standard
22057 \begin_layout Plain Layout
22068 \begin_layout Plain Layout
22077 \begin_layout Plain Layout
22085 arrayrulewidth 1.5pt}
22088 \begin_layout Plain Layout
22098 arrayrulewidth 0.4pt}}
22104 \begin_inset Float table
22109 \begin_layout Plain Layout
22110 \begin_inset Caption Standard
22112 \begin_layout Plain Layout
22113 \begin_inset CommandInset label
22115 name "tab:Table-with-horizontal"
22120 \begin_inset space \thinspace{}
22123 pt thick horizontal lines
22131 \begin_layout Plain Layout
22133 \begin_inset Tabular
22134 <lyxtabular version="3" rows="3" columns="3">
22135 <features rotate="0" tabularvalignment="middle">
22136 <column alignment="center" valignment="top">
22137 <column alignment="center" valignment="top">
22138 <column alignment="center" valignment="top">
22140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22143 \begin_layout Plain Layout
22149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22152 \begin_layout Plain Layout
22158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22161 \begin_layout Plain Layout
22169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22172 \begin_layout Plain Layout
22178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22181 \begin_layout Plain Layout
22187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22190 \begin_layout Plain Layout
22198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22201 \begin_layout Plain Layout
22207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22210 \begin_layout Plain Layout
22216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22219 \begin_layout Plain Layout
22239 \begin_layout Plain Layout
22255 \begin_layout Standard
22256 \begin_inset VSpace bigskip
22259 To set the line thickness to 1.5
22260 \begin_inset space \thinspace{}
22263 pt only for vertical lines, create the following column format in the document
22264 preamble, according to the description in section
22265 \begin_inset space ~
22269 \begin_inset CommandInset ref
22271 reference "sub:Customized-Format"
22278 \begin_layout Standard
22283 newcolumntype{V}{!{
22285 vrule width 1.5pt}}
22288 \begin_layout Standard
22290 \begin_inset space ~
22294 \begin_inset CommandInset ref
22296 reference "tab:Table-with-vertical"
22303 \begin_layout Standard
22309 \begin_layout Standard
22310 was used for the last column and
22313 \begin_layout Standard
22319 \begin_layout Standard
22320 for the other columns.
22323 \begin_layout Standard
22324 \begin_inset Float table
22329 \begin_layout Plain Layout
22330 \begin_inset Caption Standard
22332 \begin_layout Plain Layout
22333 \begin_inset CommandInset label
22335 name "tab:Table-with-vertical"
22340 \begin_inset space \thinspace{}
22343 pt thick vertical lines
22351 \begin_layout Plain Layout
22353 \begin_inset Tabular
22354 <lyxtabular version="3" rows="3" columns="3">
22355 <features rotate="0" tabularvalignment="middle">
22356 <column alignment="center" valignment="top" special="Vc">
22357 <column alignment="center" valignment="top" special="Vc">
22358 <column alignment="center" valignment="top" special="VcV">
22360 <cell alignment="center" valignment="top" topline="true" usebox="none">
22363 \begin_layout Plain Layout
22369 <cell alignment="center" valignment="top" topline="true" usebox="none">
22372 \begin_layout Plain Layout
22378 <cell alignment="center" valignment="top" topline="true" usebox="none">
22381 \begin_layout Plain Layout
22389 <cell alignment="center" valignment="top" topline="true" usebox="none">
22392 \begin_layout Plain Layout
22398 <cell alignment="center" valignment="top" topline="true" usebox="none">
22401 \begin_layout Plain Layout
22407 <cell alignment="center" valignment="top" topline="true" usebox="none">
22410 \begin_layout Plain Layout
22418 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22421 \begin_layout Plain Layout
22427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22430 \begin_layout Plain Layout
22436 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22439 \begin_layout Plain Layout
22458 \begin_layout Subsection
22460 \begin_inset Index idx
22463 \begin_layout Plain Layout
22464 Table Customization ! Dashed Lines
22472 \begin_layout Standard
22476 \begin_layout Plain Layout
22486 \begin_inset Note Note
22489 \begin_layout Plain Layout
22490 The following section will only be displayed when the LaTeX-package
22502 \begin_layout Standard
22503 \begin_inset Float table
22509 \begin_layout Plain Layout
22510 \begin_inset Caption Standard
22512 \begin_layout Plain Layout
22513 \begin_inset CommandInset label
22515 name "tab:Table-with-dashed"
22519 Table with dashed lines
22527 \begin_layout Plain Layout
22529 \begin_inset Tabular
22530 <lyxtabular version="3" rows="5" columns="5">
22531 <features rotate="0" tabularvalignment="middle">
22532 <column alignment="center" valignment="top">
22533 <column alignment="center" valignment="top">
22534 <column alignment="center" valignment="top" special=":c">
22535 <column alignment="center" valignment="top">
22536 <column alignment="center" valignment="top">
22538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22541 \begin_layout Plain Layout
22547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22550 \begin_layout Plain Layout
22556 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22559 \begin_layout Plain Layout
22565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22568 \begin_layout Plain Layout
22574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22577 \begin_layout Plain Layout
22585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22588 \begin_layout Plain Layout
22594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22597 \begin_layout Plain Layout
22603 <cell alignment="center" valignment="top" topline="true" usebox="none">
22606 \begin_layout Plain Layout
22612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22615 \begin_layout Plain Layout
22621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22624 \begin_layout Plain Layout
22632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22635 \begin_layout Plain Layout
22639 \begin_layout Plain Layout
22653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22656 \begin_layout Plain Layout
22662 <cell alignment="center" valignment="top" usebox="none">
22665 \begin_layout Plain Layout
22671 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22674 \begin_layout Plain Layout
22680 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22683 \begin_layout Plain Layout
22691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22694 \begin_layout Plain Layout
22698 \begin_layout Plain Layout
22712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22715 \begin_layout Plain Layout
22721 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22724 \begin_layout Plain Layout
22730 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22733 \begin_layout Plain Layout
22739 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22742 \begin_layout Plain Layout
22750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22753 \begin_layout Plain Layout
22759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22762 \begin_layout Plain Layout
22768 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22771 \begin_layout Plain Layout
22777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22780 \begin_layout Plain Layout
22786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22789 \begin_layout Plain Layout
22808 \begin_layout Standard
22809 LyX does not natively support dashed lines, so you have to use TeX-Code.
22810 As a prerequisite the LaTeX-package
22815 \begin_inset Index idx
22818 \begin_layout Plain Layout
22819 LaTeX-packages ! arydshln
22824 must be loaded in the document preamble with the command
22827 \begin_layout Standard
22832 usepackage{arydshln}
22835 \begin_layout Standard
22836 To make a vertical line dashed, enter the colon
22837 \begin_inset Quotes eld
22841 \begin_inset Quotes erd
22844 together with the character for the horizontal alignment as LaTeX-argument
22845 in the table cell dialog.
22848 \begin_layout Standard
22849 For a horizontal dashed line add the command
22852 \begin_layout Standard
22860 \begin_layout Standard
22861 in TeX-Code as first element of the first cell in the table row.
22864 \begin_layout Standard
22865 For dashed multicolumn lines use the command
22868 \begin_layout Standard
22873 cdashline{line number
22878 \begin_layout Standard
22879 in TeX-Code as the first element of the first cell in the table row.
22880 If you have for example a multicolumn spanning columns 2 to 4 and you want
22881 to have a dashed line above, add the command
22884 \begin_layout Standard
22892 \begin_layout Standard
22893 as the first element of the first cell in the row of the multicolumn.
22896 \begin_layout Standard
22897 \begin_inset VSpace bigskip
22903 \begin_layout Standard
22905 \begin_inset space ~
22909 \begin_inset CommandInset ref
22911 reference "tab:Table-with-dashed"
22916 \begin_inset Quotes eld
22924 \begin_inset Quotes erd
22927 as LaTeX-argument of the third column.
22928 The TeX-Code command
22934 was inserted in the first cell of the third row and the TeX-Code command
22935 \begin_inset Newline newline
22944 was inserted in the first cell of the fourth row.
22947 \begin_layout Standard
22948 \begin_inset VSpace bigskip
22954 \begin_layout Standard
22955 Tables with dashed lines can also be colored as shown by Table
22956 \begin_inset space ~
22960 \begin_inset CommandInset ref
22962 reference "tab:Colored-table-with"
22969 \begin_layout Standard
22973 \begin_layout Plain Layout
22979 arrayrulewidth}{1pt}
22985 \begin_inset Note Note
22988 \begin_layout Plain Layout
22989 thicker lines for better visualization of the line color
22997 \begin_layout Standard
23001 \begin_layout Plain Layout
23005 dashgapcolor{green}
23011 \begin_inset Note Note
23014 \begin_layout Plain Layout
23015 color gaps between dashes green
23023 \begin_layout Standard
23027 \begin_layout Plain Layout
23038 \begin_layout Plain Layout
23047 \begin_layout Plain Layout
23051 arrayrulecolor{red}
23055 arrayrulecolor{black}}
23061 \begin_inset Note Note
23064 \begin_layout Plain Layout
23065 color horizontal, dashed lines red
23073 \begin_layout Standard
23077 \begin_layout Plain Layout
23088 \begin_layout Plain Layout
23097 \begin_layout Plain Layout
23101 arrayrulecolor{yellow}
23105 arrayrulecolor{black}}
23111 \begin_inset Note Note
23114 \begin_layout Plain Layout
23115 color partial horizontal, dashed lines yellow
23123 \begin_layout Standard
23124 \begin_inset Float table
23130 \begin_layout Plain Layout
23131 \begin_inset Caption Standard
23133 \begin_layout Plain Layout
23134 \begin_inset CommandInset label
23136 name "tab:Colored-table-with"
23140 Colored table with dashed lines
23148 \begin_layout Plain Layout
23150 \begin_inset Tabular
23151 <lyxtabular version="3" rows="5" columns="5">
23152 <features rotate="0" tabularvalignment="middle">
23153 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23154 <column alignment="center" valignment="top" width="0pt">
23155 <column alignment="center" valignment="top" width="0pt" special=":c">
23156 <column alignment="center" valignment="top">
23157 <column alignment="center" valignment="top">
23159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23162 \begin_layout Plain Layout
23168 <cell alignment="center" valignment="top" topline="true" usebox="none">
23171 \begin_layout Plain Layout
23177 <cell alignment="center" valignment="top" topline="true" usebox="none">
23180 \begin_layout Plain Layout
23186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23189 \begin_layout Plain Layout
23195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23198 \begin_layout Plain Layout
23206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23209 \begin_layout Plain Layout
23215 <cell alignment="center" valignment="top" topline="true" usebox="none">
23218 \begin_layout Plain Layout
23224 <cell alignment="center" valignment="top" topline="true" usebox="none">
23227 \begin_layout Plain Layout
23233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23236 \begin_layout Plain Layout
23242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23245 \begin_layout Plain Layout
23253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23256 \begin_layout Plain Layout
23260 \begin_layout Plain Layout
23273 \begin_layout Plain Layout
23287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23290 \begin_layout Plain Layout
23296 <cell alignment="center" valignment="top" usebox="none">
23299 \begin_layout Plain Layout
23305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23308 \begin_layout Plain Layout
23314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23317 \begin_layout Plain Layout
23325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23328 \begin_layout Plain Layout
23332 \begin_layout Plain Layout
23346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23349 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23358 \begin_layout Plain Layout
23364 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23367 \begin_layout Plain Layout
23373 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23376 \begin_layout Plain Layout
23384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23387 \begin_layout Plain Layout
23393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23396 \begin_layout Plain Layout
23402 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23405 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23414 \begin_layout Plain Layout
23420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23423 \begin_layout Plain Layout
23427 \begin_layout Plain Layout
23454 \begin_layout Standard
23458 \begin_layout Plain Layout
23472 \begin_inset Note Note
23475 \begin_layout Plain Layout
23484 \begin_layout Standard
23488 \begin_layout Plain Layout
23502 \begin_inset Note Note
23505 \begin_layout Plain Layout
23514 \begin_layout Standard
23518 \begin_layout Plain Layout
23528 \begin_inset Note Note
23531 \begin_layout Plain Layout
23540 \begin_layout Standard
23544 \begin_layout Plain Layout
23550 arrayrulewidth}{0.4pt}
23556 \begin_inset Note Note
23559 \begin_layout Plain Layout
23568 \begin_layout Standard
23569 The coloring of lines, columns and lines works as decribed in section
23570 \begin_inset space ~
23574 \begin_inset CommandInset ref
23576 reference "sec:Colored-Tables"
23581 Coloring horizontal lines works analogically as described there as well,
23582 one only needs to replace in the commands
23606 ; so one uses the command
23609 \begin_layout Standard
23619 \begin_inset Newline newline
23627 \begin_inset Newline newline
23631 \begin_inset Phantom HPhantom
23634 \begin_layout Plain Layout
23635 \begin_inset space ~
23645 arrayrulecolor{red}
23649 arrayrulecolor{black}}
23652 \begin_layout Standard
23662 \begin_layout Standard
23672 \begin_inset Newline newline
23680 \begin_inset Newline newline
23684 \begin_inset Phantom HPhantom
23687 \begin_layout Plain Layout
23688 \begin_inset space ~
23698 arrayrulecolor{red}
23702 arrayrulecolor{black}}
23705 \begin_layout Standard
23706 To get back the black line color, one needs to insert the following commands
23707 as TeX-Code behind the table:
23710 \begin_layout Standard
23718 \begin_layout Standard
23730 \begin_layout Standard
23738 \begin_layout Standard
23750 \begin_layout Standard
23751 To color the gaps between the dashes the command
23754 \begin_layout Standard
23759 dashgapcolor{color}
23762 \begin_layout Standard
23763 can be used in front of a table as TeX-Code.
23764 color is hereby the name of a defined color.
23768 \begin_layout Standard
23776 \begin_layout Standard
23777 unsets the changes made by
23786 \begin_layout Standard
23787 \begin_inset Note Greyedout
23790 \begin_layout Plain Layout
23796 : If there are multiple commands in a cell, the command of
23800 needs to be the first one in the cell.
23806 \begin_inset space ~
23810 \begin_inset CommandInset ref
23812 reference "tab:Colored-table-with"
23836 \begin_layout Standard
23837 \begin_inset Note Greyedout
23840 \begin_layout Plain Layout
23850 must be loaded in the document preamble before the LaTeX-package
23855 \begin_inset Index idx
23858 \begin_layout Plain Layout
23859 LaTeX-packages ! colortbl
23872 \begin_layout Standard
23876 \begin_layout Plain Layout
23886 \begin_inset Note Note
23889 \begin_layout Plain Layout
23890 The following will be displayed when the LaTeX-package
23902 \begin_layout Standard
23903 You need to install the package
23907 to see the content of this section in the output.
23910 \begin_layout Standard
23914 \begin_layout Plain Layout
23926 \begin_layout Standard
23927 For more information about dashed lines see the documentation of
23932 \begin_inset CommandInset citation
23941 \begin_layout Chapter
23943 \begin_inset CommandInset label
23950 \begin_inset Index idx
23953 \begin_layout Plain Layout
23962 \begin_layout Section
23964 \begin_inset CommandInset label
23966 name "sec:FloatIntroduction"
23971 \begin_inset Index idx
23974 \begin_layout Plain Layout
23975 Floats ! Introduction
23983 \begin_layout Standard
23984 A float is a block of text associated with some sort of label, which doesn't
23985 have a fixed location.
23987 \begin_inset Quotes eld
23991 \begin_inset Quotes erd
23994 forward or backward a page or two, to wherever it fits best.
24002 \begin_inset space ~
24007 are also floats because they can float to the next page when there are
24008 too many notes on the page.
24011 \begin_layout Standard
24012 Floats allow a high quality layout.
24013 Images and tables can be spread evenly among the pages to avoid white space
24014 and pages without text.
24015 As the floating often destroys the context between the text and the image/table
24016 , every float can be referenced in the text.
24017 Floats are therefore numbered.
24018 Referencing is described in section
24019 \begin_inset space ~
24023 \begin_inset CommandInset ref
24025 reference "sec:Referencing-Floats"
24032 \begin_layout Standard
24033 To insert a float, use the menu
24035 Insert\SpecialChar \menuseparator
24041 arg "float-insert figure"
24047 arg "float-insert table"
24055 inset, a box with a label.
24056 The label will automatically be translated to the document language in
24058 After the label you can insert the caption text.
24059 The image or table is inserted above or below the caption in a separate
24060 paragraph within the float.
24061 More about the caption placement is contained in section
24062 \begin_inset space ~
24066 \begin_inset CommandInset ref
24068 reference "sec:Caption-Placement"
24073 To keep your LyX-document readable, you can open and close the float box
24074 by left-clicking on the box label.
24075 A closed float box looks like this:
24076 \begin_inset Graphics
24077 filename clipart/floatQt4.png
24079 scaleBeforeRotation
24083 – a gray button with a red label.
24086 \begin_layout Standard
24087 It is recommended that you insert floats as separate standard paragraphs
24088 to avoid possible LaTeX-errors that can occur when the surrounding text
24089 is specially formatted.
24092 \begin_layout Standard
24093 Existing figures or tables can be put into a float by highlighting them
24094 and then pressing the corresponding toolbar button for a new float.
24097 \begin_layout Section
24101 \begin_layout Standard
24102 Besides figure and table floats that are described in sections
24103 \begin_inset space ~
24107 \begin_inset CommandInset ref
24109 reference "sec:Figure-Floats"
24114 \begin_inset CommandInset ref
24116 reference "sec:Table-Floats"
24120 respectively, LyX offers the float types
24129 The latter are explained in sec.
24130 \begin_inset space \thinspace{}
24134 \begin_inset CommandInset ref
24136 reference "sec:Wrap-Floats"
24143 \begin_layout Subsection
24145 \begin_inset Index idx
24148 \begin_layout Plain Layout
24149 Floats ! Algorithms
24157 \begin_layout Standard
24158 \begin_inset Float algorithm
24164 \begin_layout Plain Layout
24165 \begin_inset Caption Standard
24167 \begin_layout Plain Layout
24168 \begin_inset CommandInset label
24170 name "alg:Example-Algorithm-float"
24174 Example Algorithm float
24182 \begin_layout LyX-Code
24184 \begin_inset Newline newline
24187 Sum:= Sum + A(I); /*comment*/
24188 \begin_inset Newline newline
24192 \begin_inset VSpace -4mm
24203 \begin_layout Standard
24204 This float type is inserted with the menu
24206 Insert\SpecialChar \menuseparator
24207 Float\SpecialChar \menuseparator
24211 It is used for program codes and descriptions of algorithms and can be
24212 seen as an alternative to program code listings that are explained in chapter
24213 \begin_inset space ~
24217 \begin_inset CommandInset ref
24219 reference "cha:Program-Code-Listings"
24224 A possible environment for algorithms is the
24228 , described in LyX's
24234 \begin_inset space ~
24238 \begin_inset CommandInset ref
24240 reference "alg:Example-Algorithm-float"
24244 is an example of an algorithm float where -4
24245 \begin_inset space \thinspace{}
24248 mm vertical space was added at the end of the float to have the bottom rule
24249 exactly below the last text line.
24252 \begin_layout Standard
24253 The float label is not automatically translated into the document language.
24254 If your document is not in English, you have to do this manually by adding
24255 the following line to the document preamble
24260 \begin_layout Standard
24265 floatname{algorithm}{your
24266 \begin_inset space ~
24272 \begin_layout Standard
24276 \begin_inset space ~
24282 \begin_inset Quotes eld
24290 \begin_inset Quotes erd
24296 \begin_layout Standard
24297 To insert the list of algorithms you can use the menu
24299 Insert\SpecialChar \menuseparator
24301 \begin_inset space \thinspace{}
24305 \begin_inset space \thinspace{}
24308 TOC\SpecialChar \menuseparator
24311 when your document has the same language as LyX's menu names.
24312 In other cases use this command in TeX-Code instead:
24315 \begin_layout Standard
24320 listof{algorithm}{your
24321 \begin_inset space ~
24327 \begin_layout Standard
24331 \begin_inset space ~
24337 \begin_inset Quotes eld
24345 \begin_inset Quotes erd
24351 \begin_layout Standard
24352 Algorithm floats are not by default numbered in the scheme
24353 \begin_inset Quotes eld
24357 \begin_inset Quotes erd
24360 as is the case for table and figure floats in many document-classes.
24361 To number algorithm floats in the same scheme, add this command to your
24365 \begin_layout Standard
24370 numberwithin{algorithm}{chapter}
24373 \begin_layout Standard
24374 To be able to use the command
24383 \begin_inset space ~
24388 in the document settings the option
24391 \begin_inset space ~
24395 \begin_inset space ~
24399 \begin_inset space ~
24407 \begin_layout Section
24409 \begin_inset Index idx
24412 \begin_layout Plain Layout
24421 \begin_layout Standard
24422 Floats are usually numbered either independently from the sections the floats
24423 are in, or in the scheme
24424 \begin_inset Quotes eld
24428 \begin_inset Quotes erd
24432 \begin_inset Quotes eld
24436 \begin_inset Quotes erd
24440 This depends on the document class used.
24443 \begin_layout Standard
24444 To change section-independent numbering, you can use this command in the
24448 \begin_layout Standard
24460 \begin_layout Standard
24467 is the command that prints the table number.
24468 For figure floats, the command would be
24481 in the command above prints the table number as a small roman number.
24484 \begin_layout Standard
24485 To change the numbering scheme for example to
24486 \begin_inset Quotes eld
24490 \begin_inset Quotes erd
24493 , use this command in the preamble:
24496 \begin_layout Standard
24501 numberwithin{table}{subsection}
24504 \begin_layout Standard
24505 To be able to use the command
24514 \begin_inset space ~
24519 in the document settings the option
24522 \begin_inset space ~
24526 \begin_inset space ~
24530 \begin_inset space ~
24538 \begin_layout Standard
24539 Please also have a look at section
24540 \begin_inset space ~
24544 \begin_inset CommandInset ref
24546 reference "sub:Footnote-Numbering"
24550 for the details and important notes about the numbering commands.
24553 \begin_layout Section
24555 \begin_inset CommandInset label
24557 name "sec:Referencing-Floats"
24562 \begin_inset Index idx
24565 \begin_layout Plain Layout
24566 Floats ! References
24572 \begin_inset Index idx
24575 \begin_layout Plain Layout
24576 References ! to Floats
24584 \begin_layout Standard
24585 To reference a float, insert a label into its caption using the menu
24587 Insert\SpecialChar \menuseparator
24590 or the toolbar button
24597 A grey label box like this one:
24598 \begin_inset Graphics
24599 filename clipart/labelQt4.png
24601 scaleBeforeRotation
24605 will be inserted and the label window pops up asking for the label text.
24606 LyX offers as text the first words of the caption with a prefix.
24607 The prefix depends on the float type, e.
24608 \begin_inset space \thinspace{}
24612 \begin_inset space \space{}
24615 for figure floats the prefix will be "
24622 \begin_layout Standard
24623 The label is used as anchor and name for the reference.
24624 You can refer to the label using the menu
24626 Insert\SpecialChar \menuseparator
24629 or the toolbar button
24632 arg "dialog-show-new-inset ref"
24636 The cross-reference window appears showing all labels of the document.
24637 If you have multiple LyX-documents opened, choose the one you are working
24638 on from the drop-list at the top of the dialog.
24639 You can now sort the labels alphabetically and then choose one.
24640 A grey cross-reference box like this one:
24641 \begin_inset Graphics
24642 filename clipart/referenceQt4.png
24644 scaleBeforeRotation
24649 At the position of the cross-reference box the float number will appear
24653 \begin_layout Standard
24654 It is recommended that you use a protected space between the cross-reference
24655 name and its number to avoid line breaks between them.
24656 If a cross-reference refers to a non-existing label, you will see two question
24657 marks in the output instead of the reference.
24660 \begin_layout Standard
24661 You can change labels at any time by clicking on the label box.
24662 References to the changed label will automatically update their links to
24663 the new label text.
24666 \begin_layout Standard
24670 \begin_inset space ~
24674 \begin_inset space ~
24679 in the cross-reference window sets the cursor before the referred label.
24680 The button text changes then to Go
24681 \begin_inset space ~
24684 Back and you can use it to set the cursor back to the cross-reference.
24687 \begin_layout Subsection
24688 Cross-Reference Formats
24689 \begin_inset CommandInset label
24691 name "sub:Cross-Reference-Formats"
24696 \begin_inset Index idx
24699 \begin_layout Plain Layout
24700 References ! Formats
24708 \begin_layout Standard
24709 There are six varieties of cross-references:
24712 \begin_layout Description
24713 <reference>: prints the float number, this is the default:
24714 \begin_inset CommandInset ref
24716 reference "fig:Two-distorted-images"
24723 \begin_layout Description
24724 (<reference>): prints the float number within two parentheses, this is the
24725 style normally used to reference formulas, especially when the reference
24727 \begin_inset Quotes eld
24731 \begin_inset Quotes erd
24735 \begin_inset CommandInset ref
24744 \begin_layout Description
24745 <page>: prints the page number: Page
24746 \begin_inset space ~
24750 \begin_inset CommandInset ref
24751 LatexCommand pageref
24752 reference "fig:Two-distorted-images"
24759 \begin_layout Description
24761 \begin_inset space ~
24765 \begin_inset space ~
24768 <page>: prints the text "on page" and the page number:
24769 \begin_inset CommandInset ref
24770 LatexCommand vpageref
24771 reference "fig:Two-distorted-images"
24778 \begin_layout Description
24780 \begin_inset space ~
24784 \begin_inset space ~
24788 \begin_inset space ~
24791 <page>: prints the float number, the text "on page", and the page number:
24793 \begin_inset CommandInset ref
24795 reference "fig:Two-distorted-images"
24802 \begin_layout Description
24804 \begin_inset space ~
24807 reference: prints a self-defined cross-reference format.
24808 \begin_inset Newline newline
24812 \begin_inset Note Greyedout
24815 \begin_layout Plain Layout
24820 This feature is only available when you have the LaTeX-package
24829 \begin_inset Index idx
24832 \begin_layout Plain Layout
24833 LaTeX-packages ! prettyref
24839 \begin_inset Index idx
24842 \begin_layout Plain Layout
24843 LaTeX-packages ! refstyle
24854 \begin_inset Newline newline
24857 You can select which LaTeX-package should be used for this feature by setting
24860 Use refstyle (not prettyref) for cross-references
24864 Document\SpecialChar \menuseparator
24865 Settings\SpecialChar \menuseparator
24869 The format is specified by adding the command
24881 (refstyle) to the preamble of the document.
24882 For example redefining all references to figures (which have the label
24884 \begin_inset Quotes eld
24892 \begin_inset Quotes erd
24895 ) can be done with this command
24896 \begin_inset Newline newline
24903 newref{fig}{refcmd={Image on page
24908 \begin_inset Newline newline
24911 For more information about the format, have a look at the package documentations
24913 \begin_inset CommandInset citation
24915 key "prettyref,refstyle"
24922 \begin_layout Description
24924 \begin_inset space ~
24927 reference: prints the caption of the reference:
24928 \begin_inset CommandInset ref
24929 LatexCommand nameref
24930 reference "fig:Two-distorted-images"
24937 \begin_layout Standard
24942 will not print the page number if the label is on the previous, the same,
24945 \begin_inset space \thinspace{}
24949 \begin_inset space \space{}
24953 \begin_inset Quotes eld
24961 \begin_inset Quotes erd
24967 <reference> on page <page>
24969 will not print anything about the page if the label is on the same page.
24972 \begin_layout Standard
24973 The number and current page of the part of the document referred to in the
24974 output is automatically calculated by LaTeX.
24975 The varieties are adjusted in the field
24979 of the cross-reference window that appears when you click on the cross-referenc
24983 \begin_layout Standard
24984 \begin_inset Note Greyedout
24987 \begin_layout Plain Layout
24992 It is recommended to use the LaTeX-package
24997 \begin_inset Index idx
25000 \begin_layout Plain Layout
25001 LaTeX-packages ! refstyle
25011 \begin_inset Index idx
25014 \begin_layout Plain Layout
25015 LaTeX-packages ! prettyref
25020 does not know all of LyX's possible label shortcuts
25024 \begin_layout Plain Layout
25025 \begin_inset Quotes eld
25029 \begin_inset Quotes erd
25032 is for example LyX's shortcut for labels in figure captions.
25037 and is not internationalized.
25045 \begin_layout Standard
25046 \begin_inset Note Greyedout
25049 \begin_layout Plain Layout
25054 Due to a bug in the LaTeX-package
25058 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25059 languages that make the period character active (like French).
25060 For a workaround, see
25061 \begin_inset Newline newline
25065 \begin_inset CommandInset href
25067 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25079 \begin_layout Subsection
25080 Automatic Reference Naming
25081 \begin_inset Index idx
25084 \begin_layout Plain Layout
25085 References ! Automatic Reference Naming
25093 \begin_layout Standard
25099 \begin_inset Index idx
25102 \begin_layout Plain Layout
25103 LaTeX-packages ! hyperref
25108 , that is enabled in the
25116 dialog, provides a very useful feature that cross-references automatically
25117 include the name of the referenced floats (or text parts like
25122 So you will save having to write e.
25123 \begin_inset space \thinspace{}
25127 \begin_inset space \space{}
25131 \begin_inset Quotes eld
25135 \begin_inset Quotes erd
25138 before every reference to a figure.
25139 To use this feature, enable
25143 and insert this line to the LaTeX preamble:
25146 \begin_layout Standard
25162 \begin_layout Standard
25163 When you prefer other reference names than the default ones, for example
25164 you want instead of
25165 \begin_inset Quotes eld
25169 \begin_inset Quotes erd
25173 \begin_inset Quotes eld
25177 \begin_inset space \thinspace{}
25181 \begin_inset Quotes eld
25184 , you can redefine the name by inserting this in the preamble:
25187 \begin_layout Standard
25198 sectionautorefname}
25199 \begin_inset Newline newline
25203 \begin_inset Phantom HPhantom
25206 \begin_layout Plain Layout
25209 \begin_inset space ~
25222 \begin_layout Standard
25223 When you are using another document language than English, replace
25224 \begin_inset Newline newline
25239 , where *** is the name of the language used.
25242 \begin_layout Standard
25243 To get automatic names, but not for certain reference types, for example
25244 not for equations, use this preamble code:
25247 \begin_layout Standard
25258 equationautorefname}[1]{}}
25261 \begin_layout Standard
25262 More about this topic can be found in
25267 \begin_inset CommandInset citation
25276 \begin_layout Standard
25277 \begin_inset Note Greyedout
25280 \begin_layout Plain Layout
25285 Automatic reference naming cannot be used when you use cross-references
25289 \begin_inset space ~
25294 style, as described in section
25295 \begin_inset space ~
25299 \begin_inset CommandInset ref
25301 reference "sub:Cross-Reference-Formats"
25313 \begin_layout Standard
25318 manual is an example where automatic reference naming is used.
25321 \begin_layout Subsection
25323 \begin_inset CommandInset label
25325 name "sub:Reference-Position"
25330 \begin_inset Index idx
25333 \begin_layout Plain Layout
25334 References ! Reference Position
25342 \begin_layout Standard
25348 \begin_inset Index idx
25351 \begin_layout Plain Layout
25352 LaTeX-packages ! hyperref
25365 dialog to link cross-references in the output, you will see that clicking
25366 on an image float reference jumps to the image label.
25367 The caption will be the first text part on the screen, so that you cannot
25368 see the image without scrolling.
25369 This is because the reference link anchor is placed at the position of
25371 With the use of the package
25376 \begin_inset Index idx
25379 \begin_layout Plain Layout
25380 LaTeX-packages ! hypcap
25385 , which is part of the LaTeX-package
25390 \begin_inset Index idx
25393 \begin_layout Plain Layout
25394 LaTeX-packages ! oberdiek
25399 , the link anchor is placed at the beginning of a float.
25400 To use this feature for figure floats, load
25404 in the document preamble with the line
25407 \begin_layout Standard
25412 usepackage[figure]{hypcap}
25415 \begin_layout Standard
25420 for all float types but this is not recommended for stability reasons.
25421 For more information, have a look at
25426 \begin_inset CommandInset citation
25435 \begin_layout Standard
25436 \begin_inset Note Greyedout
25439 \begin_layout Plain Layout
25448 has no effect on references to subfigures.
25456 \begin_layout Section
25458 \begin_inset CommandInset label
25460 name "sec:Float-Placement"
25465 \begin_inset Index idx
25468 \begin_layout Plain Layout
25477 \begin_layout Standard
25478 Right-clicking on a float-box and clicking on
25482 opens a dialog where you can alter the placement options that LaTeX uses
25483 for positioning the float.
25484 \begin_inset Newline newline
25490 \begin_inset space ~
25495 is only useful for two-column documents: If you select it, the float will
25496 span both columns on the page instead of being confined to just one.
25497 \begin_inset Newline newline
25503 \begin_inset space ~
25508 is used to rotate floats, see section
25509 \begin_inset CommandInset ref
25511 reference "sec:Rotated-Floats"
25518 \begin_layout Standard
25519 You can use one or more of the following options in the float dialog to
25520 set the placement for a particular float when you uncheck the option
25523 \begin_inset space ~
25527 \begin_inset space ~
25535 \begin_layout Description
25537 \begin_inset space ~
25541 \begin_inset space ~
25544 possible try to place the float on the position where it has been inserted
25547 \begin_layout Description
25549 \begin_inset space ~
25553 \begin_inset space ~
25556 page try to place the float at the top of the current page
25559 \begin_layout Description
25561 \begin_inset space ~
25565 \begin_inset space ~
25568 page try to place the float at the bottom of the current page
25571 \begin_layout Description
25573 \begin_inset space ~
25577 \begin_inset space ~
25580 floats try to place the float on its own page
25583 \begin_layout Standard
25584 The order of the above option is
25589 That means, if you use the default placement, LaTeX will first try out
25593 \begin_inset space ~
25597 \begin_inset space ~
25605 \begin_inset space ~
25609 \begin_inset space ~
25614 , and then the others.
25615 If you do not use the default, LaTeX will try only the checked options
25616 but in the same order.
25618 \begin_inset space ~
25621 placements is possible the procedure is internally repeated trying to put
25622 the float on the following page.
25625 \begin_layout Standard
25626 By default, each option has its own rules:
25629 \begin_layout Labeling
25630 \labelwidthstring 00.00.0000
25634 \begin_inset space ~
25638 \begin_inset space ~
25643 only floats occupying less than 70
25644 \begin_inset space \thinspace{}
25647 % of the page can be placed at the top of a page (
25656 \begin_layout Labeling
25657 \labelwidthstring 00.00.0000
25661 \begin_inset space ~
25665 \begin_inset space ~
25670 : only floats occupying less than 30
25671 \begin_inset space \thinspace{}
25674 % of the page can be placed at the bottom of a page.
25684 \begin_layout Labeling
25685 \labelwidthstring 00.00.0000
25689 \begin_inset space ~
25693 \begin_inset space ~
25698 : only if more than 50
25699 \begin_inset space \thinspace{}
25702 % of the page is occupied by floats, several floats can be set together
25713 \begin_layout Standard
25714 If you don't like these rules, you can ignore them by using the additional
25718 \begin_inset space ~
25722 \begin_inset space ~
25728 \begin_inset Newline newline
25731 You can also redefine the rules with LaTeX-commands that are given in parenthese
25732 s after the rules description above.
25733 To increase for example the often too small default of the bottom-rule
25735 \begin_inset space \thinspace{}
25738 % of the page, add this line to your document preamble:
25741 \begin_layout Standard
25748 bottomfraction}{0.5}
25751 \begin_layout Standard
25752 Sometimes you might need, under all circumstances, a float to be placed
25753 exactly at the position where it is inserted.
25754 For this case you can use the option
25757 \begin_inset space ~
25763 Use this option very rarely and only if the document is almost ready to
25764 be printed, because the float is then no longer able to
25765 \begin_inset Quotes eld
25769 \begin_inset Quotes erd
25772 when you change your document and this will often destroy the page layout.
25775 \begin_layout Standard
25776 There are no placement options for text wrap floats, because they are always
25777 surrounded by the text of a certain paragraph.
25778 \begin_inset VSpace bigskip
25784 \begin_layout Standard
25785 Sometimes you have the problem that a float is placed at the top of a page
25786 while its corresponding section starts at the middle of the page, so that
25787 the reader could think the float is part of the previous section.
25788 To avoid this the LaTeX-command
25795 It suppresses a given float placement for the page where it is inserted
25796 and can therefore be used to avoid floats being set before a section starts.
25797 To get this, add these commands to your document preamble:
25800 \begin_layout Standard
25810 \begin_inset Newline newline
25824 \begin_layout Standard
25825 You can define the same for all section headings, like chapters and subsections.
25826 This definition is not recommended to be used for small text parts like
25827 subsubsections because LaTeX may then have problems finding a suitable
25831 \begin_layout Standard
25832 \begin_inset VSpace bigskip
25835 In some cases it is required to have all figures/tables at the end of the
25837 For this purpose the LaTeX-package
25842 \begin_inset Index idx
25845 \begin_layout Plain Layout
25846 LaTeX-packages ! endfloat
25852 It puts all figure and table floats at the end of the document into their
25854 At the original float position a text hint like
25855 \begin_inset Quotes eld
25861 \begin_inset space ~
25867 \begin_inset Quotes erd
25871 The endfloat-package is loaded in the preamble with the line
25874 \begin_layout Standard
25879 usepackage[options]{endfloat}
25882 \begin_layout Standard
25883 There are various package options to format the created figure/table sections.
25884 For more information we refer you to the
25889 \begin_inset CommandInset citation
25896 \begin_inset Newline newline
25900 \begin_inset Note Greyedout
25903 \begin_layout Plain Layout
25908 doesn't provide an automatic translation for the text hint, you have to
25909 do this manually, see section
25910 \begin_inset space ~
25914 \begin_inset CommandInset citation
25926 \begin_inset Newline newline
25930 \begin_inset Note Greyedout
25933 \begin_layout Plain Layout
25938 There is currently a bug in
25942 when the caption contains a German
25943 \begin_inset Quotes eld
25947 \begin_inset Quotes erd
25951 Use in this case the command
25952 \begin_inset Quotes eld
25962 \begin_inset Quotes erd
25965 in TeX-Code instead of
25966 \begin_inset Quotes eld
25970 \begin_inset Quotes erd
25981 \begin_layout Standard
25982 \begin_inset VSpace bigskip
25985 For more details about float placements, have a look at LaTeX books,
25986 \begin_inset CommandInset citation
25988 key "latexcompanion,latexguide,latexbook"
25995 \begin_layout Section
25997 \begin_inset CommandInset label
25999 name "sec:Rotated-Floats"
26004 \begin_inset Index idx
26007 \begin_layout Plain Layout
26016 \begin_layout Standard
26017 Especially for wide tables you might have floats rotated.
26018 To rotate a whole float including the caption, right-click on the float-box
26022 \begin_inset space ~
26030 \begin_layout Standard
26031 Rotated floats are always placed on a page of their own (or column of their
26032 own; in case you have a multi-column document).
26033 You can let them span several columns using the float settings option
26036 \begin_inset space ~
26042 Floats are rotated so that you can read them from the outside margin.
26043 To force a certain rotation direction for all pages, you can add either
26052 to the document class options.
26055 \begin_layout Standard
26056 Referencing rotated floats is the same as for normal floats, the caption
26057 format is also the same: Table
26058 \begin_inset space ~
26062 \begin_inset CommandInset ref
26064 reference "tab:Rotated-table"
26068 is an example of a rotated table float.
26071 \begin_layout Standard
26072 \begin_inset Note Greyedout
26075 \begin_layout Plain Layout
26080 Not all DVI-viewers are able to display rotated floats.
26088 \begin_layout Standard
26089 \begin_inset Float table
26094 \begin_layout Plain Layout
26095 \begin_inset Caption Standard
26097 \begin_layout Plain Layout
26098 \begin_inset CommandInset label
26100 name "tab:Rotated-table"
26112 \begin_layout Plain Layout
26114 \begin_inset Tabular
26115 <lyxtabular version="3" rows="1" columns="5">
26116 <features rotate="0" tabularvalignment="middle">
26117 <column alignment="center" valignment="top">
26118 <column alignment="center" valignment="top">
26119 <column alignment="center" valignment="top">
26120 <column alignment="center" valignment="top">
26121 <column alignment="center" valignment="top">
26123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26126 \begin_layout Plain Layout
26132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26135 \begin_layout Plain Layout
26141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26144 \begin_layout Plain Layout
26150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26153 \begin_layout Plain Layout
26159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26162 \begin_layout Plain Layout
26181 \begin_layout Section
26183 \begin_inset Index idx
26186 \begin_layout Plain Layout
26195 \begin_layout Standard
26196 Subfloats are for example used when a figure consists of several images.
26197 They are created by inserting a float into an existing float.
26198 The placement of the subfloats can be controlled in the same way as for
26199 paragraphs as shown in table
26200 \begin_inset space ~
26204 \begin_inset CommandInset ref
26206 reference "tab:Two-subtables-side"
26211 \begin_inset CommandInset ref
26213 reference "tab:Two-subtables-upon"
26220 \begin_layout Standard
26221 Referencing subfloats works as for normal floats: Table
26222 \begin_inset space ~
26226 \begin_inset CommandInset ref
26228 reference "tab:This-is-subtable-a"
26233 \begin_inset CommandInset ref
26235 reference "tab:This-is-subtable-b"
26239 are subtables of table
26240 \begin_inset space ~
26244 \begin_inset CommandInset ref
26246 reference "tab:Two-subtables-side"
26253 \begin_layout Standard
26254 \begin_inset Float table
26259 \begin_layout Plain Layout
26260 \begin_inset Caption Standard
26262 \begin_layout Plain Layout
26263 \begin_inset CommandInset label
26265 name "tab:Two-subtables-side"
26269 Two subtables placed side by side.
26277 \begin_layout Plain Layout
26279 \begin_inset space \hfill{}
26283 \begin_inset Float table
26288 \begin_layout Plain Layout
26289 \begin_inset Caption Standard
26291 \begin_layout Plain Layout
26292 \begin_inset CommandInset label
26294 name "tab:This-is-subtable-a"
26298 This is subtable a.
26306 \begin_layout Plain Layout
26308 \begin_inset Tabular
26309 <lyxtabular version="3" rows="1" columns="5">
26310 <features rotate="0" tabularvalignment="middle">
26311 <column alignment="center" valignment="top">
26312 <column alignment="center" valignment="top">
26313 <column alignment="center" valignment="top">
26314 <column alignment="center" valignment="top">
26315 <column alignment="center" valignment="top">
26317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26320 \begin_layout Plain Layout
26326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26329 \begin_layout Plain Layout
26335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26338 \begin_layout Plain Layout
26344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26347 \begin_layout Plain Layout
26353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26356 \begin_layout Plain Layout
26373 \begin_inset space \hfill{}
26377 \begin_inset Float table
26382 \begin_layout Plain Layout
26383 \begin_inset Caption Standard
26385 \begin_layout Plain Layout
26386 \begin_inset CommandInset label
26388 name "tab:This-is-subtable-b"
26392 This is subtable b.
26400 \begin_layout Plain Layout
26402 \begin_inset Tabular
26403 <lyxtabular version="3" rows="1" columns="5">
26404 <features rotate="0" tabularvalignment="middle">
26405 <column alignment="center" valignment="top">
26406 <column alignment="center" valignment="top">
26407 <column alignment="center" valignment="top">
26408 <column alignment="center" valignment="top">
26409 <column alignment="center" valignment="top">
26411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26414 \begin_layout Plain Layout
26420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26423 \begin_layout Plain Layout
26429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26432 \begin_layout Plain Layout
26438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26441 \begin_layout Plain Layout
26447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26450 \begin_layout Plain Layout
26467 \begin_inset space \hfill{}
26478 \begin_layout Standard
26479 \begin_inset Float table
26484 \begin_layout Plain Layout
26485 \begin_inset Caption Standard
26487 \begin_layout Plain Layout
26488 \begin_inset CommandInset label
26490 name "tab:Two-subtables-upon"
26494 Two subtables placed one above the other.
26495 (a) table with 4 cells, (b) table with 5 cells.
26503 \begin_layout Plain Layout
26505 \begin_inset Float table
26510 \begin_layout Plain Layout
26511 \begin_inset Caption Standard
26513 \begin_layout Plain Layout
26522 \begin_layout Plain Layout
26524 \begin_inset Tabular
26525 <lyxtabular version="3" rows="1" columns="4">
26526 <features rotate="0" tabularvalignment="middle">
26527 <column alignment="center" valignment="top">
26528 <column alignment="center" valignment="top">
26529 <column alignment="center" valignment="top">
26530 <column alignment="center" valignment="top">
26532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26535 \begin_layout Plain Layout
26541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26544 \begin_layout Plain Layout
26550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26553 \begin_layout Plain Layout
26559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26562 \begin_layout Plain Layout
26581 \begin_layout Plain Layout
26583 \begin_inset Float table
26588 \begin_layout Plain Layout
26589 \begin_inset Caption Standard
26591 \begin_layout Plain Layout
26600 \begin_layout Plain Layout
26602 \begin_inset Tabular
26603 <lyxtabular version="3" rows="1" columns="5">
26604 <features rotate="0" tabularvalignment="middle">
26605 <column alignment="center" valignment="top">
26606 <column alignment="center" valignment="top">
26607 <column alignment="center" valignment="top">
26608 <column alignment="center" valignment="top">
26609 <column alignment="center" valignment="top">
26611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26614 \begin_layout Plain Layout
26620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26623 \begin_layout Plain Layout
26629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26632 \begin_layout Plain Layout
26638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26641 \begin_layout Plain Layout
26647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26650 \begin_layout Plain Layout
26674 \begin_layout Section
26675 Floats Side by Side
26676 \begin_inset Index idx
26679 \begin_layout Plain Layout
26680 Floats ! Side by side
26688 \begin_layout Standard
26689 To place floats side by side, as in Figures
26690 \begin_inset space ~
26694 \begin_inset CommandInset ref
26696 reference "fig:Float-left"
26701 \begin_inset CommandInset ref
26703 reference "fig:Float-right"
26712 In it two minipage boxes are inserted.
26716 \begin_layout Plain Layout
26717 Minipages are explained in section
26718 \begin_inset space ~
26722 \begin_inset CommandInset ref
26724 reference "sec:Minipages"
26733 The width is set to 45
26734 \begin_inset space \thinspace{}
26738 \begin_inset space \thinspace{}
26741 column% and the box alignment to
26746 The minipage boxes contain the image and the caption in the same way as
26747 they are in a float.
26748 The only difference is that the image unit
26751 \begin_inset space ~
26755 \begin_inset space ~
26760 is now calculated according to the width of the minipage boxes.
26763 \begin_layout Standard
26764 \begin_inset Float figure
26769 \begin_layout Plain Layout
26770 \begin_inset Box Frameless
26780 height_special "totalheight"
26783 \begin_layout Plain Layout
26785 \begin_inset Graphics
26786 filename clipart/mobius.eps
26789 scaleBeforeRotation
26796 \begin_layout Plain Layout
26797 \begin_inset Caption Standard
26799 \begin_layout Plain Layout
26800 \begin_inset CommandInset label
26802 name "fig:Float-left"
26806 Float on the left side.
26817 \begin_inset space \hfill{}
26821 \begin_inset Box Frameless
26831 height_special "totalheight"
26834 \begin_layout Plain Layout
26836 \begin_inset Graphics
26837 filename clipart/platypus.eps
26840 scaleBeforeRotation
26847 \begin_layout Plain Layout
26848 \begin_inset Caption Standard
26850 \begin_layout Plain Layout
26851 \begin_inset CommandInset label
26853 name "fig:Float-right"
26857 Float on the right side.
26870 \begin_layout Plain Layout
26879 \begin_layout Section
26881 \begin_inset Index idx
26884 \begin_layout Plain Layout
26885 Caption ! Formatting
26891 \begin_inset Index idx
26894 \begin_layout Plain Layout
26895 Floats ! Caption Formatting
26901 \begin_inset CommandInset label
26903 name "sec:Caption-Formatting"
26910 \begin_layout Standard
26915 environment is the default paragraph environment for
26920 On the LyX screen captions appear as a label, e.
26921 \begin_inset space \thinspace{}
26925 \begin_inset space \space{}
26929 \begin_inset Quotes eld
26937 \begin_inset Quotes erd
26940 followed by the caption text.
26942 \begin_inset Quotes eld
26946 \begin_inset Quotes erd
26949 is the actual reference number.
26950 By default the label and the number are in the same font as the caption
26951 text and a colon follows the number to divide the label from the text.
26952 This caption format is suitable for many but not all documents.
26956 \begin_layout Standard
26957 To change the default caption format, load the LaTeX-package
26962 \begin_inset Index idx
26965 \begin_layout Plain Layout
26966 LaTeX-packages ! caption
26971 in the document preamble with this line:
26974 \begin_layout Standard
26979 usepackage[format definition]{caption}
26982 \begin_layout Standard
26983 To have for example the label and the number in sans-serif, bold font and
26984 the table captions always above the table as in this document, use the
26988 \begin_layout Standard
26993 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26996 \begin_layout Standard
26997 You can also define different caption formats for the different float types.
26998 In this case load the
27002 package without format specific options and define the different formats
27003 with the help of the command
27006 \begin_layout Standard
27011 captionsetup[float type]{format definition}
27014 \begin_layout Standard
27015 in the document preamble.
27016 For example the caption formats of Figure
27017 \begin_inset space ~
27021 \begin_inset CommandInset ref
27023 reference "fig:This-is-an-fig"
27028 \begin_inset space ~
27032 \begin_inset CommandInset ref
27034 reference "tab:This-is-an-tab"
27038 can be created using these commands in the document preamble:
27041 \begin_layout Standard
27046 usepackage[tableposition=top]{caption}
27049 \begin_inset Newline newline
27056 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27057 \begin_inset Newline newline
27061 \begin_inset Phantom HPhantom
27064 \begin_layout Plain Layout
27069 captionsetup[figure]{
27075 \begin_inset Newline newline
27080 captionsetup[table]{labelfont={bf,sf}}
27083 \begin_layout Standard
27084 \begin_inset Note Greyedout
27087 \begin_layout Plain Layout
27096 has no effect when a
27101 \begin_inset Index idx
27104 \begin_layout Plain Layout
27105 LaTeX-packages ! KOMA-Script
27110 document class is used.
27111 In this case the document class option
27113 captions=tableheading
27123 \begin_layout Standard
27124 For more information about the package
27128 we refer to its documentation
27129 \begin_inset CommandInset citation
27138 \begin_layout Standard
27139 To change the label name from e.
27140 \begin_inset space \thinspace{}
27144 \begin_inset space \space{}
27148 \begin_inset Quotes eld
27152 \begin_inset Quotes erd
27156 \begin_inset Quotes eld
27160 \begin_inset Quotes erd
27163 use this preamble command:
27166 \begin_layout Standard
27173 fnum@figure}{Image~
27178 \begin_layout Standard
27185 inserts the figure number and
27188 \begin_inset Quotes eld
27194 \begin_inset Quotes erd
27197 creates a protected space.
27200 \begin_layout Standard
27201 \begin_inset VSpace bigskip
27209 \begin_inset Index idx
27212 \begin_layout Plain Layout
27213 LaTeX-packages ! KOMA-Script
27220 article (KOMA-Script)
27228 letter (KOMA-Script)
27232 report (KOMA-Script)
27235 \begin_inset space \thinspace{}
27238 ), you can alternatively to the
27246 's built-in command
27253 For example, to have the caption label in bold, add this command to your
27257 \begin_layout Standard
27262 setkomafont{captionlabel}{
27267 \begin_layout Standard
27268 For more information about
27279 \begin_inset CommandInset citation
27288 \begin_layout Standard
27292 \begin_layout Plain Layout
27296 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27303 \begin_inset Note Note
27306 \begin_layout Plain Layout
27307 The caption format is changed only for this example.
27315 \begin_layout Standard
27316 \begin_inset Float figure
27322 \begin_layout Plain Layout
27324 \begin_inset Graphics
27325 filename clipart/mobius.eps
27328 scaleBeforeRotation
27335 \begin_layout Plain Layout
27336 \begin_inset Caption Standard
27338 \begin_layout Plain Layout
27339 \begin_inset CommandInset label
27341 name "fig:This-is-an-fig"
27345 This is an example figure caption that is longer than one line to show the
27346 different caption format.
27347 Here a self-defined caption format is used.
27360 \begin_layout Standard
27364 \begin_layout Plain Layout
27368 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27377 \begin_layout Standard
27378 \begin_inset Float table
27384 \begin_layout Plain Layout
27385 \begin_inset Caption Standard
27387 \begin_layout Plain Layout
27388 \begin_inset CommandInset label
27390 name "tab:This-is-an-tab"
27394 This is an example table caption that is longer than one line to show the
27395 different caption format.
27396 Here the standard caption format for tables in this document is used.
27404 \begin_layout Plain Layout
27406 \begin_inset Tabular
27407 <lyxtabular version="3" rows="1" columns="5">
27408 <features rotate="0" tabularvalignment="middle">
27409 <column alignment="center" valignment="top">
27410 <column alignment="center" valignment="top">
27411 <column alignment="center" valignment="top">
27412 <column alignment="center" valignment="top">
27413 <column alignment="center" valignment="top">
27415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27418 \begin_layout Plain Layout
27424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27427 \begin_layout Plain Layout
27433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27436 \begin_layout Plain Layout
27442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27445 \begin_layout Plain Layout
27451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27454 \begin_layout Plain Layout
27473 \begin_layout Section
27475 \begin_inset Index idx
27478 \begin_layout Plain Layout
27479 Caption ! Placement
27485 \begin_inset Index idx
27488 \begin_layout Plain Layout
27489 Floats ! Caption Placement
27495 \begin_inset CommandInset label
27497 name "sec:Caption-Placement"
27504 \begin_layout Standard
27505 The common caption placement rule is:
27508 \begin_layout Description
27509 Figure: Caption is set below the figure
27512 \begin_layout Description
27513 Table: Caption is set above the table
27516 \begin_layout Standard
27517 Having the caption above the table is unfortunately not supported in LaTeX's
27519 That means if you are using the document classes
27535 there will be no space between the caption and the table.
27536 To insert the necessary space, load the LaTeX-package
27541 \begin_inset Index idx
27544 \begin_layout Plain Layout
27545 LaTeX-packages ! caption
27550 in your document preamble with the option
27554 \begin_layout Plain Layout
27556 \begin_inset space ~
27560 \begin_inset CommandInset ref
27562 reference "sec:Caption-Formatting"
27566 for more information of the package
27578 \begin_layout Standard
27584 \begin_layout Standard
27590 \begin_inset Index idx
27593 \begin_layout Plain Layout
27594 LaTeX-packages ! KOMA-Script
27601 article (KOMA-Script)
27609 letter (KOMA-Script)
27613 report (KOMA-Script)
27616 \begin_inset space \thinspace{}
27619 ), you can alternatively to the
27623 package set the document class option
27627 \begin_layout Plain Layout
27628 That option is used in this document.
27636 \begin_layout Standard
27639 captions=tableheading
27642 \begin_layout Standard
27643 In documents with a KOMA-Script document class you can also right-click
27644 on a caption and mark in the context menu if this should be a caption above
27645 or below the table/figure.
27646 This way you can override the document-wide caption placement for certain
27649 \begin_inset space ~
27653 \begin_inset CommandInset ref
27655 reference "tab:A-caption-marked"
27659 is an example where the caption is marked a being below the table while
27661 For comparison the caption in Table
27662 \begin_inset space ~
27666 \begin_inset CommandInset ref
27668 reference "tab:A-standard-table"
27675 \begin_layout Standard
27676 \begin_inset Float table
27681 \begin_layout Plain Layout
27682 \begin_inset Caption Below
27684 \begin_layout Plain Layout
27685 \begin_inset CommandInset label
27687 name "tab:A-caption-marked"
27691 A caption marked as being below the table.
27699 \begin_layout Plain Layout
27701 \begin_inset Tabular
27702 <lyxtabular version="3" rows="3" columns="3">
27703 <features rotate="0" tabularvalignment="middle">
27704 <column alignment="center" valignment="top" width="0pt">
27705 <column alignment="center" valignment="top" width="0pt">
27706 <column alignment="center" valignment="top" width="0pt">
27708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27711 \begin_layout Plain Layout
27717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27720 \begin_layout Plain Layout
27726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27729 \begin_layout Plain Layout
27737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27740 \begin_layout Plain Layout
27746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27749 \begin_layout Plain Layout
27755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27758 \begin_layout Plain Layout
27766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27769 \begin_layout Plain Layout
27770 \begin_inset Formula $\int x^{2}dx$
27778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27781 \begin_layout Plain Layout
27782 \begin_inset Formula $\left[\begin{array}{cc}
27785 \end{array}\right]$
27793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27796 \begin_layout Plain Layout
27797 \begin_inset Formula $1+1=2$
27818 \begin_layout Standard
27819 \begin_inset Float table
27824 \begin_layout Plain Layout
27825 \begin_inset Caption Standard
27827 \begin_layout Plain Layout
27828 \begin_inset CommandInset label
27830 name "tab:A-standard-table"
27834 A standard table caption.
27842 \begin_layout Plain Layout
27844 \begin_inset Tabular
27845 <lyxtabular version="3" rows="3" columns="3">
27846 <features rotate="0" tabularvalignment="middle">
27847 <column alignment="center" valignment="top" width="0pt">
27848 <column alignment="center" valignment="top" width="0pt">
27849 <column alignment="center" valignment="top" width="0pt">
27851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27854 \begin_layout Plain Layout
27860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27863 \begin_layout Plain Layout
27869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27872 \begin_layout Plain Layout
27880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27883 \begin_layout Plain Layout
27889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27892 \begin_layout Plain Layout
27898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27901 \begin_layout Plain Layout
27909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27912 \begin_layout Plain Layout
27913 \begin_inset Formula $\int x^{2}dx$
27921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27924 \begin_layout Plain Layout
27925 \begin_inset Formula $\left[\begin{array}{cc}
27928 \end{array}\right]$
27936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27939 \begin_layout Plain Layout
27940 \begin_inset Formula $1+1=2$
27961 \begin_layout Standard
27962 \begin_inset VSpace bigskip
27965 It is also possible to set the caption beside a figure or table.
27966 To get this the LaTeX-package
27971 \begin_inset Index idx
27974 \begin_layout Plain Layout
27975 LaTeX-packages ! sidecap
27980 has to be loaded in the document preamble with the line
27983 \begin_layout Standard
27988 usepackage[option]{sidecap}
27991 \begin_layout Standard
27992 If you set no option, the caption is placed on the side of the outer page
27993 margin – to the right on odd pages, to the left on even pages.
27994 You can change the placement to inner margin with the option
27999 To force the placement always to the right or left, use the option
28010 \begin_layout Standard
28014 \begin_layout Plain Layout
28024 \begin_inset Note Note
28027 \begin_layout Plain Layout
28028 The following section will only be displayed when the LaTeX-package
28040 \begin_layout Standard
28041 To place in LyX the caption of a float on the side, it is necessary to add
28042 these commands to the document preamble:
28045 \begin_layout Standard
28047 \begin_inset CommandInset line
28058 \begin_layout Standard
28065 TabBesBeg}[1][1.0]{%
28066 \begin_inset Newline newline
28070 \begin_inset Phantom HPhantom
28073 \begin_layout Plain Layout
28074 \begin_inset space ~
28089 \begin_inset Newline newline
28093 \begin_inset Phantom HPhantom
28096 \begin_layout Plain Layout
28099 \begin_inset space ~
28114 \begin_inset Newline newline
28118 \begin_inset Phantom HPhantom
28121 \begin_layout Plain Layout
28124 \begin_inset space ~
28134 renewenvironment{table}[1]{
28136 begin{SCtable}[#1]##1}{
28141 \begin_layout Standard
28149 \begin_inset Newline newline
28153 \begin_inset Phantom HPhantom
28156 \begin_layout Plain Layout
28157 \begin_inset space ~
28172 \begin_inset Newline newline
28176 \begin_inset Phantom HPhantom
28179 \begin_layout Plain Layout
28180 \begin_inset space ~
28197 \begin_layout Standard
28204 FigBesBeg}[1][1.0]{%
28205 \begin_inset Newline newline
28209 \begin_inset Phantom HPhantom
28212 \begin_layout Plain Layout
28213 \begin_inset space ~
28228 \begin_inset Newline newline
28232 \begin_inset Phantom HPhantom
28235 \begin_layout Plain Layout
28236 \begin_inset space ~
28251 \begin_inset Newline newline
28255 \begin_inset Phantom HPhantom
28258 \begin_layout Plain Layout
28259 \begin_inset space ~
28269 renewenvironment{figure}[1]{
28271 begin{SCfigure}[#1]##1}{
28276 \begin_layout Standard
28284 \begin_inset Newline newline
28288 \begin_inset Phantom HPhantom
28291 \begin_layout Plain Layout
28292 \begin_inset space ~
28307 \begin_inset Newline newline
28311 \begin_inset Phantom HPhantom
28314 \begin_layout Plain Layout
28315 \begin_inset space ~
28332 \begin_layout Standard
28334 \begin_inset CommandInset line
28345 \begin_layout Standard
28346 The commands allow you to redefine the floats so that the caption is set
28348 For figure floats use the command
28351 \begin_layout Standard
28359 \begin_layout Standard
28360 in TeX-Code before the float.
28361 And insert the command
28364 \begin_layout Standard
28372 \begin_layout Standard
28373 in TeX-Code at the point where you want to get back to the original float
28377 \begin_layout Standard
28378 For table floats use the corresponding commands
28381 \begin_layout Standard
28395 \begin_layout Standard
28397 \begin_inset space ~
28401 \begin_inset CommandInset ref
28403 reference "fig:cap-beside-fig"
28408 \begin_inset space ~
28412 \begin_inset CommandInset ref
28414 reference "tab:cap-beside-tab"
28418 are examples where the caption is set beside.
28421 \begin_layout Standard
28422 You can see in the examples that the caption text appears at the top of
28423 the floats for table floats and at the bottom for figure floats.
28424 To change this, you can use the command
28427 \begin_layout Standard
28432 sidecaptionvpos{float type}{placement}
28435 \begin_layout Standard
28436 in the document preamble or in TeX-Code before the float.
28437 The float type is either
28445 , the placement can be
28446 \begin_inset Quotes eld
28454 \begin_inset Quotes erd
28458 \begin_inset Quotes eld
28466 \begin_inset Quotes erd
28470 \begin_inset Quotes eld
28478 \begin_inset Quotes erd
28482 To have for example the caption of figure floats vertically centered, use
28486 \begin_layout Standard
28491 sidecaptionvpos{figure}{c}
28494 \begin_layout Standard
28495 This was used for Figure
28496 \begin_inset space ~
28500 \begin_inset CommandInset ref
28502 reference "fig:cap-beside-fig-2"
28509 \begin_layout Standard
28510 \begin_inset VSpace medskip
28516 \begin_layout Standard
28517 The default caption width is the width of the image/table.
28518 For thin image/tables, like in Table
28519 \begin_inset space ~
28523 \begin_inset CommandInset ref
28525 reference "tab:cap-beside-tab"
28529 , this leads to captions that are too thin.
28530 You can increase the width by specifying a factor that will be multiplied
28531 with the image/table width to get the caption width.
28532 The caption width will automatically be recalculated in case it would protrude
28533 over the page or column margin due to the specified width.
28538 can either be given as optional argument for
28547 \begin_layout Standard
28555 \begin_layout Standard
28556 or in the definition of
28566 with another value.
28567 If you do the latter, your factor will be the default if
28573 is used without an argument.
28575 \begin_inset space ~
28579 \begin_inset CommandInset ref
28581 reference "tab:cap-beside-tab-wider"
28585 the factor 5 was used.
28588 \begin_layout Standard
28589 \begin_inset Note Greyedout
28592 \begin_layout Plain Layout
28597 For floats with captions set beside, you cannot use the float placement
28601 \begin_inset space ~
28606 because it is not supported by
28618 \begin_layout Standard
28619 \begin_inset VSpace medskip
28622 For more information about the package
28626 we refer to its documentation
28627 \begin_inset CommandInset citation
28636 \begin_layout Standard
28637 \begin_inset Note Greyedout
28640 \begin_layout Plain Layout
28650 \begin_inset Index idx
28653 \begin_layout Plain Layout
28654 LaTeX-packages ! hypcap
28659 , described in section
28660 \begin_inset space ~
28664 \begin_inset CommandInset ref
28666 reference "sub:Reference-Position"
28670 , has no effect on floats with the caption set beside.
28678 \begin_layout Standard
28682 \begin_layout Plain Layout
28694 \begin_layout Standard
28695 \begin_inset Float figure
28700 \begin_layout Plain Layout
28701 \begin_inset Graphics
28702 filename clipart/escher-lsd.eps
28704 scaleBeforeRotation
28711 \begin_layout Plain Layout
28712 \begin_inset Caption Standard
28714 \begin_layout Plain Layout
28715 \begin_inset CommandInset label
28717 name "fig:cap-beside-fig"
28721 This is a caption beside a figure.
28734 \begin_layout Standard
28738 \begin_layout Plain Layout
28750 \begin_layout Standard
28754 \begin_layout Plain Layout
28766 \begin_layout Standard
28767 \begin_inset Float table
28772 \begin_layout Plain Layout
28773 \begin_inset Caption Standard
28775 \begin_layout Plain Layout
28776 \begin_inset CommandInset label
28778 name "tab:cap-beside-tab"
28782 This is a caption beside a table.
28790 \begin_layout Plain Layout
28791 \begin_inset Tabular
28792 <lyxtabular version="3" rows="4" columns="5">
28793 <features rotate="0" tabularvalignment="middle">
28794 <column alignment="center" valignment="top">
28795 <column alignment="center" valignment="top">
28796 <column alignment="center" valignment="top">
28797 <column alignment="center" valignment="top">
28798 <column alignment="center" valignment="top">
28800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28803 \begin_layout Plain Layout
28809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28812 \begin_layout Plain Layout
28818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28821 \begin_layout Plain Layout
28827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28830 \begin_layout Plain Layout
28836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28839 \begin_layout Plain Layout
28847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28850 \begin_layout Plain Layout
28856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28859 \begin_layout Plain Layout
28865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28868 \begin_layout Plain Layout
28874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28877 \begin_layout Plain Layout
28883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28886 \begin_layout Plain Layout
28894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28897 \begin_layout Plain Layout
28903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28906 \begin_layout Plain Layout
28912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28915 \begin_layout Plain Layout
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Plain Layout
28930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28933 \begin_layout Plain Layout
28941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28944 \begin_layout Plain Layout
28950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28953 \begin_layout Plain Layout
28959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28962 \begin_layout Plain Layout
28968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28971 \begin_layout Plain Layout
28977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28980 \begin_layout Plain Layout
28999 \begin_layout Standard
29003 \begin_layout Plain Layout
29015 \begin_layout Standard
29019 \begin_layout Plain Layout
29032 \begin_layout Plain Layout
29036 sidecaptionvpos{figure}{c}
29042 \begin_inset Float figure
29047 \begin_layout Plain Layout
29048 \begin_inset Graphics
29049 filename clipart/escher-lsd.eps
29051 scaleBeforeRotation
29058 \begin_layout Plain Layout
29059 \begin_inset Caption Standard
29061 \begin_layout Plain Layout
29062 \begin_inset CommandInset label
29064 name "fig:cap-beside-fig-2"
29068 This is a vertically centered caption beside a figure.
29081 \begin_layout Standard
29085 \begin_layout Plain Layout
29097 \begin_layout Standard
29101 \begin_layout Plain Layout
29113 \begin_layout Standard
29114 \begin_inset Float table
29119 \begin_layout Plain Layout
29120 \begin_inset Caption Standard
29122 \begin_layout Plain Layout
29123 \begin_inset CommandInset label
29125 name "tab:cap-beside-tab-wider"
29129 This caption is wider than the one in Table
29130 \begin_inset space ~
29134 \begin_inset CommandInset ref
29136 reference "tab:cap-beside-tab"
29148 \begin_layout Plain Layout
29149 \begin_inset Tabular
29150 <lyxtabular version="3" rows="4" columns="5">
29151 <features rotate="0" tabularvalignment="middle">
29152 <column alignment="center" valignment="top">
29153 <column alignment="center" valignment="top">
29154 <column alignment="center" valignment="top">
29155 <column alignment="center" valignment="top">
29156 <column alignment="center" valignment="top">
29158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29161 \begin_layout Plain Layout
29167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29170 \begin_layout Plain Layout
29176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29179 \begin_layout Plain Layout
29185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29188 \begin_layout Plain Layout
29194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29197 \begin_layout Plain Layout
29205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29208 \begin_layout Plain Layout
29214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29217 \begin_layout Plain Layout
29223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29226 \begin_layout Plain Layout
29232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29235 \begin_layout Plain Layout
29241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29244 \begin_layout Plain Layout
29252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29255 \begin_layout Plain Layout
29261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29264 \begin_layout Plain Layout
29270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29273 \begin_layout Plain Layout
29279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29282 \begin_layout Plain Layout
29288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29291 \begin_layout Plain Layout
29299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29302 \begin_layout Plain Layout
29308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29311 \begin_layout Plain Layout
29317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29320 \begin_layout Plain Layout
29326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29329 \begin_layout Plain Layout
29335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29338 \begin_layout Plain Layout
29357 \begin_layout Standard
29361 \begin_layout Plain Layout
29373 \begin_layout Standard
29377 \begin_layout Plain Layout
29387 \begin_inset Note Note
29390 \begin_layout Plain Layout
29391 The following will be displayed when the LaTeX-package
29403 \begin_layout Standard
29404 You need to install the LaTeX-package
29408 to see the following part of this section in the output.
29411 \begin_layout Standard
29415 \begin_layout Plain Layout
29427 \begin_layout Section
29429 \begin_inset Index idx
29432 \begin_layout Plain Layout
29433 Floats ! Float Lists
29441 \begin_layout Standard
29442 Similar to the table of contents where the sections of the document are
29443 listed, there are listings for all float types, like the figures of the
29445 You can insert them via the
29447 Insert\SpecialChar \menuseparator
29449 \begin_inset space ~
29453 \begin_inset space ~
29461 \begin_layout Standard
29462 The list entries are the float captions or its short title, the float number,
29463 and the page number where they appear in the document.
29466 \begin_layout Standard
29467 You can find the list of figures and tables at the end of this document.
29470 \begin_layout Chapter
29474 \begin_layout Section
29476 \begin_inset Index idx
29479 \begin_layout Plain Layout
29488 \begin_layout Standard
29489 Notes are inserted with the toolbar button
29497 Insert\SpecialChar \menuseparator
29501 There are three types of notes:
29504 \begin_layout Description
29506 \begin_inset space ~
29509 Note This note type is for internal notes that won't appear in the output.
29510 Its note-box looks like this:
29511 \begin_inset Newline newline
29515 \begin_inset Newline newline
29519 \begin_inset Graphics
29520 filename clipart/LyXNoteImageQt4.png
29523 scaleBeforeRotation
29528 \begin_inset Note Note
29531 \begin_layout Plain Layout
29532 This is text in a note box that doesn't appear in the output.
29540 \begin_layout Description
29541 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29542 ent, when you export the document to LaTeX via the menu
29544 File\SpecialChar \menuseparator
29545 Export\SpecialChar \menuseparator
29546 LaTeX (pdflatex) / (plain)
29549 Its note-box looks like this:
29550 \begin_inset Newline newline
29554 \begin_inset Newline newline
29558 \begin_inset Graphics
29559 filename clipart/CommentNoteImageQt4.png
29562 scaleBeforeRotation
29567 \begin_inset Note Comment
29570 \begin_layout Plain Layout
29571 This is text in a note box that only appears as comment in LaTeX-files.
29579 \begin_layout Description
29581 \begin_inset space ~
29584 Out This note will appear in the output as grey text.
29585 Its note-box looks like this:
29586 \begin_inset Newline newline
29590 \begin_inset Newline newline
29594 \begin_inset Graphics
29595 filename clipart/GreyedOutNoteImageQt4.png
29598 scaleBeforeRotation
29603 \begin_inset Newline newline
29610 \begin_layout Plain Layout
29614 renewenvironment{lyxgreyedout}
29617 \begin_layout Plain Layout
29621 textcolor[gray]{0.8}
29631 \begin_inset Note Greyedout
29634 \begin_layout Plain Layout
29639 \begin_layout Plain Layout
29640 This is an example footnote within a greyed out note.
29645 of a comment that appears in the output as grey text.
29654 \begin_layout Plain Layout
29658 renewenvironment{lyxgreyedout}
29661 \begin_layout Plain Layout
29675 \begin_inset Note Note
29678 \begin_layout Plain Layout
29679 The greyed out note is here redefined to show it with the original LyX definitio
29680 n because greyed out notes are redefined in the preamble of this document,
29681 as described below, to have blue text.
29687 \begin_inset Newline newline
29691 \begin_inset Newline newline
29694 As you can see in the example, the first line of greyed out notes is a bit
29695 indented and greyed out notes can have footnotes.
29698 \begin_layout Standard
29699 \begin_inset VSpace bigskip
29702 When you use the toolbar button
29711 \begin_inset space ~
29717 You can switch between the three note types by right-clicking on the note-box.
29722 If you want to turn existing text into a note, mark it and click on the
29736 To change a note to text, press the backspace key when the cursor is in
29737 the first position of a note, or press the delete key when the cursor is
29738 in the very last position of the note, respectively.
29741 \begin_layout Standard
29742 \begin_inset VSpace bigskip
29745 You can change the text color of the greyed out notes in the menu
29747 Document\SpecialChar \menuseparator
29748 Settings\SpecialChar \menuseparator
29754 \begin_layout Section
29756 \begin_inset CommandInset label
29758 name "sec:Footnotes"
29763 \begin_inset Index idx
29766 \begin_layout Plain Layout
29773 \begin_inset Index idx
29776 \begin_layout Plain Layout
29785 \begin_layout Standard
29786 Footnotes can be inserted using the toolbar button
29789 arg "footnote-insert"
29794 Insert\SpecialChar \menuseparator
29798 You will then see the following footnote-box:
29799 \begin_inset Graphics
29800 filename clipart/footnoteQt4.png
29802 scaleBeforeRotation
29810 where you can enter the footnote text.
29811 If you want to turn existing text into a footnote, mark it and click on
29837 key when the cursor is in the first position of a
29849 key when the cursor is in the very last position of the
29860 \begin_layout Standard
29861 Here is an example footnote:
29869 \begin_layout Plain Layout
29870 \begin_inset CommandInset label
29872 name "foot:This-is-an"
29876 This is an example footnote.
29889 \begin_layout Plain Layout
29893 newcounter{MyRepeatFoot}
29896 \begin_layout Plain Layout
29900 setcounter{MyRepeatFoot}{
29910 \begin_layout Standard
29911 The footnote will appear in the output as a superscript number at the text
29912 position where the footnote box is placed.
29913 The footnote text is placed at the bottom of the current page.
29914 The footnote number is calculated by LaTeX; the numbers are consecutive.
29915 Whether the footnote number is reset for every chapter depends on your
29919 \begin_layout Standard
29920 Footnotes can be referenced like floats: Insert a label into the footnote
29921 and cross-reference this label in the text as described in section
29922 \begin_inset space ~
29926 \begin_inset CommandInset ref
29928 reference "sec:Referencing-Floats"
29933 \begin_inset Newline newline
29936 This is a cross-reference of Footnote
29937 \begin_inset space ~
29941 \begin_inset CommandInset ref
29943 reference "foot:This-is-an"
29950 \begin_layout Standard
29951 \begin_inset VSpace defskip
29954 Footnotes in tables are not printed by LaTeX due to technical reasons.
29955 However there exists another method to print them: Instead of the footnote
29962 is inserted as TeX-code.
29963 The text of the footnote is entered as an argument of the TeX-code command
29971 \begin_inset Newline newline
29974 This was done for the following table with the command
29977 \begin_layout Standard
29984 Printed table footnote.
29989 \begin_layout Standard
29990 \begin_inset Tabular
29991 <lyxtabular version="3" rows="2" columns="1">
29992 <features rotate="0" tabularvalignment="middle">
29993 <column alignment="center" valignment="top">
29995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29998 \begin_layout Plain Layout
29999 This an example text.
30003 \begin_layout Plain Layout
30004 This footnote will not be printed!
30016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30019 \begin_layout Plain Layout
30020 This an example text.
30024 \begin_layout Plain Layout
30047 \begin_layout Plain Layout
30056 Printed table footnote.
30060 \begin_layout Plain Layout
30070 \begin_layout Standard
30071 Footnotes in longtables are described in section
30072 \begin_inset space ~
30076 \begin_inset CommandInset ref
30078 reference "sub:Footnotes-in-Longtables"
30085 \begin_layout Standard
30086 Footnotes in minipage boxes are printed, but inside the box and with a different
30087 numbering because a minipage box is like a page inside a page.
30088 (For more about minipages, see section
30089 \begin_inset space ~
30093 \begin_inset CommandInset ref
30095 reference "sec:Minipages"
30099 .) To get a footnote in the minipage that is output at the bottom of the
30100 page like normal footnotes, also use the method of
30115 \begin_layout Standard
30116 \begin_inset Box Frameless
30126 height_special "totalheight"
30129 \begin_layout Plain Layout
30130 This an example text in a minipage.
30134 \begin_layout Plain Layout
30135 Footnote in the minipage.
30143 \begin_layout Plain Layout
30144 This an example text in a minipage.
30148 \begin_layout Plain Layout
30165 \begin_layout Standard
30169 \begin_layout Plain Layout
30178 Footnote outside the minipage.
30182 \begin_layout Plain Layout
30192 \begin_layout Standard
30193 \begin_inset VSpace defskip
30199 \begin_layout Standard
30200 To refer to the same footnote several times without printing the footnote
30201 text every time, use the command
30205 footnotemark[number]
30208 \begin_inset Newline newline
30211 As you do not know the number of the repeating footnote while you are writing
30212 the text, you have to store its number.
30213 For the following footnote mark example, these commands were inserted in
30214 TeX-code after Footnote
30215 \begin_inset space ~
30219 \begin_inset CommandInset ref
30221 reference "foot:This-is-an"
30225 to store the footnote number:
30228 \begin_layout Standard
30233 newcounter{MyRepeatFoot}
30234 \begin_inset Newline newline
30239 setcounter{MyRepeatFoot}{
30244 \begin_layout Standard
30245 The footnote mark was then created with this command:
30248 \begin_layout Standard
30258 \begin_layout Standard
30259 Here is a repeated footnote:
30267 \begin_layout Plain Layout
30281 \begin_layout Standard
30282 If you want to repeat the previous footnote, you can omit the storage of
30283 the footnote number and just use this command instead:
30286 \begin_layout Standard
30296 \begin_layout Standard
30297 Here is another repeated footnote:
30305 \begin_layout Plain Layout
30319 \begin_layout Subsection
30321 \begin_inset CommandInset label
30323 name "sub:Footnote-Numbering"
30328 \begin_inset Index idx
30331 \begin_layout Plain Layout
30332 Footnotes ! Numbering
30340 \begin_layout Standard
30341 To reset the footnote number back to 1 after each section
30343 , add this command to your document preamble:
30346 \begin_layout Standard
30351 @addtoreset{footnote}{section}
30354 \begin_layout Standard
30355 \begin_inset VSpace bigskip
30358 The following preamble command changes the footnote numbering style to small
30362 \begin_layout Standard
30374 \begin_layout Standard
30378 \begin_layout Plain Layout
30391 This is a footnote with roman numbering:
30395 \begin_layout Plain Layout
30396 This is an example footnote with roman numbering.
30404 \begin_layout Standard
30405 To change the numbering style to capital roman numerals replace in the command
30420 \begin_inset Quotes eld
30424 \begin_inset Quotes erd
30427 footnotes with capital or small Latin letters use
30441 \begin_inset Quotes eld
30445 \begin_inset Quotes erd
30448 footnotes with symbols use
30457 \begin_layout Standard
30458 \begin_inset Note Greyedout
30461 \begin_layout Plain Layout
30466 You can only number 26 footnotes with Latin letters, because this numbering
30467 is limited to single letters.
30473 \begin_inset Newline newline
30477 \begin_inset Note Greyedout
30480 \begin_layout Plain Layout
30485 You can only number 9 footnotes with symbols.
30493 \begin_layout Standard
30494 To return to the default numbering style after you have changed to another
30507 in the command above.
30511 \begin_layout Plain Layout
30527 \begin_layout Standard
30528 \begin_inset VSpace bigskip
30534 \begin_layout Standard
30535 If you want to have footnotes numbered in the scheme
30536 \begin_inset Quotes eld
30540 \begin_inset Quotes erd
30543 , add the following command to your document preamble:
30546 \begin_layout Standard
30551 numberwithin{footnote}{chapter}
30554 \begin_layout Standard
30555 To be able to use the command
30564 \begin_inset space ~
30569 in the document settings the option
30572 \begin_inset space ~
30576 \begin_inset space ~
30580 \begin_inset space ~
30588 \begin_layout Standard
30592 \begin_layout Plain Layout
30596 numberwithin{footnote}{chapter}
30601 This is another example footnote:
30607 \begin_layout Plain Layout
30608 This is a footnote numbered in the scheme
30609 \begin_inset Quotes eld
30613 \begin_inset Quotes erd
30627 \begin_layout Plain Layout
30643 \begin_layout Standard
30644 \begin_inset Note Greyedout
30647 \begin_layout Plain Layout
30658 always prints out the footnote number as arabic number; previous redefinitions
30659 to get non-arabic numbers are overwritten.
30667 \begin_layout Standard
30668 So to get for example the scheme
30669 \begin_inset Quotes eld
30675 \begin_inset Quotes erd
30678 , use this command instead of
30687 \begin_layout Standard
30701 \begin_layout Subsection
30703 \begin_inset Index idx
30706 \begin_layout Plain Layout
30707 Footnotes ! Placement
30715 \begin_layout Standard
30716 If you have several footnotes in one page, they appear without vertical
30717 space between them at the bottom of the page.
30718 To make them more readable you can e.
30719 \begin_inset space \thinspace{}
30723 \begin_inset space \space{}
30727 \begin_inset space \thinspace{}
30730 mm space with the following preamble command:
30733 \begin_layout Standard
30743 \begin_inset Newline newline
30757 \begin_layout Standard
30758 \begin_inset VSpace bigskip
30761 In a two-column document the footnotes appear at the bottom of every column,
30763 \begin_inset space ~
30767 \begin_inset CommandInset ref
30769 reference "fig:Standard-footnote-placement"
30774 If the footnotes should only appear at the bottom of the right column,
30776 \begin_inset space ~
30780 \begin_inset CommandInset ref
30782 reference "fig:Footnote-placement-in"
30786 , use the LaTeX-package
30791 \begin_inset Index idx
30794 \begin_layout Plain Layout
30795 LaTeX-packages ! ftnright
30800 with this command in the document preamble:
30803 \begin_layout Standard
30808 usepackage{ftnright}
30811 \begin_layout Standard
30812 \begin_inset Float figure
30818 \begin_layout Plain Layout
30822 \begin_layout Plain Layout
30832 \begin_inset Graphics
30833 filename clipart/without_fntright.pdf
30835 scaleBeforeRotation
30843 \begin_layout Plain Layout
30853 \begin_layout Plain Layout
30854 \begin_inset Caption Standard
30856 \begin_layout Plain Layout
30857 \begin_inset CommandInset label
30859 name "fig:Standard-footnote-placement"
30863 Standard footnote placement in two-column documents.
30876 \begin_layout Standard
30877 \begin_inset Float figure
30883 \begin_layout Plain Layout
30887 \begin_layout Plain Layout
30897 \begin_inset Graphics
30898 filename clipart/with_fntright.pdf
30900 scaleBeforeRotation
30908 \begin_layout Plain Layout
30918 \begin_layout Plain Layout
30919 \begin_inset Caption Standard
30921 \begin_layout Plain Layout
30922 \begin_inset CommandInset label
30924 name "fig:Footnote-placement-in"
30928 Footnote placement in two-column documents when the LaTeX-package
30945 \begin_layout Standard
30946 \begin_inset VSpace bigskip
30949 In some scientific literature it is usual to collect the footnotes and print
30950 them in a separate paragraph at the end of a section, as in Figure
30951 \begin_inset space ~
30955 \begin_inset CommandInset ref
30957 reference "fig:Endnotes"
30962 They are then called
30963 \begin_inset Quotes eld
30967 \begin_inset Quotes erd
30971 \begin_inset Index idx
30974 \begin_layout Plain Layout
30980 To use endnotes instead of footnotes in your document, load in the menu
30983 Document\SpecialChar \menuseparator
30984 Settings\SpecialChar \menuseparator
30990 \begin_inset space ~
30994 \begin_inset space ~
31000 To insert the collected footnotes, insert the command
31003 \begin_layout Standard
31011 \begin_layout Standard
31012 in TeX-Code at the end of a section or chapter.
31015 \begin_layout Standard
31016 \begin_inset Float figure
31021 \begin_layout Plain Layout
31026 \begin_layout Plain Layout
31036 \begin_inset Graphics
31037 filename clipart/endnotes.pdf
31038 scaleBeforeRotation
31046 \begin_layout Plain Layout
31056 \begin_layout Plain Layout
31057 \begin_inset Caption Standard
31059 \begin_layout Plain Layout
31060 \begin_inset CommandInset label
31062 name "fig:Endnotes"
31066 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31080 \begin_layout Standard
31081 \begin_inset VSpace medskip
31084 The paragraph heading for the endnotes isn't automatically translated into
31085 the document language, this must be done manually.
31086 The following preamble command translates the default English
31087 \begin_inset Quotes eld
31091 \begin_inset Quotes erd
31095 \begin_inset Quotes eld
31099 \begin_inset Quotes erd
31105 \begin_layout Standard
31112 notesname}{Anmerkungen}
31115 \begin_layout Standard
31116 \begin_inset VSpace medskip
31119 The numbering of endnotes can be changed like the footnote numbering as
31120 described in section
31121 \begin_inset space ~
31125 \begin_inset CommandInset ref
31127 reference "sub:Footnote-Numbering"
31131 ; just replace the command
31144 To reset the endnote number use the command
31150 as described in section
31151 \begin_inset space ~
31155 \begin_inset CommandInset ref
31157 reference "sub:Footnote-Numbering"
31161 and replace the command parameter
31172 \begin_layout Standard
31173 For endnotes there is the command
31177 endnotemark[number]
31179 similar to the command
31185 , that is described in section
31186 \begin_inset space ~
31190 \begin_inset CommandInset ref
31192 reference "sec:Footnotes"
31199 \begin_layout Standard
31200 \begin_inset VSpace bigskip
31203 Footnotes can also be placed in the page margin and the footnote text alignment
31204 can be changed, see the LaTeX-package
31209 \begin_inset Index idx
31212 \begin_layout Plain Layout
31213 LaTeX-packages ! footmisc
31219 \begin_inset CommandInset citation
31225 for more information about this.
31228 \begin_layout Standard
31229 For various further footnote formatting issues have a look at LaTeX-books,
31231 \begin_inset CommandInset citation
31233 key "latexcompanion,latexguide,latexbook"
31243 \begin_inset Index idx
31246 \begin_layout Plain Layout
31247 LaTeX-packages ! KOMA-Script
31252 document class, you can adjust all footnote settings using class-specific
31254 \begin_inset CommandInset citation
31263 \begin_layout Section
31265 \begin_inset Index idx
31268 \begin_layout Plain Layout
31269 Notes ! Margin Notes
31277 \begin_layout Standard
31278 Margin notes look and behave in LyX like footnotes.
31279 They are inserted via the menu
31281 Insert\SpecialChar \menuseparator
31283 \begin_inset space ~
31288 or the toolbar button
31291 arg "marginalnote-insert"
31305 \begin_inset Quotes eld
31309 \begin_inset Quotes erd
31312 appears where you can enter the text of the margin note.
31315 \begin_layout Standard
31316 At the side is an example margin note.
31321 \begin_inset Marginal
31324 \begin_layout Plain Layout
31325 This is a margin note.
31333 \begin_layout Standard
31334 Margin notes appear at the right side in single-sided documents.
31335 In double-sided documents they appear in the outer margin – left on even
31336 pages, right on odd pages.
31337 The text of margin notes is aligned opposite to the outer margin – right-aligne
31338 d when the note appears in the left margin.
31339 The first line of the margin note is placed at the position of the text
31340 line where it is inserted in the document.
31343 \begin_layout Standard
31344 \begin_inset VSpace bigskip
31347 To place the margin note in the inner margin, add the command
31350 \begin_layout Standard
31358 \begin_layout Standard
31359 in TeX-Code before a margin note.
31360 The new placement is valid for all subsequent margin notes.
31365 \begin_layout Plain Layout
31375 \begin_inset Marginal
31378 \begin_layout Plain Layout
31379 This is a margin note in the inner margin.
31387 \begin_inset Newline newline
31393 \begin_inset Note Greyedout
31396 \begin_layout Plain Layout
31401 There is often not enough space in the inner margin so that the notes are
31402 not correctly displayed in the output.
31410 \begin_layout Standard
31411 To return to the default placement insert the command
31414 \begin_layout Standard
31422 \begin_layout Standard
31427 \begin_layout Plain Layout
31437 \begin_inset Note Greyedout
31440 \begin_layout Plain Layout
31445 The command is ignored when it is within a paragraph where also the command
31460 \begin_layout Standard
31461 \begin_inset VSpace bigskip
31468 \begin_inset Marginal
31471 \begin_layout Plain Layout
31472 AVeryLongMarginParWord that isn't hyphenated.
31480 Similar to the case described in section
31481 \begin_inset space ~
31485 \begin_inset CommandInset ref
31487 reference "sub:Multiple-Lines-in"
31491 , long words cannot be hyphenated when they are the first word in a margin
31493 To avoid this, insert 0
31494 \begin_inset space \thinspace{}
31497 pt horizontal space before the word
31502 \begin_inset Marginal
31505 \begin_layout Plain Layout
31506 \begin_inset space \hspace*{}
31510 AVeryLongMarginParWord that is hyphenated.
31518 \begin_layout Standard
31519 \begin_inset VSpace bigskip
31525 \begin_layout Standard
31526 \begin_inset Note Greyedout
31529 \begin_layout Plain Layout
31534 Margin notes can normally not be used inside tables, floats, and footnotes.
31542 \begin_layout Standard
31543 \begin_inset VSpace bigskip
31549 \begin_layout Standard
31553 \begin_layout Plain Layout
31563 \begin_inset Note Note
31566 \begin_layout Plain Layout
31567 The following section will only be displayed when the LaTeX-package
31579 \begin_layout Standard
31580 This restriction can be evaded by using the LaTeX-package
31585 \begin_inset Index idx
31588 \begin_layout Plain Layout
31589 LaTeX-packages ! marginnote
31595 By adding these two lines to your document preamble, the command used by
31596 LyX for margin notes is redefined to use the command provided by the
31603 \begin_layout Standard
31608 usepackage{marginnote}
31609 \begin_inset Newline newline
31621 \begin_layout Standard
31622 This is also used in this document because
31626 has another useful feature: You can set a vertical offset for the note.
31627 This is often needed when too many margin notes are too close together
31628 or for a better page layout.
31629 The offset is set in LyX as TeX-Code directly after the margin note in
31633 \begin_layout Standard
31639 \begin_layout Standard
31640 where the offset is a length with one of the units listed in Table
31641 \begin_inset space ~
31645 \begin_inset CommandInset ref
31647 reference "tab:Units"
31652 A negative value shifts the note up, a positive value shifts it down.
31656 For example the margin note beside this text line is shifted up 1.5
31657 \begin_inset space \thinspace{}
31660 cm with the TeX-Code-command
31661 \begin_inset Quotes eld
31671 \begin_inset Quotes erd
31675 \begin_inset Marginal
31678 \begin_layout Plain Layout
31679 This margin note is shifted up 1.5
31680 \begin_inset space \thinspace{}
31683 cm from its original position.
31695 \begin_layout Plain Layout
31705 \begin_layout Standard
31706 \begin_inset VSpace medskip
31713 you can also change the alignment of the text in the margin note.
31714 For example the commands
31717 \begin_layout Standard
31724 raggedleftmarginnote}{
31727 \begin_inset Newline newline
31734 raggedrightmarginnote}{
31739 \begin_layout Standard
31740 set the alignment to centered.
31745 raggedleftmarginnote
31747 denotes margin notes that appear at the left side.
31754 \begin_layout Plain Layout
31760 raggedleftmarginnote}{
31765 \begin_layout Plain Layout
31771 raggedrightmarginnote}{
31779 \begin_inset Marginal
31782 \begin_layout Plain Layout
31783 The text of this margin note is centered.
31794 \begin_layout Standard
31801 raggedleftmarginnote}{
31804 \begin_inset Newline newline
31811 raggedrightmarginnote}{
31820 \begin_layout Plain Layout
31826 raggedleftmarginnote}{
31831 \begin_layout Plain Layout
31837 raggedrightmarginnote}{
31847 \begin_layout Standard
31848 \begin_inset VSpace medskip
31851 For the other features of
31855 refer to its documentation
31856 \begin_inset CommandInset citation
31865 \begin_layout Standard
31866 \begin_inset VSpace bigskip
31869 You can adjust the layout of margin notes by changing its definition.
31870 To create for example a header for all margin notes with the underlined,
31871 sans-serif, and bold header text
31872 \begin_inset Quotes eld
31884 \begin_inset Quotes erd
31887 , add this to your document preamble:
31890 \begin_layout Standard
31900 \begin_inset Newline newline
31910 \begin_inset Newline newline
31914 \begin_inset Phantom HPhantom
31917 \begin_layout Plain Layout
31920 \begin_inset space ~
31936 underbar{Attention!}}}%
31937 \begin_inset Newline newline
31941 \begin_inset Phantom HPhantom
31944 \begin_layout Plain Layout
31947 \begin_inset space ~
31964 \begin_layout Standard
31971 \begin_layout Plain Layout
31982 \begin_layout Plain Layout
31993 \begin_layout Plain Layout
32001 underbar{Attention!}}}%
32004 \begin_layout Plain Layout
32018 \begin_inset Marginal
32021 \begin_layout Plain Layout
32022 This is a margin note with a defined heading.
32034 \begin_layout Plain Layout
32048 \begin_layout Plain Layout
32065 \begin_inset Note Note
32068 \begin_layout Plain Layout
32069 The margin note format is changed only for this example.
32077 \begin_layout Standard
32081 \begin_layout Plain Layout
32091 \begin_inset Note Note
32094 \begin_layout Plain Layout
32095 The following will be displayed when the LaTeX-package
32107 \begin_layout Standard
32108 You need to install the LaTeX-package
32112 to see the following part of this section in the output.
32115 \begin_layout Standard
32119 \begin_layout Plain Layout
32131 \begin_layout Chapter
32135 \begin_layout Section
32137 \begin_inset Index idx
32140 \begin_layout Plain Layout
32141 Boxes ! Introduction
32149 \begin_layout Standard
32150 Boxes are used to format a block of text.
32151 Boxes can be used to write documents with multiple languages, see section
32152 \begin_inset space ~
32156 \begin_inset CommandInset ref
32158 reference "sec:Minipages"
32162 , to frame texts, see section
32163 \begin_inset space ~
32167 \begin_inset CommandInset ref
32169 reference "sec:Decoration"
32173 , to prevent words from being hyphenated, see section
32174 \begin_inset space ~
32178 \begin_inset CommandInset ref
32180 reference "sec:Prevent-Hyphenation"
32184 , to align text, see section
32185 \begin_inset space ~
32189 \begin_inset CommandInset ref
32191 reference "sub:Vertical-Alignment"
32195 , or to set the background color of texts, see section
32196 \begin_inset space ~
32200 \begin_inset CommandInset ref
32202 reference "sec:Colored-Boxes"
32209 \begin_layout Standard
32210 Boxes can be inserted with the menu
32212 Insert\SpecialChar \menuseparator
32215 or the toolbar button
32218 arg "box-insert Frameless"
32222 A grey box with the label
32227 \begin_inset Graphics
32228 filename clipart/BoxInsetDefaultQt4.png
32230 scaleBeforeRotation
32235 The box type can be specified by right-clicking on the box and selecting
32241 The box dialog offers the
32244 \begin_inset space ~
32266 is the default for new boxes and is explained in section
32267 \begin_inset space ~
32271 \begin_inset CommandInset ref
32273 reference "sec:Minipages"
32281 is described in section
32282 \begin_inset space ~
32286 \begin_inset CommandInset ref
32288 reference "sec:Parboxes"
32297 \begin_inset CommandInset ref
32299 reference "sec:Prevent-Hyphenation"
32306 \begin_layout Standard
32307 Boxes are not numbered and can therefore not be referenced like floats or
32311 \begin_layout Standard
32312 \begin_inset Note Greyedout
32315 \begin_layout Plain Layout
32320 Boxes must not be the item in an
32336 \begin_layout Standard
32337 \begin_inset Note Greyedout
32340 \begin_layout Plain Layout
32345 For an unknown reason you can only set the
32348 \begin_inset space ~
32357 when you use a framed box.
32361 \begin_inset space ~
32366 type and without frames are explained in section
32367 \begin_inset space ~
32371 \begin_inset CommandInset ref
32373 reference "sec:Prevent-Hyphenation"
32385 \begin_layout Section
32387 \begin_inset CommandInset label
32389 name "sec:Box-Dialog"
32394 \begin_inset Index idx
32397 \begin_layout Plain Layout
32406 \begin_layout Subsection
32408 \begin_inset Index idx
32411 \begin_layout Plain Layout
32420 \begin_layout Standard
32421 In the box dialog you can adjust the box geometry in the fields
32430 The available units for the geometry are explained in Table
32431 \begin_inset space ~
32435 \begin_inset CommandInset ref
32437 reference "tab:Units"
32446 offers the following additional sizes:
32449 \begin_layout Description
32450 Depth This is the plain text
32451 \begin_inset Quotes eld
32455 \begin_inset Quotes erd
32459 It ignores the total depth when there are multiple text lines in the box:
32460 \begin_inset Newline newline
32464 \begin_inset Newline newline
32468 \begin_inset Newline newline
32472 \begin_inset Box Boxed
32482 height_special "depth"
32485 \begin_layout Plain Layout
32487 Box height set to 1
32488 \begin_inset space \thinspace{}
32497 \begin_inset Newline newline
32501 \begin_inset Newline newline
32507 \begin_layout Description
32508 Height This is the height of the text that is inside the box.
32510 \begin_inset space \thinspace{}
32514 \begin_inset space \space{}
32517 2 for this size will set the box height to 2
32518 \begin_inset space ~
32521 times the text height:
32522 \begin_inset Box Boxed
32532 height_special "height"
32535 \begin_layout Plain Layout
32537 Box height set to 2
32538 \begin_inset space \thinspace{}
32549 \begin_layout Description
32551 \begin_inset space ~
32554 Height This is the Height
32555 \begin_inset space \thinspace{}
32559 \begin_inset space \thinspace{}
32563 \begin_inset Box Boxed
32573 height_special "totalheight"
32576 \begin_layout Plain Layout
32578 Box height set to 1
32579 \begin_inset space \thinspace{}
32583 \begin_inset space ~
32594 \begin_layout Description
32595 Width This sets the width of the box as height:
32596 \begin_inset Box Boxed
32606 height_special "width"
32609 \begin_layout Plain Layout
32611 Box height set to 1
32612 \begin_inset space \thinspace{}
32623 \begin_layout Subsection
32625 \begin_inset Index idx
32628 \begin_layout Plain Layout
32637 \begin_layout Standard
32638 When you have chosen an
32641 \begin_inset space ~
32646 , the vertical box alignment can be:
32649 \begin_layout Description
32650 Top This is an example text line.
32652 \begin_inset Box Boxed
32662 height_special "totalheight"
32665 \begin_layout Plain Layout
32667 This box is top-aligned.
32672 This is an example text line.
32675 \begin_layout Description
32676 Middle This is an example text line.
32678 \begin_inset Box Boxed
32688 height_special "totalheight"
32691 \begin_layout Plain Layout
32693 This box is middle-aligned.
32698 This is an example text line.
32701 \begin_layout Description
32702 Bottom This is an example text line.
32704 \begin_inset Box Boxed
32714 height_special "totalheight"
32717 \begin_layout Plain Layout
32719 This box is bottom-aligned.
32724 This is an example text line.
32727 \begin_layout Standard
32728 \begin_inset Note Greyedout
32731 \begin_layout Plain Layout
32736 The vertical box alignment can be lost in the output when you have two
32737 boxes in a line and one has e.
32738 \begin_inset space \thinspace{}
32742 \begin_inset space \space{}
32745 a shadow and the other one not.
32753 \begin_layout Standard
32754 The horizontal box alignment can be set via LyX's paragraph dialog when
32755 you set the box into its own paragraph.
32758 \begin_layout Standard
32759 \begin_inset VSpace bigskip
32762 When you have chosen an
32765 \begin_inset space ~
32770 , the box content can be aligned vertically to:
32773 \begin_layout Description
32774 top This is an example text line.
32776 \begin_inset Box Boxed
32786 height_special "totalheight"
32789 \begin_layout Plain Layout
32791 This box text is top-aligned.
32796 This is an example text line.
32799 \begin_layout Description
32800 middle This is an example text line.
32802 \begin_inset Box Boxed
32812 height_special "totalheight"
32815 \begin_layout Plain Layout
32817 This box text is middle-aligned.
32822 This is an example text line.
32825 \begin_layout Description
32826 bottom This is an example text line.
32828 \begin_inset Box Boxed
32838 height_special "totalheight"
32841 \begin_layout Plain Layout
32843 This box text is bottom-aligned.
32848 This is an example text line.
32851 \begin_layout Description
32852 stretch This is an example text line.
32854 \begin_inset Box Boxed
32864 height_special "totalheight"
32867 \begin_layout Plain Layout
32872 \begin_layout Plain Layout
32877 \begin_layout Plain Layout
32884 This is an example text line.
32887 \begin_layout Standard
32888 To stretch the box content, it must consist of more than one paragraph.
32889 In the example above every text line is in an own paragraph.
32892 \begin_layout Standard
32893 \begin_inset VSpace bigskip
32896 To align the box content horizontally you can use LyX's paragraph dialog
32897 when you have chosen an
32900 \begin_inset space ~
32908 \begin_layout Standard
32910 \begin_inset Box Boxed
32920 height_special "totalheight"
32923 \begin_layout Plain Layout
32928 \begin_layout Plain Layout
32933 \begin_layout Plain Layout
32943 \begin_layout Standard
32944 If you have not set an
32947 \begin_inset space ~
32952 , you can align the box content horizontally in the box dialog.
32955 \begin_layout Standard
32957 \begin_inset Box Boxed
32967 height_special "totalheight"
32970 \begin_layout Plain Layout
32971 This box text is horizontally stretched.
32979 \begin_layout Subsection
32981 \begin_inset CommandInset label
32983 name "sec:Decoration"
32988 \begin_inset Index idx
32991 \begin_layout Plain Layout
33000 \begin_layout Standard
33001 The type of the box can be specified in the box dialog in the drop-down
33007 The following types are possible:
33010 \begin_layout Description
33012 \begin_inset space ~
33015 frame Nothing is drawn.
33018 \begin_layout Description
33020 \begin_inset space ~
33024 \begin_inset space ~
33027 frame This draws a rectangular frame around the box.
33028 The frame line thickness has the size of
33036 \begin_inset Box Boxed
33046 height_special "totalheight"
33049 \begin_layout Plain Layout
33059 \begin_layout Description
33061 \begin_inset space ~
33065 \begin_inset space ~
33068 thin This draws an oval frame around the box.
33069 The frame line thickness has the size 0.4
33070 \begin_inset space \thinspace{}
33075 \begin_inset Box ovalbox
33085 height_special "totalheight"
33088 \begin_layout Plain Layout
33098 \begin_layout Description
33100 \begin_inset space ~
33104 \begin_inset space ~
33107 thick This draws an oval frame around the box.
33108 The frame line thickness has the size 0.8
33109 \begin_inset space \thinspace{}
33114 \begin_inset Box Ovalbox
33124 height_special "totalheight"
33127 \begin_layout Plain Layout
33137 \begin_layout Description
33139 \begin_inset space ~
33142 shadow This draws a rectangular frame with a shadow around the box.
33143 The frame line thickness has the size of
33149 , the shadow has a width of 4
33150 \begin_inset space \thinspace{}
33155 \begin_inset Box Shadowbox
33165 height_special "totalheight"
33168 \begin_layout Plain Layout
33178 \begin_layout Description
33180 \begin_inset space ~
33183 background This draws a box with a red background.
33184 Unlike colored boxes
33188 \begin_layout Plain Layout
33190 \begin_inset space \thinspace{}
33194 \begin_inset CommandInset ref
33196 reference "sec:Colored-Boxes"
33205 , it always uses the whole column width and the box is set as its own paragraph.
33207 \begin_inset Box Shaded
33217 height_special "totalheight"
33220 \begin_layout Plain Layout
33221 Shaded background box
33229 \begin_layout Description
33231 \begin_inset space ~
33235 \begin_inset space ~
33238 frame This draws a double-line rectangular frame around the box.
33239 The line thickness of the inner frame is 0.75
33240 \begin_inset space \thinspace{}
33249 , the thickness of the outer frame is 1.5
33250 \begin_inset space \thinspace{}
33260 The distance between the lines is 1.5
33261 \begin_inset space \thinspace{}
33271 \begin_inset space \thinspace{}
33275 \begin_inset space \thinspace{}
33279 \begin_inset space \thinspace{}
33284 \begin_inset Box Doublebox
33294 height_special "totalheight"
33297 \begin_layout Plain Layout
33299 Double rectangular box
33307 \begin_layout Standard
33308 \begin_inset VSpace bigskip
33311 LyX's box label will reflect the different frame types.
33312 To be able to use all types, the LaTeX-package
33317 \begin_inset Index idx
33320 \begin_layout Plain Layout
33321 LaTeX-packages ! fancybox
33329 \begin_layout Standard
33330 \begin_inset VSpace bigskip
33333 When you use the decoration
33335 simple rectangular frame
33337 and no inner box, you can allow page breaks within a box.
33338 Note that then, unlike other framed boxes, the frame always uses the whole
33339 column width, the box is set as its own paragraph, and
33351 have no effect on this box type.
33352 The frame line thickness has the size of
33360 \begin_inset Box Framed
33370 height_special "totalheight"
33373 \begin_layout Plain Layout
33374 Allow page break box
33382 \begin_layout Section
33384 \begin_inset Index idx
33387 \begin_layout Plain Layout
33388 Boxes ! Customization
33396 \begin_layout Standard
33397 The default value for the size
33404 \begin_inset space \thinspace{}
33408 It can be changed with the following command in TeX-code to e.
33409 \begin_inset space \thinspace{}
33413 \begin_inset space \space{}
33417 \begin_inset space \thinspace{}
33423 \begin_layout Standard
33433 \begin_layout Standard
33437 \begin_layout Plain Layout
33449 \begin_inset Box Boxed
33459 height_special "totalheight"
33462 \begin_layout Plain Layout
33464 Rectangular box with
33471 \begin_inset space \thinspace{}
33475 \begin_inset space \thinspace{}
33479 \begin_inset space \thinspace{}
33491 \begin_layout Plain Layout
33505 \begin_layout Standard
33506 \begin_inset VSpace bigskip
33509 The space between the frame and the box content is for all frame styles
33511 \begin_inset space \thinspace{}
33515 You can change it by setting the length
33522 For example the command
33525 \begin_layout Standard
33535 \begin_layout Standard
33536 sets the value to 10
33537 \begin_inset space \thinspace{}
33540 pt, as with the following box:
33543 \begin_layout Standard
33547 \begin_layout Plain Layout
33559 \begin_inset Box Boxed
33569 height_special "totalheight"
33572 \begin_layout Plain Layout
33574 Rectangular box with
33581 \begin_inset space \thinspace{}
33585 \begin_inset space \thinspace{}
33589 \begin_inset space \thinspace{}
33601 \begin_layout Plain Layout
33615 \begin_layout Standard
33616 \begin_inset VSpace bigskip
33619 The diameter of the round corners of the oval boxes can be set with the
33630 \begin_layout Standard
33638 \begin_layout Standard
33639 sets the diameter to 1
33640 \begin_inset space \thinspace{}
33647 \begin_layout Standard
33655 \begin_layout Standard
33656 sets the diameter to
33659 \begin_inset space \thinspace{}
33663 \begin_inset space \thinspace{}
33666 minimum(width and height of box)
33678 \begin_layout Standard
33682 \begin_layout Plain Layout
33692 \begin_inset Box Ovalbox
33702 height_special "totalheight"
33705 \begin_layout Plain Layout
33714 \begin_inset space \thinspace{}
33718 \begin_inset space \thinspace{}
33722 \begin_inset space \thinspace{}
33734 \begin_layout Plain Layout
33746 \begin_layout Standard
33747 \begin_inset VSpace bigskip
33750 The size of the shadow can be adjusted by changing the length
33758 \begin_inset space \thinspace{}
33761 pt for the following box by this command:
33764 \begin_layout Standard
33774 \begin_layout Standard
33778 \begin_layout Plain Layout
33790 \begin_inset Box Shadowbox
33800 height_special "totalheight"
33803 \begin_layout Plain Layout
33812 \begin_inset space \thinspace{}
33816 \begin_inset space \thinspace{}
33820 \begin_inset space \thinspace{}
33832 \begin_layout Plain Layout
33846 \begin_layout Standard
33847 \begin_inset VSpace bigskip
33853 \begin_layout Standard
33854 The default value for the size
33861 \begin_inset space \thinspace{}
33865 The default space between the note content and the frame is 9
33866 \begin_inset space \thinspace{}
33869 pt and can be changed with the value of
33876 For example the frame appearance of the following
33880 is set with the TeX-Code commands
33883 \begin_layout Standard
33891 \begin_inset Newline newline
33901 \begin_layout Standard
33905 \begin_layout Plain Layout
33914 \begin_layout Plain Layout
33926 \begin_inset Box Framed
33936 height_special "totalheight"
33939 \begin_layout Plain Layout
33953 \begin_layout Plain Layout
33962 \begin_layout Plain Layout
33976 \begin_layout Standard
33977 \begin_inset VSpace bigskip
33983 \begin_layout Standard
33988 boxes the default space between the box content and the box border is 3
33989 \begin_inset space \thinspace{}
33992 pt and can be changed with the value of
33999 The default background color red can either be changed locally with the
34004 definecolor{shadecolor}
34006 or globally with the menu
34008 Tools\SpecialChar \menuseparator
34009 Preferences\SpecialChar \menuseparator
34010 Colors\SpecialChar \menuseparator
34012 \begin_inset space ~
34024 command is explained in section
34025 \begin_inset space ~
34029 \begin_inset CommandInset ref
34031 reference "sec:Colored-Tables"
34039 \begin_layout Plain Layout
34046 requires the LaTeX-package
34050 in the preamble, see section
34051 \begin_inset space ~
34055 \begin_inset CommandInset ref
34057 reference "sec:Colored-Boxes"
34066 For example the appearance of the following shaded background box is set
34067 with the TeX-Code commands
34070 \begin_layout Standard
34080 \begin_inset Newline newline
34087 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34090 \begin_layout Standard
34094 \begin_layout Plain Layout
34103 \begin_layout Plain Layout
34107 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34113 \begin_inset Box Shaded
34123 height_special "totalheight"
34126 \begin_layout Plain Layout
34129 This is yellow text in a
34139 box with dark green background.
34148 \begin_layout Plain Layout
34157 \begin_layout Plain Layout
34161 definecolor{shadecolor}{rgb}{1,0,0}
34169 \begin_layout Standard
34170 \begin_inset VSpace bigskip
34173 Changed lengths and widths are valid for all boxes following the commands
34177 \begin_layout Section
34179 \begin_inset CommandInset label
34181 name "sec:Minipages"
34186 \begin_inset Index idx
34189 \begin_layout Plain Layout
34198 \begin_layout Standard
34199 Minipages are treated by LaTeX as pages within pages and can therefore for
34200 example have their own footnotes.
34203 \begin_layout Standard
34204 Minipages are useful when you write documents with different languages.
34207 \begin_layout Standard
34208 Below are two example minipages side by side.
34209 Their width is set to 45
34210 \begin_inset space \thinspace{}
34213 col% and they are separated by a horizontal fill, that was inserted via
34216 Insert\SpecialChar \menuseparator
34218 \begin_inset space ~
34221 Formatting\SpecialChar \menuseparator
34223 \begin_inset space ~
34229 \begin_inset Newpage newpage
34235 \begin_layout Standard
34236 \begin_inset Box Frameless
34246 height_special "totalheight"
34249 \begin_layout Plain Layout
34252 Dies ist ein deutscher Text.
34253 Dies ist ein deutscher Text.
34254 Dies ist ein deutscher Text.
34255 Dies ist ein deutscher Text.
34256 Dies ist ein deutscher Text.
34257 Dies ist ein deutscher Text.
34258 Dies ist ein deutscher Text.
34259 Dies ist ein deutscher Text.
34260 Dies ist ein deutscher Text.
34261 Dies ist ein deutscher Text.
34262 Dies ist ein deutscher Text.
34263 Dies ist ein deutscher Text.
34264 Dies ist ein deutscher Text
34268 \begin_layout Plain Layout
34271 Dies ist eine deutsche Fußnote.
34277 Dies ist ein deutscher Text.
34278 Dies ist ein deutscher Text.
34284 \begin_inset space \hfill{}
34288 \begin_inset Box Frameless
34298 height_special "totalheight"
34301 \begin_layout Plain Layout
34302 This is an English Text.
34303 This is an English Text.
34304 This is an English Text.
34305 This is an English Text.
34306 This is an English Text.
34307 This is an English Text.
34308 This is an English Text.
34309 This is an English Text.
34310 This is an English Text.
34311 This is an English Text.
34312 This is an English Text.
34313 This is an English Text.
34314 This is an English Text.
34315 This is an English Text.
34316 This is an English Text.
34317 This is an English Text.
34321 \begin_layout Plain Layout
34322 This is an English footnote.
34327 This is an English Text.
34335 \begin_layout Standard
34336 \begin_inset VSpace bigskip
34339 The document-wide paragraph settings are ignored within minipages.
34340 That means that there will be no space between paragraphs in minipages
34341 although you set it to e.
34342 \begin_inset space \thinspace{}
34346 \begin_inset space \space{}
34353 in the document settings.
34356 \begin_layout Standard
34357 Minipages can also be used to set a background color for text parts, see
34359 \begin_inset space ~
34363 \begin_inset CommandInset ref
34365 reference "sub:Color-for-Paragraphs"
34372 \begin_layout Standard
34373 \begin_inset Note Greyedout
34376 \begin_layout Plain Layout
34381 You cannot have floats or margin notes inside minipages but minipages can
34382 be used inside tables, floats, and other boxes.
34390 \begin_layout Section
34392 \begin_inset CommandInset label
34394 name "sec:Parboxes"
34399 \begin_inset Index idx
34402 \begin_layout Plain Layout
34411 \begin_layout Standard
34412 Parboxes are very similar to minipages with the difference that they cannot
34416 \begin_layout Standard
34418 \begin_inset Box Frameless
34428 height_special "totalheight"
34431 \begin_layout Plain Layout
34432 This a text within a parbox.
34433 This a text within a parbox.
34436 \begin_layout Plain Layout
34437 This footnote won't appear:
34441 \begin_layout Plain Layout
34442 This footnote is inside a parbox and will therefore not appear.
34455 \begin_layout Section
34456 Boxes for Words and Characters
34457 \begin_inset Index idx
34460 \begin_layout Plain Layout
34461 Boxes ! for Characters
34469 \begin_layout Subsection
34470 Prevent Hyphenation
34471 \begin_inset CommandInset label
34473 name "sec:Prevent-Hyphenation"
34478 \begin_inset Index idx
34481 \begin_layout Plain Layout
34482 Boxes ! to Prevent Hyphenation
34490 \begin_layout Standard
34491 You can use the box type
34495 to prevent words or text from being hyphenated.
34496 \begin_inset Newline newline
34499 Here is an example text:
34502 \begin_layout Standard
34503 This line is an example to show how you can prevent the hyphenation of
34504 \begin_inset Quotes eld
34508 \begin_inset Quotes erd
34514 \begin_layout Standard
34515 To prevent the hyphenation of the word
34516 \begin_inset Quotes eld
34520 \begin_inset Quotes erd
34523 , put the word into a box, set the
34526 \begin_inset space ~
34535 and use no explicit width.
34538 \begin_layout Standard
34539 This is the result:
34542 \begin_layout Standard
34543 This line is an example to show how you can prevent the hyphenation of
34544 \begin_inset Box Frameless
34554 height_special "totalheight"
34557 \begin_layout Plain Layout
34558 \begin_inset Quotes eld
34562 \begin_inset Quotes erd
34573 \begin_layout Standard
34574 You can alternatively set the command
34575 \begin_inset Quotes eld
34585 \begin_inset Quotes grd
34588 as TeX-Code directly before the word:
34591 \begin_layout Standard
34592 This line is an example to show how you can prevent the hyphenation of
34593 \begin_inset Quotes eld
34600 \begin_layout Plain Layout
34610 \begin_inset Quotes erd
34616 \begin_layout Standard
34617 Of course the word now protrudes over the side margin.
34618 To avoid this, add via the menu
34620 Insert\SpecialChar \menuseparator
34621 Formatting\SpecialChar \menuseparator
34623 \begin_inset space ~
34627 \begin_inset space ~
34635 arg "newline-insert newline"
34638 ) a line break before the word:
34641 \begin_layout Standard
34642 This line is an example to show how you can prevent the hyphenation of
34643 \begin_inset Newline newline
34647 \begin_inset Box Frameless
34657 height_special "totalheight"
34660 \begin_layout Plain Layout
34661 \begin_inset Quotes eld
34665 \begin_inset Quotes erd
34676 \begin_layout Subsection
34678 \begin_inset CommandInset label
34680 name "sub:Vertical-Alignment"
34685 \begin_inset Index idx
34688 \begin_layout Plain Layout
34689 Boxes ! for Vertical Alignment
34695 \begin_inset Index idx
34698 \begin_layout Plain Layout
34707 \begin_layout Standard
34708 With the help of the command
34714 you can align words, characters or other boxes vertically relative to the
34722 is used with the following scheme:
34725 \begin_layout Standard
34730 raisebox{lift}[height][depth]{box content}
34733 \begin_layout Standard
34734 The lift can be a positive value to raise the box or a negative value to
34738 \begin_layout Standard
34739 To align for example the word
34740 \begin_inset Quotes eld
34744 \begin_inset Quotes erd
34747 so that the bottom of the
34748 \begin_inset Quotes eld
34752 \begin_inset Quotes erd
34756 \begin_inset Quotes eld
34760 \begin_inset Quotes erd
34763 is at the baseline, insert the command
34766 \begin_layout Standard
34776 \begin_layout Standard
34777 in TeX-Code before the word.
34778 After the word insert a closing brace
34779 \begin_inset Quotes eld
34787 \begin_inset Quotes erd
34791 \begin_inset Newline newline
34794 This is the result:
34797 \begin_layout Standard
34798 This is a text line with the word
34802 \begin_layout Plain Layout
34814 \begin_inset Quotes eld
34818 \begin_inset Quotes erd
34825 \begin_layout Plain Layout
34835 \begin_layout Standard
34836 \begin_inset VSpace bigskip
34839 When you raise or lower characters in a line, the line distance will be
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
34896 \begin_inset Quotes eld
34900 \begin_inset Quotes erd
34907 \begin_layout Plain Layout
34917 \begin_layout Standard
34918 If you want to prevent this for a certain reason, set the box height to
34923 \begin_layout Standard
34933 \begin_layout Standard
34934 This is a text line with the word
34938 \begin_layout Plain Layout
34950 \begin_inset Quotes eld
34954 \begin_inset Quotes erd
34961 \begin_layout Plain Layout
34969 \begin_inset Newline newline
34972 This is a text line with the word
34976 \begin_layout Plain Layout
34980 raisebox{0.5cm}[0pt]{
34986 \begin_inset Quotes eld
34990 \begin_inset Quotes erd
34997 \begin_layout Plain Layout
35007 \begin_layout Section
35009 \begin_inset CommandInset label
35011 name "sec:Colored-Boxes"
35016 \begin_inset Index idx
35019 \begin_layout Plain Layout
35028 \begin_layout Subsection
35030 \begin_inset Index idx
35033 \begin_layout Plain Layout
35042 \begin_layout Standard
35043 To color the background of text the text must be put into a so called
35044 \begin_inset Quotes eld
35048 \begin_inset Quotes erd
35052 This requires that the LaTeX-package
35057 \begin_inset Index idx
35060 \begin_layout Plain Layout
35061 LaTeX-packages ! color
35066 is loaded in the document preamble with the command
35069 \begin_layout Standard
35074 @ifundefined{textcolor}
35075 \begin_inset Newline newline
35079 \begin_inset Phantom HPhantom
35082 \begin_layout Plain Layout
35085 \begin_inset space ~
35095 usepackage{color}}{}
35098 \begin_layout Standard
35103 will be loaded automatically by LyX when you color text.
35107 \begin_layout Plain Layout
35108 To avoid it being loaded twice the command
35122 \begin_layout Standard
35123 \begin_inset VSpace medskip
35126 Colorboxes are created with the command
35133 This will be used with the following scheme:
35136 \begin_layout Standard
35141 colorbox{color}{box content}
35144 \begin_layout Standard
35145 The box content can also be a box and colorboxes can also be within other
35149 \begin_layout Standard
35150 The following colors are predefined:
35151 \begin_inset Newline newline
35190 \begin_inset Newline newline
35193 You can also define your own color as described in section
35194 \begin_inset space ~
35198 \begin_inset CommandInset ref
35200 reference "sec:Colored-Tables"
35207 \begin_layout Standard
35209 \begin_inset space \thinspace{}
35213 \begin_inset space \space{}
35216 a red background for a word, insert the command
35219 \begin_layout Standard
35227 \begin_layout Standard
35228 before the word in TeX-Code.
35229 After the word insert a closing brace
35230 \begin_inset Quotes eld
35238 \begin_inset Quotes erd
35242 \begin_inset Newline newline
35245 This is the result:
35248 \begin_layout Standard
35249 This is a line where the word
35253 \begin_layout Plain Layout
35263 \begin_inset Quotes eld
35267 \begin_inset Quotes erd
35274 \begin_layout Plain Layout
35281 has a red background.
35284 \begin_layout Standard
35285 \begin_inset VSpace bigskip
35288 If you would like the box frame in a different color, you can use the command
35295 with the following scheme:
35298 \begin_layout Standard
35303 fcolorbox{frame color}{box color}{box content}
35306 \begin_layout Standard
35320 The frame thickness and the space between the frame and the box content
35321 can be adjusted with the lengths
35333 , respectively, as described in section
35334 \begin_inset space ~
35338 \begin_inset CommandInset ref
35340 reference "sec:Decoration"
35347 \begin_layout Standard
35348 For the following example the command
35351 \begin_layout Standard
35356 fcolorbox{cyan}{magenta}{
35359 \begin_layout Standard
35363 \begin_layout Standard
35364 Here is an example where the frame line thickness was set to 1
35365 \begin_inset space \thinspace{}
35369 \begin_inset Newline newline
35376 \begin_layout Plain Layout
35391 \begin_layout Plain Layout
35395 fcolorbox{cyan}{magenta}{
35400 This is text within a colored, framed box.
35404 \begin_layout Plain Layout
35414 \begin_layout Standard
35415 \begin_inset VSpace bigskip
35418 Of course you can also have colored text inside a colorbox:
35419 \begin_inset Newline newline
35426 \begin_layout Plain Layout
35430 fcolorbox{cyan}{magenta}{
35437 This is colored text within a colored, framed box.
35443 \begin_layout Plain Layout
35454 \begin_layout Plain Layout
35468 \begin_layout Standard
35469 \begin_inset VSpace medskip
35475 \begin_layout Standard
35476 \begin_inset Note Greyedout
35479 \begin_layout Plain Layout
35484 Text in colorboxes cannot have line breaks.
35485 To color multiple text lines or paragraphs, use a box inside a colorbox
35486 as described in the following.
35494 \begin_layout Subsection
35495 Color for Paragraphs
35496 \begin_inset CommandInset label
35498 name "sub:Color-for-Paragraphs"
35503 \begin_inset Index idx
35506 \begin_layout Plain Layout
35507 Color ! for Paragraphs
35515 \begin_layout Standard
35516 To set the background color for more than one text line, put the text into
35518 Before the minipage insert the
35527 \begin_layout Standard
35535 \begin_layout Standard
35537 After the minipage insert a closing brace
35538 \begin_inset Quotes eld
35546 \begin_inset Quotes erd
35552 \begin_layout Standard
35556 \begin_layout Plain Layout
35560 colorbox{lightgrey}{
35566 \begin_inset Box Frameless
35576 height_special "totalheight"
35579 \begin_layout Plain Layout
35580 This is text with background color.
35581 This is text with background color.
35584 \begin_layout Plain Layout
35585 \begin_inset VSpace defskip
35588 The text can have footnotes
35592 \begin_layout Plain Layout
35593 Another example footnote
35598 and can include tables and figures.
35601 \begin_layout Plain Layout
35603 \begin_inset Tabular
35604 <lyxtabular version="3" rows="3" columns="3">
35605 <features rotate="0" tabularvalignment="middle">
35606 <column alignment="center" valignment="top">
35607 <column alignment="center" valignment="top">
35608 <column alignment="center" valignment="top">
35610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35613 \begin_layout Plain Layout
35619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35622 \begin_layout Plain Layout
35628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35631 \begin_layout Plain Layout
35639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35642 \begin_layout Plain Layout
35648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35651 \begin_layout Plain Layout
35653 \begin_inset Quotes erd
35661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35664 \begin_layout Plain Layout
35672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35675 \begin_layout Plain Layout
35681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35684 \begin_layout Plain Layout
35690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35693 \begin_layout Plain Layout
35713 \begin_layout Plain Layout
35723 \begin_layout Section
35724 Rotated and Scaled Boxes
35727 \begin_layout Standard
35728 To use the commands described in this section, the LaTeX-package
35733 \begin_inset Index idx
35736 \begin_layout Plain Layout
35737 LaTeX-packages ! graphicx
35742 needs to be loaded in the document preamble with the command
35745 \begin_layout Standard
35750 @ifundefined{rotatebox}
35751 \begin_inset Newline newline
35755 \begin_inset Phantom HPhantom
35758 \begin_layout Plain Layout
35761 \begin_inset space ~
35771 usepackage{graphicx}}{}
35774 \begin_layout Standard
35775 \begin_inset Note Greyedout
35778 \begin_layout Plain Layout
35783 Not all DVI-viewers are able to display rotated or scaled material.
35791 \begin_layout Standard
35792 \begin_inset Note Greyedout
35795 \begin_layout Plain Layout
35800 Floats are not allowed inside a rotated or scaled box.
35808 \begin_layout Subsection
35810 \begin_inset Index idx
35813 \begin_layout Plain Layout
35820 \begin_inset Index idx
35823 \begin_layout Plain Layout
35832 \begin_layout Standard
35833 To rotate material, you can put it into a rotated box.
35834 Such a box is created using the command
35840 in TeX-Code with the following scheme:
35843 \begin_layout Standard
35848 rotatebox[rotation origin]{rotation angle}{box content}
35851 \begin_layout Standard
35852 The rotation origin is specified in the form
35857 The following positions are possible:
35877 (top), along with meaningful combinations of the four base positions.
35882 means that the rotation origin is at the top left corner of the box.
35883 When no rotation origin is specified, the position
35888 The rotation angle is a number that can be negative that specifies the
35890 The rotation direction is counterclockwise.
35893 \begin_layout Standard
35894 In the following example the command
35898 rotatebox[origin=c]{60}{
35900 was inserted as TeX-Code before the text
35901 \begin_inset Quotes eld
35905 \begin_inset Quotes erd
35908 ; after the text the box was closed by a closing brace
35915 \begin_layout Standard
35920 \begin_layout Plain Layout
35924 rotatebox[origin=c]{60}{
35933 \begin_layout Plain Layout
35943 \begin_layout Standard
35944 The box content can also be another box or an inline formula:
35947 \begin_layout Standard
35952 \begin_layout Plain Layout
35956 rotatebox[origin=r]{-60}{
35962 \begin_inset Box Doublebox
35972 height_special "totalheight"
35975 \begin_layout Plain Layout
35985 \begin_layout Plain Layout
35996 \begin_layout Plain Layout
36000 rotatebox[origin=lb]{60}{
36006 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36013 \begin_layout Plain Layout
36023 \begin_layout Standard
36024 or an image or table:
36027 \begin_layout Standard
36032 \begin_layout Plain Layout
36036 rotatebox[origin=lb]{90}{
36042 \begin_inset Graphics
36043 filename clipart/platypus.eps
36053 \begin_layout Plain Layout
36060 with a rotated image
36064 \begin_layout Plain Layout
36068 rotatebox[origin=l]{-90}{
36074 \begin_inset Tabular
36075 <lyxtabular version="3" rows="2" columns="2">
36076 <features rotate="0" tabularvalignment="middle">
36077 <column alignment="center" valignment="top">
36078 <column alignment="center" valignment="top">
36080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36083 \begin_layout Plain Layout
36089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36092 \begin_layout Plain Layout
36100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36103 \begin_layout Plain Layout
36109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36112 \begin_layout Plain Layout
36127 \begin_layout Plain Layout
36135 \begin_inset Index idx
36138 \begin_layout Plain Layout
36145 \begin_inset Index idx
36148 \begin_layout Plain Layout
36149 Table Customization ! Rotating
36157 \begin_layout Subsection
36159 \begin_inset Index idx
36162 \begin_layout Plain Layout
36169 \begin_inset Index idx
36172 \begin_layout Plain Layout
36181 \begin_layout Standard
36182 To scale material the commands
36194 can be used as TeX-Code.
36197 \begin_layout Standard
36204 is used with the following scheme:
36207 \begin_layout Standard
36212 scalebox{horizontal}[vertical]{box content}
36215 \begin_layout Standard
36216 Horizontal and vertical are the corresponding scaling factors.
36217 If no vertical scaling factor is given, the horizontal factor will also
36218 be used as the vertical one.
36221 \begin_layout Standard
36228 creates for example a double size
36232 \begin_layout Plain Layout
36245 \begin_layout Plain Layout
36252 , compared with the document text size.
36255 \begin_layout Standard
36260 scalebox{2}[1]{Hello}
36262 on the other hand distorts the
36266 \begin_layout Plain Layout
36279 \begin_layout Plain Layout
36289 \begin_layout Standard
36290 If the scaling factor is negative, the box content will be mirrored.
36291 Therefore the command
36295 scalebox{-1}[1]{Hello}
36297 can be used to create mirror writing:
36301 \begin_layout Plain Layout
36314 \begin_layout Plain Layout
36324 \begin_layout Standard
36329 scalebox{1}[-1]{Hello}
36335 \begin_layout Plain Layout
36348 \begin_layout Plain Layout
36358 \begin_layout Standard
36363 scalebox{-1}[1]{box content}
36365 there exists the command
36366 \begin_inset Newline newline
36373 reflectbox{box content}
36378 \begin_layout Standard
36379 \begin_inset VSpace bigskip
36388 is used to scale the box to a defined width and height.
36389 The command scheme is:
36392 \begin_layout Standard
36397 resizebox{width}{height}{box content}
36400 \begin_layout Standard
36401 If one of the two command arguments given is an exclamation mark
36405 , the size is set so that the aspect ratio of the box content is kept.
36408 \begin_layout Standard
36413 resizebox{2cm}{1cm}{Hello}
36419 \begin_layout Plain Layout
36423 resizebox{2cm}{1cm}{
36432 \begin_layout Plain Layout
36440 \begin_inset Newline newline
36447 resizebox{2cm}{!}{Hello}
36453 \begin_layout Plain Layout
36466 \begin_layout Plain Layout
36476 \begin_layout Standard
36477 \begin_inset VSpace bigskip
36481 \begin_inset Note Greyedout
36484 \begin_layout Plain Layout
36501 are set to zero, no LaTeX-errors occur when exporting the document but
36502 the exported files can not or only partly be displayed.
36510 \begin_layout Standard
36511 \begin_inset VSpace bigskip
36517 \begin_layout Standard
36518 The boxes can be combined in any order.
36520 \begin_inset space \thinspace{}
36524 \begin_inset space \space{}
36528 \begin_inset Newline newline
36535 rotatebox[origin=c]{-45}{
36539 reflectbox{Hello}}}
36540 \begin_inset Newline newline
36548 \begin_layout Standard
36553 \begin_layout Plain Layout
36557 rotatebox[origin=c]{-45}{
36570 \begin_layout Plain Layout
36580 \begin_layout Standard
36582 Images, tables, and inline formulas are allowed as box content:
36585 \begin_layout Standard
36590 \begin_layout Plain Layout
36594 rotatebox[origin=c]{-30}{
36604 \begin_inset Graphics
36605 filename clipart/platypus.eps
36615 \begin_layout Plain Layout
36626 \begin_layout Plain Layout
36630 rotatebox[origin=c]{-45}{
36640 \begin_inset Tabular
36641 <lyxtabular version="3" rows="2" columns="2">
36642 <features rotate="0" tabularvalignment="middle">
36643 <column alignment="center" valignment="top">
36644 <column alignment="center" valignment="top">
36646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36649 \begin_layout Plain Layout
36655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36658 \begin_layout Plain Layout
36666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36669 \begin_layout Plain Layout
36675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36678 \begin_layout Plain Layout
36693 \begin_layout Plain Layout
36704 \begin_layout Plain Layout
36708 rotatebox[origin=c]{-45}{
36718 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36725 \begin_layout Plain Layout
36733 \begin_inset Index idx
36736 \begin_layout Plain Layout
36743 \begin_inset Index idx
36746 \begin_layout Plain Layout
36747 Table Customization ! Scaling
36755 \begin_layout Standard
36756 When the global formula style
36760 is used in the document
36764 \begin_layout Plain Layout
36766 \begin_inset Quotes eld
36770 \begin_inset Quotes erd
36773 is added to the document class options.
36778 , display style formulas can also be scaled.
36781 \begin_layout Chapter
36782 Objects Surrounded by Text
36783 \begin_inset Index idx
36786 \begin_layout Plain Layout
36795 \begin_layout Section
36797 \begin_inset CommandInset label
36799 name "sec:Wrap-Floats"
36804 \begin_inset Index idx
36807 \begin_layout Plain Layout
36808 Floats ! Wrap Floats
36814 \begin_inset Index idx
36817 \begin_layout Plain Layout
36818 Surrounded by text ! Wrap Floats
36826 \begin_layout Standard
36827 \begin_inset Wrap figure
36834 \begin_layout Plain Layout
36835 \begin_inset Graphics
36836 filename clipart/mobius.eps
36838 scaleBeforeRotation
36839 rotateOrigin center
36846 \begin_layout Plain Layout
36847 \begin_inset Caption Standard
36849 \begin_layout Plain Layout
36850 \begin_inset CommandInset label
36852 name "fig:This-is-a"
36856 This is a figure wrap float.
36866 This float type is used if you want to wrap text around a figure or table
36867 so that it only occupies some fraction of the column width.
36868 It can be inserted using the menu
36870 Insert\SpecialChar \menuseparator
36871 Floats\SpecialChar \menuseparator
36873 \begin_inset space ~
36877 \begin_inset space ~
36885 \begin_inset space ~
36889 \begin_inset space ~
36894 if the LaTeX-package
36899 \begin_inset Index idx
36902 \begin_layout Plain Layout
36903 LaTeX-packages ! wrapfig
36912 \begin_layout Plain Layout
36913 Installing a LaTeX-package is explained it in the
36916 \begin_inset space ~
36926 The settings of the float can be modified by right-clicking on the float
36928 The mandatory settings are the float
36941 that specifies how much the float is set into the paragraph
36942 \begin_inset space \thinspace{}
36946 \begin_inset space \thinspace{}
36949 page margin, and the
36952 \begin_inset space ~
36957 that specifies how many text lines the float will approximately need.
36958 The line span is often hard to approximate; so it is better only to use
36959 it when you encounter float placement problems.
36960 You can furthermore decide if LaTeX is allowed to let the float float within
36961 the paragraph or to surrounding paragraphs.
36963 \begin_inset space ~
36967 \begin_inset CommandInset ref
36969 reference "fig:This-is-a"
36973 is an example text wrap float with a width of 40
36974 \begin_inset space \thinspace{}
36978 \begin_inset space \thinspace{}
36981 cm overhang, set to the left.
36984 \begin_layout Standard
36985 \begin_inset Note Greyedout
36988 \begin_layout Plain Layout
36994 \begin_inset space ~
36997 wrap float floats are fragile! E.
36998 \begin_inset space \thinspace{}
37002 \begin_inset space \space{}
37005 having a figure too close to the bottom of the page can mess things up in
37006 such a way that the float does not appear in the output or that it is placed
37007 over some other text.
37015 \begin_layout Standard
37016 In general, the following applies for wrap floats:
37019 \begin_layout Itemize
37020 They should not be placed in paragraphs that run over a page break.
37021 That means that wrap floats are better inserted in their exact place when
37022 the document is almost finished and you are able to estimate where page
37023 breaks will appear.
37026 \begin_layout Itemize
37027 They should either be placed in their own paragraph before the paragraph
37028 where they should wrap into or within a paragraph.
37031 \begin_layout Itemize
37032 In consecutive paragraphs they may cause troubles, so ensure that there
37033 is a text paragraph between them as separator.
37036 \begin_layout Itemize
37037 They are not allowed in section headings or tables.
37040 \begin_layout Itemize
37041 Their numbering and referencing works as described in chap.
37042 \begin_inset space \thinspace{}
37046 \begin_inset CommandInset ref
37048 reference "chap:Floats"
37055 \begin_layout Section
37056 Surrounded Fixed Objects
37057 \begin_inset Index idx
37060 \begin_layout Plain Layout
37061 Surrounded by text ! Fixed objects
37069 \begin_layout Standard
37070 The wrap floats described in sec.
37071 \begin_inset space \thinspace{}
37075 \begin_inset CommandInset ref
37077 reference "sec:Wrap-Floats"
37081 have these positions in the paragraph:
37084 \begin_layout Standard
37087 \begin_inset Tabular
37088 <lyxtabular version="3" rows="2" columns="2">
37089 <features rotate="0" tabularvalignment="middle">
37090 <column alignment="center" valignment="top">
37091 <column alignment="center" valignment="top">
37093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37096 \begin_layout Plain Layout
37097 \begin_inset Graphics
37098 filename ../images/dialog-show-new-inset_graphics.png
37100 scaleBeforeRotation
37109 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37112 \begin_layout Plain Layout
37120 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37123 \begin_layout Plain Layout
37129 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37132 \begin_layout Plain Layout
37144 \begin_inset Tabular
37145 <lyxtabular version="3" rows="2" columns="2">
37146 <features rotate="0" tabularvalignment="middle">
37147 <column alignment="center" valignment="top">
37148 <column alignment="center" valignment="top">
37150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37153 \begin_layout Plain Layout
37159 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37162 \begin_layout Plain Layout
37163 \begin_inset Graphics
37164 filename ../images/dialog-show-new-inset_graphics.png
37166 scaleBeforeRotation
37177 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37180 \begin_layout Plain Layout
37186 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37189 \begin_layout Plain Layout
37203 \begin_layout Standard
37204 To get an object exactly at the position where it is inserted, for example
37205 to get one of these positions:
37206 \begin_inset VSpace defskip
37212 \begin_layout Standard
37215 \begin_inset Tabular
37216 <lyxtabular version="3" rows="2" columns="2">
37217 <features rotate="0" tabularvalignment="middle">
37218 <column alignment="center" valignment="top">
37219 <column alignment="center" valignment="top">
37221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37224 \begin_layout Plain Layout
37230 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37233 \begin_layout Plain Layout
37241 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37244 \begin_layout Plain Layout
37245 \begin_inset Graphics
37246 filename ../images/dialog-show-new-inset_graphics.png
37248 scaleBeforeRotation
37257 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37260 \begin_layout Plain Layout
37272 \begin_inset Tabular
37273 <lyxtabular version="3" rows="2" columns="2">
37274 <features rotate="0" tabularvalignment="middle">
37275 <column alignment="center" valignment="top">
37276 <column alignment="center" valignment="top">
37278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37281 \begin_layout Plain Layout
37287 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37290 \begin_layout Plain Layout
37298 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37301 \begin_layout Plain Layout
37307 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37310 \begin_layout Plain Layout
37311 \begin_inset Graphics
37312 filename ../images/dialog-show-new-inset_graphics.png
37314 scaleBeforeRotation
37329 \begin_inset Tabular
37330 <lyxtabular version="3" rows="2" columns="3">
37331 <features rotate="0" tabularvalignment="middle">
37332 <column alignment="center" valignment="top">
37333 <column alignment="center" valignment="top">
37334 <column alignment="center" valignment="top">
37336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37339 \begin_layout Plain Layout
37345 <cell alignment="center" valignment="top" topline="true" usebox="none">
37348 \begin_layout Plain Layout
37349 \begin_inset Graphics
37350 filename ../images/dialog-show-new-inset_graphics.png
37352 scaleBeforeRotation
37361 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37364 \begin_layout Plain Layout
37372 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37375 \begin_layout Plain Layout
37381 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37384 \begin_layout Plain Layout
37390 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37393 \begin_layout Plain Layout
37405 \begin_inset Tabular
37406 <lyxtabular version="3" rows="2" columns="3">
37407 <features rotate="0" tabularvalignment="middle">
37408 <column alignment="center" valignment="top">
37409 <column alignment="center" valignment="top">
37410 <column alignment="center" valignment="top">
37412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37415 \begin_layout Plain Layout
37421 <cell alignment="center" valignment="top" topline="true" usebox="none">
37424 \begin_layout Plain Layout
37430 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37433 \begin_layout Plain Layout
37441 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37444 \begin_layout Plain Layout
37450 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37453 \begin_layout Plain Layout
37454 \begin_inset Graphics
37455 filename ../images/dialog-show-new-inset_graphics.png
37457 scaleBeforeRotation
37466 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37469 \begin_layout Plain Layout
37483 \begin_layout Standard
37486 \begin_inset Tabular
37487 <lyxtabular version="3" rows="3" columns="2">
37488 <features rotate="0" tabularvalignment="middle">
37489 <column alignment="center" valignment="top">
37490 <column alignment="center" valignment="top">
37492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37495 \begin_layout Plain Layout
37501 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37504 \begin_layout Plain Layout
37512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37515 \begin_layout Plain Layout
37516 \begin_inset Graphics
37517 filename ../images/dialog-show-new-inset_graphics.png
37519 scaleBeforeRotation
37528 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37531 \begin_layout Plain Layout
37539 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37542 \begin_layout Plain Layout
37548 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37551 \begin_layout Plain Layout
37563 \begin_inset Tabular
37564 <lyxtabular version="3" rows="3" columns="3">
37565 <features rotate="0" tabularvalignment="middle">
37566 <column alignment="center" valignment="top">
37567 <column alignment="center" valignment="top">
37568 <column alignment="center" valignment="top">
37570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37573 \begin_layout Plain Layout
37579 <cell alignment="center" valignment="top" topline="true" usebox="none">
37582 \begin_layout Plain Layout
37588 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37591 \begin_layout Plain Layout
37599 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37602 \begin_layout Plain Layout
37608 <cell alignment="center" valignment="top" usebox="none">
37611 \begin_layout Plain Layout
37612 \begin_inset Graphics
37613 filename ../images/dialog-show-new-inset_graphics.png
37615 scaleBeforeRotation
37624 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37627 \begin_layout Plain Layout
37635 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37638 \begin_layout Plain Layout
37644 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37647 \begin_layout Plain Layout
37653 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37656 \begin_layout Plain Layout
37668 \begin_inset Tabular
37669 <lyxtabular version="3" rows="3" columns="2">
37670 <features rotate="0" tabularvalignment="middle">
37671 <column alignment="center" valignment="top">
37672 <column alignment="center" valignment="top">
37674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37677 \begin_layout Plain Layout
37683 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37686 \begin_layout Plain Layout
37694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37697 \begin_layout Plain Layout
37703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37706 \begin_layout Plain Layout
37707 \begin_inset Graphics
37708 filename ../images/dialog-show-new-inset_graphics.png
37710 scaleBeforeRotation
37721 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37724 \begin_layout Plain Layout
37730 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37733 \begin_layout Plain Layout
37747 \begin_layout Standard
37749 you can use the LaTeX-package
37754 \begin_inset Index idx
37757 \begin_layout Plain Layout
37758 LaTeX-packages ! picinpar
37764 Here is an example:
37767 \begin_layout Standard
37771 \begin_layout Plain Layout
37781 \begin_inset Note Note
37784 \begin_layout Plain Layout
37785 The following section will only be displayed when the LaTeX-package
37797 \begin_layout Standard
37801 \begin_layout Plain Layout
37805 begin{window}[2,c,{
37811 \begin_inset Graphics
37812 filename clipart/mobius.eps
37815 scaleBeforeRotation
37816 rotateOrigin center
37824 \begin_layout Plain Layout
37829 \begin_layout Plain Layout
37838 It was in the spring of the year 1894 that all London was interested, and
37839 the fashionable world dismayed, by the murder of the Honourable Ronald
37840 Adair under most unusual and inexplicable circumstances.
37841 The public has already learned those particulars of the crime which
37847 \begin_layout Plain Layout
37858 came out in the police investigation, but a good deal was suppressed upon
37859 that occasion, since the case for the prosecution was so overwhelmingly
37860 strong that it was not necessary to bring forward all the facts.
37861 Only now, at the end of nearly ten years, am I allowed to supply those
37862 missing links which make up the whole of that remarkable chain.
37868 \begin_layout Plain Layout
37880 \begin_layout Standard
37884 \begin_layout Plain Layout
37893 Footnote of the paragraph with the fixed object.
37897 \begin_layout Plain Layout
37907 \begin_layout Standard
37908 Surrounded fixed objects are used to let text float around them, at which
37909 the object's position in the paragraph can be determined by the number
37911 In contrary to floats is it not possible to have a numbered caption.
37914 \begin_layout Standard
37915 A fixed object is inserted by adding the command
37918 \begin_layout Standard
37923 begin{window}[2,c,{
37926 \begin_layout Standard
37927 as TeX-Code at the beginning of the paragraph.
37928 The first parameter in the bracket, here '2', defines the number of lines
37929 above the object, the second, here 'c', the position of the object.
37930 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37931 Behind the command you insert the object.
37932 In this example an image with a width of 40
37933 \begin_inset space \thinspace{}
37936 % of the text column width was inserted.
37937 The object can also be a table, a box or an equation.
37938 Behind the object the command
37941 \begin_layout Standard
37944 },description text]
37945 \begin_inset Newline newline
37951 \begin_layout Standard
37954 \begin_inset Quotes eld
37962 \begin_inset Quotes erd
37965 is in the second line.
37966 The description text is optional.
37967 The text surrounding the object must be in the same paragraph as the object,
37968 so it must begin directly after the
37973 At the end of the paragraph insert the command:
37976 \begin_layout Standard
37984 \begin_layout Standard
37985 Within a paragraph with a fixed object, you cannot insert footnotes in the
37987 You have to use instead the command
37993 inside the paragraph and outside the command
37999 as described in sec.
38000 \begin_inset space \thinspace{}
38004 \begin_inset CommandInset ref
38006 reference "sec:Footnotes"
38013 \begin_layout Standard
38017 \begin_layout Plain Layout
38027 \begin_inset Note Note
38030 \begin_layout Plain Layout
38031 The following will be displayed when the LaTeX-package
38043 \begin_layout Standard
38044 You need to install the LaTeX-package
38048 to see the following part of this section in the output.
38051 \begin_layout Standard
38055 \begin_layout Plain Layout
38067 \begin_layout Section
38069 \begin_inset Index idx
38072 \begin_layout Plain Layout
38079 \begin_inset Index idx
38082 \begin_layout Plain Layout
38083 Surrounded by text ! Initials
38091 \begin_layout Standard
38092 To use initials, you must have the LaTeX-package
38097 \begin_inset Index idx
38100 \begin_layout Plain Layout
38101 LaTeX-packages ! lettrine
38106 installed and use the module
38110 in your document (menu
38112 Document\SpecialChar \menuseparator
38113 Settings\SpecialChar \menuseparator
38117 To insert an initial, use the style
38122 This style has a mandatory and two optional arguments.
38123 The arguments are inserted via the
38128 The mandatory argument
38132 contains the letter(s) that is the initial, the argument
38135 \begin_inset space ~
38139 \begin_inset space ~
38144 contains the rest of the word or text of the initial letter(s).
38149 contains parameters to modify the initial.
38150 For more information about the possible parameters see the documentation
38156 \begin_inset CommandInset citation
38163 The style itself contains the text that is surrounding the initial.
38164 The usual style is hereby that the word whose first letter is the initial,
38172 \begin_layout Standard
38173 Here are some examples:
38176 \begin_layout Standard
38180 \begin_layout Plain Layout
38190 \begin_inset Note Note
38193 \begin_layout Plain Layout
38194 The following section will only be displayed when the LaTeX-package
38206 \begin_layout Enumerate
38207 No optional argument, the initial is the letter 'I' in the math font
38208 \begin_inset Formula $\mathfrak{Fraktur}$
38215 \begin_layout Initial
38216 \begin_inset Argument 2
38219 \begin_layout Plain Layout
38220 \begin_inset Formula $\mathfrak{I}$
38229 \begin_inset Argument 3
38232 \begin_layout Plain Layout
38238 was in the spring of the year 1894 that all London was interested, and
38239 the fashionable world dismayed, by the murder of the Honourable Ronald
38240 Adair under most unusual and inexplicable circumstances.
38241 The public has already learned those particulars of the crime which came
38242 out in the police investigation, but a good deal was suppressed upon that
38243 occasion, since the case for the prosecution was so overwhelmingly strong
38244 that it was not necessary to bring forward all the facts.
38245 \begin_inset Newpage newpage
38252 \begin_layout Enumerate
38253 Only one line is surrounding the initial, which is formed by two letters
38254 in standard font and no text is printed in small caps:
38258 \begin_layout Initial
38259 \begin_inset Argument 1
38262 \begin_layout Plain Layout
38269 \begin_inset Argument 2
38272 \begin_layout Plain Layout
38278 was in the spring of the year 1894 that all London was interested, and
38279 the fashionable world dismayed, by the murder of the Honourable Ronald
38280 Adair under most unusual and inexplicable circumstances.
38281 The public has already learned those particulars of the crime which came
38282 out in the police investigation, but a good deal was suppressed upon that
38283 occasion, since the case for the prosecution was so overwhelmingly strong
38284 that it was not necessary to bring forward all the facts.
38288 \begin_layout Enumerate
38289 Magenta, hanging initial over 3
38290 \begin_inset space ~
38293 lines in the math font
38294 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
38298 \begin_inset Quotes eld
38301 t was in the spring
38302 \begin_inset Quotes erd
38309 ; to color the initial, you must insert this command before the initial:
38310 \begin_inset Newline newline
38324 \begin_inset Newline newline
38332 \begin_inset Quotes eld
38336 \begin_inset Quotes erd
38340 \begin_inset Quotes eld
38344 \begin_inset Quotes erd
38348 \begin_inset Quotes eld
38352 \begin_inset Quotes erd
38356 \begin_inset Quotes eld
38360 \begin_inset Quotes erd
38364 \begin_inset Quotes eld
38368 \begin_inset Quotes erd
38372 \begin_inset Quotes eld
38376 \begin_inset Quotes erd
38380 \begin_inset Quotes eld
38384 \begin_inset Quotes erd
38388 \begin_inset Quotes eld
38392 \begin_inset Quotes erd
38395 , and add this command to the document preamble:
38396 \begin_inset Newline newline
38403 @ifundefined{textcolor}
38404 \begin_inset Newline newline
38408 \begin_inset space ~
38413 usepackage{color}}{}
38417 \begin_layout Standard
38421 \begin_layout Plain Layout
38435 \begin_inset Note Note
38438 \begin_layout Plain Layout
38439 makes the initial magenta
38447 \begin_layout Initial
38448 \begin_inset Argument 1
38451 \begin_layout Plain Layout
38452 lines=3, lhang=0.33, loversize=0.25
38458 \begin_inset Argument 2
38461 \begin_layout Plain Layout
38462 \begin_inset Formula $\mathcal{I}$
38471 \begin_inset Argument 3
38474 \begin_layout Plain Layout
38475 t was in the spring
38480 of the year 1894 that all London was interested, and the fashionable world
38481 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38482 and inexplicable circumstances.
38483 The public has already learned those particulars of the crime which came
38484 out in the police investigation, but a good deal was suppressed upon that
38485 occasion, since the case for the prosecution was so overwhelmingly strong
38486 that it was not necessary to bring forward all the facts.
38490 \begin_layout Standard
38494 \begin_layout Plain Layout
38504 \begin_inset Note Note
38507 \begin_layout Plain Layout
38508 The following will be displayed when the LaTeX-package
38520 \begin_layout Standard
38521 You need to install the LaTeX-package
38525 to see the following part of this section in the output.
38528 \begin_layout Standard
38532 \begin_layout Plain Layout
38544 \begin_layout Chapter
38545 External Document Parts
38546 \begin_inset Index idx
38549 \begin_layout Plain Layout
38550 External Document Parts
38558 \begin_layout Standard
38561 Insert\SpecialChar \menuseparator
38564 you can insert external material into your document.
38568 \begin_layout Description
38570 \begin_inset space ~
38573 Document Another LyX document; its content is directly inserted to your
38577 \begin_layout Description
38579 \begin_inset space ~
38582 Text A text document; each line is inserted in your document as a separate
38586 \begin_layout Description
38588 \begin_inset space ~
38592 \begin_inset space ~
38596 \begin_inset space ~
38599 Lines A text document; text lines are inserted in your document continuously
38600 but an empty text line creates a new paragraph.
38603 \begin_layout Description
38605 \begin_inset space ~
38608 Material Files in various formats.
38611 \begin_layout Description
38613 \begin_inset space ~
38616 Document LyX or LaTeX-documents.
38619 \begin_layout Section
38621 \begin_inset Index idx
38624 \begin_layout Plain Layout
38625 External Document Parts ! External Material
38633 \begin_layout Standard
38634 The external material feature allows you to insert files into your document
38635 without converting them to a format that can be read by the document output
38637 LyX takes care of the necessary conversions.
38638 This is similar to images that can be inserted in various image formats
38640 When you have enabled Instant Preview in LyX's preferences under
38643 \begin_inset space ~
38647 \begin_inset space ~
38650 feel\SpecialChar \menuseparator
38653 , the external material types Dia and Xfig are directly shown in LyX.
38656 \begin_layout Standard
38657 External material can be inserted via the
38661 dialog that is accessible with the menu
38663 Insert\SpecialChar \menuseparator
38664 File\SpecialChar \menuseparator
38666 \begin_inset space ~
38672 Currently the following file types (
38679 \begin_layout Description
38680 ChessDiagram This template supports chess position diagrams made with the
38684 \begin_inset CommandInset href
38687 target "http://en.wikipedia.org/wiki/XBoard"
38696 \begin_layout Description
38697 Date This inserts the date in the form
38702 This is a date inserted as external material:
38703 \begin_inset External
38710 \begin_inset space ~
38714 \begin_inset Note Note
38717 \begin_layout Plain Layout
38718 Remove the protected space when bug 4398 is fixed!
38724 \begin_inset Newline newline
38727 The date is not shown within LyX, only in the output.
38728 There are two other methods of inserting a date: Via menu
38730 Insert\SpecialChar \menuseparator
38733 and with the LaTeX command
38740 The different methods are compared in Table
38741 \begin_inset space ~
38745 \begin_inset CommandInset ref
38747 reference "tab:Comparison-of-the"
38754 \begin_layout Description
38755 Dia This template supports diagrams created with the program
38758 \begin_inset CommandInset href
38761 target "http://en.wikipedia.org/wiki/Dia_(software)"
38770 \begin_layout Description
38771 GnumericSpreadsheet With this template you can insert spreadsheets
38772 \begin_inset space \thinspace{}
38776 \begin_inset space \thinspace{}
38779 tables in the format of
38782 \begin_inset CommandInset href
38785 target "http://en.wikipedia.org/wiki/Gnumeric"
38792 \begin_inset CommandInset href
38794 name "OpenDocument"
38795 target "http://en.wikipedia.org/wiki/OpenDocument"
38800 \begin_inset CommandInset href
38802 name "Microsoft Office XML"
38803 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38808 \begin_inset CommandInset href
38810 name "Office Open XML"
38811 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38816 For this feature LyX must have found the program
38820 during its configuration.
38821 This program is part of Gnumeric, so that you must have Gnumeric installed,
38822 also if you don't have tables in the Gnumeric format.
38823 For examples and possible limitations have a look at LyX's example file
38831 \begin_layout Description
38832 LilyPond This template is used for music notation typeset with the program
38833 \begin_inset Newline linebreak
38839 \begin_inset CommandInset href
38842 target "http://en.wikipedia.org/wiki/LilyPond"
38849 For LyX's extended support for LilyPond have a look at LyX's example file
38857 \begin_layout Description
38858 PDFPages With this template you can insert PDF documents to your document.
38859 To specify the range of pages that should be included, use the option
38869 LaTeX and LyX options
38872 The argument of this option is a comma separated list, containing page
38873 numbers (insert as option
38877 ), ranges of page numbers (
38881 ) or any combination.
38882 To insert empty pages use {}.
38884 \begin_inset space \thinspace{}
38888 \begin_inset space ~
38893 pages={3,{},8-11,15}
38895 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38896 Page ranges are specified in the syntax
38905 This selects all pages from
38918 defaults to the first page; omitting
38922 defaults to the last page of the document.
38923 The last page can also be selected with the keyword
38928 (This is only permitted in a page range.) So
38932 will insert all pages of the document and
38936 will insert all pages in reverse order.
38937 If the pages option is not specified, only the first page of the PDF is
38939 \begin_inset Newline newline
38946 inserts the pages with their original size, if this option is not given,
38947 the pages will be resized to fith the width of the page of your document.
38952 you can specify the width and height of the input pages and their rotation.
38953 If another width than 100
38954 \begin_inset space \thinspace{}
38957 Scale% is used, the option
38961 will be overwritten.
38962 For more info and possible options, have a look into the documentation
38963 of the LaTeX-package
38968 \begin_inset CommandInset citation
38975 \begin_inset Index idx
38978 \begin_layout Plain Layout
38979 LaTeX-packages ! pdfpages
38985 \begin_inset Newline newline
38988 To use this template in a
38992 presentation you need to first insert an
38996 environment and in a subsequent paragraph a TeX-Code box containing the
39001 setbeamertemplate{background canvas}{}
39004 Then you can insert as many paragraphs containing the PDFPages template
39006 Behind the included PDF pages you can resume the Beamer presentation by
39007 beginning a new frame or by starting a new section.
39008 To avoid stray blank pages prior to the PDF pages, make sure to use the
39013 alignment for the paragraph containing the template.
39014 \begin_inset Newline newline
39017 Here is an included PDF which is rotated by -5°:
39018 \begin_inset External
39020 filename clipart/Abstract.pdf
39021 extra LaTeX "noautoscale, pages=-"
39023 rotateOrigin bottomleft
39030 \begin_layout Description
39031 RasterImage This can be used for bitmap images.
39032 The image can be treated in the
39036 dialog like the images that are usually included via the
39040 dialog as described in section
39041 \begin_inset space ~
39045 \begin_inset CommandInset ref
39047 reference "sec:Graphics-Dialog"
39052 The difference to the normal image input is that only raster images are
39053 allowed; that means that PDF and EPS-images are not supported.
39054 Here is an inserted raster image:
39055 \begin_inset External
39056 template RasterImage
39057 filename clipart/ToolbarEnvBox.png
39064 \begin_layout Description
39065 XFig This template supports images created with the program
39068 \begin_inset CommandInset href
39071 target "http://en.wikipedia.org/wiki/Xfig"
39080 \begin_layout Standard
39081 \begin_inset Float table
39087 \begin_layout Plain Layout
39088 \begin_inset Caption Standard
39090 \begin_layout Plain Layout
39091 \begin_inset CommandInset label
39093 name "tab:Comparison-of-the"
39097 Comparison of the date input methods.
39105 \begin_layout Plain Layout
39107 \begin_inset Tabular
39108 <lyxtabular version="3" rows="4" columns="4">
39109 <features rotate="0" tabularvalignment="middle">
39110 <column alignment="center" valignment="top">
39111 <column alignment="center" valignment="top">
39112 <column alignment="center" valignment="top">
39113 <column alignment="center" valignment="top">
39115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39118 \begin_layout Plain Layout
39124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39127 \begin_layout Plain Layout
39130 External Material\SpecialChar \menuseparator
39136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39139 \begin_layout Plain Layout
39142 Insert\SpecialChar \menuseparator
39148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39151 \begin_layout Plain Layout
39163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39166 \begin_layout Plain Layout
39172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39175 \begin_layout Plain Layout
39181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39184 \begin_layout Plain Layout
39190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39193 \begin_layout Plain Layout
39194 as TeX-Code inset box
39201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39204 \begin_layout Plain Layout
39210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39213 \begin_layout Plain Layout
39219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39222 \begin_layout Plain Layout
39228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39231 \begin_layout Plain Layout
39239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39242 \begin_layout Plain Layout
39248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39251 \begin_layout Plain Layout
39257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39260 \begin_layout Plain Layout
39266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39269 \begin_layout Plain Layout
39288 \begin_layout Standard
39289 When you use the option
39301 dialog, only the path to the inserted file is shown in the output.
39302 \begin_inset Newline newline
39305 External material is displayed in LyX either as a box like this:
39306 \begin_inset Graphics
39307 filename clipart/ExternalMaterialQt4.png
39309 scaleBeforeRotation
39313 or as image, depending on the option
39319 LaTeX and LyX options
39324 \begin_layout Standard
39331 manual explains how you can define your own templates.
39334 \begin_layout Section
39336 \begin_inset CommandInset label
39338 name "sec:Child-Documents"
39343 \begin_inset Index idx
39346 \begin_layout Plain Layout
39347 External Document Parts ! Child Documents
39353 \begin_inset Index idx
39356 \begin_layout Plain Layout
39365 \begin_layout Standard
39366 Child documents are used if you have a long document consisting of several
39367 larger parts or sections.
39368 For maintenance it is often useful and sometimes even required to split
39369 the document into several files that can be revised separately.
39370 The different documents are then the so called
39371 \begin_inset Quotes eld
39375 \begin_inset Quotes erd
39378 , and a master document connects them to print the full document or parts
39380 A child document inherits elements from its master, for example the LaTeX
39381 preamble, the bibliography, and labels for cross-references.
39384 \begin_layout Standard
39385 To be able to work on child documents without the need to open their master,
39386 specify in the child document the master in the menu
39388 Document\SpecialChar \menuseparator
39389 Settings\SpecialChar \menuseparator
39391 \begin_inset space ~
39397 This master document will then be used in the background by LyX when you
39398 edit the child document.
39401 \begin_layout Standard
39402 Included documents are displayed in LyX as a box like this:
39403 \begin_inset Graphics
39404 filename clipart/ChildDocumentQt4.png
39406 scaleBeforeRotation
39410 To include child documents in a master document use the menu
39412 Insert\SpecialChar \menuseparator
39413 File\SpecialChar \menuseparator
39415 \begin_inset space ~
39421 A dialog pops up where you can choose between four include methods:
39424 \begin_layout Description
39425 Include You can include LyX- and LaTeX-documents.
39434 dialog, the included document will be opened in LyX in a new file tab so
39435 that you can modify it.
39436 \begin_inset Newline newline
39442 \begin_layout Standard
39443 Here is a child document inserted using
39448 \begin_inset CommandInset include
39449 LatexCommand include
39450 filename "DummyDocument1.lyx"
39457 \begin_layout Standard
39458 The section numbering includes the sections of the included files in the
39459 order they are inserted in the master document.
39460 The included example document has for example a subsection that is numbered
39461 as a subsection of this section.
39462 Labels of included documents can be referenced: Subsection
39463 \begin_inset space ~
39467 \begin_inset CommandInset ref
39469 reference "sub:External-Subsection-1"
39476 \begin_layout Standard
39477 The preamble of the child document is ignored; only the preamble of the
39478 master document is used.
39479 Branches in child documents will be ignored by the master document when
39480 the master document does not have a branch with the same name.
39481 Included documents are inserted starting on a new page and ending with
39485 \begin_layout Standard
39486 \begin_inset Note Greyedout
39489 \begin_layout Plain Layout
39494 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39495 the document in case the child document uses another document class than
39496 the master document as this will lead to unexpected outputs.
39504 \begin_layout Description
39505 Input This method is very similar to the Include method.
39506 The differences are:
39510 \begin_layout Itemize
39511 Input files don't start with a new page and don't end with a page break.
39514 \begin_layout Itemize
39515 Input files can be previewed in LyX when
39518 \begin_inset space ~
39523 is enabled in LyX's preferences under
39526 \begin_inset space ~
39530 \begin_inset space ~
39533 feel\SpecialChar \menuseparator
39539 \begin_layout Itemize
39540 You cannot exclude Input files via the menu
39542 Document\SpecialChar \menuseparator
39543 Settings\SpecialChar \menuseparator
39550 \begin_layout Standard
39551 Here is a child document inserted using
39556 \begin_inset CommandInset include
39558 filename "DummyDocument2.lyx"
39565 \begin_layout Description
39566 Verbatim With this method any text file can be included.
39567 The file is shown in the output with its source code; no command used in
39568 the text is invoked.
39569 You can use the option
39571 Mark spaces in output
39573 that displays the character
39574 \begin_inset Quotes eld
39581 \begin_layout Plain Layout
39591 \begin_inset Quotes erd
39594 for every space character in the source code.
39595 The difference from the method via the menu
39597 Insert\SpecialChar \menuseparator
39598 File\SpecialChar \menuseparator
39600 \begin_inset space ~
39605 is that the document content is not shown in LyX.
39608 \begin_layout Standard
39609 Here is a child document inserted as Verbatim:
39610 \begin_inset CommandInset include
39611 LatexCommand verbatiminput
39612 filename "DummyTextDocument.txt"
39617 \begin_inset VSpace bigskip
39620 Here is a child document inserted as Verbatim using the
39622 Mark spaces in output
39625 \begin_inset CommandInset include
39626 LatexCommand verbatiminput*
39627 filename "DummyTextDocument.txt"
39634 \begin_layout Standard
39635 \begin_inset VSpace bigskip
39641 \begin_layout Standard
39642 \begin_inset Note Greyedout
39645 \begin_layout Plain Layout
39650 As you can see in the examples above, the text of the documents included
39655 is not broken at the end of the document lines.
39663 \begin_layout Description
39664 Listings This type is described in chapter
39665 \begin_inset space ~
39669 \begin_inset CommandInset ref
39671 reference "cha:Program-Code-Listings"
39678 \begin_layout Standard
39679 \begin_inset Note Greyedout
39682 \begin_layout Plain Layout
39687 Including the same document twice in a document using different methods
39688 could cause LaTeX-problems.
39696 \begin_layout Standard
39697 If you want to view/export only selected children of your master document,
39698 either because you want to save compiling time or because you want to distribut
39699 e single chapters of the book you are just writing, you can exclude children
39701 This is done via the menu
39703 Document\SpecialChar \menuseparator
39704 Settings\SpecialChar \menuseparator
39708 You can exclude\SpecialChar \slash{}
39709 include children by double-clicking on the
39713 column of the respective child document in the list (note that this only
39714 works for documents embedded via
39715 \begin_inset Quotes eld
39719 \begin_inset Quotes erd
39723 \begin_inset Quotes eld
39727 \begin_inset Quotes erd
39733 Maintain counters and references
39735 is enabled, LyX will assure that all page numbers, references etc.
39736 \begin_inset space ~
39739 are correct as if the whole document was processed.
39740 This is useful if you want the selected sub-documents to look exactly as
39741 in the context of the whole document.
39742 However, LyX needs to process the whole document in the background for
39744 So if you want to save compile time and if counters and references do not
39745 need to be correct, disable this checkbox.
39748 \begin_layout Standard
39749 Alternatively, you can put each included file into a branch.
39753 \begin_layout Plain Layout
39754 Branches are described in section
39767 By enabling\SpecialChar \slash{}
39768 disabling branches you can decide which included files will
39769 appear in the output.
39770 This has the advantage that it also works with Input'ed sub-documents.
39771 However, counters and references will not be maintained with this approach.
39774 \begin_layout Chapter
39775 Program Code Listings
39776 \begin_inset CommandInset label
39778 name "cha:Program-Code-Listings"
39783 \begin_inset Index idx
39786 \begin_layout Plain Layout
39793 \begin_inset Index idx
39796 \begin_layout Plain Layout
39803 \begin_inset Index idx
39806 \begin_layout Plain Layout
39815 \begin_layout Standard
39816 To include and typeset program code you can use the
39820 inset that can be inserted via the menu
39822 Insert\SpecialChar \menuseparator
39831 \begin_inset Index idx
39834 \begin_layout Plain Layout
39835 LaTeX-packages ! listings
39840 provides a powerful and flexible way to insert program source code into
39844 \begin_layout Standard
39845 Right-clicking on a listings inset opens the context menu containing where
39846 you can set the listings format.
39849 \begin_layout Standard
39850 By default, a listing starts a new paragraph in the output.
39851 The placement option
39854 \begin_inset space ~
39859 prints the listing inline like this:
39860 \begin_inset listings
39861 lstparams "language={C++}"
39865 \begin_layout Plain Layout
39873 \begin_inset Newline newline
39880 creates a listings float where you can specify the placement options
39881 \begin_inset Quotes eld
39889 \begin_inset Quotes erd
39893 \begin_inset Quotes eld
39901 \begin_inset Quotes erd
39905 \begin_inset Quotes eld
39913 \begin_inset Quotes erd
39917 \begin_inset Quotes eld
39925 \begin_inset Quotes erd
39928 corresponding to the float placement options described in section
39929 \begin_inset space ~
39933 \begin_inset CommandInset ref
39935 reference "sec:Float-Placement"
39940 The placement options can be mixed and are inserted without any separation,
39942 \begin_inset space \thinspace{}
39946 \begin_inset space \space{}
39950 \begin_inset Quotes eld
39958 \begin_inset Quotes erd
39963 \begin_inset Quotes eld
39967 \begin_inset Quotes erd
39970 has sometimes no effect, but you don't need to use the
39974 option in this case as also non-float listings can have captions and be
39978 \begin_layout Standard
39979 You can add captions to listings with the menu
39981 Insert\SpecialChar \menuseparator
39985 Listings can be referenced like floats: Listing
39986 \begin_inset space ~
39990 \begin_inset CommandInset ref
39992 reference "lst:Example-Listing"
39997 A list of listings which contains all listings with captions can be created
40000 Insert\SpecialChar \menuseparator
40002 \begin_inset space ~
40006 \begin_inset space ~
40009 TOC\SpecialChar \menuseparator
40013 The list entries are the listing caption and the listing number.
40016 \begin_layout Standard
40017 \begin_inset listings
40018 lstparams "language=Python"
40022 \begin_layout Plain Layout
40024 \begin_inset Caption Standard
40026 \begin_layout Plain Layout
40027 \begin_inset CommandInset label
40029 name "lst:Example-Listing"
40033 Example Listing float
40038 # Example listing float
40041 \begin_layout Plain Layout
40046 \begin_layout Plain Layout
40048 'this is a python function'
40051 \begin_layout Plain Layout
40061 \begin_layout Standard
40062 When you have set a programming language in the listings dialog, the keywords
40063 of this language will be recognized and specially typeset in the output.
40064 In the example listings the Python keyword
40065 \begin_inset Quotes eld
40069 \begin_inset Quotes erd
40072 is recognized and printed bold in the output.
40075 \begin_layout Standard
40076 \begin_inset Note Greyedout
40079 \begin_layout Plain Layout
40084 If you don't get bold keywords when using typewriter fonts, your
40088 font probably doesn't provide a bold shape.
40089 In this case select a different one in the menu
40091 Document\SpecialChar \menuseparator
40092 Settings\SpecialChar \menuseparator
40104 provide bold shapes.)
40112 \begin_layout Standard
40116 \begin_inset space ~
40121 of the listings dialog you can specify the line numbering style.
40122 You can insert a number to specify which lines are numbered in the field
40129 \begin_inset space \thinspace{}
40133 \begin_inset space \space{}
40137 \begin_inset Quotes eld
40141 \begin_inset Quotes erd
40144 , only every 3rd line will be numbered.
40147 \begin_layout Standard
40148 You can furthermore specify a range of lines; only these will then appear
40152 Extended character table
40154 should be used when you use national characters like the German umlauts
40156 \begin_inset Newline newline
40159 Here is an example listing with left line numbering, step
40160 \begin_inset Quotes eld
40164 \begin_inset Quotes erd
40168 \begin_inset Quotes eld
40172 \begin_inset Quotes erd
40176 \begin_inset Quotes eld
40179 Extended character table
40180 \begin_inset Quotes erd
40184 \begin_inset Quotes eld
40188 \begin_inset space ~
40192 \begin_inset space ~
40196 \begin_inset Quotes erd
40200 \begin_inset space \thinspace{}
40204 \begin_inset space \thinspace{}
40210 \begin_layout Standard
40211 \begin_inset listings
40212 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
40216 \begin_layout Plain Layout
40221 \begin_layout Plain Layout
40223 'this is a python function'
40226 \begin_layout Plain Layout
40231 \begin_layout Plain Layout
40236 \begin_layout Plain Layout
40238 'This is a German word: Tschüß'
40241 \begin_layout Plain Layout
40246 \begin_layout Plain Layout
40251 \begin_layout Plain Layout
40253 'this is a python function'
40256 \begin_layout Plain Layout
40266 \begin_layout Standard
40267 When you have tabulators in your listing, you can specify the number of
40268 characters that are spanned by a tabulator in the field
40271 \begin_inset space ~
40279 \begin_layout Standard
40280 \begin_inset Note Greyedout
40283 \begin_layout Plain Layout
40288 Due to a bug in the
40292 package the line numbering is shifted by a line by every previous listing.
40293 That's the reason why the lines 2 and 5 are numbered in the above listing
40294 and not the lines 3 and 6.
40302 \begin_layout Standard
40303 \begin_inset VSpace bigskip
40309 \begin_layout Standard
40310 It is also possible to print lines from a file as listing.
40311 To do this, use the menu
40313 Insert\SpecialChar \menuseparator
40314 File\SpecialChar \menuseparator
40317 and choose the type
40325 \begin_layout Plain Layout
40326 The other child document types are described in section
40327 \begin_inset space ~
40331 \begin_inset CommandInset ref
40333 reference "sec:Child-Documents"
40342 In the child document dialog you can specify the listing parameters in
40344 To show a list of all available parameters, type in a question mark
40345 \begin_inset Quotes eld
40349 \begin_inset Quotes erd
40355 \begin_layout Standard
40356 To reference child document listings, write a label text into the corresponding
40357 field of the child document dialog.
40358 The label can then be referenced using the menu
40360 Insert\SpecialChar \menuseparator
40366 \begin_layout Standard
40368 \begin_inset space ~
40372 \begin_inset CommandInset ref
40374 reference "lst:file-listing"
40378 is an example for a listing of a file; there the lines 10
40379 \begin_inset space \thinspace{}
40383 \begin_inset space \thinspace{}
40386 15 of this LyX file are listed.
40389 \begin_layout Standard
40390 \begin_inset CommandInset include
40391 LatexCommand lstinputlisting
40392 filename "EmbeddedObjects.lyx"
40393 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40400 \begin_layout Standard
40401 \begin_inset VSpace bigskip
40407 \begin_layout Standard
40408 Inserting a formula into a listing can be done the following way:
40411 \begin_layout Enumerate
40412 Open the listings dialog and add
40413 \begin_inset Newline newline
40421 \begin_inset Newline newline
40424 to the field of the
40431 \begin_layout Enumerate
40432 Create a formula outside the listing
40435 \begin_layout Enumerate
40436 Copy the content of the formula (not the formula inset) to the clipboard
40446 \begin_layout Enumerate
40447 In the listing write
40448 \begin_inset Quotes eld
40456 \begin_inset Quotes erd
40459 and copy from the clipboard between the dollar-signs (shortcut
40468 \begin_layout Standard
40469 \begin_inset listings
40470 lstparams "language=Python,mathescape=true"
40474 \begin_layout Plain Layout
40476 \begin_inset Caption Standard
40478 \begin_layout Plain Layout
40479 Example Listing float containing a formula
40484 # Example listing float
40487 \begin_layout Plain Layout
40492 \begin_layout Plain Layout
40505 \begin_layout Plain Layout
40515 \begin_layout Standard
40516 \begin_inset VSpace bigskip
40522 \begin_layout Standard
40523 Global listings settings can be set in the
40525 Document\SpecialChar \menuseparator
40526 Settings\SpecialChar \menuseparator
40530 To get there a list of available options, type in a question mark
40531 \begin_inset Quotes eld
40535 \begin_inset Quotes erd
40541 \begin_layout Standard
40542 For more information about the
40546 package, we refer to its documentation
40547 \begin_inset CommandInset citation
40556 \begin_layout Standard
40557 \begin_inset Newpage newpage
40563 \begin_layout Chapter
40565 Units available in LyX
40566 \begin_inset Index idx
40569 \begin_layout Plain Layout
40576 \begin_inset CommandInset label
40578 name "cha:Units-available-in"
40585 \begin_layout Standard
40586 To understand the units described in this documentation, Table
40587 \begin_inset space ~
40591 \begin_inset CommandInset ref
40593 reference "tab:Units"
40597 explains all units available in LyX.
40600 \begin_layout Standard
40601 \begin_inset Float table
40607 \begin_layout Plain Layout
40608 \begin_inset Caption Standard
40610 \begin_layout Plain Layout
40611 \begin_inset CommandInset label
40625 \begin_layout Plain Layout
40626 \begin_inset VSpace medskip
40632 \begin_layout Plain Layout
40634 \begin_inset Tabular
40635 <lyxtabular version="3" rows="20" columns="2">
40636 <features rotate="0" tabularvalignment="middle">
40637 <column alignment="center" valignment="top">
40638 <column alignment="center" valignment="top">
40640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40643 \begin_layout Plain Layout
40649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40652 \begin_layout Plain Layout
40660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40663 \begin_layout Plain Layout
40669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40672 \begin_layout Plain Layout
40680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40683 \begin_layout Plain Layout
40689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40692 \begin_layout Plain Layout
40700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40703 \begin_layout Plain Layout
40709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40712 \begin_layout Plain Layout
40720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40723 \begin_layout Plain Layout
40729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40732 \begin_layout Plain Layout
40734 \begin_inset space \thinspace{}
40738 \begin_inset space \thinspace{}
40748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40751 \begin_layout Plain Layout
40757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40760 \begin_layout Plain Layout
40762 \begin_inset space \thinspace{}
40766 \begin_inset space \thinspace{}
40776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40779 \begin_layout Plain Layout
40785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40788 \begin_layout Plain Layout
40789 scaled point (65536
40790 \begin_inset space \thinspace{}
40794 \begin_inset space \thinspace{}
40804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40807 \begin_layout Plain Layout
40813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40816 \begin_layout Plain Layout
40818 \begin_inset space \thinspace{}
40822 \begin_inset space \thinspace{}
40832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40835 \begin_layout Plain Layout
40841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40844 \begin_layout Plain Layout
40846 \begin_inset space \thinspace{}
40850 \begin_inset Formula $\approx$
40854 \begin_inset space \thinspace{}
40864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40867 \begin_layout Plain Layout
40873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40876 \begin_layout Plain Layout
40878 \begin_inset space \thinspace{}
40882 \begin_inset space \thinspace{}
40892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40895 \begin_layout Plain Layout
40901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40904 \begin_layout Plain Layout
40905 % of original image width
40912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40915 \begin_layout Plain Layout
40921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40924 \begin_layout Plain Layout
40932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40935 \begin_layout Plain Layout
40941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40944 \begin_layout Plain Layout
40952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40955 \begin_layout Plain Layout
40961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40964 \begin_layout Plain Layout
40972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40975 \begin_layout Plain Layout
40981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40984 \begin_layout Plain Layout
40992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40995 \begin_layout Plain Layout
41001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41004 \begin_layout Plain Layout
41012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41015 \begin_layout Plain Layout
41021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41024 \begin_layout Plain Layout
41032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41035 \begin_layout Plain Layout
41041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41044 \begin_layout Plain Layout
41056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41059 \begin_layout Plain Layout
41065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41068 \begin_layout Plain Layout
41080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41083 \begin_layout Plain Layout
41089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41092 \begin_layout Plain Layout
41094 \begin_inset space \thinspace{}
41098 \begin_inset space \thinspace{}
41119 \begin_layout Chapter
41120 Output File Formats with Graphics
41121 \begin_inset CommandInset label
41123 name "cha:Output-File-Formats"
41130 \begin_layout Section
41132 \begin_inset Index idx
41135 \begin_layout Plain Layout
41142 \begin_inset Index idx
41145 \begin_layout Plain Layout
41150 \begin_layout Plain Layout
41161 \begin_layout Plain Layout
41176 \begin_layout Standard
41177 This file type has the extension
41178 \begin_inset Quotes eld
41186 \begin_inset Quotes erd
41191 \begin_inset Quotes eld
41195 \begin_inset Quotes erd
41198 (DVI), because it is completely portable; you can move them from one machine
41199 to another without needing to do any sort of conversion.
41200 At the time when this file-format was developed, this was no matter of
41202 DVIs are used for quick previews and as pre-stage for other output formats,
41206 \begin_layout Standard
41207 \begin_inset Note Greyedout
41210 \begin_layout Plain Layout
41215 DVI-files do not contain images; they will only be a linked.
41220 So don't forget this, if you move your
41224 file to another computer.
41225 This property can also slow down your computer when you view the DVI, because
41226 the DVI-viewer has to convert the image in the background to make it visible
41227 when you scroll in the DVI.
41228 So it is recommended that you use PDF for files with many images.
41231 \begin_layout Standard
41232 You can export your document to DVI by using the menu
41234 File\SpecialChar \menuseparator
41235 Export\SpecialChar \menuseparator
41239 You can view your document as DVI via the
41246 \begin_layout Section
41248 \begin_inset CommandInset label
41250 name "sec:PostScript"
41255 \begin_inset Index idx
41258 \begin_layout Plain Layout
41259 File Formats ! PostScript
41265 \begin_inset Index idx
41268 \begin_layout Plain Layout
41273 \begin_layout Plain Layout
41284 \begin_layout Plain Layout
41299 \begin_layout Standard
41300 This file type has the extension
41301 \begin_inset Quotes eld
41309 \begin_inset Quotes erd
41313 PostScript was developed by the company
41317 as a printer language.
41318 The file therefore contains commands that the printer uses to print the
41320 PostScript can be seen as a
41321 \begin_inset Quotes eld
41324 programming language
41325 \begin_inset Quotes erd
41328 ; you can calculate with it and draw diagrams and images
41332 \begin_layout Plain Layout
41333 If you are interested to learn more about this, have a look at the LaTeX-package
41339 \begin_inset CommandInset citation
41351 Due to this ability, the files are often bigger than PDFs.
41354 \begin_layout Standard
41355 PostScript can only contain images in the format
41356 \begin_inset Quotes eld
41359 Encapsulated PostScript
41360 \begin_inset Quotes erd
41363 (EPS, file extension
41364 \begin_inset Quotes eld
41372 \begin_inset Quotes erd
41376 As LyX allows you to use any known image format in your document, it has
41377 to convert images in the background to EPS.
41379 \begin_inset space ~
41383 \begin_inset space ~
41386 images in your document, LyX has to do 50
41387 \begin_inset space ~
41390 conversions whenever you view or export your document.
41391 This will slow down your work flow with LyX drastically.
41392 So if you plan to use PostScript, you can insert your images directly as
41393 EPS to avoid this problem.
41396 \begin_layout Standard
41397 You can export your document to PostScript using the menu
41399 File\SpecialChar \menuseparator
41400 Export\SpecialChar \menuseparator
41404 You can view your document as PostScript via the
41411 \begin_layout Section
41413 \begin_inset Index idx
41416 \begin_layout Plain Layout
41423 \begin_inset Index idx
41426 \begin_layout Plain Layout
41435 \begin_layout Standard
41436 This file type has the extension
41437 \begin_inset Quotes eld
41445 \begin_inset Quotes erd
41450 \begin_inset Quotes eld
41453 Portable Document Format
41454 \begin_inset Quotes erd
41457 (PDF) was developed by
41461 as a derivative of PostScript.
41462 It is more compressed and it uses fewer commands than PostScript.
41464 \begin_inset Quotes eld
41468 \begin_inset Quotes erd
41471 implies, it can be processed at any computer system and the printed output
41472 looks exactly the same.
41475 \begin_layout Standard
41476 PDF can contain images in its own PDF format, in the format
41477 \begin_inset Quotes eld
41480 Joint Photographic Experts Group
41481 \begin_inset Quotes erd
41484 (JPG, file extension
41485 \begin_inset Quotes eld
41493 \begin_inset Quotes erd
41497 \begin_inset Quotes eld
41505 \begin_inset Quotes erd
41508 ), and in the format
41509 \begin_inset Quotes eld
41512 Portable Network Graphics
41513 \begin_inset Quotes erd
41516 (PNG, file extension
41517 \begin_inset Quotes eld
41525 \begin_inset Quotes erd
41529 Nevertheless you can use any other image format, because LyX converts them
41530 in the background to one of these formats.
41531 But as described in the section about PostScript, the image conversion
41532 will slow down your work flow.
41533 So it is recommended that you use images in one of the three mentioned
41537 \begin_layout Standard
41538 You can export your document to PDF via the menu
41540 File\SpecialChar \menuseparator
41543 in three different ways:
41546 \begin_layout Description
41548 \begin_inset space ~
41551 (ps2pdf) This uses the program
41555 that creates a PDF from a PostScript-version of your file.
41556 The PostScript-version is produced by the program
41560 which uses a DVI-version as intermediate step.
41561 So this export variant consists of three conversions.
41564 \begin_layout Description
41566 \begin_inset space ~
41569 (dvipdfm) This uses the program
41573 that converts your file in the background to DVI and in a second step to
41577 \begin_layout Description
41579 \begin_inset space ~
41582 (pdflatex) This uses the program
41586 that converts your file directly to PDF.
41589 \begin_layout Standard
41590 It is recommended that you use
41593 \begin_inset space ~
41602 supports all features of actual PDF-versions, is quick and works stable.
41607 is not under development and therefore a bit outdated.
41610 \begin_layout Standard
41611 You can view your document as PDF via the
41615 menu or by using a toolbar button.
41618 \begin_layout Chapter
41619 List of dvips color names
41620 \begin_inset CommandInset label
41622 name "chap:List-of-dvips-colornames"
41629 \begin_layout Standard
41630 \begin_inset Tabular
41631 <lyxtabular version="3" rows="17" columns="4">
41632 <features rotate="0" tabularvalignment="middle">
41633 <column alignment="left" valignment="top" width="0pt">
41634 <column alignment="left" valignment="top" width="0pt">
41635 <column alignment="left" valignment="top" width="0pt">
41636 <column alignment="left" valignment="top" width="0pt">
41638 <cell alignment="left" valignment="top" usebox="none">
41641 \begin_layout Plain Layout
41645 \begin_layout Plain Layout
41658 \begin_layout Plain Layout
41669 \begin_layout Plain Layout
41681 <cell alignment="left" valignment="top" usebox="none">
41684 \begin_layout Plain Layout
41688 \begin_layout Plain Layout
41701 \begin_layout Plain Layout
41712 \begin_layout Plain Layout
41724 <cell alignment="left" valignment="top" usebox="none">
41727 \begin_layout Plain Layout
41731 \begin_layout Plain Layout
41744 \begin_layout Plain Layout
41755 \begin_layout Plain Layout
41767 <cell alignment="left" valignment="top" usebox="none">
41770 \begin_layout Plain Layout
41774 \begin_layout Plain Layout
41787 \begin_layout Plain Layout
41798 \begin_layout Plain Layout
41812 <cell alignment="center" valignment="top" usebox="none">
41815 \begin_layout Plain Layout
41819 \begin_layout Plain Layout
41832 \begin_layout Plain Layout
41840 \begin_inset Phantom Phantom
41843 \begin_layout Plain Layout
41853 \begin_layout Plain Layout
41865 <cell alignment="center" valignment="top" usebox="none">
41868 \begin_layout Plain Layout
41872 \begin_layout Plain Layout
41885 \begin_layout Plain Layout
41893 \begin_inset Phantom Phantom
41896 \begin_layout Plain Layout
41906 \begin_layout Plain Layout
41918 <cell alignment="center" valignment="top" usebox="none">
41921 \begin_layout Plain Layout
41925 \begin_layout Plain Layout
41938 \begin_layout Plain Layout
41946 \begin_inset Phantom Phantom
41949 \begin_layout Plain Layout
41959 \begin_layout Plain Layout
41971 <cell alignment="center" valignment="top" usebox="none">
41974 \begin_layout Plain Layout
41978 \begin_layout Plain Layout
41991 \begin_layout Plain Layout
41999 \begin_inset Phantom Phantom
42002 \begin_layout Plain Layout
42012 \begin_layout Plain Layout
42026 <cell alignment="left" valignment="top" usebox="none">
42029 \begin_layout Plain Layout
42033 \begin_layout Plain Layout
42046 \begin_layout Plain Layout
42054 \begin_inset Phantom Phantom
42057 \begin_layout Plain Layout
42067 \begin_layout Plain Layout
42079 <cell alignment="left" valignment="top" usebox="none">
42082 \begin_layout Plain Layout
42086 \begin_layout Plain Layout
42099 \begin_layout Plain Layout
42107 \begin_inset Phantom Phantom
42110 \begin_layout Plain Layout
42120 \begin_layout Plain Layout
42132 <cell alignment="left" valignment="top" usebox="none">
42135 \begin_layout Plain Layout
42139 \begin_layout Plain Layout
42152 \begin_layout Plain Layout
42160 \begin_inset Phantom Phantom
42163 \begin_layout Plain Layout
42173 \begin_layout Plain Layout
42185 <cell alignment="left" valignment="top" usebox="none">
42188 \begin_layout Plain Layout
42192 \begin_layout Plain Layout
42205 \begin_layout Plain Layout
42213 \begin_inset Phantom Phantom
42216 \begin_layout Plain Layout
42226 \begin_layout Plain Layout
42240 <cell alignment="left" valignment="top" usebox="none">
42243 \begin_layout Plain Layout
42247 \begin_layout Plain Layout
42260 \begin_layout Plain Layout
42268 \begin_inset Phantom Phantom
42271 \begin_layout Plain Layout
42281 \begin_layout Plain Layout
42293 <cell alignment="left" valignment="top" usebox="none">
42296 \begin_layout Plain Layout
42300 \begin_layout Plain Layout
42313 \begin_layout Plain Layout
42321 \begin_inset Phantom Phantom
42324 \begin_layout Plain Layout
42334 \begin_layout Plain Layout
42346 <cell alignment="left" valignment="top" usebox="none">
42349 \begin_layout Plain Layout
42353 \begin_layout Plain Layout
42366 \begin_layout Plain Layout
42374 \begin_inset Phantom Phantom
42377 \begin_layout Plain Layout
42387 \begin_layout Plain Layout
42399 <cell alignment="left" valignment="top" usebox="none">
42402 \begin_layout Plain Layout
42406 \begin_layout Plain Layout
42419 \begin_layout Plain Layout
42427 \begin_inset Phantom Phantom
42430 \begin_layout Plain Layout
42440 \begin_layout Plain Layout
42454 <cell alignment="left" valignment="top" usebox="none">
42457 \begin_layout Plain Layout
42461 \begin_layout Plain Layout
42474 \begin_layout Plain Layout
42482 \begin_inset Phantom Phantom
42485 \begin_layout Plain Layout
42495 \begin_layout Plain Layout
42507 <cell alignment="left" valignment="top" usebox="none">
42510 \begin_layout Plain Layout
42514 \begin_layout Plain Layout
42527 \begin_layout Plain Layout
42535 \begin_inset Phantom Phantom
42538 \begin_layout Plain Layout
42548 \begin_layout Plain Layout
42560 <cell alignment="left" valignment="top" usebox="none">
42563 \begin_layout Plain Layout
42567 \begin_layout Plain Layout
42580 \begin_layout Plain Layout
42588 \begin_inset Phantom Phantom
42591 \begin_layout Plain Layout
42601 \begin_layout Plain Layout
42613 <cell alignment="left" valignment="top" usebox="none">
42616 \begin_layout Plain Layout
42620 \begin_layout Plain Layout
42633 \begin_layout Plain Layout
42641 \begin_inset Phantom Phantom
42644 \begin_layout Plain Layout
42654 \begin_layout Plain Layout
42668 <cell alignment="left" valignment="top" usebox="none">
42671 \begin_layout Plain Layout
42675 \begin_layout Plain Layout
42688 \begin_layout Plain Layout
42696 \begin_inset Phantom Phantom
42699 \begin_layout Plain Layout
42709 \begin_layout Plain Layout
42721 <cell alignment="left" valignment="top" usebox="none">
42724 \begin_layout Plain Layout
42728 \begin_layout Plain Layout
42741 \begin_layout Plain Layout
42749 \begin_inset Phantom Phantom
42752 \begin_layout Plain Layout
42762 \begin_layout Plain Layout
42774 <cell alignment="left" valignment="top" usebox="none">
42777 \begin_layout Plain Layout
42781 \begin_layout Plain Layout
42794 \begin_layout Plain Layout
42802 \begin_inset Phantom Phantom
42805 \begin_layout Plain Layout
42815 \begin_layout Plain Layout
42827 <cell alignment="left" valignment="top" usebox="none">
42830 \begin_layout Plain Layout
42834 \begin_layout Plain Layout
42847 \begin_layout Plain Layout
42855 \begin_inset Phantom Phantom
42858 \begin_layout Plain Layout
42868 \begin_layout Plain Layout
42882 <cell alignment="center" valignment="top" usebox="none">
42885 \begin_layout Plain Layout
42889 \begin_layout Plain Layout
42902 \begin_layout Plain Layout
42910 \begin_inset Phantom Phantom
42913 \begin_layout Plain Layout
42923 \begin_layout Plain Layout
42935 <cell alignment="center" valignment="top" usebox="none">
42938 \begin_layout Plain Layout
42942 \begin_layout Plain Layout
42955 \begin_layout Plain Layout
42963 \begin_inset Phantom Phantom
42966 \begin_layout Plain Layout
42976 \begin_layout Plain Layout
42988 <cell alignment="center" valignment="top" usebox="none">
42991 \begin_layout Plain Layout
42995 \begin_layout Plain Layout
43008 \begin_layout Plain Layout
43016 \begin_inset Phantom Phantom
43019 \begin_layout Plain Layout
43029 \begin_layout Plain Layout
43041 <cell alignment="center" valignment="top" usebox="none">
43044 \begin_layout Plain Layout
43048 \begin_layout Plain Layout
43061 \begin_layout Plain Layout
43069 \begin_inset Phantom Phantom
43072 \begin_layout Plain Layout
43082 \begin_layout Plain Layout
43096 <cell alignment="left" valignment="top" usebox="none">
43099 \begin_layout Plain Layout
43103 \begin_layout Plain Layout
43116 \begin_layout Plain Layout
43124 \begin_inset Phantom Phantom
43127 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43149 <cell alignment="left" valignment="top" usebox="none">
43152 \begin_layout Plain Layout
43156 \begin_layout Plain Layout
43169 \begin_layout Plain Layout
43177 \begin_inset Phantom Phantom
43180 \begin_layout Plain Layout
43190 \begin_layout Plain Layout
43202 <cell alignment="left" valignment="top" usebox="none">
43205 \begin_layout Plain Layout
43209 \begin_layout Plain Layout
43222 \begin_layout Plain Layout
43230 \begin_inset Phantom Phantom
43233 \begin_layout Plain Layout
43243 \begin_layout Plain Layout
43255 <cell alignment="left" valignment="top" usebox="none">
43258 \begin_layout Plain Layout
43262 \begin_layout Plain Layout
43275 \begin_layout Plain Layout
43283 \begin_inset Phantom Phantom
43286 \begin_layout Plain Layout
43296 \begin_layout Plain Layout
43310 <cell alignment="left" valignment="top" usebox="none">
43313 \begin_layout Plain Layout
43317 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43338 \begin_inset Phantom Phantom
43341 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43363 <cell alignment="left" valignment="top" usebox="none">
43366 \begin_layout Plain Layout
43370 \begin_layout Plain Layout
43383 \begin_layout Plain Layout
43391 \begin_inset Phantom Phantom
43394 \begin_layout Plain Layout
43404 \begin_layout Plain Layout
43416 <cell alignment="left" valignment="top" usebox="none">
43419 \begin_layout Plain Layout
43423 \begin_layout Plain Layout
43436 \begin_layout Plain Layout
43444 \begin_inset Phantom Phantom
43447 \begin_layout Plain Layout
43457 \begin_layout Plain Layout
43469 <cell alignment="left" valignment="top" usebox="none">
43472 \begin_layout Plain Layout
43476 \begin_layout Plain Layout
43489 \begin_layout Plain Layout
43497 \begin_inset Phantom Phantom
43500 \begin_layout Plain Layout
43510 \begin_layout Plain Layout
43524 <cell alignment="left" valignment="top" usebox="none">
43527 \begin_layout Plain Layout
43531 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43552 \begin_inset Phantom Phantom
43555 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43577 <cell alignment="left" valignment="top" usebox="none">
43580 \begin_layout Plain Layout
43584 \begin_layout Plain Layout
43597 \begin_layout Plain Layout
43605 \begin_inset Phantom Phantom
43608 \begin_layout Plain Layout
43618 \begin_layout Plain Layout
43630 <cell alignment="left" valignment="top" usebox="none">
43633 \begin_layout Plain Layout
43637 \begin_layout Plain Layout
43650 \begin_layout Plain Layout
43658 \begin_inset Phantom Phantom
43661 \begin_layout Plain Layout
43671 \begin_layout Plain Layout
43683 <cell alignment="left" valignment="top" usebox="none">
43686 \begin_layout Plain Layout
43690 \begin_layout Plain Layout
43703 \begin_layout Plain Layout
43711 \begin_inset Phantom Phantom
43714 \begin_layout Plain Layout
43724 \begin_layout Plain Layout
43738 <cell alignment="left" valignment="top" usebox="none">
43741 \begin_layout Plain Layout
43745 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43766 \begin_inset Phantom Phantom
43769 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43791 <cell alignment="left" valignment="top" usebox="none">
43794 \begin_layout Plain Layout
43798 \begin_layout Plain Layout
43811 \begin_layout Plain Layout
43819 \begin_inset Phantom Phantom
43822 \begin_layout Plain Layout
43832 \begin_layout Plain Layout
43844 <cell alignment="left" valignment="top" usebox="none">
43847 \begin_layout Plain Layout
43851 \begin_layout Plain Layout
43864 \begin_layout Plain Layout
43872 \begin_inset Phantom Phantom
43875 \begin_layout Plain Layout
43885 \begin_layout Plain Layout
43897 <cell alignment="left" valignment="top" usebox="none">
43900 \begin_layout Plain Layout
43904 \begin_layout Plain Layout
43917 \begin_layout Plain Layout
43925 \begin_inset Phantom Phantom
43928 \begin_layout Plain Layout
43938 \begin_layout Plain Layout
43952 <cell alignment="left" valignment="top" usebox="none">
43955 \begin_layout Plain Layout
43959 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43980 \begin_inset Phantom Phantom
43983 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44005 <cell alignment="left" valignment="top" usebox="none">
44008 \begin_layout Plain Layout
44012 \begin_layout Plain Layout
44025 \begin_layout Plain Layout
44033 \begin_inset Phantom Phantom
44036 \begin_layout Plain Layout
44046 \begin_layout Plain Layout
44058 <cell alignment="left" valignment="top" usebox="none">
44061 \begin_layout Plain Layout
44065 \begin_layout Plain Layout
44078 \begin_layout Plain Layout
44086 \begin_inset Phantom Phantom
44089 \begin_layout Plain Layout
44099 \begin_layout Plain Layout
44111 <cell alignment="left" valignment="top" usebox="none">
44114 \begin_layout Plain Layout
44118 \begin_layout Plain Layout
44131 \begin_layout Plain Layout
44139 \begin_inset Phantom Phantom
44142 \begin_layout Plain Layout
44152 \begin_layout Plain Layout
44166 <cell alignment="left" valignment="top" usebox="none">
44169 \begin_layout Plain Layout
44173 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44194 \begin_inset Phantom Phantom
44197 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44219 <cell alignment="left" valignment="top" usebox="none">
44222 \begin_layout Plain Layout
44226 \begin_layout Plain Layout
44239 \begin_layout Plain Layout
44247 \begin_inset Phantom Phantom
44250 \begin_layout Plain Layout
44260 \begin_layout Plain Layout
44272 <cell alignment="left" valignment="top" usebox="none">
44275 \begin_layout Plain Layout
44279 \begin_layout Plain Layout
44292 \begin_layout Plain Layout
44300 \begin_inset Phantom Phantom
44303 \begin_layout Plain Layout
44313 \begin_layout Plain Layout
44325 <cell alignment="left" valignment="top" usebox="none">
44328 \begin_layout Plain Layout
44332 \begin_layout Plain Layout
44345 \begin_layout Plain Layout
44353 \begin_inset Phantom Phantom
44356 \begin_layout Plain Layout
44366 \begin_layout Plain Layout
44380 <cell alignment="left" valignment="top" usebox="none">
44383 \begin_layout Plain Layout
44387 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44408 \begin_inset Phantom Phantom
44411 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44433 <cell alignment="left" valignment="top" usebox="none">
44436 \begin_layout Plain Layout
44440 \begin_layout Plain Layout
44453 \begin_layout Plain Layout
44461 \begin_inset Phantom Phantom
44464 \begin_layout Plain Layout
44474 \begin_layout Plain Layout
44486 <cell alignment="left" valignment="top" usebox="none">
44489 \begin_layout Plain Layout
44493 \begin_layout Plain Layout
44506 \begin_layout Plain Layout
44514 \begin_inset Phantom Phantom
44517 \begin_layout Plain Layout
44527 \begin_layout Plain Layout
44539 <cell alignment="left" valignment="top" usebox="none">
44542 \begin_layout Plain Layout
44546 \begin_layout Plain Layout
44559 \begin_layout Plain Layout
44567 \begin_inset Phantom Phantom
44570 \begin_layout Plain Layout
44580 \begin_layout Plain Layout
44594 <cell alignment="left" valignment="top" usebox="none">
44597 \begin_layout Plain Layout
44601 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44622 \begin_inset Phantom Phantom
44625 \begin_layout Plain Layout
44635 \begin_layout Plain Layout
44647 <cell alignment="left" valignment="top" usebox="none">
44650 \begin_layout Plain Layout
44654 \begin_layout Plain Layout
44667 \begin_layout Plain Layout
44675 \begin_inset Phantom Phantom
44678 \begin_layout Plain Layout
44688 \begin_layout Plain Layout
44700 <cell alignment="left" valignment="top" usebox="none">
44703 \begin_layout Plain Layout
44707 \begin_layout Plain Layout
44720 \begin_layout Plain Layout
44728 \begin_inset Phantom Phantom
44731 \begin_layout Plain Layout
44741 \begin_layout Plain Layout
44753 <cell alignment="left" valignment="top" usebox="none">
44756 \begin_layout Plain Layout
44760 \begin_layout Plain Layout
44773 \begin_layout Plain Layout
44781 \begin_inset Phantom Phantom
44784 \begin_layout Plain Layout
44794 \begin_layout Plain Layout
44808 <cell alignment="left" valignment="top" usebox="none">
44811 \begin_layout Plain Layout
44815 \begin_layout Plain Layout
44828 \begin_layout Plain Layout
44836 \begin_inset Phantom Phantom
44839 \begin_layout Plain Layout
44849 \begin_layout Plain Layout
44861 <cell alignment="left" valignment="top" usebox="none">
44864 \begin_layout Plain Layout
44868 \begin_layout Plain Layout
44881 \begin_layout Plain Layout
44889 \begin_inset Phantom Phantom
44892 \begin_layout Plain Layout
44902 \begin_layout Plain Layout
44914 <cell alignment="left" valignment="top" usebox="none">
44917 \begin_layout Plain Layout
44921 \begin_layout Plain Layout
44934 \begin_layout Plain Layout
44942 \begin_inset Phantom Phantom
44945 \begin_layout Plain Layout
44955 \begin_layout Plain Layout
44967 <cell alignment="left" valignment="top" usebox="none">
44970 \begin_layout Plain Layout
44974 \begin_layout Plain Layout
44987 \begin_layout Plain Layout
44995 \begin_inset Phantom Phantom
44998 \begin_layout Plain Layout
45008 \begin_layout Plain Layout
45022 <cell alignment="left" valignment="top" usebox="none">
45025 \begin_layout Plain Layout
45029 \begin_layout Plain Layout
45042 \begin_layout Plain Layout
45050 \begin_inset Phantom Phantom
45053 \begin_layout Plain Layout
45063 \begin_layout Plain Layout
45075 <cell alignment="left" valignment="top" usebox="none">
45078 \begin_layout Plain Layout
45084 <cell alignment="left" valignment="top" usebox="none">
45087 \begin_layout Plain Layout
45093 <cell alignment="left" valignment="top" usebox="none">
45096 \begin_layout Plain Layout
45110 \begin_layout Chapter
45111 Explanation of Equation
45112 \begin_inset space ~
45116 \begin_inset CommandInset ref
45123 \begin_inset CommandInset label
45125 name "cha:Explanation-of-Equation"
45132 \begin_layout Standard
45133 We can calculate the total width of
45138 \begin_inset Formula $W_{\mathrm{tot\, n}}$
45142 \begin_inset Formula
45144 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
45150 \begin_inset Formula $W_{g\, n}$
45153 is the given width of all cells,
45159 is the LaTeX-length between the cell text and the cell border (its default
45161 \begin_inset space \thinspace{}
45171 is the thickness of the cell border line, the default is 0.4
45172 \begin_inset space \thinspace{}
45178 \begin_layout Standard
45180 \begin_inset space ~
45184 \begin_inset CommandInset ref
45186 reference "eq:Wtot_n"
45190 , the total width of a multicolumn
45191 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
45195 \begin_inset Formula
45197 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45205 \begin_layout Standard
45206 By setting equation
45207 \begin_inset space ~
45211 \begin_inset CommandInset ref
45213 reference "eq:Wtot_n"
45218 \begin_inset CommandInset ref
45220 reference "eq:Wtot_mult"
45224 equal we can calculate the needed given width
45225 \begin_inset Formula $W_{g\, n}$
45232 columns are spanned, so that each column has a total width of
45233 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
45237 \begin_inset Formula
45239 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45247 \begin_layout Bibliography
45248 \begin_inset CommandInset bibitem
45249 LatexCommand bibitem
45250 key "latexcompanion"
45254 Frank Mittelbach and Michel Goossens:
45256 The LaTeX Companion Second Edition.
45259 Addison-Wesley, 2004
45262 \begin_layout Bibliography
45263 \begin_inset CommandInset bibitem
45264 LatexCommand bibitem
45269 Helmut Kopka and Patrick W.
45272 A Guide to LaTeX Fourth Edition.
45275 Addison-Wesley, 2003
45278 \begin_layout Bibliography
45279 \begin_inset CommandInset bibitem
45280 LatexCommand bibitem
45287 LaTeX: A Document Preparation System.
45290 Addison-Wesley, second edition, 1994
45293 \begin_layout Bibliography
45294 \begin_inset CommandInset bibitem
45295 LatexCommand bibitem
45300 Documentation of the LaTeX-package
45303 \begin_inset CommandInset href
45306 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45313 \begin_inset Index idx
45316 \begin_layout Plain Layout
45317 LaTeX-packages ! arydshln
45325 \begin_layout Bibliography
45326 \begin_inset CommandInset bibitem
45327 LatexCommand bibitem
45332 Documentation of the LaTeX-package
45335 \begin_inset CommandInset href
45338 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45345 \begin_inset Index idx
45348 \begin_layout Plain Layout
45349 LaTeX-packages ! booktabs
45357 \begin_layout Bibliography
45358 \begin_inset CommandInset bibitem
45359 LatexCommand bibitem
45364 Documentation of the LaTeX-package
45367 \begin_inset CommandInset href
45370 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45377 \begin_inset Index idx
45380 \begin_layout Plain Layout
45381 LaTeX-packages ! caption
45389 \begin_layout Bibliography
45390 \begin_inset CommandInset bibitem
45391 LatexCommand bibitem
45396 Documentation of the LaTeX-package
45399 \begin_inset CommandInset href
45402 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45409 \begin_inset Index idx
45412 \begin_layout Plain Layout
45413 LaTeX-packages ! diagbox
45421 \begin_layout Bibliography
45422 \begin_inset CommandInset bibitem
45423 LatexCommand bibitem
45428 Documentation of the LaTeX-package
45431 \begin_inset CommandInset href
45434 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45441 \begin_inset Index idx
45444 \begin_layout Plain Layout
45445 LaTeX-packages ! endfloat
45453 \begin_layout Bibliography
45454 \begin_inset CommandInset bibitem
45455 LatexCommand bibitem
45460 Documentation of the LaTeX-package
45463 \begin_inset CommandInset href
45466 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45473 \begin_inset Index idx
45476 \begin_layout Plain Layout
45477 LaTeX-packages ! footmisc
45485 \begin_layout Bibliography
45486 \begin_inset CommandInset bibitem
45487 LatexCommand bibitem
45492 Documentation of the LaTeX-package
45495 \begin_inset CommandInset href
45498 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45505 \begin_inset Index idx
45508 \begin_layout Plain Layout
45509 LaTeX-packages ! hyperref
45517 \begin_layout Bibliography
45518 \begin_inset CommandInset bibitem
45519 LatexCommand bibitem
45524 Documentation of the LaTeX-package
45527 \begin_inset CommandInset href
45530 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45537 \begin_inset Index idx
45540 \begin_layout Plain Layout
45541 LaTeX-packages ! hyperref
45549 \begin_layout Bibliography
45550 \begin_inset CommandInset bibitem
45551 LatexCommand bibitem
45556 Documentation of the LaTeX-package
45559 \begin_inset CommandInset href
45562 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf"
45569 \begin_inset Index idx
45572 \begin_layout Plain Layout
45573 LaTeX-packages ! KOMA-Script
45581 \begin_layout Bibliography
45582 \begin_inset CommandInset bibitem
45583 LatexCommand bibitem
45588 Documentation of the LaTeX-package
45591 \begin_inset CommandInset href
45594 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45601 \begin_inset CommandInset href
45604 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45609 \begin_inset Index idx
45612 \begin_layout Plain Layout
45613 LaTeX-packages ! lettrine
45621 \begin_layout Bibliography
45622 \begin_inset CommandInset bibitem
45623 LatexCommand bibitem
45628 Documentation of the LaTeX-package
45631 \begin_inset CommandInset href
45634 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45641 \begin_inset Index idx
45644 \begin_layout Plain Layout
45645 LaTeX-packages ! listings
45653 \begin_layout Bibliography
45654 \begin_inset CommandInset bibitem
45655 LatexCommand bibitem
45660 Documentation of the LaTeX-package
45663 \begin_inset CommandInset href
45666 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45673 \begin_inset Index idx
45676 \begin_layout Plain Layout
45677 LaTeX-packages ! marginnote
45685 \begin_layout Bibliography
45686 \begin_inset CommandInset bibitem
45687 LatexCommand bibitem
45692 Documentation of the LaTeX-package
45695 \begin_inset CommandInset href
45698 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45705 \begin_inset Index idx
45708 \begin_layout Plain Layout
45709 LaTeX-packages ! pdfpages
45717 \begin_layout Bibliography
45718 \begin_inset CommandInset bibitem
45719 LatexCommand bibitem
45724 Documentation of the LaTeX-package
45727 \begin_inset CommandInset href
45730 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45737 \begin_inset Index idx
45740 \begin_layout Plain Layout
45741 LaTeX-packages ! prettyref
45749 \begin_layout Bibliography
45750 \begin_inset CommandInset bibitem
45751 LatexCommand bibitem
45756 Web page of the LaTeX-package
45759 \begin_inset CommandInset href
45762 target "http://tug.org/PSTricks/"
45769 \begin_inset Index idx
45772 \begin_layout Plain Layout
45773 LaTeX-packages ! PSTricks
45781 \begin_layout Bibliography
45782 \begin_inset CommandInset bibitem
45783 LatexCommand bibitem
45788 Documentation of the LaTeX-package
45791 \begin_inset CommandInset href
45794 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45801 \begin_inset Index idx
45804 \begin_layout Plain Layout
45805 LaTeX-packages ! refstyle
45813 \begin_layout Bibliography
45814 \begin_inset CommandInset bibitem
45815 LatexCommand bibitem
45820 Documentation of the LaTeX-package
45823 \begin_inset CommandInset href
45826 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45833 \begin_inset Index idx
45836 \begin_layout Plain Layout
45837 LaTeX-packages ! sidecap
45845 \begin_layout Bibliography
45846 \begin_inset CommandInset bibitem
45847 LatexCommand bibitem
45853 \begin_inset CommandInset href
45856 target "http://wiki.lyx.org/LyX/NewInLyX20"
45860 about new features in
45867 \begin_layout Standard
45868 \begin_inset CommandInset index_print
45869 LatexCommand printindex