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[2pt](l{10pt}){1-1}
15066 LSF-spatial resolution
15071 <cell alignment="center" valignment="top" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15089 <cell alignment="center" valignment="top" usebox="none">
15092 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15127 <cell alignment="center" valignment="top" usebox="none">
15130 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15141 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15150 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15159 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15168 \begin_layout Plain Layout
15187 \begin_layout Standard
15188 Spaces to table rows can be added using the
15192 tab of the table dialog as described in section
15193 \begin_inset space ~
15197 \begin_inset CommandInset ref
15199 reference "sub:Row-Spacing"
15206 \begin_layout Standard
15207 Unlike normal tables, formal tables have no vertical table lines.
15208 The horizontal table lines can be set as for normal tables but they appear
15209 with different widths in the output:
15210 \begin_inset Newline newline
15213 The first and the last table line have a default width of 0.08
15214 \begin_inset space \thinspace{}
15217 em while the other lines have a default width of 0.05
15218 \begin_inset space \thinspace{}
15224 \begin_layout Standard
15225 The default widths can be changed with the following preamble lines
15228 \begin_layout Standard
15238 \begin_inset Newline newline
15250 \begin_layout Standard
15251 This example is for the first line, the so called
15256 If you want to change the width for the last line, replace
15265 To change the width for the other lines replace
15274 You can use all units listed in appendix
15275 \begin_inset space ~
15279 \begin_inset CommandInset ref
15281 reference "cha:Units-available-in"
15288 \begin_layout Standard
15289 Lines that do not span all table columns can be created by setting a table
15290 line for multicolumn cells.
15291 LyX will then internally use the command
15297 to create this line.
15301 \begin_layout Standard
15306 cmidrule[height](trim){startcol-endcol}
15309 \begin_layout Standard
15316 are currently not supported by LyX so you have to use TeX-Code to be able
15324 s can manually be created by inserting the command as TeX-Code as the first
15325 cell entry of the first cell of a row.
15326 The line is then drawn in the output above the current row.
15329 \begin_layout Standard
15330 The default for the optional
15335 \begin_inset space \thinspace{}
15343 is the number of the column where the line starts and
15347 the column number where the line ends.
15352 always needs to be specified, also when the line should span only one column.
15353 The optional parameter
15370 Using for example the parameter
15374 means that the line is trimmed from its left end by 2
15375 \begin_inset space \thinspace{}
15379 If you don't specify the
15383 the line is trimmed by the default of 0.5
15384 \begin_inset space \thinspace{}
15390 \begin_layout Standard
15391 \begin_inset VSpace bigskip
15395 \begin_inset space ~
15399 \begin_inset CommandInset ref
15401 reference "tab:Example-booktabs-table"
15405 was created using the commands
15408 \begin_layout Standard
15418 \begin_layout Standard
15419 at the beginning of the second row and
15422 \begin_layout Standard
15427 cmidrule[2pt](l{10pt}){1-1}
15430 \begin_layout Standard
15434 \begin_layout Standard
15435 \begin_inset VSpace bigskip
15441 \begin_layout Standard
15442 You might want to have overlapping
15449 \begin_inset space ~
15453 \begin_inset CommandInset ref
15455 reference "tab:Special-booktabs-table"
15460 This can be achieved with the TeX-Code command
15463 \begin_layout Standard
15471 \begin_layout Standard
15472 The command that was used for the second row of Table
15473 \begin_inset space ~
15477 \begin_inset CommandInset ref
15479 reference "tab:Special-booktabs-table"
15486 \begin_layout Standard
15500 \begin_layout Standard
15501 The command for the sixth row is
15504 \begin_layout Standard
15516 \begin_layout Standard
15517 \begin_inset VSpace bigskip
15523 \begin_layout Standard
15524 If you are in any way not satisfied with the border line spacing, you can
15525 use the following command to produce lines that span over all table columns
15530 \begin_layout Standard
15535 specialrule{width}{space above}{space below}
15538 \begin_layout Standard
15539 For more information about these features, refer to the manual of the LaTeX-pack
15545 \begin_inset CommandInset citation
15552 \begin_inset Index idx
15555 \begin_layout Plain Layout
15556 LaTeX-packages ! booktabs
15564 \begin_layout Standard
15565 \begin_inset Float table
15571 \begin_layout Plain Layout
15572 \begin_inset Caption Standard
15574 \begin_layout Plain Layout
15575 \begin_inset CommandInset label
15577 name "tab:Special-booktabs-table"
15581 Special booktabs-table
15589 \begin_layout Plain Layout
15591 \begin_inset Tabular
15592 <lyxtabular version="3" rows="8" columns="4">
15593 <features rotate="0" booktabs="true" tabularvalignment="middle">
15594 <column alignment="center" valignment="top">
15595 <column alignment="center" valignment="top">
15596 <column alignment="center" valignment="top">
15597 <column alignment="center" valignment="top">
15599 <cell alignment="center" valignment="top" topline="true" usebox="none">
15602 \begin_layout Plain Layout
15608 <cell alignment="center" valignment="top" topline="true" usebox="none">
15611 \begin_layout Plain Layout
15613 \begin_inset space \thinspace{}
15621 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15624 \begin_layout Plain Layout
15626 \begin_inset space \thinspace{}
15634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15637 \begin_layout Plain Layout
15645 <cell alignment="center" valignment="top" usebox="none">
15648 \begin_layout Plain Layout
15652 \begin_layout Plain Layout
15665 \begin_layout Plain Layout
15678 \begin_layout Plain Layout
15691 \begin_layout Plain Layout
15700 Detector thickness in µm
15705 <cell alignment="center" valignment="top" usebox="none">
15708 \begin_layout Plain Layout
15714 <cell alignment="center" valignment="top" usebox="none">
15717 \begin_layout Plain Layout
15723 <cell alignment="center" valignment="top" usebox="none">
15726 \begin_layout Plain Layout
15734 <cell alignment="center" valignment="top" topline="true" usebox="none">
15737 \begin_layout Plain Layout
15743 <cell alignment="center" valignment="top" topline="true" usebox="none">
15746 \begin_layout Plain Layout
15752 <cell alignment="center" valignment="top" topline="true" usebox="none">
15755 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" topline="true" usebox="none">
15764 \begin_layout Plain Layout
15771 <row topspace="default">
15772 <cell alignment="center" valignment="top" usebox="none">
15775 \begin_layout Plain Layout
15776 Spatial resolution in µm
15781 <cell alignment="center" valignment="top" usebox="none">
15784 \begin_layout Plain Layout
15790 <cell alignment="center" valignment="top" usebox="none">
15793 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" usebox="none">
15802 \begin_layout Plain Layout
15809 <row topspace="default">
15810 <cell alignment="center" valignment="top" usebox="none">
15813 \begin_layout Plain Layout
15815 \begin_inset Formula $f_{\mathrm{max}}$
15823 <cell alignment="center" valignment="top" usebox="none">
15826 \begin_layout Plain Layout
15832 <cell alignment="center" valignment="top" usebox="none">
15835 \begin_layout Plain Layout
15841 <cell alignment="center" valignment="top" usebox="none">
15844 \begin_layout Plain Layout
15852 <cell alignment="center" valignment="top" topline="true" usebox="none">
15855 \begin_layout Plain Layout
15859 \begin_layout Plain Layout
15872 \begin_layout Plain Layout
15881 LSF-spatial resolution
15886 <cell alignment="center" valignment="top" topline="true" usebox="none">
15889 \begin_layout Plain Layout
15895 <cell alignment="center" valignment="top" topline="true" usebox="none">
15898 \begin_layout Plain Layout
15904 <cell alignment="center" valignment="top" topline="true" usebox="none">
15907 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" usebox="none">
15918 \begin_layout Plain Layout
15924 <cell alignment="center" valignment="top" usebox="none">
15927 \begin_layout Plain Layout
15933 <cell alignment="center" valignment="top" usebox="none">
15936 \begin_layout Plain Layout
15942 <cell alignment="center" valignment="top" usebox="none">
15945 \begin_layout Plain Layout
15953 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15956 \begin_layout Plain Layout
15962 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15965 \begin_layout Plain Layout
15971 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15974 \begin_layout Plain Layout
15980 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15983 \begin_layout Plain Layout
16002 \begin_layout Section
16003 Vertical Table Alignment
16004 \begin_inset Index idx
16007 \begin_layout Plain Layout
16016 \begin_layout Standard
16017 To align tables vertically in a text line, the table must be inside a box.
16018 The box can then be vertically aligned as described in section
16019 \begin_inset space ~
16023 \begin_inset CommandInset ref
16025 reference "sec:Box-Dialog"
16032 \begin_layout Standard
16033 In the following example the tables are inside a minipage
16037 \begin_layout Plain Layout
16038 Minipages are described in section
16039 \begin_inset space ~
16043 \begin_inset CommandInset ref
16045 reference "sec:Minipages"
16054 box that has a width of 15
16055 \begin_inset space \thinspace{}
16061 \begin_layout Itemize
16063 \begin_inset Box Frameless
16073 height_special "totalheight"
16076 \begin_layout Plain Layout
16077 \begin_inset Tabular
16078 <lyxtabular version="3" rows="3" columns="3">
16079 <features rotate="0" tabularvalignment="middle">
16080 <column alignment="center" valignment="top">
16081 <column alignment="center" valignment="top">
16082 <column alignment="center" valignment="top">
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16087 \begin_layout Plain Layout
16093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16096 \begin_layout Plain Layout
16102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16116 \begin_layout Plain Layout
16122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16125 \begin_layout Plain Layout
16131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16134 \begin_layout Plain Layout
16142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16145 \begin_layout Plain Layout
16151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16154 \begin_layout Plain Layout
16160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Plain Layout
16183 \begin_layout Plain Layout
16195 \begin_inset Box Frameless
16205 height_special "totalheight"
16208 \begin_layout Plain Layout
16209 \begin_inset Tabular
16210 <lyxtabular version="3" rows="3" columns="3">
16211 <features rotate="0" tabularvalignment="middle">
16212 <column alignment="center" valignment="top">
16213 <column alignment="center" valignment="top">
16214 <column alignment="center" valignment="top">
16216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16219 \begin_layout Plain Layout
16225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16228 \begin_layout Plain Layout
16234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16237 \begin_layout Plain Layout
16245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16248 \begin_layout Plain Layout
16254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16257 \begin_layout Plain Layout
16263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16266 \begin_layout Plain Layout
16274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16277 \begin_layout Plain Layout
16283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16286 \begin_layout Plain Layout
16292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16295 \begin_layout Plain Layout
16315 \begin_layout Plain Layout
16325 \begin_layout Itemize
16327 \begin_inset Box Frameless
16337 height_special "totalheight"
16340 \begin_layout Plain Layout
16341 \begin_inset Tabular
16342 <lyxtabular version="3" rows="3" columns="3">
16343 <features rotate="0" tabularvalignment="middle">
16344 <column alignment="center" valignment="top">
16345 <column alignment="center" valignment="top">
16346 <column alignment="center" valignment="top">
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16351 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16369 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16380 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16398 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16418 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Plain Layout
16446 \begin_layout Itemize
16448 \begin_inset Box Frameless
16458 height_special "totalheight"
16461 \begin_layout Plain Layout
16462 \begin_inset Tabular
16463 <lyxtabular version="3" rows="3" columns="3">
16464 <features rotate="0" tabularvalignment="middle">
16465 <column alignment="center" valignment="top">
16466 <column alignment="center" valignment="top">
16467 <column alignment="center" valignment="top">
16469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16472 \begin_layout Plain Layout
16478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16481 \begin_layout Plain Layout
16487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16490 \begin_layout Plain Layout
16498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16501 \begin_layout Plain Layout
16507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16510 \begin_layout Plain Layout
16516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16519 \begin_layout Plain Layout
16527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16530 \begin_layout Plain Layout
16536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16539 \begin_layout Plain Layout
16545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16568 \begin_layout Plain Layout
16580 \begin_inset Box Frameless
16590 height_special "totalheight"
16593 \begin_layout Plain Layout
16594 \begin_inset Tabular
16595 <lyxtabular version="3" rows="3" columns="3">
16596 <features rotate="0" tabularvalignment="middle">
16597 <column alignment="center" valignment="top">
16598 <column alignment="center" valignment="top">
16599 <column alignment="center" valignment="top">
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16604 \begin_layout Plain Layout
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16613 \begin_layout Plain Layout
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16622 \begin_layout Plain Layout
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16633 \begin_layout Plain Layout
16639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16642 \begin_layout Plain Layout
16648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16651 \begin_layout Plain Layout
16659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16662 \begin_layout Plain Layout
16668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16671 \begin_layout Plain Layout
16677 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16680 \begin_layout Plain Layout
16700 \begin_layout Plain Layout
16710 \begin_layout Standard
16711 As you will see, the content of the first and last table row is not correctly
16713 To get this alignment, the minipage box must be set into a raisebox
16717 \begin_layout Plain Layout
16718 Raiseboxes are described in section
16719 \begin_inset space ~
16723 \begin_inset CommandInset ref
16725 reference "sub:Vertical-Alignment"
16735 In the example above the second table in the first item is aligned using
16736 the TeX-Code-command
16739 \begin_layout Standard
16749 \begin_layout Standard
16751 After the box the closing brace
16755 is inserted as TeX-Code.
16756 For the second table in the last item the command
16759 \begin_layout Standard
16769 \begin_layout Standard
16773 \begin_layout Standard
16774 \begin_inset Note Greyedout
16777 \begin_layout Plain Layout
16782 The alignment of the table row content to the surrounding text line is
16784 The required value for the
16790 command for this alignment depends on the document font, the font size,
16791 and the table line thickness.
16799 \begin_layout Section
16801 \begin_inset CommandInset label
16803 name "sec:Colored-Tables"
16808 \begin_inset Index idx
16811 \begin_layout Plain Layout
16820 \begin_layout Subsection
16822 \begin_inset Index idx
16825 \begin_layout Plain Layout
16826 Table Color ! for Cells
16832 \begin_inset Index idx
16835 \begin_layout Plain Layout
16836 Color ! for Table Cells
16844 \begin_layout Standard
16845 \begin_inset Float table
16851 \begin_layout Plain Layout
16852 \begin_inset Caption Standard
16854 \begin_layout Plain Layout
16855 \begin_inset CommandInset label
16857 name "tab:Table-colored-without"
16861 Table colored without using the package
16866 \begin_inset Argument 1
16869 \begin_layout Plain Layout
16870 Table without colortbl
16883 \begin_layout Plain Layout
16885 \begin_inset Tabular
16886 <lyxtabular version="3" rows="3" columns="3">
16887 <features rotate="0" tabularvalignment="middle">
16888 <column alignment="center" valignment="top">
16889 <column alignment="center" valignment="top">
16890 <column alignment="center" valignment="top">
16892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16895 \begin_layout Plain Layout
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Plain Layout
16914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16917 \begin_layout Plain Layout
16927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16930 \begin_layout Plain Layout
16938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16941 \begin_layout Plain Layout
16949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16952 \begin_layout Plain Layout
16962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16965 \begin_layout Plain Layout
16973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16976 \begin_layout Plain Layout
16984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16987 \begin_layout Plain Layout
17008 \begin_layout Standard
17009 If you only need colored text, mark the cells and choose a color in the
17013 \begin_inset space ~
17018 dialog (toolbar button
17021 arg "dialog-show character"
17025 This was used to create Table
17026 \begin_inset space ~
17030 \begin_inset CommandInset ref
17032 reference "tab:Table-colored-without"
17037 In any other case you have to use the LaTeX-package
17042 \begin_inset Index idx
17045 \begin_layout Plain Layout
17046 LaTeX-packages ! colortbl
17054 \begin_layout Standard
17058 \begin_layout Plain Layout
17068 \begin_inset Note Note
17071 \begin_layout Plain Layout
17072 The following section part will only be displayed when the LaTeX-package
17085 \begin_layout Standard
17086 To create colored tables,
17090 must be loaded in the preamble with the line
17093 \begin_layout Standard
17098 usepackage{colortbl}
17101 \begin_layout Standard
17102 The color of a column is adjusted with the command
17105 \begin_layout Standard
17110 columncolor{name of color}
17113 \begin_layout Standard
17119 More about the command
17123 is contained in section
17124 \begin_inset space ~
17128 \begin_inset CommandInset ref
17130 reference "sub:Multicolumn-Calculations"
17137 \begin_layout Standard
17138 The following color names are predefined:
17141 \begin_layout Standard
17175 \begin_layout Standard
17176 \begin_inset VSpace medskip
17182 \begin_layout Standard
17183 If you add the options
17186 \begin_layout Standard
17189 usenames,dvipsnames
17192 \begin_layout Standard
17193 to the document class options in the document settings, you can additionally
17195 \begin_inset space ~
17199 These colors are listed in appendix
17200 \begin_inset space ~
17204 \begin_inset CommandInset ref
17206 reference "chap:List-of-dvips-colornames"
17211 One of these colors,
17215 , is used as example in Table
17216 \begin_inset space ~
17220 \begin_inset CommandInset ref
17222 reference "tab:Table-colored-using"
17229 \begin_layout Standard
17230 \begin_inset VSpace medskip
17236 \begin_layout Standard
17237 You can also define your own color with the command
17240 \begin_layout Standard
17245 definecolor{color name}{color model}{color values}
17248 \begin_layout Standard
17249 The color model can be
17252 \begin_layout Labeling
17253 \labelwidthstring 00.00.0000
17254 cmyk: cyan, magenta, yellow, black
17257 \begin_layout Labeling
17258 \labelwidthstring 00.00.0000
17259 rgb: red, green blue
17262 \begin_layout Labeling
17263 \labelwidthstring 00.00.0000
17267 \begin_layout Standard
17268 and the color values are comma separated numbers between 0 and 1 describing
17269 the factor for the corresponding color of the color model.
17272 \begin_layout Standard
17274 \begin_inset space \thinspace{}
17278 \begin_inset space \space{}
17285 " in the preamble with
17288 \begin_layout Standard
17293 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17296 \begin_layout Standard
17304 \begin_layout Standard
17309 definecolor{lightgray}{gray}{0.8}
17312 \begin_layout Standard
17313 \begin_inset VSpace medskip
17319 \begin_layout Standard
17320 Lines are colored with the command
17323 \begin_layout Standard
17328 rowcolor{name of color}
17331 \begin_layout Standard
17332 and cells are colored with the command
17335 \begin_layout Standard
17340 cellcolor{name of color}
17343 \begin_layout Standard
17344 Both commands are inserted at the beginning of a cell as TeX-Code.
17347 \begin_layout Standard
17348 To color characters in the table, mark the cells and use the
17351 \begin_inset space ~
17357 If a cell contains TeX-Code mark only the characters, otherwise the colored
17358 TeX-Code will cause LaTeX-errors.
17361 \begin_layout Standard
17362 \begin_inset Note Greyedout
17365 \begin_layout Plain Layout
17370 Not all DVI-viewers are able to display self-defined colors.
17378 \begin_layout Standard
17379 \begin_inset VSpace bigskip
17385 \begin_layout Standard
17387 \begin_inset space ~
17391 \begin_inset CommandInset ref
17393 reference "tab:Table-colored-using"
17397 do the following: The color of the first column should be
17405 \begin_layout Standard
17410 columncolor{darkgreen}
17415 \begin_layout Standard
17416 as LaTeX-argument for this column.
17417 The first row should be light blue, therefore the TeX-Code command
17420 \begin_layout Standard
17428 \begin_layout Standard
17429 is inserted to the first cell of this row.
17430 Note that this overwrites the column color for the first cell.
17431 The last cell of the last row is colored maroon by inserting the TeX-Code
17435 \begin_layout Standard
17443 \begin_layout Standard
17444 The characters could now be colored using the menu
17446 Edit\SpecialChar \menuseparator
17448 \begin_inset space ~
17456 \begin_layout Standard
17457 \begin_inset Float table
17463 \begin_layout Plain Layout
17464 \begin_inset Caption Standard
17466 \begin_layout Plain Layout
17467 \begin_inset CommandInset label
17469 name "tab:Table-colored-using"
17473 Table colored using the package
17478 \begin_inset Argument 1
17481 \begin_layout Plain Layout
17482 Table with colortbl
17495 \begin_layout Plain Layout
17497 \begin_inset Tabular
17498 <lyxtabular version="3" rows="3" columns="3">
17499 <features rotate="0" tabularvalignment="middle">
17500 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17501 <column alignment="center" valignment="top">
17502 <column alignment="center" valignment="top">
17504 <cell alignment="center" valignment="top" usebox="none">
17507 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17527 <cell alignment="center" valignment="top" usebox="none">
17530 \begin_layout Plain Layout
17538 <cell alignment="center" valignment="top" usebox="none">
17541 \begin_layout Plain Layout
17551 <cell alignment="center" valignment="top" usebox="none">
17554 \begin_layout Plain Layout
17562 <cell alignment="center" valignment="top" usebox="none">
17565 \begin_layout Plain Layout
17573 <cell alignment="center" valignment="top" usebox="none">
17576 \begin_layout Plain Layout
17586 <cell alignment="center" valignment="top" usebox="none">
17589 \begin_layout Plain Layout
17597 <cell alignment="center" valignment="top" usebox="none">
17600 \begin_layout Plain Layout
17608 <cell alignment="center" valignment="top" usebox="none">
17611 \begin_layout Plain Layout
17615 \begin_layout Plain Layout
17644 \begin_layout Standard
17648 \begin_layout Plain Layout
17658 \begin_inset Note Note
17661 \begin_layout Plain Layout
17662 The following will be displayed when the LaTeX-package
17674 \begin_layout Standard
17675 You need to install the package
17679 to see the content of this section in the output.
17682 \begin_layout Standard
17686 \begin_layout Plain Layout
17698 \begin_layout Subsection
17700 \begin_inset Index idx
17703 \begin_layout Plain Layout
17704 Table Color ! for Rows
17710 \begin_inset Index idx
17713 \begin_layout Plain Layout
17714 Color ! for Table Rows
17722 \begin_layout Standard
17723 In case every second table row needs to be colored there is an alternative
17724 to the method described in the previous section: One loads the package
17730 \begin_inset Index idx
17733 \begin_layout Plain Layout
17734 LaTeX-packages ! xcolor
17738 \begin_layout Plain Layout
17752 in the document preamble with the command
17755 \begin_layout Standard
17760 usepackage[table]{xcolor}
17763 \begin_layout Standard
17768 automatically loads also the package
17773 \begin_inset Index idx
17776 \begin_layout Plain Layout
17777 LaTeX-packages ! colortbl
17786 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17789 \begin_layout Standard
17793 \begin_layout Plain Layout
17803 \begin_inset Note Note
17806 \begin_layout Plain Layout
17807 The following section part will only be displayed when the LaTeX-package
17820 \begin_layout Standard
17821 The table rows are colored with the command
17824 \begin_layout Standard
17829 rowcolors[commands]{row number}{odd row color}{even row color}
17832 \begin_layout Standard
17833 that is either inserted in the document preamble or as TeX-Code before the
17834 first table to be colored.
17836 \begin_inset space ~
17839 number is the number of the first row which should be colored according
17840 to the odd row color.
17841 commands can be additional commands that are executed before every table
17843 So for example the command
17846 \begin_layout Standard
17851 rowcolors{1}{white}{lightgray}
17854 \begin_layout Standard
17855 leads to the coloring scheme of Table
17856 \begin_inset space ~
17860 \begin_inset CommandInset ref
17862 reference "tab:Table-rowcolors"
17870 \begin_layout Standard
17877 hline]{1}{lightgray}{cyan}
17880 \begin_layout Standard
17881 leads to the coloring scheme of Table
17882 \begin_inset space ~
17886 \begin_inset CommandInset ref
17888 reference "tab:Table-rowcolors-2"
17894 \begin_inset space ~
17898 \begin_inset space ~
17902 \begin_inset space ~
17906 \begin_inset space ~
17909 color are left empty, no color will be used so that the command
17912 \begin_layout Standard
17920 \begin_layout Standard
17921 deletes all colors.
17928 affects all tables following that command.
17931 \begin_layout Standard
17935 \begin_layout Plain Layout
17939 rowcolors{1}{white}{lightgray}
17947 \begin_layout Standard
17948 \begin_inset Float table
17954 \begin_layout Plain Layout
17955 \begin_inset Caption Standard
17957 \begin_layout Plain Layout
17958 \begin_inset CommandInset label
17960 name "tab:Table-rowcolors"
17964 Table where every second row is colored light gray.
17972 \begin_layout Plain Layout
17974 \begin_inset Tabular
17975 <lyxtabular version="3" rows="4" columns="3">
17976 <features rotate="0" tabularvalignment="middle">
17977 <column alignment="center" valignment="top">
17978 <column alignment="center" valignment="top" width="0pt">
17979 <column alignment="center" valignment="top" width="0pt">
17981 <cell alignment="center" valignment="top" usebox="none">
17984 \begin_layout Plain Layout
17990 <cell alignment="center" valignment="top" usebox="none">
17993 \begin_layout Plain Layout
17999 <cell alignment="center" valignment="top" usebox="none">
18002 \begin_layout Plain Layout
18010 <cell alignment="center" valignment="top" usebox="none">
18013 \begin_layout Plain Layout
18019 <cell alignment="center" valignment="top" usebox="none">
18022 \begin_layout Plain Layout
18028 <cell alignment="center" valignment="top" usebox="none">
18031 \begin_layout Plain Layout
18039 <cell alignment="center" valignment="top" usebox="none">
18042 \begin_layout Plain Layout
18048 <cell alignment="center" valignment="top" usebox="none">
18051 \begin_layout Plain Layout
18057 <cell alignment="center" valignment="top" usebox="none">
18060 \begin_layout Plain Layout
18068 <cell alignment="center" valignment="top" usebox="none">
18071 \begin_layout Plain Layout
18077 <cell alignment="center" valignment="top" usebox="none">
18080 \begin_layout Plain Layout
18086 <cell alignment="center" valignment="top" usebox="none">
18089 \begin_layout Plain Layout
18108 \begin_layout Standard
18112 \begin_layout Plain Layout
18118 hline]{1}{lightgray}{cyan}
18126 \begin_layout Standard
18127 \begin_inset Float table
18133 \begin_layout Plain Layout
18134 \begin_inset Caption Standard
18136 \begin_layout Plain Layout
18137 \begin_inset CommandInset label
18139 name "tab:Table-rowcolors-2"
18143 Table where every second row is colored cyan and at which there is a line
18152 \begin_layout Plain Layout
18154 \begin_inset Tabular
18155 <lyxtabular version="3" rows="4" columns="3">
18156 <features rotate="0" tabularvalignment="middle">
18157 <column alignment="center" valignment="top">
18158 <column alignment="center" valignment="top">
18159 <column alignment="center" valignment="top" width="0pt">
18161 <cell alignment="center" valignment="top" usebox="none">
18164 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" usebox="none">
18182 \begin_layout Plain Layout
18190 <cell alignment="center" valignment="top" usebox="none">
18193 \begin_layout Plain Layout
18199 <cell alignment="center" valignment="top" usebox="none">
18202 \begin_layout Plain Layout
18208 <cell alignment="center" valignment="top" usebox="none">
18211 \begin_layout Plain Layout
18219 <cell alignment="center" valignment="top" usebox="none">
18222 \begin_layout Plain Layout
18228 <cell alignment="center" valignment="top" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" usebox="none">
18240 \begin_layout Plain Layout
18248 <cell alignment="center" valignment="top" usebox="none">
18251 \begin_layout Plain Layout
18257 <cell alignment="center" valignment="top" usebox="none">
18260 \begin_layout Plain Layout
18266 <cell alignment="center" valignment="top" usebox="none">
18269 \begin_layout Plain Layout
18288 \begin_layout Standard
18292 \begin_layout Plain Layout
18302 \begin_inset Note Note
18305 \begin_layout Plain Layout
18306 turns off the row coloring
18314 \begin_layout Standard
18318 \begin_layout Plain Layout
18328 \begin_inset Note Note
18331 \begin_layout Plain Layout
18332 The following will be displayed when the LaTeX-package
18344 \begin_layout Standard
18345 You need to install the package
18349 to see the content of this section in the output.
18352 \begin_layout Standard
18356 \begin_layout Plain Layout
18368 \begin_layout Subsection
18370 \begin_inset Index idx
18373 \begin_layout Plain Layout
18374 Table Color ! for Lines
18380 \begin_inset Index idx
18383 \begin_layout Plain Layout
18384 Color ! for Table Lines
18392 \begin_layout Standard
18393 As described in section
18394 \begin_inset space ~
18398 \begin_inset CommandInset ref
18400 reference "sub:Line-Thickness"
18404 , the line thickness for all lines in a table can be adjusted with the length
18413 \begin_inset space \thinspace{}
18416 pt for all tables of this section.
18420 \begin_layout Plain Layout
18426 arrayrulewidth}{1.5pt}
18434 \begin_layout Standard
18435 To color vertical lines for example with green, create the following column
18436 format in the document preamble, according to the description in section
18437 \begin_inset space ~
18441 \begin_inset CommandInset ref
18443 reference "sub:Customized-Format"
18450 \begin_layout Standard
18455 newcolumntype{W}{!{
18462 \begin_layout Standard
18464 \begin_inset space ~
18468 \begin_inset CommandInset ref
18470 reference "tab:Table-with-vertical-colored"
18478 was used for the last column and
18482 for the other columns.
18485 \begin_layout Standard
18486 If you want to have several colors, define more column formats.
18489 \begin_layout Standard
18490 \begin_inset Float table
18496 \begin_layout Plain Layout
18497 \begin_inset Caption Standard
18499 \begin_layout Plain Layout
18500 \begin_inset CommandInset label
18502 name "tab:Table-with-vertical-colored"
18506 Table with colored vertical lines
18514 \begin_layout Plain Layout
18516 \begin_inset Tabular
18517 <lyxtabular version="3" rows="3" columns="3">
18518 <features rotate="0" tabularvalignment="middle">
18519 <column alignment="center" valignment="top" special="Wc">
18520 <column alignment="center" valignment="top" special="Wc">
18521 <column alignment="center" valignment="top" special="WcW">
18523 <cell alignment="center" valignment="top" topline="true" usebox="none">
18526 \begin_layout Plain Layout
18532 <cell alignment="center" valignment="top" topline="true" usebox="none">
18535 \begin_layout Plain Layout
18541 <cell alignment="center" valignment="top" topline="true" usebox="none">
18544 \begin_layout Plain Layout
18552 <cell alignment="center" valignment="top" topline="true" usebox="none">
18555 \begin_layout Plain Layout
18561 <cell alignment="center" valignment="top" topline="true" usebox="none">
18564 \begin_layout Plain Layout
18570 <cell alignment="center" valignment="top" topline="true" usebox="none">
18573 \begin_layout Plain Layout
18581 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18584 \begin_layout Plain Layout
18590 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18593 \begin_layout Plain Layout
18599 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18602 \begin_layout Plain Layout
18621 \begin_layout Standard
18622 \begin_inset VSpace bigskip
18625 To color horizontal lines for example with red, as in Table
18626 \begin_inset space ~
18630 \begin_inset CommandInset ref
18632 reference "tab:Table-with-horizontal-colored"
18636 , insert these commands in TeX-Code before the table or table float:
18639 \begin_layout Standard
18649 \begin_inset Newline newline
18657 \begin_inset Newline newline
18661 \begin_inset Phantom HPhantom
18664 \begin_layout Plain Layout
18667 \begin_inset space ~
18677 arrayrulecolor{red}
18681 arrayrulecolor{black}}
18684 \begin_layout Standard
18688 \begin_layout Plain Layout
18699 \begin_layout Plain Layout
18708 \begin_layout Plain Layout
18712 arrayrulecolor{red}
18716 arrayrulecolor{black}}
18722 \begin_inset Float table
18728 \begin_layout Plain Layout
18729 \begin_inset Caption Standard
18731 \begin_layout Plain Layout
18732 \begin_inset CommandInset label
18734 name "tab:Table-with-horizontal-colored"
18738 Table with colored horizontal lines
18746 \begin_layout Plain Layout
18748 \begin_inset Tabular
18749 <lyxtabular version="3" rows="3" columns="3">
18750 <features rotate="0" tabularvalignment="middle">
18751 <column alignment="center" valignment="top">
18752 <column alignment="center" valignment="top">
18753 <column alignment="center" valignment="top">
18755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18758 \begin_layout Plain Layout
18764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18767 \begin_layout Plain Layout
18773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18776 \begin_layout Plain Layout
18784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18787 \begin_layout Plain Layout
18793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18796 \begin_layout Plain Layout
18802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18805 \begin_layout Plain Layout
18813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18816 \begin_layout Plain Layout
18822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18825 \begin_layout Plain Layout
18831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18834 \begin_layout Plain Layout
18853 \begin_layout Standard
18854 To return to the default line color black, insert this command in TeX-Code
18855 after the table or table float:
18858 \begin_layout Standard
18870 \begin_layout Standard
18872 \begin_inset space ~
18876 \begin_inset CommandInset ref
18878 reference "tab:Table-with-colored"
18882 is an example with colored vertical and horizontal lines.
18885 \begin_layout Standard
18886 \begin_inset Float table
18892 \begin_layout Plain Layout
18893 \begin_inset Caption Standard
18895 \begin_layout Plain Layout
18896 \begin_inset CommandInset label
18898 name "tab:Table-with-colored"
18902 Table with colored lines
18910 \begin_layout Plain Layout
18912 \begin_inset Tabular
18913 <lyxtabular version="3" rows="3" columns="3">
18914 <features rotate="0" tabularvalignment="middle">
18915 <column alignment="center" valignment="top" special="Wc">
18916 <column alignment="center" valignment="top" special="Wc">
18917 <column alignment="center" valignment="top" special="WcW">
18919 <cell alignment="center" valignment="top" topline="true" usebox="none">
18922 \begin_layout Plain Layout
18928 <cell alignment="center" valignment="top" topline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" usebox="none">
18940 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" topline="true" usebox="none">
18951 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" topline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" topline="true" usebox="none">
18969 \begin_layout Plain Layout
18976 <row topspace="default">
18977 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18980 \begin_layout Plain Layout
18986 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18989 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18998 \begin_layout Plain Layout
19017 \begin_layout Standard
19021 \begin_layout Plain Layout
19037 \begin_layout Standard
19041 \begin_layout Plain Layout
19047 arrayrulewidth}{0.4pt}
19055 \begin_layout Section
19056 Rotated Table Cells
19057 \begin_inset CommandInset label
19059 name "sec:Rotated-Table-Cells"
19064 \begin_inset Index idx
19067 \begin_layout Plain Layout
19068 Table ! Rotated Cells
19074 \begin_inset Index idx
19077 \begin_layout Plain Layout
19086 \begin_layout Standard
19087 \begin_inset Note Greyedout
19090 \begin_layout Plain Layout
19095 Not all DVI-viewers are able to display rotations.
19103 \begin_layout Standard
19104 Currently LyX only offers to rotate table cells by 90
19105 \begin_inset space \thinspace{}
19108 ° counter-clockwise.
19109 To rotate cells by an angle of your choice, you have to add this to the
19113 \begin_layout Standard
19118 @ifundefined{turnbox}{
19120 usepackage{rotating}}{}
19123 \begin_layout Standard
19124 In the table cell that should be rotated, add at the beginning this command
19128 \begin_layout Standard
19136 \begin_layout Standard
19137 where angle is the rotation angle in °.
19138 At the end of the cell the command
19141 \begin_layout Standard
19149 \begin_layout Standard
19150 is inserted as TeX-code.
19153 \begin_layout Standard
19155 \begin_inset space ~
19159 \begin_inset CommandInset ref
19161 reference "tab:Table-with-rotated-multi"
19165 is an example where 3
19166 \begin_inset space ~
19169 cells were rotated by 45
19170 \begin_inset space \thinspace{}
19176 \begin_layout Standard
19177 \begin_inset Float table
19182 \begin_layout Plain Layout
19183 \begin_inset Caption Standard
19185 \begin_layout Plain Layout
19186 \begin_inset CommandInset label
19188 name "tab:Table-with-rotated"
19192 Table with rotated cells in the first row.
19200 \begin_layout Plain Layout
19203 \begin_inset Tabular
19204 <lyxtabular version="3" rows="2" columns="3">
19205 <features rotate="0" tabularvalignment="middle">
19206 <column alignment="center" valignment="top">
19207 <column alignment="center" valignment="top" width="0pt">
19208 <column alignment="center" valignment="top">
19210 <cell alignment="center" valignment="top" usebox="none">
19213 \begin_layout Plain Layout
19217 \begin_layout Plain Layout
19230 \begin_layout Plain Layout
19244 <cell alignment="center" valignment="top" usebox="none">
19247 \begin_layout Plain Layout
19251 \begin_layout Plain Layout
19264 \begin_layout Plain Layout
19278 <cell alignment="center" valignment="top" usebox="none">
19281 \begin_layout Plain Layout
19285 \begin_layout Plain Layout
19298 \begin_layout Plain Layout
19314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19317 \begin_layout Plain Layout
19323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19326 \begin_layout Plain Layout
19332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19335 \begin_layout Plain Layout
19354 \begin_layout Standard
19355 \begin_inset Note Greyedout
19358 \begin_layout Plain Layout
19363 Line breaks (shortcut
19366 arg "newline-insert newline"
19369 ) are not allowed in rotated cells.
19377 \begin_layout Standard
19378 If you want to rotate table cells containing line breaks, you have to put
19379 the cell content into a minipage or a parbox.
19383 \begin_layout Plain Layout
19384 For more about these boxes see sec.
19385 \begin_inset space \thinspace{}
19389 \begin_inset CommandInset ref
19391 reference "sec:Minipages"
19396 \begin_inset CommandInset ref
19398 reference "sec:Parboxes"
19407 If you rotate this cell by 90
19408 \begin_inset space \thinspace{}
19411 ° the width of the box is the height of the cell.
19413 \begin_inset space ~
19417 \begin_inset CommandInset ref
19419 reference "tab:Table-with-rotated-multi"
19423 is an example for a rotated multiline cell where the box width was set
19425 \begin_inset space \thinspace{}
19431 \begin_layout Standard
19432 \begin_inset Float table
19437 \begin_layout Plain Layout
19438 \begin_inset Caption Standard
19440 \begin_layout Plain Layout
19441 \begin_inset CommandInset label
19443 name "tab:Table-with-rotated-multi"
19447 Table with rotated multiline cell.
19455 \begin_layout Plain Layout
19458 \begin_inset Tabular
19459 <lyxtabular version="3" rows="2" columns="3">
19460 <features rotate="0" tabularvalignment="middle">
19461 <column alignment="center" valignment="top">
19462 <column alignment="center" valignment="top" width="0pt">
19463 <column alignment="center" valignment="top">
19465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19468 \begin_layout Plain Layout
19474 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19477 \begin_layout Plain Layout
19478 \begin_inset Box Frameless
19488 height_special "totalheight"
19491 \begin_layout Plain Layout
19493 \begin_inset Newline newline
19506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19509 \begin_layout Plain Layout
19517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19520 \begin_layout Plain Layout
19526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19529 \begin_layout Plain Layout
19535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19538 \begin_layout Plain Layout
19557 \begin_layout Section
19558 Table Width Calculation
19559 \begin_inset CommandInset label
19561 name "sec:Table-Width-Calculation"
19568 \begin_layout Standard
19569 For wide tables it is sometimes difficult to assure that the table does
19570 not protrude over the page margin.
19571 Setting a fixed width for every column of the table is the solution, but
19572 what amount of space is needed for each column?
19575 \begin_layout Standard
19577 \begin_inset Formula $W_{\mathrm{table}}$
19580 can be calculated: Every column has the width of the specified column width
19582 \begin_inset Formula $W_{\mathrm{column}}$
19585 (that the content of the column can consume) plus two times the separation
19586 between the column content and the column border (LaTeX length
19593 \begin_inset space \thinspace{}
19596 pt) plus the width of a border line (LaTeX length
19603 \begin_inset space \thinspace{}
19607 \begin_inset Formula $n$
19611 \begin_inset space ~
19614 columns have the same width, the table width is
19615 \begin_inset Formula
19617 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19625 \begin_layout Standard
19626 The available width for a table is the space between the page margins or
19627 the width of a text column (for a two-column document) (LaTeX length
19634 If all table columns should have the same width and
19635 \begin_inset Formula $W_{\mathrm{table}}$
19639 \begin_inset space \thinspace{}
19645 \begin_inset Formula $W_{\mathrm{column}}$
19648 can easily be calculated.
19651 \begin_layout Standard
19652 To be able to perform calculations you need to load the LaTeX-package
19657 \begin_inset Index idx
19660 \begin_layout Plain Layout
19661 LaTeX-packages ! calc
19666 in the document preamble.
19667 To set the width in the table dialog you have to use the field
19672 The command scheme for this field is the same that is explained in section
19673 \begin_inset space ~
19677 \begin_inset CommandInset ref
19679 reference "sub:Multicolumn-Calculations"
19685 \begin_inset space \thinspace{}
19688 columns with an uniform width and centered text, enter there for each column
19692 \begin_layout Standard
19699 columnwidth-62.4pt)/5}
19702 \begin_layout Standard
19704 \begin_inset space \thinspace{}
19707 columns where 2 should have 0.75
19708 \begin_inset space ~
19711 times the width than the 3 others, the calculation is
19712 \begin_inset Formula
19714 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19715 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19716 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19717 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19725 \begin_layout Standard
19726 In the table therefore the command
19729 \begin_layout Standard
19736 columnwidth-62.4pt)/
19741 \begin_layout Standard
19742 is used for the wider columns and
19745 \begin_layout Standard
19752 columnwidth-62.4pt)/
19759 \begin_layout Standard
19760 for the smaller ones:
19763 \begin_layout Standard
19764 \begin_inset Tabular
19765 <lyxtabular version="3" rows="2" columns="5">
19766 <features rotate="0" tabularvalignment="middle">
19767 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19768 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19769 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19770 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19771 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19776 \begin_layout Plain Layout
19782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19785 \begin_layout Plain Layout
19791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19794 \begin_layout Plain Layout
19800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19803 \begin_layout Plain Layout
19809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19812 \begin_layout Plain Layout
19820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19823 \begin_layout Plain Layout
19824 111111 1111111 111111 111111111 11111 11111 1111
19829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19832 \begin_layout Plain Layout
19838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19841 \begin_layout Plain Layout
19842 2222 22222 222222 222222222 2222222 22 22222
19847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19850 \begin_layout Plain Layout
19856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19859 \begin_layout Plain Layout
19860 333333 333333 333333 33333 3333333 333
19873 \begin_layout Section
19874 Table Customization
19875 \begin_inset Index idx
19878 \begin_layout Plain Layout
19879 Table Customization
19885 \begin_inset Index idx
19888 \begin_layout Plain Layout
19889 Table ! Customization
19897 \begin_layout Subsection
19899 \begin_inset CommandInset label
19901 name "sub:Row-Spacing"
19906 \begin_inset Index idx
19909 \begin_layout Plain Layout
19910 Table Customization ! Row Spacing
19918 \begin_layout Standard
19919 You can add vertical space to table rows in the
19923 tab of the table dialog.
19924 You find there three possibilities:
19927 \begin_layout Description
19929 \begin_inset space ~
19933 \begin_inset space ~
19936 row will add space above the characters of the table row.
19937 If the table is a formal table
19941 \begin_layout Plain Layout
19942 Formal tables are explained in section
19943 \begin_inset space ~
19947 \begin_inset CommandInset ref
19949 reference "sec:Formal-Tables"
19958 LyX will insert as default 0.5
19959 \begin_inset space \thinspace{}
19963 For normal tables the inserted space will unfortunately destroy the vertical
19964 table lines as in the following table:
19965 \begin_inset VSpace medskip
19969 \begin_inset Newline newline
19973 \begin_inset space \hspace*{}
19978 \begin_inset space \hfill{}
19982 \begin_inset Tabular
19983 <lyxtabular version="3" rows="3" columns="1">
19984 <features rotate="0" tabularvalignment="middle">
19985 <column alignment="center" valignment="top">
19987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19990 \begin_layout Plain Layout
19997 <row topspace="3mm">
19998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20001 \begin_layout Plain Layout
20003 \begin_inset space \thinspace{}
20006 mm space top of row
20013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20016 \begin_layout Plain Layout
20028 \begin_inset space \hfill{}
20032 \begin_inset space \hspace*{}
20037 \begin_inset VSpace medskip
20041 \begin_inset Newline newline
20044 So inserting space in the top of row for normal tables is only useful when
20045 you don't have vertical lines.
20048 \begin_layout Description
20050 \begin_inset space ~
20054 \begin_inset space ~
20057 row will add space below the characters of the table row.
20058 If the table is a formal table LyX will insert as default 0.5
20059 \begin_inset space \thinspace{}
20062 em space, for normal tables the default size is 2
20063 \begin_inset space \thinspace{}
20069 \begin_layout Description
20071 \begin_inset space ~
20074 rows adds space between the current and the following row.
20075 If the table is a formal table LyX will insert as default 0.5
20076 \begin_inset space \thinspace{}
20080 For normal tables the inserted space will unfortunately destroy the vertical
20081 table lines as in the following table:
20082 \begin_inset VSpace medskip
20086 \begin_inset Newline newline
20090 \begin_inset space \hspace*{}
20095 \begin_inset space \hfill{}
20099 \begin_inset Tabular
20100 <lyxtabular version="3" rows="3" columns="1">
20101 <features rotate="0" tabularvalignment="middle">
20102 <column alignment="center" valignment="top">
20104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20107 \begin_layout Plain Layout
20114 <row interlinespace="3mm">
20115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20118 \begin_layout Plain Layout
20119 \begin_inset Formula $\downarrow$
20123 \begin_inset space \thinspace{}
20126 mm space between row
20127 \begin_inset Formula $\downarrow$
20137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20140 \begin_layout Plain Layout
20141 \begin_inset Formula $\uparrow$
20145 \begin_inset space \thinspace{}
20148 mm space between row
20149 \begin_inset Formula $\uparrow$
20163 \begin_inset space \hfill{}
20167 \begin_inset space \hspace*{}
20172 \begin_inset VSpace medskip
20176 \begin_inset Newline newline
20179 So inserting space between rows for normal tables is only useful when you
20180 don't have vertical lines.
20183 \begin_layout Standard
20184 \begin_inset VSpace bigskip
20187 When you want to add extra height to all cells of all tables, you can do
20188 this with the following preamble lines:
20191 \begin_layout Standard
20196 @ifundefined{extrarowheight}
20197 \begin_inset Newline newline
20201 \begin_inset Phantom HPhantom
20204 \begin_layout Plain Layout
20207 \begin_inset space ~
20217 usepackage{array}}{}
20218 \begin_inset Newline newline
20225 extrarowheight}{height}
20228 \begin_layout Standard
20229 But this has the disadvantage that the cell texts are no longer exactly
20230 vertically centered.
20235 will be loaded automatically by LyX when you use self defined table formats.
20236 To avoid that it being loaded twice the command
20242 is used in the above command.)
20245 \begin_layout Standard
20246 If you are using font sizes larger than the normal size, the table borders
20247 are often too close to the letters.
20248 This can be corrected by inserting the command
20254 in TeX-Code at the beginning of a table row.
20256 \begin_inset space ~
20260 \begin_inset CommandInset ref
20262 reference "tab:Vertical-alignment-of"
20266 illustrates the effect.
20269 \begin_layout Standard
20271 \begin_inset Float table
20277 \begin_layout Plain Layout
20278 \begin_inset Caption Standard
20280 \begin_layout Plain Layout
20281 \begin_inset CommandInset label
20283 name "tab:Vertical-alignment-of"
20287 Vertical alignment of text with large font sizes.
20295 \begin_layout Plain Layout
20296 \begin_inset space \hfill{}
20300 \begin_inset Float table
20305 \begin_layout Plain Layout
20306 \begin_inset Caption Standard
20308 \begin_layout Plain Layout
20317 \begin_layout Plain Layout
20320 \begin_inset Tabular
20321 <lyxtabular version="3" rows="6" columns="1">
20322 <features rotate="0" tabularvalignment="middle">
20323 <column alignment="left" valignment="top">
20325 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20328 \begin_layout Plain Layout
20336 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20339 \begin_layout Plain Layout
20349 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20352 \begin_layout Plain Layout
20362 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20365 \begin_layout Plain Layout
20375 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20378 \begin_layout Plain Layout
20388 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20391 \begin_layout Plain Layout
20410 \begin_inset space \hfill{}
20414 \begin_inset Float table
20419 \begin_layout Plain Layout
20420 \begin_inset Caption Standard
20422 \begin_layout Plain Layout
20423 Table using the command
20437 \begin_layout Plain Layout
20440 \begin_inset Tabular
20441 <lyxtabular version="3" rows="6" columns="1">
20442 <features rotate="0" tabularvalignment="middle">
20443 <column alignment="left" valignment="top">
20445 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20448 \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" leftline="true" rightline="true" usebox="none">
20534 \begin_layout Plain Layout
20540 \begin_layout Plain Layout
20556 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20559 \begin_layout Plain Layout
20565 \begin_layout Plain Layout
20592 \begin_inset space \hfill{}
20603 \begin_layout Subsection
20604 Special Cell Alignment
20605 \begin_inset CommandInset label
20607 name "sub:Special-Cell-Alignment"
20612 \begin_inset Index idx
20615 \begin_layout Plain Layout
20616 Table Customization ! Special Cell Alignment
20624 \begin_layout Standard
20625 Sometimes it looks better when the cell entries of a column are aligned
20626 with a special character, e.
20627 \begin_inset space \thinspace{}
20631 \begin_inset space \space{}
20634 with the decimal separator as in Table
20635 \begin_inset space ~
20639 \begin_inset CommandInset ref
20641 reference "tab:Table-cells-align"
20646 This alignment is achieved by setting the cursor into the column and then
20647 either pressing the toolbar button
20650 arg "inset-modify tabular align-decimal"
20653 or setting the alignment in the table settings to
20656 \begin_inset space ~
20660 \begin_inset space ~
20666 The alignment character can be a character of your choice and is specified
20667 in the table settings.
20670 \begin_layout Standard
20671 \begin_inset Float table
20677 \begin_layout Plain Layout
20678 \begin_inset Caption Standard
20680 \begin_layout Plain Layout
20681 \begin_inset CommandInset label
20683 name "tab:Table-cells-align"
20687 Table cells of a column aligned with the decimal separator.
20695 \begin_layout Plain Layout
20697 \begin_inset Tabular
20698 <lyxtabular version="3" rows="4" columns="1">
20699 <features rotate="0" booktabs="true" tabularvalignment="middle">
20700 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20705 \begin_layout Plain Layout
20713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20716 \begin_layout Plain Layout
20724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20727 \begin_layout Plain Layout
20735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20738 \begin_layout Plain Layout
20757 \begin_layout Standard
20758 \begin_inset Float table
20764 \begin_layout Plain Layout
20765 \begin_inset Caption Standard
20767 \begin_layout Plain Layout
20768 \begin_inset CommandInset label
20770 name "tab:Table-align-operator"
20774 Table cells of a column aligned with the operators.
20782 \begin_layout Plain Layout
20784 \begin_inset Tabular
20785 <lyxtabular version="3" rows="4" columns="2">
20786 <features rotate="0" booktabs="true" tabularvalignment="middle">
20787 <column alignment="right" valignment="top" width="0pt">
20788 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20790 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20793 \begin_layout Plain Layout
20799 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20802 \begin_layout Plain Layout
20810 <cell alignment="center" valignment="top" usebox="none">
20813 \begin_layout Plain Layout
20814 \begin_inset Formula $12\,+$
20822 <cell alignment="center" valignment="top" usebox="none">
20825 \begin_layout Plain Layout
20826 \begin_inset Formula $\,6$
20836 <cell alignment="center" valignment="top" usebox="none">
20839 \begin_layout Plain Layout
20840 \begin_inset Formula $0\,-$
20848 <cell alignment="center" valignment="top" usebox="none">
20851 \begin_layout Plain Layout
20852 \begin_inset Formula $\,68$
20862 <cell alignment="center" valignment="top" usebox="none">
20865 \begin_layout Plain Layout
20866 \begin_inset Formula $-123\,/$
20874 <cell alignment="center" valignment="top" usebox="none">
20877 \begin_layout Plain Layout
20878 \begin_inset Formula $\,0$
20899 \begin_layout Standard
20900 For alignments at characters in formulas this method does not work because
20901 the field to specify the alignment character does not allow formulas.
20902 In this case one need to use the method from Table
20903 \begin_inset space ~
20907 \begin_inset CommandInset ref
20909 reference "tab:Table-align-operator"
20914 This table was created with a 4×2 table.
20915 The heading is a centered multicolumn.
20916 The first column is right-aligned and contains the first part including
20918 The second column is left aligned and contains the rest.
20919 A small space was added at the beginning of each cell of the second column
20920 to get the space that is usually around operators.
20921 To omit the space that is normally between two table columns, the following
20922 LaTeX-argument was used for the second column:
20925 \begin_layout Standard
20931 \begin_layout Standard
20933 \begin_inset space ~
20937 \begin_inset CommandInset ref
20939 reference "tab:Several-table-cell"
20943 shows some example alignments.
20944 For the alignment with the relation sign, a small space was added like
20945 for the second column of Table
20946 \begin_inset space ~
20950 \begin_inset CommandInset ref
20952 reference "tab:Table-align-operator"
20959 \begin_layout Standard
20960 \begin_inset Float table
20966 \begin_layout Plain Layout
20967 \begin_inset Caption Standard
20969 \begin_layout Plain Layout
20970 \begin_inset CommandInset label
20972 name "tab:Several-table-cell"
20976 Several table cell alignments.
20984 \begin_layout Plain Layout
20986 \begin_inset Tabular
20987 <lyxtabular version="3" rows="4" columns="6">
20988 <features rotate="0" tabularvalignment="middle">
20989 <column alignment="right" valignment="top">
20990 <column alignment="left" valignment="top" special="@{}l">
20991 <column alignment="right" valignment="top">
20992 <column alignment="left" valignment="top" special="@{}l">
20993 <column alignment="right" valignment="top">
20994 <column alignment="left" valignment="top" special="@{}l">
20996 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20999 \begin_layout Plain Layout
21005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21008 \begin_layout Plain Layout
21014 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21017 \begin_layout Plain Layout
21023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21026 \begin_layout Plain Layout
21032 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21035 \begin_layout Plain Layout
21041 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21044 \begin_layout Plain Layout
21052 <cell alignment="center" valignment="top" usebox="none">
21055 \begin_layout Plain Layout
21061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21064 \begin_layout Plain Layout
21066 \begin_inset space \thinspace{}
21074 <cell alignment="center" valignment="top" usebox="none">
21077 \begin_layout Plain Layout
21078 \begin_inset Formula $10\cdot$
21086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21089 \begin_layout Plain Layout
21090 \begin_inset Formula $10^{\mbox{-}17}$
21098 <cell alignment="center" valignment="top" usebox="none">
21101 \begin_layout Plain Layout
21102 \begin_inset Formula $\Gamma(t)\propto$
21110 <cell alignment="center" valignment="top" usebox="none">
21113 \begin_layout Plain Layout
21114 \begin_inset Formula $\:\Upsilon(t)$
21124 <cell alignment="center" valignment="top" usebox="none">
21127 \begin_layout Plain Layout
21133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21136 \begin_layout Plain Layout
21138 \begin_inset space \thinspace{}
21146 <cell alignment="center" valignment="top" usebox="none">
21149 \begin_layout Plain Layout
21150 \begin_inset Formula $5.78\cdot$
21158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21161 \begin_layout Plain Layout
21162 \begin_inset Formula $10^{7}$
21170 <cell alignment="center" valignment="top" usebox="none">
21173 \begin_layout Plain Layout
21174 \begin_inset Formula $A\ne$
21182 <cell alignment="center" valignment="top" usebox="none">
21185 \begin_layout Plain Layout
21186 \begin_inset Formula $\:B_{\mathrm{red}}$
21196 <cell alignment="center" valignment="top" usebox="none">
21199 \begin_layout Plain Layout
21205 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21208 \begin_layout Plain Layout
21210 \begin_inset space \thinspace{}
21218 <cell alignment="center" valignment="top" usebox="none">
21221 \begin_layout Plain Layout
21223 \begin_inset Formula $33.5\cdot$
21231 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21234 \begin_layout Plain Layout
21235 \begin_inset Formula $10^{4}$
21243 <cell alignment="center" valignment="top" usebox="none">
21246 \begin_layout Plain Layout
21247 \begin_inset Formula $\sin(\alpha)\ge$
21255 <cell alignment="center" valignment="top" usebox="none">
21258 \begin_layout Plain Layout
21259 \begin_inset Formula $\:\sin(\beta)$
21280 \begin_layout Subsection
21281 Customized Cell/Column Format
21282 \begin_inset CommandInset label
21284 name "sub:Customized-Format"
21289 \begin_inset Index idx
21292 \begin_layout Plain Layout
21293 Table Customization ! Cell/Column Format
21301 \begin_layout Standard
21302 Calculating the required width for normal columns as described in section
21303 \begin_inset space ~
21307 \begin_inset CommandInset ref
21309 reference "sec:Table-Width-Calculation"
21313 or for spanned columns as described in section
21314 \begin_inset space ~
21318 \begin_inset CommandInset ref
21320 reference "sub:Multicolumn-Calculations"
21324 is very annoying if you have several tables where a calculation is necessary.
21325 To make life easier, you can define a cell/column format in the preamble,
21326 that can be used in all tables of the document.
21327 The format is defined with the command
21330 \begin_layout Standard
21335 newcolumntype{name of format}[number of arguments]{commands}
21338 \begin_layout Standard
21339 The format name may only consist of one letter.
21364 are predefined and cannot be used.
21365 But all letters are allowed as capitals.
21368 \begin_layout Standard
21369 \begin_inset VSpace medskip
21375 \begin_layout Standard
21376 For vertically and horizontally centered multicolumn cells with a fixed
21377 width you can define the cell format
21380 \begin_layout Standard
21385 newcolumntype{M}[1]{>{
21392 \begin_layout Standard
21399 avoids the problem of hyphenating the first word, as described in section
21400 \begin_inset space ~
21404 \begin_inset CommandInset ref
21406 reference "sub:Multiple-Lines-in"
21411 Now you can simply enter
21414 \begin_layout Standard
21420 \begin_layout Standard
21425 in the table dialog to create a multicolumn.
21428 \begin_layout Standard
21429 \begin_inset VSpace bigskip
21435 \begin_layout Standard
21436 For cells spanned by a multicolumn cell, you can define the format
21439 \begin_layout Standard
21444 newcolumntype{S}[2]{>{
21449 \begin_inset Newline newline
21453 \begin_inset Phantom HPhantom
21456 \begin_layout Plain Layout
21470 arrayrulewidth)*(1-#2))/#2}}
21473 \begin_layout Standard
21474 This format uses equation
21475 \begin_inset CommandInset ref
21481 to calculate the required width so that each spanned cell has the same
21485 \begin_layout Standard
21489 \begin_layout Standard
21492 S{width of multicolumn cell}{number of spanned columns}
21495 \begin_layout Standard
21496 as LaTeX-argument of the column.
21499 \begin_layout Standard
21500 \begin_inset VSpace bigskip
21506 \begin_layout Standard
21507 For colored columns, you can define
21510 \begin_layout Standard
21515 newcolumntype{K}[1]{>{
21522 \begin_layout Standard
21524 \begin_inset Quotes eld
21528 \begin_inset Quotes erd
21531 at the end creates a column with a flexible width whose text is horizontally
21536 \begin_layout Standard
21542 \begin_layout Standard
21546 \begin_layout Standard
21547 \begin_inset VSpace bigskip
21553 \begin_layout Standard
21555 \begin_inset space ~
21559 \begin_inset CommandInset ref
21561 reference "tab:Table-using-user-defined"
21565 use the LaTeX-arguments
21568 \begin_layout Standard
21574 \begin_layout Standard
21575 for the first column and the multicolumn,
21578 \begin_layout Standard
21584 \begin_layout Standard
21585 for the last column, and
21588 \begin_layout Standard
21594 \begin_layout Standard
21595 for the cells in the second column.
21598 \begin_layout Standard
21599 \begin_inset Float table
21605 \begin_layout Plain Layout
21606 \begin_inset Caption Standard
21608 \begin_layout Plain Layout
21609 \begin_inset CommandInset label
21611 name "tab:Table-using-user-defined"
21615 Table using user-defined table formats
21623 \begin_layout Plain Layout
21625 \begin_inset Tabular
21626 <lyxtabular version="3" rows="3" columns="4">
21627 <features rotate="0" tabularvalignment="middle">
21628 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21629 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21630 <column alignment="center" valignment="middle">
21631 <column alignment="center" valignment="middle" special="K{red}">
21633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21636 \begin_layout Plain Layout
21637 verylongtablecellword
21642 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21645 \begin_layout Plain Layout
21646 multiple lines multicolumn
21651 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21654 \begin_layout Plain Layout
21660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21663 \begin_layout Plain Layout
21671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21674 \begin_layout Plain Layout
21680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21683 \begin_layout Plain Layout
21689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21692 \begin_layout Plain Layout
21698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21701 \begin_layout Plain Layout
21709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21712 \begin_layout Plain Layout
21718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21721 \begin_layout Plain Layout
21727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21730 \begin_layout Plain Layout
21736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21739 \begin_layout Plain Layout
21758 \begin_layout Subsection
21760 \begin_inset CommandInset label
21762 name "sub:Line-Thickness"
21767 \begin_inset Index idx
21770 \begin_layout Plain Layout
21771 Table Customization ! Line Thickness
21779 \begin_layout Standard
21780 The line thickness for all lines in a table can be adjusted with the length
21788 To set for example a line thickness of 1.5
21789 \begin_inset space \thinspace{}
21793 \begin_inset space ~
21797 \begin_inset CommandInset ref
21799 reference "tab:Table-with-1.5"
21803 , insert the command
21806 \begin_layout Standard
21813 arrayrulewidth}{1.5pt}
21816 \begin_layout Standard
21817 in TeX-Code before the table or table float.
21818 The changed thickness is valid for all subsequent tables.
21819 To use the default value again, set
21826 \begin_inset space \thinspace{}
21829 pt in TeX-Code after the table or table float.
21832 \begin_layout Standard
21836 \begin_layout Plain Layout
21842 arrayrulewidth}{1.5pt}
21848 \begin_inset Float table
21853 \begin_layout Plain Layout
21854 \begin_inset Caption Standard
21856 \begin_layout Plain Layout
21857 \begin_inset CommandInset label
21859 name "tab:Table-with-1.5"
21864 \begin_inset space \thinspace{}
21875 \begin_layout Plain Layout
21877 \begin_inset Tabular
21878 <lyxtabular version="3" rows="3" columns="3">
21879 <features rotate="0" tabularvalignment="middle">
21880 <column alignment="center" valignment="top">
21881 <column alignment="center" valignment="top">
21882 <column alignment="center" valignment="top">
21884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21887 \begin_layout Plain Layout
21893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21896 \begin_layout Plain Layout
21902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21905 \begin_layout Plain Layout
21913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21916 \begin_layout Plain Layout
21922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21925 \begin_layout Plain Layout
21931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21934 \begin_layout Plain Layout
21942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21945 \begin_layout Plain Layout
21951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21954 \begin_layout Plain Layout
21960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21963 \begin_layout Plain Layout
21983 \begin_layout Plain Layout
21989 arrayrulewidth}{0.4pt}
21997 \begin_layout Standard
21998 \begin_inset VSpace bigskip
22001 To set the line thickness to 1.5
22002 \begin_inset space \thinspace{}
22005 pt only for horizontal lines, as in Table
22006 \begin_inset space ~
22010 \begin_inset CommandInset ref
22012 reference "tab:Table-with-horizontal"
22016 , insert these commands in TeX-Code before the table or table float:
22019 \begin_layout Standard
22029 \begin_inset Newline newline
22037 \begin_inset Newline newline
22046 arrayrulewidth 1.5pt}
22047 \begin_inset Newline newline
22058 arrayrulewidth 0.4pt}}
22061 \begin_layout Standard
22062 To return to the default line thickness, insert this command in TeX-Code
22063 after the table or table float:
22066 \begin_layout Standard
22078 \begin_layout Standard
22082 \begin_layout Plain Layout
22093 \begin_layout Plain Layout
22102 \begin_layout Plain Layout
22110 arrayrulewidth 1.5pt}
22113 \begin_layout Plain Layout
22123 arrayrulewidth 0.4pt}}
22129 \begin_inset Float table
22134 \begin_layout Plain Layout
22135 \begin_inset Caption Standard
22137 \begin_layout Plain Layout
22138 \begin_inset CommandInset label
22140 name "tab:Table-with-horizontal"
22145 \begin_inset space \thinspace{}
22148 pt thick horizontal lines
22156 \begin_layout Plain Layout
22158 \begin_inset Tabular
22159 <lyxtabular version="3" rows="3" columns="3">
22160 <features rotate="0" tabularvalignment="middle">
22161 <column alignment="center" valignment="top">
22162 <column alignment="center" valignment="top">
22163 <column alignment="center" valignment="top">
22165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22168 \begin_layout Plain Layout
22174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22177 \begin_layout Plain Layout
22183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22186 \begin_layout Plain Layout
22194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22197 \begin_layout Plain Layout
22203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22206 \begin_layout Plain Layout
22212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22215 \begin_layout Plain Layout
22223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22226 \begin_layout Plain Layout
22232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22235 \begin_layout Plain Layout
22241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22244 \begin_layout Plain Layout
22264 \begin_layout Plain Layout
22280 \begin_layout Standard
22281 \begin_inset VSpace bigskip
22284 To set the line thickness to 1.5
22285 \begin_inset space \thinspace{}
22288 pt only for vertical lines, create the following column format in the document
22289 preamble, according to the description in section
22290 \begin_inset space ~
22294 \begin_inset CommandInset ref
22296 reference "sub:Customized-Format"
22303 \begin_layout Standard
22308 newcolumntype{V}{!{
22310 vrule width 1.5pt}}
22313 \begin_layout Standard
22315 \begin_inset space ~
22319 \begin_inset CommandInset ref
22321 reference "tab:Table-with-vertical"
22328 \begin_layout Standard
22334 \begin_layout Standard
22335 was used for the last column and
22338 \begin_layout Standard
22344 \begin_layout Standard
22345 for the other columns.
22348 \begin_layout Standard
22349 \begin_inset Float table
22354 \begin_layout Plain Layout
22355 \begin_inset Caption Standard
22357 \begin_layout Plain Layout
22358 \begin_inset CommandInset label
22360 name "tab:Table-with-vertical"
22365 \begin_inset space \thinspace{}
22368 pt thick vertical lines
22376 \begin_layout Plain Layout
22378 \begin_inset Tabular
22379 <lyxtabular version="3" rows="3" columns="3">
22380 <features rotate="0" tabularvalignment="middle">
22381 <column alignment="center" valignment="top" special="Vc">
22382 <column alignment="center" valignment="top" special="Vc">
22383 <column alignment="center" valignment="top" special="VcV">
22385 <cell alignment="center" valignment="top" topline="true" usebox="none">
22388 \begin_layout Plain Layout
22394 <cell alignment="center" valignment="top" topline="true" usebox="none">
22397 \begin_layout Plain Layout
22403 <cell alignment="center" valignment="top" topline="true" usebox="none">
22406 \begin_layout Plain Layout
22414 <cell alignment="center" valignment="top" topline="true" usebox="none">
22417 \begin_layout Plain Layout
22423 <cell alignment="center" valignment="top" topline="true" usebox="none">
22426 \begin_layout Plain Layout
22432 <cell alignment="center" valignment="top" topline="true" usebox="none">
22435 \begin_layout Plain Layout
22443 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22446 \begin_layout Plain Layout
22452 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22455 \begin_layout Plain Layout
22461 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22464 \begin_layout Plain Layout
22483 \begin_layout Subsection
22485 \begin_inset Index idx
22488 \begin_layout Plain Layout
22489 Table Customization ! Dashed Lines
22497 \begin_layout Standard
22501 \begin_layout Plain Layout
22511 \begin_inset Note Note
22514 \begin_layout Plain Layout
22515 The following section will only be displayed when the LaTeX-package
22527 \begin_layout Standard
22528 \begin_inset Float table
22534 \begin_layout Plain Layout
22535 \begin_inset Caption Standard
22537 \begin_layout Plain Layout
22538 \begin_inset CommandInset label
22540 name "tab:Table-with-dashed"
22544 Table with dashed lines
22552 \begin_layout Plain Layout
22554 \begin_inset Tabular
22555 <lyxtabular version="3" rows="5" columns="5">
22556 <features rotate="0" tabularvalignment="middle">
22557 <column alignment="center" valignment="top">
22558 <column alignment="center" valignment="top">
22559 <column alignment="center" valignment="top" special=":c">
22560 <column alignment="center" valignment="top">
22561 <column alignment="center" valignment="top">
22563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22566 \begin_layout Plain Layout
22572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22575 \begin_layout Plain Layout
22581 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22584 \begin_layout Plain Layout
22590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22593 \begin_layout Plain Layout
22599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22602 \begin_layout Plain Layout
22610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22613 \begin_layout Plain Layout
22619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22622 \begin_layout Plain Layout
22628 <cell alignment="center" valignment="top" topline="true" usebox="none">
22631 \begin_layout Plain Layout
22637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22640 \begin_layout Plain Layout
22646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22649 \begin_layout Plain Layout
22657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22660 \begin_layout Plain Layout
22664 \begin_layout Plain Layout
22678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22681 \begin_layout Plain Layout
22687 <cell alignment="center" valignment="top" usebox="none">
22690 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22699 \begin_layout Plain Layout
22705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22708 \begin_layout Plain Layout
22716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22719 \begin_layout Plain Layout
22723 \begin_layout Plain Layout
22737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22740 \begin_layout Plain Layout
22746 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22749 \begin_layout Plain Layout
22755 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22767 \begin_layout Plain Layout
22775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22778 \begin_layout Plain Layout
22784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22787 \begin_layout Plain Layout
22793 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22796 \begin_layout Plain Layout
22802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22805 \begin_layout Plain Layout
22811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22814 \begin_layout Plain Layout
22833 \begin_layout Standard
22834 LyX does not natively support dashed lines, so you have to use TeX-Code.
22835 As a prerequisite the LaTeX-package
22840 \begin_inset Index idx
22843 \begin_layout Plain Layout
22844 LaTeX-packages ! arydshln
22849 must be loaded in the document preamble with the command
22852 \begin_layout Standard
22857 usepackage{arydshln}
22860 \begin_layout Standard
22861 To make a vertical line dashed, enter the colon
22862 \begin_inset Quotes eld
22866 \begin_inset Quotes erd
22869 together with the character for the horizontal alignment as LaTeX-argument
22870 in the table cell dialog.
22873 \begin_layout Standard
22874 For a horizontal dashed line add the command
22877 \begin_layout Standard
22885 \begin_layout Standard
22886 in TeX-Code as first element of the first cell in the table row.
22889 \begin_layout Standard
22890 For dashed multicolumn lines use the command
22893 \begin_layout Standard
22898 cdashline{line number
22903 \begin_layout Standard
22904 in TeX-Code as the first element of the first cell in the table row.
22905 If you have for example a multicolumn spanning columns 2 to 4 and you want
22906 to have a dashed line above, add the command
22909 \begin_layout Standard
22917 \begin_layout Standard
22918 as the first element of the first cell in the row of the multicolumn.
22921 \begin_layout Standard
22922 \begin_inset VSpace bigskip
22928 \begin_layout Standard
22930 \begin_inset space ~
22934 \begin_inset CommandInset ref
22936 reference "tab:Table-with-dashed"
22941 \begin_inset Quotes eld
22949 \begin_inset Quotes erd
22952 as LaTeX-argument of the third column.
22953 The TeX-Code command
22959 was inserted in the first cell of the third row and the TeX-Code command
22960 \begin_inset Newline newline
22969 was inserted in the first cell of the fourth row.
22972 \begin_layout Standard
22973 \begin_inset VSpace bigskip
22979 \begin_layout Standard
22980 Tables with dashed lines can also be colored as shown by Table
22981 \begin_inset space ~
22985 \begin_inset CommandInset ref
22987 reference "tab:Colored-table-with"
22994 \begin_layout Standard
22998 \begin_layout Plain Layout
23004 arrayrulewidth}{1pt}
23010 \begin_inset Note Note
23013 \begin_layout Plain Layout
23014 thicker lines for better visualization of the line color
23022 \begin_layout Standard
23026 \begin_layout Plain Layout
23030 dashgapcolor{green}
23036 \begin_inset Note Note
23039 \begin_layout Plain Layout
23040 color gaps between dashes green
23048 \begin_layout Standard
23052 \begin_layout Plain Layout
23063 \begin_layout Plain Layout
23072 \begin_layout Plain Layout
23076 arrayrulecolor{red}
23080 arrayrulecolor{black}}
23086 \begin_inset Note Note
23089 \begin_layout Plain Layout
23090 color horizontal, dashed lines red
23098 \begin_layout Standard
23102 \begin_layout Plain Layout
23113 \begin_layout Plain Layout
23122 \begin_layout Plain Layout
23126 arrayrulecolor{yellow}
23130 arrayrulecolor{black}}
23136 \begin_inset Note Note
23139 \begin_layout Plain Layout
23140 color partial horizontal, dashed lines yellow
23148 \begin_layout Standard
23149 \begin_inset Float table
23155 \begin_layout Plain Layout
23156 \begin_inset Caption Standard
23158 \begin_layout Plain Layout
23159 \begin_inset CommandInset label
23161 name "tab:Colored-table-with"
23165 Colored table with dashed lines
23173 \begin_layout Plain Layout
23175 \begin_inset Tabular
23176 <lyxtabular version="3" rows="5" columns="5">
23177 <features rotate="0" tabularvalignment="middle">
23178 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23179 <column alignment="center" valignment="top" width="0pt">
23180 <column alignment="center" valignment="top" width="0pt" special=":c">
23181 <column alignment="center" valignment="top">
23182 <column alignment="center" valignment="top">
23184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23187 \begin_layout Plain Layout
23193 <cell alignment="center" valignment="top" topline="true" usebox="none">
23196 \begin_layout Plain Layout
23202 <cell alignment="center" valignment="top" topline="true" usebox="none">
23205 \begin_layout Plain Layout
23211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23214 \begin_layout Plain Layout
23220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23223 \begin_layout Plain Layout
23231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23234 \begin_layout Plain Layout
23240 <cell alignment="center" valignment="top" topline="true" usebox="none">
23243 \begin_layout Plain Layout
23249 <cell alignment="center" valignment="top" topline="true" usebox="none">
23252 \begin_layout Plain Layout
23258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23261 \begin_layout Plain Layout
23267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23270 \begin_layout Plain Layout
23278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23281 \begin_layout Plain Layout
23285 \begin_layout Plain Layout
23298 \begin_layout Plain Layout
23312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23315 \begin_layout Plain Layout
23321 <cell alignment="center" valignment="top" usebox="none">
23324 \begin_layout Plain Layout
23330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23333 \begin_layout Plain Layout
23339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23342 \begin_layout Plain Layout
23350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23353 \begin_layout Plain Layout
23357 \begin_layout Plain Layout
23371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23374 \begin_layout Plain Layout
23380 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23383 \begin_layout Plain Layout
23389 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23392 \begin_layout Plain Layout
23398 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23401 \begin_layout Plain Layout
23409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23412 \begin_layout Plain Layout
23418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23421 \begin_layout Plain Layout
23427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23430 \begin_layout Plain Layout
23436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23439 \begin_layout Plain Layout
23445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23448 \begin_layout Plain Layout
23452 \begin_layout Plain Layout
23479 \begin_layout Standard
23483 \begin_layout Plain Layout
23497 \begin_inset Note Note
23500 \begin_layout Plain Layout
23509 \begin_layout Standard
23513 \begin_layout Plain Layout
23527 \begin_inset Note Note
23530 \begin_layout Plain Layout
23539 \begin_layout Standard
23543 \begin_layout Plain Layout
23553 \begin_inset Note Note
23556 \begin_layout Plain Layout
23565 \begin_layout Standard
23569 \begin_layout Plain Layout
23575 arrayrulewidth}{0.4pt}
23581 \begin_inset Note Note
23584 \begin_layout Plain Layout
23593 \begin_layout Standard
23594 The coloring of lines, columns and lines works as decribed in section
23595 \begin_inset space ~
23599 \begin_inset CommandInset ref
23601 reference "sec:Colored-Tables"
23606 Coloring horizontal lines works analogically as described there as well,
23607 one only needs to replace in the commands
23631 ; so one uses the command
23634 \begin_layout Standard
23644 \begin_inset Newline newline
23652 \begin_inset Newline newline
23656 \begin_inset Phantom HPhantom
23659 \begin_layout Plain Layout
23660 \begin_inset space ~
23670 arrayrulecolor{red}
23674 arrayrulecolor{black}}
23677 \begin_layout Standard
23687 \begin_layout Standard
23697 \begin_inset Newline newline
23705 \begin_inset Newline newline
23709 \begin_inset Phantom HPhantom
23712 \begin_layout Plain Layout
23713 \begin_inset space ~
23723 arrayrulecolor{red}
23727 arrayrulecolor{black}}
23730 \begin_layout Standard
23731 To get back the black line color, one needs to insert the following commands
23732 as TeX-Code behind the table:
23735 \begin_layout Standard
23743 \begin_layout Standard
23755 \begin_layout Standard
23763 \begin_layout Standard
23775 \begin_layout Standard
23776 To color the gaps between the dashes the command
23779 \begin_layout Standard
23784 dashgapcolor{color}
23787 \begin_layout Standard
23788 can be used in front of a table as TeX-Code.
23789 color is hereby the name of a defined color.
23793 \begin_layout Standard
23801 \begin_layout Standard
23802 unsets the changes made by
23811 \begin_layout Standard
23812 \begin_inset Note Greyedout
23815 \begin_layout Plain Layout
23821 : If there are multiple commands in a cell, the command of
23825 needs to be the first one in the cell.
23831 \begin_inset space ~
23835 \begin_inset CommandInset ref
23837 reference "tab:Colored-table-with"
23861 \begin_layout Standard
23862 \begin_inset Note Greyedout
23865 \begin_layout Plain Layout
23875 must be loaded in the document preamble before the LaTeX-package
23880 \begin_inset Index idx
23883 \begin_layout Plain Layout
23884 LaTeX-packages ! colortbl
23897 \begin_layout Standard
23901 \begin_layout Plain Layout
23911 \begin_inset Note Note
23914 \begin_layout Plain Layout
23915 The following will be displayed when the LaTeX-package
23927 \begin_layout Standard
23928 You need to install the package
23932 to see the content of this section in the output.
23935 \begin_layout Standard
23939 \begin_layout Plain Layout
23951 \begin_layout Standard
23952 For more information about dashed lines see the documentation of
23957 \begin_inset CommandInset citation
23966 \begin_layout Chapter
23968 \begin_inset CommandInset label
23975 \begin_inset Index idx
23978 \begin_layout Plain Layout
23987 \begin_layout Section
23989 \begin_inset CommandInset label
23991 name "sec:FloatIntroduction"
23996 \begin_inset Index idx
23999 \begin_layout Plain Layout
24000 Floats ! Introduction
24008 \begin_layout Standard
24009 A float is a block of text associated with some sort of label, which doesn't
24010 have a fixed location.
24012 \begin_inset Quotes eld
24016 \begin_inset Quotes erd
24019 forward or backward a page or two, to wherever it fits best.
24027 \begin_inset space ~
24032 are also floats because they can float to the next page when there are
24033 too many notes on the page.
24036 \begin_layout Standard
24037 Floats allow a high quality layout.
24038 Images and tables can be spread evenly among the pages to avoid white space
24039 and pages without text.
24040 As the floating often destroys the context between the text and the image/table
24041 , every float can be referenced in the text.
24042 Floats are therefore numbered.
24043 Referencing is described in section
24044 \begin_inset space ~
24048 \begin_inset CommandInset ref
24050 reference "sec:Referencing-Floats"
24057 \begin_layout Standard
24058 To insert a float, use the menu
24060 Insert\SpecialChar \menuseparator
24066 arg "float-insert figure"
24072 arg "float-insert table"
24080 inset, a box with a label.
24081 The label will automatically be translated to the document language in
24083 After the label you can insert the caption text.
24084 The image or table is inserted above or below the caption in a separate
24085 paragraph within the float.
24086 More about the caption placement is contained in section
24087 \begin_inset space ~
24091 \begin_inset CommandInset ref
24093 reference "sec:Caption-Placement"
24098 To keep your LyX-document readable, you can open and close the float box
24099 by left-clicking on the box label.
24100 A closed float box looks like this:
24101 \begin_inset Graphics
24102 filename clipart/floatQt4.png
24104 scaleBeforeRotation
24108 – a gray button with a red label.
24111 \begin_layout Standard
24112 It is recommended that you insert floats as separate standard paragraphs
24113 to avoid possible LaTeX-errors that can occur when the surrounding text
24114 is specially formatted.
24117 \begin_layout Standard
24118 Existing figures or tables can be put into a float by highlighting them
24119 and then pressing the corresponding toolbar button for a new float.
24122 \begin_layout Section
24126 \begin_layout Standard
24127 Besides figure and table floats that are described in sections
24128 \begin_inset space ~
24132 \begin_inset CommandInset ref
24134 reference "sec:Figure-Floats"
24139 \begin_inset CommandInset ref
24141 reference "sec:Table-Floats"
24145 respectively, LyX offers the float types
24154 The latter are explained in sec.
24155 \begin_inset space \thinspace{}
24159 \begin_inset CommandInset ref
24161 reference "sec:Wrap-Floats"
24168 \begin_layout Subsection
24170 \begin_inset Index idx
24173 \begin_layout Plain Layout
24174 Floats ! Algorithms
24182 \begin_layout Standard
24183 \begin_inset Float algorithm
24189 \begin_layout Plain Layout
24190 \begin_inset Caption Standard
24192 \begin_layout Plain Layout
24193 \begin_inset CommandInset label
24195 name "alg:Example-Algorithm-float"
24199 Example Algorithm float
24207 \begin_layout LyX-Code
24209 \begin_inset Newline newline
24212 Sum:= Sum + A(I); /*comment*/
24213 \begin_inset Newline newline
24217 \begin_inset VSpace -4mm
24228 \begin_layout Standard
24229 This float type is inserted with the menu
24231 Insert\SpecialChar \menuseparator
24232 Float\SpecialChar \menuseparator
24236 It is used for program codes and descriptions of algorithms and can be
24237 seen as an alternative to program code listings that are explained in chapter
24238 \begin_inset space ~
24242 \begin_inset CommandInset ref
24244 reference "cha:Program-Code-Listings"
24249 A possible environment for algorithms is the
24253 , described in LyX's
24259 \begin_inset space ~
24263 \begin_inset CommandInset ref
24265 reference "alg:Example-Algorithm-float"
24269 is an example of an algorithm float where -4
24270 \begin_inset space \thinspace{}
24273 mm vertical space was added at the end of the float to have the bottom rule
24274 exactly below the last text line.
24277 \begin_layout Standard
24278 The float label is not automatically translated into the document language.
24279 If your document is not in English, you have to do this manually by adding
24280 the following line to the document preamble
24285 \begin_layout Standard
24290 floatname{algorithm}{your
24291 \begin_inset space ~
24297 \begin_layout Standard
24301 \begin_inset space ~
24307 \begin_inset Quotes eld
24315 \begin_inset Quotes erd
24321 \begin_layout Standard
24322 To insert the list of algorithms you can use the menu
24324 Insert\SpecialChar \menuseparator
24326 \begin_inset space \thinspace{}
24330 \begin_inset space \thinspace{}
24333 TOC\SpecialChar \menuseparator
24336 when your document has the same language as LyX's menu names.
24337 In other cases use this command in TeX-Code instead:
24340 \begin_layout Standard
24345 listof{algorithm}{your
24346 \begin_inset space ~
24352 \begin_layout Standard
24356 \begin_inset space ~
24362 \begin_inset Quotes eld
24370 \begin_inset Quotes erd
24376 \begin_layout Standard
24377 Algorithm floats are not by default numbered in the scheme
24378 \begin_inset Quotes eld
24382 \begin_inset Quotes erd
24385 as is the case for table and figure floats in many document-classes.
24386 To number algorithm floats in the same scheme, add this command to your
24390 \begin_layout Standard
24395 numberwithin{algorithm}{chapter}
24398 \begin_layout Standard
24399 To be able to use the command
24408 \begin_inset space ~
24413 in the document settings the option
24416 \begin_inset space ~
24420 \begin_inset space ~
24424 \begin_inset space ~
24432 \begin_layout Section
24434 \begin_inset Index idx
24437 \begin_layout Plain Layout
24446 \begin_layout Standard
24447 Floats are usually numbered either independently from the sections the floats
24448 are in, or in the scheme
24449 \begin_inset Quotes eld
24453 \begin_inset Quotes erd
24457 \begin_inset Quotes eld
24461 \begin_inset Quotes erd
24465 This depends on the document class used.
24468 \begin_layout Standard
24469 To change section-independent numbering, you can use this command in the
24473 \begin_layout Standard
24485 \begin_layout Standard
24492 is the command that prints the table number.
24493 For figure floats, the command would be
24506 in the command above prints the table number as a small roman number.
24509 \begin_layout Standard
24510 To change the numbering scheme for example to
24511 \begin_inset Quotes eld
24515 \begin_inset Quotes erd
24518 , use this command in the preamble:
24521 \begin_layout Standard
24526 numberwithin{table}{subsection}
24529 \begin_layout Standard
24530 To be able to use the command
24539 \begin_inset space ~
24544 in the document settings the option
24547 \begin_inset space ~
24551 \begin_inset space ~
24555 \begin_inset space ~
24563 \begin_layout Standard
24564 Please also have a look at section
24565 \begin_inset space ~
24569 \begin_inset CommandInset ref
24571 reference "sub:Footnote-Numbering"
24575 for the details and important notes about the numbering commands.
24578 \begin_layout Section
24580 \begin_inset CommandInset label
24582 name "sec:Referencing-Floats"
24587 \begin_inset Index idx
24590 \begin_layout Plain Layout
24591 Floats ! References
24597 \begin_inset Index idx
24600 \begin_layout Plain Layout
24601 References ! to Floats
24609 \begin_layout Standard
24610 To reference a float, insert a label into its caption using the menu
24612 Insert\SpecialChar \menuseparator
24615 or the toolbar button
24622 A grey label box like this one:
24623 \begin_inset Graphics
24624 filename clipart/labelQt4.png
24626 scaleBeforeRotation
24630 will be inserted and the label window pops up asking for the label text.
24631 LyX offers as text the first words of the caption with a prefix.
24632 The prefix depends on the float type, e.
24633 \begin_inset space \thinspace{}
24637 \begin_inset space \space{}
24640 for figure floats the prefix will be "
24647 \begin_layout Standard
24648 The label is used as anchor and name for the reference.
24649 You can refer to the label using the menu
24651 Insert\SpecialChar \menuseparator
24654 or the toolbar button
24657 arg "dialog-show-new-inset ref"
24661 The cross-reference window appears showing all labels of the document.
24662 If you have multiple LyX-documents opened, choose the one you are working
24663 on from the drop-list at the top of the dialog.
24664 You can now sort the labels alphabetically and then choose one.
24665 A grey cross-reference box like this one:
24666 \begin_inset Graphics
24667 filename clipart/referenceQt4.png
24669 scaleBeforeRotation
24674 At the position of the cross-reference box the float number will appear
24678 \begin_layout Standard
24679 It is recommended that you use a protected space between the cross-reference
24680 name and its number to avoid line breaks between them.
24681 If a cross-reference refers to a non-existing label, you will see two question
24682 marks in the output instead of the reference.
24685 \begin_layout Standard
24686 You can change labels at any time by clicking on the label box.
24687 References to the changed label will automatically update their links to
24688 the new label text.
24691 \begin_layout Standard
24695 \begin_inset space ~
24699 \begin_inset space ~
24704 in the cross-reference window sets the cursor before the referred label.
24705 The button text changes then to Go
24706 \begin_inset space ~
24709 Back and you can use it to set the cursor back to the cross-reference.
24712 \begin_layout Subsection
24713 Cross-Reference Formats
24714 \begin_inset CommandInset label
24716 name "sub:Cross-Reference-Formats"
24721 \begin_inset Index idx
24724 \begin_layout Plain Layout
24725 References ! Formats
24733 \begin_layout Standard
24734 There are six varieties of cross-references:
24737 \begin_layout Description
24738 <reference>: prints the float number, this is the default:
24739 \begin_inset CommandInset ref
24741 reference "fig:Two-distorted-images"
24748 \begin_layout Description
24749 (<reference>): prints the float number within two parentheses, this is the
24750 style normally used to reference formulas, especially when the reference
24752 \begin_inset Quotes eld
24756 \begin_inset Quotes erd
24760 \begin_inset CommandInset ref
24769 \begin_layout Description
24770 <page>: prints the page number: Page
24771 \begin_inset space ~
24775 \begin_inset CommandInset ref
24776 LatexCommand pageref
24777 reference "fig:Two-distorted-images"
24784 \begin_layout Description
24786 \begin_inset space ~
24790 \begin_inset space ~
24793 <page>: prints the text "on page" and the page number:
24794 \begin_inset CommandInset ref
24795 LatexCommand vpageref
24796 reference "fig:Two-distorted-images"
24803 \begin_layout Description
24805 \begin_inset space ~
24809 \begin_inset space ~
24813 \begin_inset space ~
24816 <page>: prints the float number, the text "on page", and the page number:
24818 \begin_inset CommandInset ref
24820 reference "fig:Two-distorted-images"
24827 \begin_layout Description
24829 \begin_inset space ~
24832 reference: prints a self-defined cross-reference format.
24833 \begin_inset Newline newline
24837 \begin_inset Note Greyedout
24840 \begin_layout Plain Layout
24845 This feature is only available when you have the LaTeX-package
24854 \begin_inset Index idx
24857 \begin_layout Plain Layout
24858 LaTeX-packages ! prettyref
24864 \begin_inset Index idx
24867 \begin_layout Plain Layout
24868 LaTeX-packages ! refstyle
24879 \begin_inset Newline newline
24882 You can select which LaTeX-package should be used for this feature by setting
24885 Use refstyle (not prettyref) for cross-references
24889 Document\SpecialChar \menuseparator
24890 Settings\SpecialChar \menuseparator
24894 The format is specified by adding the command
24906 (refstyle) to the preamble of the document.
24907 For example redefining all references to figures (which have the label
24909 \begin_inset Quotes eld
24917 \begin_inset Quotes erd
24920 ) can be done with this command
24921 \begin_inset Newline newline
24928 newref{fig}{refcmd={Image on page
24933 \begin_inset Newline newline
24936 For more information about the format, have a look at the package documentations
24938 \begin_inset CommandInset citation
24940 key "prettyref,refstyle"
24947 \begin_layout Description
24949 \begin_inset space ~
24952 reference: prints the caption of the reference:
24953 \begin_inset CommandInset ref
24954 LatexCommand nameref
24955 reference "fig:Two-distorted-images"
24962 \begin_layout Standard
24967 will not print the page number if the label is on the previous, the same,
24970 \begin_inset space \thinspace{}
24974 \begin_inset space \space{}
24978 \begin_inset Quotes eld
24986 \begin_inset Quotes erd
24992 <reference> on page <page>
24994 will not print anything about the page if the label is on the same page.
24997 \begin_layout Standard
24998 The number and current page of the part of the document referred to in the
24999 output is automatically calculated by LaTeX.
25000 The varieties are adjusted in the field
25004 of the cross-reference window that appears when you click on the cross-referenc
25008 \begin_layout Standard
25009 \begin_inset Note Greyedout
25012 \begin_layout Plain Layout
25017 It is recommended to use the LaTeX-package
25022 \begin_inset Index idx
25025 \begin_layout Plain Layout
25026 LaTeX-packages ! refstyle
25036 \begin_inset Index idx
25039 \begin_layout Plain Layout
25040 LaTeX-packages ! prettyref
25045 does not know all of LyX's possible label shortcuts
25049 \begin_layout Plain Layout
25050 \begin_inset Quotes eld
25054 \begin_inset Quotes erd
25057 is for example LyX's shortcut for labels in figure captions.
25062 and is not internationalized.
25070 \begin_layout Standard
25071 \begin_inset Note Greyedout
25074 \begin_layout Plain Layout
25079 Due to a bug in the LaTeX-package
25083 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25084 languages that make the period character active (like French).
25085 For a workaround, see
25086 \begin_inset Newline newline
25090 \begin_inset CommandInset href
25092 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25104 \begin_layout Subsection
25105 Automatic Reference Naming
25106 \begin_inset Index idx
25109 \begin_layout Plain Layout
25110 References ! Automatic Reference Naming
25118 \begin_layout Standard
25124 \begin_inset Index idx
25127 \begin_layout Plain Layout
25128 LaTeX-packages ! hyperref
25133 , that is enabled in the
25141 dialog, provides a very useful feature that cross-references automatically
25142 include the name of the referenced floats (or text parts like
25147 So you will save having to write e.
25148 \begin_inset space \thinspace{}
25152 \begin_inset space \space{}
25156 \begin_inset Quotes eld
25160 \begin_inset Quotes erd
25163 before every reference to a figure.
25164 To use this feature, enable
25168 and insert this line to the LaTeX preamble:
25171 \begin_layout Standard
25187 \begin_layout Standard
25188 When you prefer other reference names than the default ones, for example
25189 you want instead of
25190 \begin_inset Quotes eld
25194 \begin_inset Quotes erd
25198 \begin_inset Quotes eld
25202 \begin_inset space \thinspace{}
25206 \begin_inset Quotes eld
25209 , you can redefine the name by inserting this in the preamble:
25212 \begin_layout Standard
25223 sectionautorefname}
25224 \begin_inset Newline newline
25228 \begin_inset Phantom HPhantom
25231 \begin_layout Plain Layout
25234 \begin_inset space ~
25247 \begin_layout Standard
25248 When you are using another document language than English, replace
25249 \begin_inset Newline newline
25264 , where *** is the name of the language used.
25267 \begin_layout Standard
25268 To get automatic names, but not for certain reference types, for example
25269 not for equations, use this preamble code:
25272 \begin_layout Standard
25283 equationautorefname}[1]{}}
25286 \begin_layout Standard
25287 More about this topic can be found in
25292 \begin_inset CommandInset citation
25301 \begin_layout Standard
25302 \begin_inset Note Greyedout
25305 \begin_layout Plain Layout
25310 Automatic reference naming cannot be used when you use cross-references
25314 \begin_inset space ~
25319 style, as described in section
25320 \begin_inset space ~
25324 \begin_inset CommandInset ref
25326 reference "sub:Cross-Reference-Formats"
25338 \begin_layout Standard
25343 manual is an example where automatic reference naming is used.
25346 \begin_layout Subsection
25348 \begin_inset CommandInset label
25350 name "sub:Reference-Position"
25355 \begin_inset Index idx
25358 \begin_layout Plain Layout
25359 References ! Reference Position
25367 \begin_layout Standard
25373 \begin_inset Index idx
25376 \begin_layout Plain Layout
25377 LaTeX-packages ! hyperref
25390 dialog to link cross-references in the output, you will see that clicking
25391 on an image float reference jumps to the image label.
25392 The caption will be the first text part on the screen, so that you cannot
25393 see the image without scrolling.
25394 This is because the reference link anchor is placed at the position of
25396 With the use of the package
25401 \begin_inset Index idx
25404 \begin_layout Plain Layout
25405 LaTeX-packages ! hypcap
25410 , which is part of the LaTeX-package
25415 \begin_inset Index idx
25418 \begin_layout Plain Layout
25419 LaTeX-packages ! oberdiek
25424 , the link anchor is placed at the beginning of a float.
25425 To use this feature for figure floats, load
25429 in the document preamble with the line
25432 \begin_layout Standard
25437 usepackage[figure]{hypcap}
25440 \begin_layout Standard
25445 for all float types but this is not recommended for stability reasons.
25446 For more information, have a look at
25451 \begin_inset CommandInset citation
25460 \begin_layout Standard
25461 \begin_inset Note Greyedout
25464 \begin_layout Plain Layout
25473 has no effect on references to subfigures.
25481 \begin_layout Section
25483 \begin_inset CommandInset label
25485 name "sec:Float-Placement"
25490 \begin_inset Index idx
25493 \begin_layout Plain Layout
25502 \begin_layout Standard
25503 Right-clicking on a float-box and clicking on
25507 opens a dialog where you can alter the placement options that LaTeX uses
25508 for positioning the float.
25509 \begin_inset Newline newline
25515 \begin_inset space ~
25520 is only useful for two-column documents: If you select it, the float will
25521 span both columns on the page instead of being confined to just one.
25522 \begin_inset Newline newline
25528 \begin_inset space ~
25533 is used to rotate floats, see section
25534 \begin_inset CommandInset ref
25536 reference "sec:Rotated-Floats"
25543 \begin_layout Standard
25544 You can use one or more of the following options in the float dialog to
25545 set the placement for a particular float when you uncheck the option
25548 \begin_inset space ~
25552 \begin_inset space ~
25560 \begin_layout Description
25562 \begin_inset space ~
25566 \begin_inset space ~
25569 possible try to place the float on the position where it has been inserted
25572 \begin_layout Description
25574 \begin_inset space ~
25578 \begin_inset space ~
25581 page try to place the float at the top of the current page
25584 \begin_layout Description
25586 \begin_inset space ~
25590 \begin_inset space ~
25593 page try to place the float at the bottom of the current page
25596 \begin_layout Description
25598 \begin_inset space ~
25602 \begin_inset space ~
25605 floats try to place the float on its own page
25608 \begin_layout Standard
25609 The order of the above option is
25614 That means, if you use the default placement, LaTeX will first try out
25618 \begin_inset space ~
25622 \begin_inset space ~
25630 \begin_inset space ~
25634 \begin_inset space ~
25639 , and then the others.
25640 If you do not use the default, LaTeX will try only the checked options
25641 but in the same order.
25643 \begin_inset space ~
25646 placements is possible the procedure is internally repeated trying to put
25647 the float on the following page.
25650 \begin_layout Standard
25651 By default, each option has its own rules:
25654 \begin_layout Labeling
25655 \labelwidthstring 00.00.0000
25659 \begin_inset space ~
25663 \begin_inset space ~
25668 only floats occupying less than 70
25669 \begin_inset space \thinspace{}
25672 % of the page can be placed at the top of a page (
25681 \begin_layout Labeling
25682 \labelwidthstring 00.00.0000
25686 \begin_inset space ~
25690 \begin_inset space ~
25695 : only floats occupying less than 30
25696 \begin_inset space \thinspace{}
25699 % of the page can be placed at the bottom of a page.
25709 \begin_layout Labeling
25710 \labelwidthstring 00.00.0000
25714 \begin_inset space ~
25718 \begin_inset space ~
25723 : only if more than 50
25724 \begin_inset space \thinspace{}
25727 % of the page is occupied by floats, several floats can be set together
25738 \begin_layout Standard
25739 If you don't like these rules, you can ignore them by using the additional
25743 \begin_inset space ~
25747 \begin_inset space ~
25753 \begin_inset Newline newline
25756 You can also redefine the rules with LaTeX-commands that are given in parenthese
25757 s after the rules description above.
25758 To increase for example the often too small default of the bottom-rule
25760 \begin_inset space \thinspace{}
25763 % of the page, add this line to your document preamble:
25766 \begin_layout Standard
25773 bottomfraction}{0.5}
25776 \begin_layout Standard
25777 Sometimes you might need, under all circumstances, a float to be placed
25778 exactly at the position where it is inserted.
25779 For this case you can use the option
25782 \begin_inset space ~
25788 Use this option very rarely and only if the document is almost ready to
25789 be printed, because the float is then no longer able to
25790 \begin_inset Quotes eld
25794 \begin_inset Quotes erd
25797 when you change your document and this will often destroy the page layout.
25800 \begin_layout Standard
25801 There are no placement options for text wrap floats, because they are always
25802 surrounded by the text of a certain paragraph.
25803 \begin_inset VSpace bigskip
25809 \begin_layout Standard
25810 Sometimes you have the problem that a float is placed at the top of a page
25811 while its corresponding section starts at the middle of the page, so that
25812 the reader could think the float is part of the previous section.
25813 To avoid this the LaTeX-command
25820 It suppresses a given float placement for the page where it is inserted
25821 and can therefore be used to avoid floats being set before a section starts.
25822 To get this, add these commands to your document preamble:
25825 \begin_layout Standard
25835 \begin_inset Newline newline
25849 \begin_layout Standard
25850 You can define the same for all section headings, like chapters and subsections.
25851 This definition is not recommended to be used for small text parts like
25852 subsubsections because LaTeX may then have problems finding a suitable
25856 \begin_layout Standard
25857 \begin_inset VSpace bigskip
25860 In some cases it is required to have all figures/tables at the end of the
25862 For this purpose the LaTeX-package
25867 \begin_inset Index idx
25870 \begin_layout Plain Layout
25871 LaTeX-packages ! endfloat
25877 It puts all figure and table floats at the end of the document into their
25879 At the original float position a text hint like
25880 \begin_inset Quotes eld
25886 \begin_inset space ~
25892 \begin_inset Quotes erd
25896 The endfloat-package is loaded in the preamble with the line
25899 \begin_layout Standard
25904 usepackage[options]{endfloat}
25907 \begin_layout Standard
25908 There are various package options to format the created figure/table sections.
25909 For more information we refer you to the
25914 \begin_inset CommandInset citation
25921 \begin_inset Newline newline
25925 \begin_inset Note Greyedout
25928 \begin_layout Plain Layout
25933 doesn't provide an automatic translation for the text hint, you have to
25934 do this manually, see section
25935 \begin_inset space ~
25939 \begin_inset CommandInset citation
25951 \begin_inset Newline newline
25955 \begin_inset Note Greyedout
25958 \begin_layout Plain Layout
25963 There is currently a bug in
25967 when the caption contains a German
25968 \begin_inset Quotes eld
25972 \begin_inset Quotes erd
25976 Use in this case the command
25977 \begin_inset Quotes eld
25987 \begin_inset Quotes erd
25990 in TeX-Code instead of
25991 \begin_inset Quotes eld
25995 \begin_inset Quotes erd
26006 \begin_layout Standard
26007 \begin_inset VSpace bigskip
26010 For more details about float placements, have a look at LaTeX books,
26011 \begin_inset CommandInset citation
26013 key "latexcompanion,latexguide,latexbook"
26020 \begin_layout Section
26022 \begin_inset CommandInset label
26024 name "sec:Rotated-Floats"
26029 \begin_inset Index idx
26032 \begin_layout Plain Layout
26041 \begin_layout Standard
26042 Especially for wide tables you might have floats rotated.
26043 To rotate a whole float including the caption, right-click on the float-box
26047 \begin_inset space ~
26055 \begin_layout Standard
26056 Rotated floats are always placed on a page of their own (or column of their
26057 own; in case you have a multi-column document).
26058 You can let them span several columns using the float settings option
26061 \begin_inset space ~
26067 Floats are rotated so that you can read them from the outside margin.
26068 To force a certain rotation direction for all pages, you can add either
26077 to the document class options.
26080 \begin_layout Standard
26081 Referencing rotated floats is the same as for normal floats, the caption
26082 format is also the same: Table
26083 \begin_inset space ~
26087 \begin_inset CommandInset ref
26089 reference "tab:Rotated-table"
26093 is an example of a rotated table float.
26096 \begin_layout Standard
26097 \begin_inset Note Greyedout
26100 \begin_layout Plain Layout
26105 Not all DVI-viewers are able to display rotated floats.
26113 \begin_layout Standard
26114 \begin_inset Float table
26119 \begin_layout Plain Layout
26120 \begin_inset Caption Standard
26122 \begin_layout Plain Layout
26123 \begin_inset CommandInset label
26125 name "tab:Rotated-table"
26137 \begin_layout Plain Layout
26139 \begin_inset Tabular
26140 <lyxtabular version="3" rows="1" columns="5">
26141 <features rotate="0" tabularvalignment="middle">
26142 <column alignment="center" valignment="top">
26143 <column alignment="center" valignment="top">
26144 <column alignment="center" valignment="top">
26145 <column alignment="center" valignment="top">
26146 <column alignment="center" valignment="top">
26148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26151 \begin_layout Plain Layout
26157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26160 \begin_layout Plain Layout
26166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26169 \begin_layout Plain Layout
26175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26178 \begin_layout Plain Layout
26184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26187 \begin_layout Plain Layout
26206 \begin_layout Section
26208 \begin_inset Index idx
26211 \begin_layout Plain Layout
26220 \begin_layout Standard
26221 Subfloats are for example used when a figure consists of several images.
26222 They are created by inserting a float into an existing float.
26223 The placement of the subfloats can be controlled in the same way as for
26224 paragraphs as shown in table
26225 \begin_inset space ~
26229 \begin_inset CommandInset ref
26231 reference "tab:Two-subtables-side"
26236 \begin_inset CommandInset ref
26238 reference "tab:Two-subtables-upon"
26245 \begin_layout Standard
26246 Referencing subfloats works as for normal floats: Table
26247 \begin_inset space ~
26251 \begin_inset CommandInset ref
26253 reference "tab:This-is-subtable-a"
26258 \begin_inset CommandInset ref
26260 reference "tab:This-is-subtable-b"
26264 are subtables of table
26265 \begin_inset space ~
26269 \begin_inset CommandInset ref
26271 reference "tab:Two-subtables-side"
26278 \begin_layout Standard
26279 \begin_inset Float table
26284 \begin_layout Plain Layout
26285 \begin_inset Caption Standard
26287 \begin_layout Plain Layout
26288 \begin_inset CommandInset label
26290 name "tab:Two-subtables-side"
26294 Two subtables placed side by side.
26302 \begin_layout Plain Layout
26304 \begin_inset space \hfill{}
26308 \begin_inset Float table
26313 \begin_layout Plain Layout
26314 \begin_inset Caption Standard
26316 \begin_layout Plain Layout
26317 \begin_inset CommandInset label
26319 name "tab:This-is-subtable-a"
26323 This is subtable a.
26331 \begin_layout Plain Layout
26333 \begin_inset Tabular
26334 <lyxtabular version="3" rows="1" columns="5">
26335 <features rotate="0" tabularvalignment="middle">
26336 <column alignment="center" valignment="top">
26337 <column alignment="center" valignment="top">
26338 <column alignment="center" valignment="top">
26339 <column alignment="center" valignment="top">
26340 <column alignment="center" valignment="top">
26342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26345 \begin_layout Plain Layout
26351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26354 \begin_layout Plain Layout
26360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26363 \begin_layout Plain Layout
26369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26372 \begin_layout Plain Layout
26378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26381 \begin_layout Plain Layout
26398 \begin_inset space \hfill{}
26402 \begin_inset Float table
26407 \begin_layout Plain Layout
26408 \begin_inset Caption Standard
26410 \begin_layout Plain Layout
26411 \begin_inset CommandInset label
26413 name "tab:This-is-subtable-b"
26417 This is subtable b.
26425 \begin_layout Plain Layout
26427 \begin_inset Tabular
26428 <lyxtabular version="3" rows="1" columns="5">
26429 <features rotate="0" tabularvalignment="middle">
26430 <column alignment="center" valignment="top">
26431 <column alignment="center" valignment="top">
26432 <column alignment="center" valignment="top">
26433 <column alignment="center" valignment="top">
26434 <column alignment="center" valignment="top">
26436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26439 \begin_layout Plain Layout
26445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26448 \begin_layout Plain Layout
26454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26457 \begin_layout Plain Layout
26463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26466 \begin_layout Plain Layout
26472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26475 \begin_layout Plain Layout
26492 \begin_inset space \hfill{}
26503 \begin_layout Standard
26504 \begin_inset Float table
26509 \begin_layout Plain Layout
26510 \begin_inset Caption Standard
26512 \begin_layout Plain Layout
26513 \begin_inset CommandInset label
26515 name "tab:Two-subtables-upon"
26519 Two subtables placed one above the other.
26520 (a) table with 4 cells, (b) table with 5 cells.
26528 \begin_layout Plain Layout
26530 \begin_inset Float table
26535 \begin_layout Plain Layout
26536 \begin_inset Caption Standard
26538 \begin_layout Plain Layout
26547 \begin_layout Plain Layout
26549 \begin_inset Tabular
26550 <lyxtabular version="3" rows="1" columns="4">
26551 <features rotate="0" tabularvalignment="middle">
26552 <column alignment="center" valignment="top">
26553 <column alignment="center" valignment="top">
26554 <column alignment="center" valignment="top">
26555 <column alignment="center" valignment="top">
26557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26560 \begin_layout Plain Layout
26566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26569 \begin_layout Plain Layout
26575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26578 \begin_layout Plain Layout
26584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26587 \begin_layout Plain Layout
26606 \begin_layout Plain Layout
26608 \begin_inset Float table
26613 \begin_layout Plain Layout
26614 \begin_inset Caption Standard
26616 \begin_layout Plain Layout
26625 \begin_layout Plain Layout
26627 \begin_inset Tabular
26628 <lyxtabular version="3" rows="1" columns="5">
26629 <features rotate="0" tabularvalignment="middle">
26630 <column alignment="center" valignment="top">
26631 <column alignment="center" valignment="top">
26632 <column alignment="center" valignment="top">
26633 <column alignment="center" valignment="top">
26634 <column alignment="center" valignment="top">
26636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26639 \begin_layout Plain Layout
26645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26648 \begin_layout Plain Layout
26654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26657 \begin_layout Plain Layout
26663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26666 \begin_layout Plain Layout
26672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26675 \begin_layout Plain Layout
26699 \begin_layout Section
26700 Floats Side by Side
26701 \begin_inset Index idx
26704 \begin_layout Plain Layout
26705 Floats ! Side by side
26713 \begin_layout Standard
26714 To place floats side by side, as in Figures
26715 \begin_inset space ~
26719 \begin_inset CommandInset ref
26721 reference "fig:Float-left"
26726 \begin_inset CommandInset ref
26728 reference "fig:Float-right"
26737 In it two minipage boxes are inserted.
26741 \begin_layout Plain Layout
26742 Minipages are explained in section
26743 \begin_inset space ~
26747 \begin_inset CommandInset ref
26749 reference "sec:Minipages"
26758 The width is set to 45
26759 \begin_inset space \thinspace{}
26763 \begin_inset space \thinspace{}
26766 column% and the box alignment to
26771 The minipage boxes contain the image and the caption in the same way as
26772 they are in a float.
26773 The only difference is that the image unit
26776 \begin_inset space ~
26780 \begin_inset space ~
26785 is now calculated according to the width of the minipage boxes.
26788 \begin_layout Standard
26789 \begin_inset Float figure
26794 \begin_layout Plain Layout
26795 \begin_inset Box Frameless
26805 height_special "totalheight"
26808 \begin_layout Plain Layout
26810 \begin_inset Graphics
26811 filename clipart/mobius.eps
26814 scaleBeforeRotation
26821 \begin_layout Plain Layout
26822 \begin_inset Caption Standard
26824 \begin_layout Plain Layout
26825 \begin_inset CommandInset label
26827 name "fig:Float-left"
26831 Float on the left side.
26842 \begin_inset space \hfill{}
26846 \begin_inset Box Frameless
26856 height_special "totalheight"
26859 \begin_layout Plain Layout
26861 \begin_inset Graphics
26862 filename clipart/platypus.eps
26865 scaleBeforeRotation
26872 \begin_layout Plain Layout
26873 \begin_inset Caption Standard
26875 \begin_layout Plain Layout
26876 \begin_inset CommandInset label
26878 name "fig:Float-right"
26882 Float on the right side.
26895 \begin_layout Plain Layout
26904 \begin_layout Section
26906 \begin_inset Index idx
26909 \begin_layout Plain Layout
26910 Caption ! Formatting
26916 \begin_inset Index idx
26919 \begin_layout Plain Layout
26920 Floats ! Caption Formatting
26926 \begin_inset CommandInset label
26928 name "sec:Caption-Formatting"
26935 \begin_layout Standard
26940 environment is the default paragraph environment for
26945 On the LyX screen captions appear as a label, e.
26946 \begin_inset space \thinspace{}
26950 \begin_inset space \space{}
26954 \begin_inset Quotes eld
26962 \begin_inset Quotes erd
26965 followed by the caption text.
26967 \begin_inset Quotes eld
26971 \begin_inset Quotes erd
26974 is the actual reference number.
26975 By default the label and the number are in the same font as the caption
26976 text and a colon follows the number to divide the label from the text.
26977 This caption format is suitable for many but not all documents.
26981 \begin_layout Standard
26982 To change the default caption format, load the LaTeX-package
26987 \begin_inset Index idx
26990 \begin_layout Plain Layout
26991 LaTeX-packages ! caption
26996 in the document preamble with this line:
26999 \begin_layout Standard
27004 usepackage[format definition]{caption}
27007 \begin_layout Standard
27008 To have for example the label and the number in sans-serif, bold font and
27009 the table captions always above the table as in this document, use the
27013 \begin_layout Standard
27018 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27021 \begin_layout Standard
27022 You can also define different caption formats for the different float types.
27023 In this case load the
27027 package without format specific options and define the different formats
27028 with the help of the command
27031 \begin_layout Standard
27036 captionsetup[float type]{format definition}
27039 \begin_layout Standard
27040 in the document preamble.
27041 For example the caption formats of Figure
27042 \begin_inset space ~
27046 \begin_inset CommandInset ref
27048 reference "fig:This-is-an-fig"
27053 \begin_inset space ~
27057 \begin_inset CommandInset ref
27059 reference "tab:This-is-an-tab"
27063 can be created using these commands in the document preamble:
27066 \begin_layout Standard
27071 usepackage[tableposition=top]{caption}
27074 \begin_inset Newline newline
27081 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27082 \begin_inset Newline newline
27086 \begin_inset Phantom HPhantom
27089 \begin_layout Plain Layout
27094 captionsetup[figure]{
27100 \begin_inset Newline newline
27105 captionsetup[table]{labelfont={bf,sf}}
27108 \begin_layout Standard
27109 \begin_inset Note Greyedout
27112 \begin_layout Plain Layout
27121 has no effect when a
27126 \begin_inset Index idx
27129 \begin_layout Plain Layout
27130 LaTeX-packages ! KOMA-Script
27135 document class is used.
27136 In this case the document class option
27138 captions=tableheading
27148 \begin_layout Standard
27149 For more information about the package
27153 we refer to its documentation
27154 \begin_inset CommandInset citation
27163 \begin_layout Standard
27164 To change the label name from e.
27165 \begin_inset space \thinspace{}
27169 \begin_inset space \space{}
27173 \begin_inset Quotes eld
27177 \begin_inset Quotes erd
27181 \begin_inset Quotes eld
27185 \begin_inset Quotes erd
27188 use this preamble command:
27191 \begin_layout Standard
27198 fnum@figure}{Image~
27203 \begin_layout Standard
27210 inserts the figure number and
27213 \begin_inset Quotes eld
27219 \begin_inset Quotes erd
27222 creates a protected space.
27225 \begin_layout Standard
27226 \begin_inset VSpace bigskip
27234 \begin_inset Index idx
27237 \begin_layout Plain Layout
27238 LaTeX-packages ! KOMA-Script
27245 article (KOMA-Script)
27253 letter (KOMA-Script)
27257 report (KOMA-Script)
27260 \begin_inset space \thinspace{}
27263 ), you can alternatively to the
27271 's built-in command
27278 For example, to have the caption label in bold, add this command to your
27282 \begin_layout Standard
27287 setkomafont{captionlabel}{
27292 \begin_layout Standard
27293 For more information about
27304 \begin_inset CommandInset citation
27313 \begin_layout Standard
27317 \begin_layout Plain Layout
27321 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27328 \begin_inset Note Note
27331 \begin_layout Plain Layout
27332 The caption format is changed only for this example.
27340 \begin_layout Standard
27341 \begin_inset Float figure
27347 \begin_layout Plain Layout
27349 \begin_inset Graphics
27350 filename clipart/mobius.eps
27353 scaleBeforeRotation
27360 \begin_layout Plain Layout
27361 \begin_inset Caption Standard
27363 \begin_layout Plain Layout
27364 \begin_inset CommandInset label
27366 name "fig:This-is-an-fig"
27370 This is an example figure caption that is longer than one line to show the
27371 different caption format.
27372 Here a self-defined caption format is used.
27385 \begin_layout Standard
27389 \begin_layout Plain Layout
27393 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27402 \begin_layout Standard
27403 \begin_inset Float table
27409 \begin_layout Plain Layout
27410 \begin_inset Caption Standard
27412 \begin_layout Plain Layout
27413 \begin_inset CommandInset label
27415 name "tab:This-is-an-tab"
27419 This is an example table caption that is longer than one line to show the
27420 different caption format.
27421 Here the standard caption format for tables in this document is used.
27429 \begin_layout Plain Layout
27431 \begin_inset Tabular
27432 <lyxtabular version="3" rows="1" columns="5">
27433 <features rotate="0" tabularvalignment="middle">
27434 <column alignment="center" valignment="top">
27435 <column alignment="center" valignment="top">
27436 <column alignment="center" valignment="top">
27437 <column alignment="center" valignment="top">
27438 <column alignment="center" valignment="top">
27440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27443 \begin_layout Plain Layout
27449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27452 \begin_layout Plain Layout
27458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27461 \begin_layout Plain Layout
27467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27470 \begin_layout Plain Layout
27476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27479 \begin_layout Plain Layout
27498 \begin_layout Section
27500 \begin_inset Index idx
27503 \begin_layout Plain Layout
27504 Caption ! Placement
27510 \begin_inset Index idx
27513 \begin_layout Plain Layout
27514 Floats ! Caption Placement
27520 \begin_inset CommandInset label
27522 name "sec:Caption-Placement"
27529 \begin_layout Standard
27530 The common caption placement rule is:
27533 \begin_layout Description
27534 Figure: Caption is set below the figure
27537 \begin_layout Description
27538 Table: Caption is set above the table
27541 \begin_layout Standard
27542 Having the caption above the table is unfortunately not supported in LaTeX's
27544 That means if you are using the document classes
27560 there will be no space between the caption and the table.
27561 To insert the necessary space, load the LaTeX-package
27566 \begin_inset Index idx
27569 \begin_layout Plain Layout
27570 LaTeX-packages ! caption
27575 in your document preamble with the option
27579 \begin_layout Plain Layout
27581 \begin_inset space ~
27585 \begin_inset CommandInset ref
27587 reference "sec:Caption-Formatting"
27591 for more information of the package
27603 \begin_layout Standard
27609 \begin_layout Standard
27615 \begin_inset Index idx
27618 \begin_layout Plain Layout
27619 LaTeX-packages ! KOMA-Script
27626 article (KOMA-Script)
27634 letter (KOMA-Script)
27638 report (KOMA-Script)
27641 \begin_inset space \thinspace{}
27644 ), you can alternatively to the
27648 package set the document class option
27652 \begin_layout Plain Layout
27653 That option is used in this document.
27661 \begin_layout Standard
27664 captions=tableheading
27667 \begin_layout Standard
27668 In documents with a KOMA-Script document class you can also right-click
27669 on a caption and mark in the context menu if this should be a caption above
27670 or below the table/figure.
27671 This way you can override the document-wide caption placement for certain
27674 \begin_inset space ~
27678 \begin_inset CommandInset ref
27680 reference "tab:A-caption-marked"
27684 is an example where the caption is marked a being below the table while
27686 For comparison the caption in Table
27687 \begin_inset space ~
27691 \begin_inset CommandInset ref
27693 reference "tab:A-standard-table"
27700 \begin_layout Standard
27701 \begin_inset Float table
27706 \begin_layout Plain Layout
27707 \begin_inset Caption Below
27709 \begin_layout Plain Layout
27710 \begin_inset CommandInset label
27712 name "tab:A-caption-marked"
27716 A caption marked as being below the table.
27724 \begin_layout Plain Layout
27726 \begin_inset Tabular
27727 <lyxtabular version="3" rows="3" columns="3">
27728 <features rotate="0" tabularvalignment="middle">
27729 <column alignment="center" valignment="top" width="0pt">
27730 <column alignment="center" valignment="top" width="0pt">
27731 <column alignment="center" valignment="top" width="0pt">
27733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27736 \begin_layout Plain Layout
27742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27745 \begin_layout Plain Layout
27751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27754 \begin_layout Plain Layout
27762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27765 \begin_layout Plain Layout
27771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27774 \begin_layout Plain Layout
27780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27783 \begin_layout Plain Layout
27791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27794 \begin_layout Plain Layout
27795 \begin_inset Formula $\int x^{2}dx$
27803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27806 \begin_layout Plain Layout
27807 \begin_inset Formula $\left[\begin{array}{cc}
27810 \end{array}\right]$
27818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27821 \begin_layout Plain Layout
27822 \begin_inset Formula $1+1=2$
27843 \begin_layout Standard
27844 \begin_inset Float table
27849 \begin_layout Plain Layout
27850 \begin_inset Caption Standard
27852 \begin_layout Plain Layout
27853 \begin_inset CommandInset label
27855 name "tab:A-standard-table"
27859 A standard table caption.
27867 \begin_layout Plain Layout
27869 \begin_inset Tabular
27870 <lyxtabular version="3" rows="3" columns="3">
27871 <features rotate="0" tabularvalignment="middle">
27872 <column alignment="center" valignment="top" width="0pt">
27873 <column alignment="center" valignment="top" width="0pt">
27874 <column alignment="center" valignment="top" width="0pt">
27876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27879 \begin_layout Plain Layout
27885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27888 \begin_layout Plain Layout
27894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27897 \begin_layout Plain Layout
27905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27908 \begin_layout Plain Layout
27914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27917 \begin_layout Plain Layout
27923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27926 \begin_layout Plain Layout
27934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27937 \begin_layout Plain Layout
27938 \begin_inset Formula $\int x^{2}dx$
27946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27949 \begin_layout Plain Layout
27950 \begin_inset Formula $\left[\begin{array}{cc}
27953 \end{array}\right]$
27961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27964 \begin_layout Plain Layout
27965 \begin_inset Formula $1+1=2$
27986 \begin_layout Standard
27987 \begin_inset VSpace bigskip
27990 It is also possible to set the caption beside a figure or table.
27991 To get this the LaTeX-package
27996 \begin_inset Index idx
27999 \begin_layout Plain Layout
28000 LaTeX-packages ! sidecap
28005 has to be loaded in the document preamble with the line
28008 \begin_layout Standard
28013 usepackage[option]{sidecap}
28016 \begin_layout Standard
28017 If you set no option, the caption is placed on the side of the outer page
28018 margin – to the right on odd pages, to the left on even pages.
28019 You can change the placement to inner margin with the option
28024 To force the placement always to the right or left, use the option
28035 \begin_layout Standard
28039 \begin_layout Plain Layout
28049 \begin_inset Note Note
28052 \begin_layout Plain Layout
28053 The following section will only be displayed when the LaTeX-package
28065 \begin_layout Standard
28066 To place in LyX the caption of a float on the side, it is necessary to add
28067 these commands to the document preamble:
28070 \begin_layout Standard
28072 \begin_inset CommandInset line
28083 \begin_layout Standard
28090 TabBesBeg}[1][1.0]{%
28091 \begin_inset Newline newline
28095 \begin_inset Phantom HPhantom
28098 \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 ~
28139 \begin_inset Newline newline
28143 \begin_inset Phantom HPhantom
28146 \begin_layout Plain Layout
28149 \begin_inset space ~
28159 renewenvironment{table}[1]{
28161 begin{SCtable}[#1]##1}{
28166 \begin_layout Standard
28174 \begin_inset Newline newline
28178 \begin_inset Phantom HPhantom
28181 \begin_layout Plain Layout
28182 \begin_inset space ~
28197 \begin_inset Newline newline
28201 \begin_inset Phantom HPhantom
28204 \begin_layout Plain Layout
28205 \begin_inset space ~
28222 \begin_layout Standard
28229 FigBesBeg}[1][1.0]{%
28230 \begin_inset Newline newline
28234 \begin_inset Phantom HPhantom
28237 \begin_layout Plain Layout
28238 \begin_inset space ~
28253 \begin_inset Newline newline
28257 \begin_inset Phantom HPhantom
28260 \begin_layout Plain Layout
28261 \begin_inset space ~
28276 \begin_inset Newline newline
28280 \begin_inset Phantom HPhantom
28283 \begin_layout Plain Layout
28284 \begin_inset space ~
28294 renewenvironment{figure}[1]{
28296 begin{SCfigure}[#1]##1}{
28301 \begin_layout Standard
28309 \begin_inset Newline newline
28313 \begin_inset Phantom HPhantom
28316 \begin_layout Plain Layout
28317 \begin_inset space ~
28332 \begin_inset Newline newline
28336 \begin_inset Phantom HPhantom
28339 \begin_layout Plain Layout
28340 \begin_inset space ~
28357 \begin_layout Standard
28359 \begin_inset CommandInset line
28370 \begin_layout Standard
28371 The commands allow you to redefine the floats so that the caption is set
28373 For figure floats use the command
28376 \begin_layout Standard
28384 \begin_layout Standard
28385 in TeX-Code before the float.
28386 And insert the command
28389 \begin_layout Standard
28397 \begin_layout Standard
28398 in TeX-Code at the point where you want to get back to the original float
28402 \begin_layout Standard
28403 For table floats use the corresponding commands
28406 \begin_layout Standard
28420 \begin_layout Standard
28422 \begin_inset space ~
28426 \begin_inset CommandInset ref
28428 reference "fig:cap-beside-fig"
28433 \begin_inset space ~
28437 \begin_inset CommandInset ref
28439 reference "tab:cap-beside-tab"
28443 are examples where the caption is set beside.
28446 \begin_layout Standard
28447 You can see in the examples that the caption text appears at the top of
28448 the floats for table floats and at the bottom for figure floats.
28449 To change this, you can use the command
28452 \begin_layout Standard
28457 sidecaptionvpos{float type}{placement}
28460 \begin_layout Standard
28461 in the document preamble or in TeX-Code before the float.
28462 The float type is either
28470 , the placement can be
28471 \begin_inset Quotes eld
28479 \begin_inset Quotes erd
28483 \begin_inset Quotes eld
28491 \begin_inset Quotes erd
28495 \begin_inset Quotes eld
28503 \begin_inset Quotes erd
28507 To have for example the caption of figure floats vertically centered, use
28511 \begin_layout Standard
28516 sidecaptionvpos{figure}{c}
28519 \begin_layout Standard
28520 This was used for Figure
28521 \begin_inset space ~
28525 \begin_inset CommandInset ref
28527 reference "fig:cap-beside-fig-2"
28534 \begin_layout Standard
28535 \begin_inset VSpace medskip
28541 \begin_layout Standard
28542 The default caption width is the width of the image/table.
28543 For thin image/tables, like in Table
28544 \begin_inset space ~
28548 \begin_inset CommandInset ref
28550 reference "tab:cap-beside-tab"
28554 , this leads to captions that are too thin.
28555 You can increase the width by specifying a factor that will be multiplied
28556 with the image/table width to get the caption width.
28557 The caption width will automatically be recalculated in case it would protrude
28558 over the page or column margin due to the specified width.
28563 can either be given as optional argument for
28572 \begin_layout Standard
28580 \begin_layout Standard
28581 or in the definition of
28591 with another value.
28592 If you do the latter, your factor will be the default if
28598 is used without an argument.
28600 \begin_inset space ~
28604 \begin_inset CommandInset ref
28606 reference "tab:cap-beside-tab-wider"
28610 the factor 5 was used.
28613 \begin_layout Standard
28614 \begin_inset Note Greyedout
28617 \begin_layout Plain Layout
28622 For floats with captions set beside, you cannot use the float placement
28626 \begin_inset space ~
28631 because it is not supported by
28643 \begin_layout Standard
28644 \begin_inset VSpace medskip
28647 For more information about the package
28651 we refer to its documentation
28652 \begin_inset CommandInset citation
28661 \begin_layout Standard
28662 \begin_inset Note Greyedout
28665 \begin_layout Plain Layout
28675 \begin_inset Index idx
28678 \begin_layout Plain Layout
28679 LaTeX-packages ! hypcap
28684 , described in section
28685 \begin_inset space ~
28689 \begin_inset CommandInset ref
28691 reference "sub:Reference-Position"
28695 , has no effect on floats with the caption set beside.
28703 \begin_layout Standard
28707 \begin_layout Plain Layout
28719 \begin_layout Standard
28720 \begin_inset Float figure
28725 \begin_layout Plain Layout
28726 \begin_inset Graphics
28727 filename clipart/escher-lsd.eps
28729 scaleBeforeRotation
28736 \begin_layout Plain Layout
28737 \begin_inset Caption Standard
28739 \begin_layout Plain Layout
28740 \begin_inset CommandInset label
28742 name "fig:cap-beside-fig"
28746 This is a caption beside a figure.
28759 \begin_layout Standard
28763 \begin_layout Plain Layout
28775 \begin_layout Standard
28779 \begin_layout Plain Layout
28791 \begin_layout Standard
28792 \begin_inset Float table
28797 \begin_layout Plain Layout
28798 \begin_inset Caption Standard
28800 \begin_layout Plain Layout
28801 \begin_inset CommandInset label
28803 name "tab:cap-beside-tab"
28807 This is a caption beside a table.
28815 \begin_layout Plain Layout
28816 \begin_inset Tabular
28817 <lyxtabular version="3" rows="4" columns="5">
28818 <features rotate="0" tabularvalignment="middle">
28819 <column alignment="center" valignment="top">
28820 <column alignment="center" valignment="top">
28821 <column alignment="center" valignment="top">
28822 <column alignment="center" valignment="top">
28823 <column alignment="center" valignment="top">
28825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28828 \begin_layout Plain Layout
28834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28837 \begin_layout Plain Layout
28843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28846 \begin_layout Plain Layout
28852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28855 \begin_layout Plain Layout
28861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28864 \begin_layout Plain Layout
28872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28875 \begin_layout Plain Layout
28881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28884 \begin_layout Plain Layout
28890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28893 \begin_layout Plain Layout
28899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28902 \begin_layout Plain Layout
28908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28911 \begin_layout Plain Layout
28919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28922 \begin_layout Plain Layout
28928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28931 \begin_layout Plain Layout
28937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28940 \begin_layout Plain Layout
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28949 \begin_layout Plain Layout
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28958 \begin_layout Plain Layout
28966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28969 \begin_layout Plain Layout
28975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28978 \begin_layout Plain Layout
28984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28987 \begin_layout Plain Layout
28993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28996 \begin_layout Plain Layout
29002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29005 \begin_layout Plain Layout
29024 \begin_layout Standard
29028 \begin_layout Plain Layout
29040 \begin_layout Standard
29044 \begin_layout Plain Layout
29057 \begin_layout Plain Layout
29061 sidecaptionvpos{figure}{c}
29067 \begin_inset Float figure
29072 \begin_layout Plain Layout
29073 \begin_inset Graphics
29074 filename clipart/escher-lsd.eps
29076 scaleBeforeRotation
29083 \begin_layout Plain Layout
29084 \begin_inset Caption Standard
29086 \begin_layout Plain Layout
29087 \begin_inset CommandInset label
29089 name "fig:cap-beside-fig-2"
29093 This is a vertically centered caption beside a figure.
29106 \begin_layout Standard
29110 \begin_layout Plain Layout
29122 \begin_layout Standard
29126 \begin_layout Plain Layout
29138 \begin_layout Standard
29139 \begin_inset Float table
29144 \begin_layout Plain Layout
29145 \begin_inset Caption Standard
29147 \begin_layout Plain Layout
29148 \begin_inset CommandInset label
29150 name "tab:cap-beside-tab-wider"
29154 This caption is wider than the one in Table
29155 \begin_inset space ~
29159 \begin_inset CommandInset ref
29161 reference "tab:cap-beside-tab"
29173 \begin_layout Plain Layout
29174 \begin_inset Tabular
29175 <lyxtabular version="3" rows="4" columns="5">
29176 <features rotate="0" tabularvalignment="middle">
29177 <column alignment="center" valignment="top">
29178 <column alignment="center" valignment="top">
29179 <column alignment="center" valignment="top">
29180 <column alignment="center" valignment="top">
29181 <column alignment="center" valignment="top">
29183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29186 \begin_layout Plain Layout
29192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29195 \begin_layout Plain Layout
29201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29204 \begin_layout Plain Layout
29210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29213 \begin_layout Plain Layout
29219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29222 \begin_layout Plain Layout
29230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29233 \begin_layout Plain Layout
29239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29242 \begin_layout Plain Layout
29248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29251 \begin_layout Plain Layout
29257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29260 \begin_layout Plain Layout
29266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29269 \begin_layout Plain Layout
29277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29280 \begin_layout Plain Layout
29286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29289 \begin_layout Plain Layout
29295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29298 \begin_layout Plain Layout
29304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29307 \begin_layout Plain Layout
29313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29316 \begin_layout Plain Layout
29324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29327 \begin_layout Plain Layout
29333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29336 \begin_layout Plain Layout
29342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29345 \begin_layout Plain Layout
29351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29354 \begin_layout Plain Layout
29360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29363 \begin_layout Plain Layout
29382 \begin_layout Standard
29386 \begin_layout Plain Layout
29398 \begin_layout Standard
29402 \begin_layout Plain Layout
29412 \begin_inset Note Note
29415 \begin_layout Plain Layout
29416 The following will be displayed when the LaTeX-package
29428 \begin_layout Standard
29429 You need to install the LaTeX-package
29433 to see the following part of this section in the output.
29436 \begin_layout Standard
29440 \begin_layout Plain Layout
29452 \begin_layout Section
29454 \begin_inset Index idx
29457 \begin_layout Plain Layout
29458 Floats ! Float Lists
29466 \begin_layout Standard
29467 Similar to the table of contents where the sections of the document are
29468 listed, there are listings for all float types, like the figures of the
29470 You can insert them via the
29472 Insert\SpecialChar \menuseparator
29474 \begin_inset space ~
29478 \begin_inset space ~
29486 \begin_layout Standard
29487 The list entries are the float captions or its short title, the float number,
29488 and the page number where they appear in the document.
29491 \begin_layout Standard
29492 You can find the list of figures and tables at the end of this document.
29495 \begin_layout Chapter
29499 \begin_layout Section
29501 \begin_inset Index idx
29504 \begin_layout Plain Layout
29513 \begin_layout Standard
29514 Notes are inserted with the toolbar button
29522 Insert\SpecialChar \menuseparator
29526 There are three types of notes:
29529 \begin_layout Description
29531 \begin_inset space ~
29534 Note This note type is for internal notes that won't appear in the output.
29535 Its note-box looks like this:
29536 \begin_inset Newline newline
29540 \begin_inset Newline newline
29544 \begin_inset Graphics
29545 filename clipart/LyXNoteImageQt4.png
29548 scaleBeforeRotation
29553 \begin_inset Note Note
29556 \begin_layout Plain Layout
29557 This is text in a note box that doesn't appear in the output.
29565 \begin_layout Description
29566 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29567 ent, when you export the document to LaTeX via the menu
29569 File\SpecialChar \menuseparator
29570 Export\SpecialChar \menuseparator
29571 LaTeX (pdflatex) / (plain)
29574 Its note-box looks like this:
29575 \begin_inset Newline newline
29579 \begin_inset Newline newline
29583 \begin_inset Graphics
29584 filename clipart/CommentNoteImageQt4.png
29587 scaleBeforeRotation
29592 \begin_inset Note Comment
29595 \begin_layout Plain Layout
29596 This is text in a note box that only appears as comment in LaTeX-files.
29604 \begin_layout Description
29606 \begin_inset space ~
29609 Out This note will appear in the output as grey text.
29610 Its note-box looks like this:
29611 \begin_inset Newline newline
29615 \begin_inset Newline newline
29619 \begin_inset Graphics
29620 filename clipart/GreyedOutNoteImageQt4.png
29623 scaleBeforeRotation
29628 \begin_inset Newline newline
29635 \begin_layout Plain Layout
29639 renewenvironment{lyxgreyedout}
29642 \begin_layout Plain Layout
29646 textcolor[gray]{0.8}
29656 \begin_inset Note Greyedout
29659 \begin_layout Plain Layout
29664 \begin_layout Plain Layout
29665 This is an example footnote within a greyed out note.
29670 of a comment that appears in the output as grey text.
29679 \begin_layout Plain Layout
29683 renewenvironment{lyxgreyedout}
29686 \begin_layout Plain Layout
29700 \begin_inset Note Note
29703 \begin_layout Plain Layout
29704 The greyed out note is here redefined to show it with the original LyX definitio
29705 n because greyed out notes are redefined in the preamble of this document,
29706 as described below, to have blue text.
29712 \begin_inset Newline newline
29716 \begin_inset Newline newline
29719 As you can see in the example, the first line of greyed out notes is a bit
29720 indented and greyed out notes can have footnotes.
29723 \begin_layout Standard
29724 \begin_inset VSpace bigskip
29727 When you use the toolbar button
29736 \begin_inset space ~
29742 You can switch between the three note types by right-clicking on the note-box.
29747 If you want to turn existing text into a note, mark it and click on the
29761 To change a note to text, press the backspace key when the cursor is in
29762 the first position of a note, or press the delete key when the cursor is
29763 in the very last position of the note, respectively.
29766 \begin_layout Standard
29767 \begin_inset VSpace bigskip
29770 You can change the text color of the greyed out notes in the menu
29772 Document\SpecialChar \menuseparator
29773 Settings\SpecialChar \menuseparator
29779 \begin_layout Section
29781 \begin_inset CommandInset label
29783 name "sec:Footnotes"
29788 \begin_inset Index idx
29791 \begin_layout Plain Layout
29798 \begin_inset Index idx
29801 \begin_layout Plain Layout
29810 \begin_layout Standard
29811 Footnotes can be inserted using the toolbar button
29814 arg "footnote-insert"
29819 Insert\SpecialChar \menuseparator
29823 You will then see the following footnote-box:
29824 \begin_inset Graphics
29825 filename clipart/footnoteQt4.png
29827 scaleBeforeRotation
29835 where you can enter the footnote text.
29836 If you want to turn existing text into a footnote, mark it and click on
29862 key when the cursor is in the first position of a
29874 key when the cursor is in the very last position of the
29885 \begin_layout Standard
29886 Here is an example footnote:
29894 \begin_layout Plain Layout
29895 \begin_inset CommandInset label
29897 name "foot:This-is-an"
29901 This is an example footnote.
29914 \begin_layout Plain Layout
29918 newcounter{MyRepeatFoot}
29921 \begin_layout Plain Layout
29925 setcounter{MyRepeatFoot}{
29935 \begin_layout Standard
29936 The footnote will appear in the output as a superscript number at the text
29937 position where the footnote box is placed.
29938 The footnote text is placed at the bottom of the current page.
29939 The footnote number is calculated by LaTeX; the numbers are consecutive.
29940 Whether the footnote number is reset for every chapter depends on your
29944 \begin_layout Standard
29945 Footnotes can be referenced like floats: Insert a label into the footnote
29946 and cross-reference this label in the text as described in section
29947 \begin_inset space ~
29951 \begin_inset CommandInset ref
29953 reference "sec:Referencing-Floats"
29958 \begin_inset Newline newline
29961 This is a cross-reference of Footnote
29962 \begin_inset space ~
29966 \begin_inset CommandInset ref
29968 reference "foot:This-is-an"
29975 \begin_layout Standard
29976 \begin_inset VSpace defskip
29979 Footnotes in title environments are usually not numbered with symbols and
29980 they cannot contain several paragraphs.
29981 See for example the footnote in the titling of this document.
29984 \begin_layout Standard
29985 \begin_inset VSpace defskip
29988 Footnotes in tables are not printed by LaTeX due to technical reasons.
29989 However there exists another method to print them: Instead of the footnote
29996 is inserted as TeX-code.
29997 The text of the footnote is entered as an argument of the TeX-code command
30005 \begin_inset Newline newline
30008 This was done for the following table with the command
30011 \begin_layout Standard
30018 Printed table footnote.
30023 \begin_layout Standard
30024 \begin_inset Tabular
30025 <lyxtabular version="3" rows="2" columns="1">
30026 <features rotate="0" tabularvalignment="middle">
30027 <column alignment="center" valignment="top">
30029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30032 \begin_layout Plain Layout
30033 This an example text.
30037 \begin_layout Plain Layout
30038 This footnote will not be printed!
30050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30053 \begin_layout Plain Layout
30054 This an example text.
30058 \begin_layout Plain Layout
30081 \begin_layout Plain Layout
30090 Printed table footnote.
30094 \begin_layout Plain Layout
30104 \begin_layout Standard
30105 Footnotes in longtables are described in section
30106 \begin_inset space ~
30110 \begin_inset CommandInset ref
30112 reference "sub:Footnotes-in-Longtables"
30119 \begin_layout Standard
30120 Footnotes in minipage boxes are printed, but inside the box and with a different
30121 numbering because a minipage box is like a page inside a page.
30122 (For more about minipages, see section
30123 \begin_inset space ~
30127 \begin_inset CommandInset ref
30129 reference "sec:Minipages"
30133 .) To get a footnote in the minipage that is output at the bottom of the
30134 page like normal footnotes, also use the method of
30149 \begin_layout Standard
30150 \begin_inset Box Frameless
30160 height_special "totalheight"
30163 \begin_layout Plain Layout
30164 This an example text in a minipage.
30168 \begin_layout Plain Layout
30169 Footnote in the minipage.
30177 \begin_layout Plain Layout
30178 This an example text in a minipage.
30182 \begin_layout Plain Layout
30199 \begin_layout Standard
30203 \begin_layout Plain Layout
30212 Footnote outside the minipage.
30216 \begin_layout Plain Layout
30226 \begin_layout Standard
30227 \begin_inset VSpace defskip
30233 \begin_layout Standard
30234 To refer to the same footnote several times without printing the footnote
30235 text every time, use the command
30239 footnotemark[number]
30242 \begin_inset Newline newline
30245 As you do not know the number of the repeating footnote while you are writing
30246 the text, you have to store its number.
30247 For the following footnote mark example, these commands were inserted in
30248 TeX-code after Footnote
30249 \begin_inset space ~
30253 \begin_inset CommandInset ref
30255 reference "foot:This-is-an"
30259 to store the footnote number:
30262 \begin_layout Standard
30267 newcounter{MyRepeatFoot}
30268 \begin_inset Newline newline
30273 setcounter{MyRepeatFoot}{
30278 \begin_layout Standard
30279 The footnote mark was then created with this command:
30282 \begin_layout Standard
30292 \begin_layout Standard
30293 Here is a repeated footnote:
30301 \begin_layout Plain Layout
30315 \begin_layout Standard
30316 If you want to repeat the previous footnote, you can omit the storage of
30317 the footnote number and just use this command instead:
30320 \begin_layout Standard
30330 \begin_layout Standard
30331 Here is another repeated footnote:
30339 \begin_layout Plain Layout
30353 \begin_layout Subsection
30355 \begin_inset CommandInset label
30357 name "sub:Footnote-Numbering"
30362 \begin_inset Index idx
30365 \begin_layout Plain Layout
30366 Footnotes ! Numbering
30374 \begin_layout Standard
30375 To reset the footnote number back to 1 after each section
30377 , add this command to your document preamble:
30380 \begin_layout Standard
30385 @addtoreset{footnote}{section}
30388 \begin_layout Standard
30389 \begin_inset VSpace bigskip
30392 The following preamble command changes the footnote numbering style to small
30396 \begin_layout Standard
30408 \begin_layout Standard
30412 \begin_layout Plain Layout
30425 This is a footnote with roman numbering:
30429 \begin_layout Plain Layout
30430 This is an example footnote with roman numbering.
30438 \begin_layout Standard
30439 To change the numbering style to capital roman numerals replace in the command
30454 \begin_inset Quotes eld
30458 \begin_inset Quotes erd
30461 footnotes with capital or small Latin letters use
30475 \begin_inset Quotes eld
30479 \begin_inset Quotes erd
30482 footnotes with symbols use
30491 \begin_layout Standard
30492 \begin_inset Note Greyedout
30495 \begin_layout Plain Layout
30500 You can only number 26 footnotes with Latin letters, because this numbering
30501 is limited to single letters.
30507 \begin_inset Newline newline
30511 \begin_inset Note Greyedout
30514 \begin_layout Plain Layout
30519 You can only number 9 footnotes with symbols.
30527 \begin_layout Standard
30528 To return to the default numbering style after you have changed to another
30541 in the command above.
30545 \begin_layout Plain Layout
30561 \begin_layout Standard
30562 \begin_inset VSpace bigskip
30568 \begin_layout Standard
30569 If you want to have footnotes numbered in the scheme
30570 \begin_inset Quotes eld
30574 \begin_inset Quotes erd
30577 , add the following command to your document preamble:
30580 \begin_layout Standard
30585 numberwithin{footnote}{chapter}
30588 \begin_layout Standard
30589 To be able to use the command
30598 \begin_inset space ~
30603 in the document settings the option
30606 \begin_inset space ~
30610 \begin_inset space ~
30614 \begin_inset space ~
30622 \begin_layout Standard
30626 \begin_layout Plain Layout
30630 numberwithin{footnote}{chapter}
30635 This is another example footnote:
30641 \begin_layout Plain Layout
30642 This is a footnote numbered in the scheme
30643 \begin_inset Quotes eld
30647 \begin_inset Quotes erd
30661 \begin_layout Plain Layout
30677 \begin_layout Standard
30678 \begin_inset Note Greyedout
30681 \begin_layout Plain Layout
30692 always prints out the footnote number as arabic number; previous redefinitions
30693 to get non-arabic numbers are overwritten.
30701 \begin_layout Standard
30702 So to get for example the scheme
30703 \begin_inset Quotes eld
30709 \begin_inset Quotes erd
30712 , use this command instead of
30721 \begin_layout Standard
30735 \begin_layout Subsection
30737 \begin_inset Index idx
30740 \begin_layout Plain Layout
30741 Footnotes ! Placement
30749 \begin_layout Standard
30750 If you have several footnotes in one page, they appear without vertical
30751 space between them at the bottom of the page.
30752 To make them more readable you can e.
30753 \begin_inset space \thinspace{}
30757 \begin_inset space \space{}
30761 \begin_inset space \thinspace{}
30764 mm space with the following preamble command:
30767 \begin_layout Standard
30777 \begin_inset Newline newline
30791 \begin_layout Standard
30792 \begin_inset VSpace bigskip
30795 In a two-column document the footnotes appear at the bottom of every column,
30797 \begin_inset space ~
30801 \begin_inset CommandInset ref
30803 reference "fig:Standard-footnote-placement"
30808 If the footnotes should only appear at the bottom of the right column,
30810 \begin_inset space ~
30814 \begin_inset CommandInset ref
30816 reference "fig:Footnote-placement-in"
30820 , use the LaTeX-package
30825 \begin_inset Index idx
30828 \begin_layout Plain Layout
30829 LaTeX-packages ! ftnright
30834 with this command in the document preamble:
30837 \begin_layout Standard
30842 usepackage{ftnright}
30845 \begin_layout Standard
30846 \begin_inset Float figure
30852 \begin_layout Plain Layout
30856 \begin_layout Plain Layout
30866 \begin_inset Graphics
30867 filename clipart/without_fntright.pdf
30869 scaleBeforeRotation
30877 \begin_layout Plain Layout
30887 \begin_layout Plain Layout
30888 \begin_inset Caption Standard
30890 \begin_layout Plain Layout
30891 \begin_inset CommandInset label
30893 name "fig:Standard-footnote-placement"
30897 Standard footnote placement in two-column documents.
30910 \begin_layout Standard
30911 \begin_inset Float figure
30917 \begin_layout Plain Layout
30921 \begin_layout Plain Layout
30931 \begin_inset Graphics
30932 filename clipart/with_fntright.pdf
30934 scaleBeforeRotation
30942 \begin_layout Plain Layout
30952 \begin_layout Plain Layout
30953 \begin_inset Caption Standard
30955 \begin_layout Plain Layout
30956 \begin_inset CommandInset label
30958 name "fig:Footnote-placement-in"
30962 Footnote placement in two-column documents when the LaTeX-package
30979 \begin_layout Standard
30980 \begin_inset VSpace bigskip
30983 In some scientific literature it is usual to collect the footnotes and print
30984 them in a separate paragraph at the end of a section, as in Figure
30985 \begin_inset space ~
30989 \begin_inset CommandInset ref
30991 reference "fig:Endnotes"
30996 They are then called
30997 \begin_inset Quotes eld
31001 \begin_inset Quotes erd
31005 \begin_inset Index idx
31008 \begin_layout Plain Layout
31014 To use endnotes instead of footnotes in your document, load in the menu
31017 Document\SpecialChar \menuseparator
31018 Settings\SpecialChar \menuseparator
31024 \begin_inset space ~
31028 \begin_inset space ~
31034 To insert the collected footnotes, insert the command
31037 \begin_layout Standard
31045 \begin_layout Standard
31046 in TeX-Code at the end of a section or chapter.
31049 \begin_layout Standard
31050 \begin_inset Float figure
31055 \begin_layout Plain Layout
31060 \begin_layout Plain Layout
31070 \begin_inset Graphics
31071 filename clipart/endnotes.pdf
31072 scaleBeforeRotation
31080 \begin_layout Plain Layout
31090 \begin_layout Plain Layout
31091 \begin_inset Caption Standard
31093 \begin_layout Plain Layout
31094 \begin_inset CommandInset label
31096 name "fig:Endnotes"
31100 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31114 \begin_layout Standard
31115 \begin_inset VSpace medskip
31118 The paragraph heading for the endnotes isn't automatically translated into
31119 the document language, this must be done manually.
31120 The following preamble command translates the default English
31121 \begin_inset Quotes eld
31125 \begin_inset Quotes erd
31129 \begin_inset Quotes eld
31133 \begin_inset Quotes erd
31139 \begin_layout Standard
31146 notesname}{Anmerkungen}
31149 \begin_layout Standard
31150 \begin_inset VSpace medskip
31153 The numbering of endnotes can be changed like the footnote numbering as
31154 described in section
31155 \begin_inset space ~
31159 \begin_inset CommandInset ref
31161 reference "sub:Footnote-Numbering"
31165 ; just replace the command
31178 To reset the endnote number use the command
31184 as described in section
31185 \begin_inset space ~
31189 \begin_inset CommandInset ref
31191 reference "sub:Footnote-Numbering"
31195 and replace the command parameter
31206 \begin_layout Standard
31207 For endnotes there is the command
31211 endnotemark[number]
31213 similar to the command
31219 , that is described in section
31220 \begin_inset space ~
31224 \begin_inset CommandInset ref
31226 reference "sec:Footnotes"
31233 \begin_layout Standard
31234 \begin_inset VSpace bigskip
31237 Footnotes can also be placed in the page margin and the footnote text alignment
31238 can be changed, see the LaTeX-package
31243 \begin_inset Index idx
31246 \begin_layout Plain Layout
31247 LaTeX-packages ! footmisc
31253 \begin_inset CommandInset citation
31259 for more information about this.
31262 \begin_layout Standard
31263 For various further footnote formatting issues have a look at LaTeX-books,
31265 \begin_inset CommandInset citation
31267 key "latexcompanion,latexguide,latexbook"
31277 \begin_inset Index idx
31280 \begin_layout Plain Layout
31281 LaTeX-packages ! KOMA-Script
31286 document class, you can adjust all footnote settings using class-specific
31288 \begin_inset CommandInset citation
31297 \begin_layout Section
31299 \begin_inset Index idx
31302 \begin_layout Plain Layout
31303 Notes ! Margin Notes
31311 \begin_layout Standard
31312 Margin notes look and behave in LyX like footnotes.
31313 They are inserted via the menu
31315 Insert\SpecialChar \menuseparator
31317 \begin_inset space ~
31322 or the toolbar button
31325 arg "marginalnote-insert"
31339 \begin_inset Quotes eld
31343 \begin_inset Quotes erd
31346 appears where you can enter the text of the margin note.
31349 \begin_layout Standard
31350 At the side is an example margin note.
31355 \begin_inset Marginal
31358 \begin_layout Plain Layout
31359 This is a margin note.
31367 \begin_layout Standard
31368 Margin notes appear at the right side in single-sided documents.
31369 In double-sided documents they appear in the outer margin – left on even
31370 pages, right on odd pages.
31371 The text of margin notes is aligned opposite to the outer margin – right-aligne
31372 d when the note appears in the left margin.
31373 The first line of the margin note is placed at the position of the text
31374 line where it is inserted in the document.
31377 \begin_layout Standard
31378 \begin_inset VSpace bigskip
31381 To place the margin note in the inner margin, add the command
31384 \begin_layout Standard
31392 \begin_layout Standard
31393 in TeX-Code before a margin note.
31394 The new placement is valid for all subsequent margin notes.
31399 \begin_layout Plain Layout
31409 \begin_inset Marginal
31412 \begin_layout Plain Layout
31413 This is a margin note in the inner margin.
31421 \begin_inset Newline newline
31427 \begin_inset Note Greyedout
31430 \begin_layout Plain Layout
31435 There is often not enough space in the inner margin so that the notes are
31436 not correctly displayed in the output.
31444 \begin_layout Standard
31445 To return to the default placement insert the command
31448 \begin_layout Standard
31456 \begin_layout Standard
31461 \begin_layout Plain Layout
31471 \begin_inset Note Greyedout
31474 \begin_layout Plain Layout
31479 The command is ignored when it is within a paragraph where also the command
31494 \begin_layout Standard
31495 \begin_inset VSpace bigskip
31502 \begin_inset Marginal
31505 \begin_layout Plain Layout
31506 AVeryLongMarginParWord that isn't hyphenated.
31514 Similar to the case described in section
31515 \begin_inset space ~
31519 \begin_inset CommandInset ref
31521 reference "sub:Multiple-Lines-in"
31525 , long words cannot be hyphenated when they are the first word in a margin
31527 To avoid this, insert 0
31528 \begin_inset space \thinspace{}
31531 pt horizontal space before the word
31536 \begin_inset Marginal
31539 \begin_layout Plain Layout
31540 \begin_inset space \hspace*{}
31544 AVeryLongMarginParWord that is hyphenated.
31552 \begin_layout Standard
31553 \begin_inset VSpace bigskip
31559 \begin_layout Standard
31560 \begin_inset Note Greyedout
31563 \begin_layout Plain Layout
31568 Margin notes can normally not be used inside tables, floats, and footnotes.
31576 \begin_layout Standard
31577 \begin_inset VSpace bigskip
31583 \begin_layout Standard
31587 \begin_layout Plain Layout
31597 \begin_inset Note Note
31600 \begin_layout Plain Layout
31601 The following section will only be displayed when the LaTeX-package
31613 \begin_layout Standard
31614 This restriction can be evaded by using the LaTeX-package
31619 \begin_inset Index idx
31622 \begin_layout Plain Layout
31623 LaTeX-packages ! marginnote
31629 By adding these two lines to your document preamble, the command used by
31630 LyX for margin notes is redefined to use the command provided by the
31637 \begin_layout Standard
31642 usepackage{marginnote}
31643 \begin_inset Newline newline
31655 \begin_layout Standard
31656 This is also used in this document because
31660 has another useful feature: You can set a vertical offset for the note.
31661 This is often needed when too many margin notes are too close together
31662 or for a better page layout.
31663 The offset is set in LyX as TeX-Code directly after the margin note in
31667 \begin_layout Standard
31673 \begin_layout Standard
31674 where the offset is a length with one of the units listed in Table
31675 \begin_inset space ~
31679 \begin_inset CommandInset ref
31681 reference "tab:Units"
31686 A negative value shifts the note up, a positive value shifts it down.
31690 For example the margin note beside this text line is shifted up 1.5
31691 \begin_inset space \thinspace{}
31694 cm with the TeX-Code-command
31695 \begin_inset Quotes eld
31705 \begin_inset Quotes erd
31709 \begin_inset Marginal
31712 \begin_layout Plain Layout
31713 This margin note is shifted up 1.5
31714 \begin_inset space \thinspace{}
31717 cm from its original position.
31729 \begin_layout Plain Layout
31739 \begin_layout Standard
31740 \begin_inset VSpace medskip
31747 you can also change the alignment of the text in the margin note.
31748 For example the commands
31751 \begin_layout Standard
31758 raggedleftmarginnote}{
31761 \begin_inset Newline newline
31768 raggedrightmarginnote}{
31773 \begin_layout Standard
31774 set the alignment to centered.
31779 raggedleftmarginnote
31781 denotes margin notes that appear at the left side.
31788 \begin_layout Plain Layout
31794 raggedleftmarginnote}{
31799 \begin_layout Plain Layout
31805 raggedrightmarginnote}{
31813 \begin_inset Marginal
31816 \begin_layout Plain Layout
31817 The text of this margin note is centered.
31828 \begin_layout Standard
31835 raggedleftmarginnote}{
31838 \begin_inset Newline newline
31845 raggedrightmarginnote}{
31854 \begin_layout Plain Layout
31860 raggedleftmarginnote}{
31865 \begin_layout Plain Layout
31871 raggedrightmarginnote}{
31881 \begin_layout Standard
31882 \begin_inset VSpace medskip
31885 For the other features of
31889 refer to its documentation
31890 \begin_inset CommandInset citation
31899 \begin_layout Standard
31900 \begin_inset VSpace bigskip
31903 You can adjust the layout of margin notes by changing its definition.
31904 To create for example a header for all margin notes with the underlined,
31905 sans-serif, and bold header text
31906 \begin_inset Quotes eld
31918 \begin_inset Quotes erd
31921 , add this to your document preamble:
31924 \begin_layout Standard
31934 \begin_inset Newline newline
31944 \begin_inset Newline newline
31948 \begin_inset Phantom HPhantom
31951 \begin_layout Plain Layout
31954 \begin_inset space ~
31970 underbar{Attention!}}}%
31971 \begin_inset Newline newline
31975 \begin_inset Phantom HPhantom
31978 \begin_layout Plain Layout
31981 \begin_inset space ~
31998 \begin_layout Standard
32005 \begin_layout Plain Layout
32016 \begin_layout Plain Layout
32027 \begin_layout Plain Layout
32035 underbar{Attention!}}}%
32038 \begin_layout Plain Layout
32052 \begin_inset Marginal
32055 \begin_layout Plain Layout
32056 This is a margin note with a defined heading.
32068 \begin_layout Plain Layout
32082 \begin_layout Plain Layout
32099 \begin_inset Note Note
32102 \begin_layout Plain Layout
32103 The margin note format is changed only for this example.
32111 \begin_layout Standard
32115 \begin_layout Plain Layout
32125 \begin_inset Note Note
32128 \begin_layout Plain Layout
32129 The following will be displayed when the LaTeX-package
32141 \begin_layout Standard
32142 You need to install the LaTeX-package
32146 to see the following part of this section in the output.
32149 \begin_layout Standard
32153 \begin_layout Plain Layout
32165 \begin_layout Chapter
32169 \begin_layout Section
32171 \begin_inset Index idx
32174 \begin_layout Plain Layout
32175 Boxes ! Introduction
32183 \begin_layout Standard
32184 Boxes are used to format a block of text.
32185 Boxes can be used to write documents with multiple languages, see section
32186 \begin_inset space ~
32190 \begin_inset CommandInset ref
32192 reference "sec:Minipages"
32196 , to frame texts, see section
32197 \begin_inset space ~
32201 \begin_inset CommandInset ref
32203 reference "sec:Decoration"
32207 , to prevent words from being hyphenated, see section
32208 \begin_inset space ~
32212 \begin_inset CommandInset ref
32214 reference "sec:Prevent-Hyphenation"
32218 , to align text, see section
32219 \begin_inset space ~
32223 \begin_inset CommandInset ref
32225 reference "sub:Vertical-Alignment"
32229 , or to set the background color of texts, see section
32230 \begin_inset space ~
32234 \begin_inset CommandInset ref
32236 reference "sec:Colored-Boxes"
32243 \begin_layout Standard
32244 Boxes can be inserted with the menu
32246 Insert\SpecialChar \menuseparator
32249 or the toolbar button
32252 arg "box-insert Frameless"
32256 A grey box with the label
32261 \begin_inset Graphics
32262 filename clipart/BoxInsetDefaultQt4.png
32264 scaleBeforeRotation
32269 The box type can be specified by right-clicking on the box and selecting
32275 The box dialog offers the
32278 \begin_inset space ~
32300 is the default for new boxes and is explained in section
32301 \begin_inset space ~
32305 \begin_inset CommandInset ref
32307 reference "sec:Minipages"
32315 is described in section
32316 \begin_inset space ~
32320 \begin_inset CommandInset ref
32322 reference "sec:Parboxes"
32331 \begin_inset CommandInset ref
32333 reference "sec:Prevent-Hyphenation"
32340 \begin_layout Standard
32341 Boxes are not numbered and can therefore not be referenced like floats or
32345 \begin_layout Standard
32346 \begin_inset Note Greyedout
32349 \begin_layout Plain Layout
32354 Boxes must not be the item in an
32370 \begin_layout Standard
32371 \begin_inset Note Greyedout
32374 \begin_layout Plain Layout
32379 For an unknown reason you can only set the
32382 \begin_inset space ~
32391 when you use a framed box.
32395 \begin_inset space ~
32400 type and without frames are explained in section
32401 \begin_inset space ~
32405 \begin_inset CommandInset ref
32407 reference "sec:Prevent-Hyphenation"
32419 \begin_layout Section
32421 \begin_inset CommandInset label
32423 name "sec:Box-Dialog"
32428 \begin_inset Index idx
32431 \begin_layout Plain Layout
32440 \begin_layout Subsection
32442 \begin_inset Index idx
32445 \begin_layout Plain Layout
32454 \begin_layout Standard
32455 In the box dialog you can adjust the box geometry in the fields
32464 The available units for the geometry are explained in Table
32465 \begin_inset space ~
32469 \begin_inset CommandInset ref
32471 reference "tab:Units"
32480 offers the following additional sizes:
32483 \begin_layout Description
32484 Depth This is the plain text
32485 \begin_inset Quotes eld
32489 \begin_inset Quotes erd
32493 It ignores the total depth when there are multiple text lines in the box:
32494 \begin_inset Newline newline
32498 \begin_inset Newline newline
32502 \begin_inset Newline newline
32506 \begin_inset Box Boxed
32516 height_special "depth"
32519 \begin_layout Plain Layout
32521 Box height set to 1
32522 \begin_inset space \thinspace{}
32531 \begin_inset Newline newline
32535 \begin_inset Newline newline
32541 \begin_layout Description
32542 Height This is the height of the text that is inside the box.
32544 \begin_inset space \thinspace{}
32548 \begin_inset space \space{}
32551 2 for this size will set the box height to 2
32552 \begin_inset space ~
32555 times the text height:
32556 \begin_inset Box Boxed
32566 height_special "height"
32569 \begin_layout Plain Layout
32571 Box height set to 2
32572 \begin_inset space \thinspace{}
32583 \begin_layout Description
32585 \begin_inset space ~
32588 Height This is the Height
32589 \begin_inset space \thinspace{}
32593 \begin_inset space \thinspace{}
32597 \begin_inset Box Boxed
32607 height_special "totalheight"
32610 \begin_layout Plain Layout
32612 Box height set to 1
32613 \begin_inset space \thinspace{}
32617 \begin_inset space ~
32628 \begin_layout Description
32629 Width This sets the width of the box as height:
32630 \begin_inset Box Boxed
32640 height_special "width"
32643 \begin_layout Plain Layout
32645 Box height set to 1
32646 \begin_inset space \thinspace{}
32657 \begin_layout Subsection
32659 \begin_inset Index idx
32662 \begin_layout Plain Layout
32671 \begin_layout Standard
32672 When you have chosen an
32675 \begin_inset space ~
32680 , the vertical box alignment can be:
32683 \begin_layout Description
32684 Top This is an example text line.
32686 \begin_inset Box Boxed
32696 height_special "totalheight"
32699 \begin_layout Plain Layout
32701 This box is top-aligned.
32706 This is an example text line.
32709 \begin_layout Description
32710 Middle This is an example text line.
32712 \begin_inset Box Boxed
32722 height_special "totalheight"
32725 \begin_layout Plain Layout
32727 This box is middle-aligned.
32732 This is an example text line.
32735 \begin_layout Description
32736 Bottom This is an example text line.
32738 \begin_inset Box Boxed
32748 height_special "totalheight"
32751 \begin_layout Plain Layout
32753 This box is bottom-aligned.
32758 This is an example text line.
32761 \begin_layout Standard
32762 \begin_inset Note Greyedout
32765 \begin_layout Plain Layout
32770 The vertical box alignment can be lost in the output when you have two
32771 boxes in a line and one has e.
32772 \begin_inset space \thinspace{}
32776 \begin_inset space \space{}
32779 a shadow and the other one not.
32787 \begin_layout Standard
32788 The horizontal box alignment can be set via LyX's paragraph dialog when
32789 you set the box into its own paragraph.
32792 \begin_layout Standard
32793 \begin_inset VSpace bigskip
32796 When you have chosen an
32799 \begin_inset space ~
32804 , the box content can be aligned vertically to:
32807 \begin_layout Description
32808 top This is an example text line.
32810 \begin_inset Box Boxed
32820 height_special "totalheight"
32823 \begin_layout Plain Layout
32825 This box text is top-aligned.
32830 This is an example text line.
32833 \begin_layout Description
32834 middle This is an example text line.
32836 \begin_inset Box Boxed
32846 height_special "totalheight"
32849 \begin_layout Plain Layout
32851 This box text is middle-aligned.
32856 This is an example text line.
32859 \begin_layout Description
32860 bottom This is an example text line.
32862 \begin_inset Box Boxed
32872 height_special "totalheight"
32875 \begin_layout Plain Layout
32877 This box text is bottom-aligned.
32882 This is an example text line.
32885 \begin_layout Description
32886 stretch This is an example text line.
32888 \begin_inset Box Boxed
32898 height_special "totalheight"
32901 \begin_layout Plain Layout
32906 \begin_layout Plain Layout
32911 \begin_layout Plain Layout
32918 This is an example text line.
32921 \begin_layout Standard
32922 To stretch the box content, it must consist of more than one paragraph.
32923 In the example above every text line is in an own paragraph.
32926 \begin_layout Standard
32927 \begin_inset VSpace bigskip
32930 To align the box content horizontally you can use LyX's paragraph dialog
32931 when you have chosen an
32934 \begin_inset space ~
32942 \begin_layout Standard
32944 \begin_inset Box Boxed
32954 height_special "totalheight"
32957 \begin_layout Plain Layout
32962 \begin_layout Plain Layout
32967 \begin_layout Plain Layout
32977 \begin_layout Standard
32978 If you have not set an
32981 \begin_inset space ~
32986 , you can align the box content horizontally in the box dialog.
32989 \begin_layout Standard
32991 \begin_inset Box Boxed
33001 height_special "totalheight"
33004 \begin_layout Plain Layout
33005 This box text is horizontally stretched.
33013 \begin_layout Subsection
33015 \begin_inset CommandInset label
33017 name "sec:Decoration"
33022 \begin_inset Index idx
33025 \begin_layout Plain Layout
33034 \begin_layout Standard
33035 The type of the box can be specified in the box dialog in the drop-down
33041 The following types are possible:
33044 \begin_layout Description
33046 \begin_inset space ~
33049 frame Nothing is drawn.
33052 \begin_layout Description
33054 \begin_inset space ~
33058 \begin_inset space ~
33061 frame This draws a rectangular frame around the box.
33062 The frame line thickness has the size of
33070 \begin_inset Box Boxed
33080 height_special "totalheight"
33083 \begin_layout Plain Layout
33093 \begin_layout Description
33095 \begin_inset space ~
33099 \begin_inset space ~
33102 thin This draws an oval frame around the box.
33103 The frame line thickness has the size 0.4
33104 \begin_inset space \thinspace{}
33109 \begin_inset Box ovalbox
33119 height_special "totalheight"
33122 \begin_layout Plain Layout
33132 \begin_layout Description
33134 \begin_inset space ~
33138 \begin_inset space ~
33141 thick This draws an oval frame around the box.
33142 The frame line thickness has the size 0.8
33143 \begin_inset space \thinspace{}
33148 \begin_inset Box Ovalbox
33158 height_special "totalheight"
33161 \begin_layout Plain Layout
33171 \begin_layout Description
33173 \begin_inset space ~
33176 shadow This draws a rectangular frame with a shadow around the box.
33177 The frame line thickness has the size of
33183 , the shadow has a width of 4
33184 \begin_inset space \thinspace{}
33189 \begin_inset Box Shadowbox
33199 height_special "totalheight"
33202 \begin_layout Plain Layout
33212 \begin_layout Description
33214 \begin_inset space ~
33217 background This draws a box with a red background.
33218 Unlike colored boxes
33222 \begin_layout Plain Layout
33224 \begin_inset space \thinspace{}
33228 \begin_inset CommandInset ref
33230 reference "sec:Colored-Boxes"
33239 , it always uses the whole column width and the box is set as its own paragraph.
33241 \begin_inset Box Shaded
33251 height_special "totalheight"
33254 \begin_layout Plain Layout
33255 Shaded background box
33263 \begin_layout Description
33265 \begin_inset space ~
33269 \begin_inset space ~
33272 frame This draws a double-line rectangular frame around the box.
33273 The line thickness of the inner frame is 0.75
33274 \begin_inset space \thinspace{}
33283 , the thickness of the outer frame is 1.5
33284 \begin_inset space \thinspace{}
33294 The distance between the lines is 1.5
33295 \begin_inset space \thinspace{}
33305 \begin_inset space \thinspace{}
33309 \begin_inset space \thinspace{}
33313 \begin_inset space \thinspace{}
33318 \begin_inset Box Doublebox
33328 height_special "totalheight"
33331 \begin_layout Plain Layout
33333 Double rectangular box
33341 \begin_layout Standard
33342 \begin_inset VSpace bigskip
33345 LyX's box label will reflect the different frame types.
33346 To be able to use all types, the LaTeX-package
33351 \begin_inset Index idx
33354 \begin_layout Plain Layout
33355 LaTeX-packages ! fancybox
33363 \begin_layout Standard
33364 \begin_inset VSpace bigskip
33367 When you use the decoration
33369 simple rectangular frame
33371 and no inner box, you can allow page breaks within a box.
33372 Note that then, unlike other framed boxes, the frame always uses the whole
33373 column width, the box is set as its own paragraph, and
33385 have no effect on this box type.
33386 The frame line thickness has the size of
33394 \begin_inset Box Framed
33404 height_special "totalheight"
33407 \begin_layout Plain Layout
33408 Allow page break box
33416 \begin_layout Section
33418 \begin_inset Index idx
33421 \begin_layout Plain Layout
33422 Boxes ! Customization
33430 \begin_layout Standard
33431 The default value for the size
33438 \begin_inset space \thinspace{}
33442 It can be changed with the following command in TeX-code to e.
33443 \begin_inset space \thinspace{}
33447 \begin_inset space \space{}
33451 \begin_inset space \thinspace{}
33457 \begin_layout Standard
33467 \begin_layout Standard
33471 \begin_layout Plain Layout
33483 \begin_inset Box Boxed
33493 height_special "totalheight"
33496 \begin_layout Plain Layout
33498 Rectangular box with
33505 \begin_inset space \thinspace{}
33509 \begin_inset space \thinspace{}
33513 \begin_inset space \thinspace{}
33525 \begin_layout Plain Layout
33539 \begin_layout Standard
33540 \begin_inset VSpace bigskip
33543 The space between the frame and the box content is for all frame styles
33545 \begin_inset space \thinspace{}
33549 You can change it by setting the length
33556 For example the command
33559 \begin_layout Standard
33569 \begin_layout Standard
33570 sets the value to 10
33571 \begin_inset space \thinspace{}
33574 pt, as with the following box:
33577 \begin_layout Standard
33581 \begin_layout Plain Layout
33593 \begin_inset Box Boxed
33603 height_special "totalheight"
33606 \begin_layout Plain Layout
33608 Rectangular box with
33615 \begin_inset space \thinspace{}
33619 \begin_inset space \thinspace{}
33623 \begin_inset space \thinspace{}
33635 \begin_layout Plain Layout
33649 \begin_layout Standard
33650 \begin_inset VSpace bigskip
33653 The diameter of the round corners of the oval boxes can be set with the
33664 \begin_layout Standard
33672 \begin_layout Standard
33673 sets the diameter to 1
33674 \begin_inset space \thinspace{}
33681 \begin_layout Standard
33689 \begin_layout Standard
33690 sets the diameter to
33693 \begin_inset space \thinspace{}
33697 \begin_inset space \thinspace{}
33700 minimum(width and height of box)
33712 \begin_layout Standard
33716 \begin_layout Plain Layout
33726 \begin_inset Box Ovalbox
33736 height_special "totalheight"
33739 \begin_layout Plain Layout
33748 \begin_inset space \thinspace{}
33752 \begin_inset space \thinspace{}
33756 \begin_inset space \thinspace{}
33768 \begin_layout Plain Layout
33780 \begin_layout Standard
33781 \begin_inset VSpace bigskip
33784 The size of the shadow can be adjusted by changing the length
33792 \begin_inset space \thinspace{}
33795 pt for the following box by this command:
33798 \begin_layout Standard
33808 \begin_layout Standard
33812 \begin_layout Plain Layout
33824 \begin_inset Box Shadowbox
33834 height_special "totalheight"
33837 \begin_layout Plain Layout
33846 \begin_inset space \thinspace{}
33850 \begin_inset space \thinspace{}
33854 \begin_inset space \thinspace{}
33866 \begin_layout Plain Layout
33880 \begin_layout Standard
33881 \begin_inset VSpace bigskip
33887 \begin_layout Standard
33888 The default value for the size
33895 \begin_inset space \thinspace{}
33899 The default space between the note content and the frame is 9
33900 \begin_inset space \thinspace{}
33903 pt and can be changed with the value of
33910 For example the frame appearance of the following
33914 is set with the TeX-Code commands
33917 \begin_layout Standard
33925 \begin_inset Newline newline
33935 \begin_layout Standard
33939 \begin_layout Plain Layout
33948 \begin_layout Plain Layout
33960 \begin_inset Box Framed
33970 height_special "totalheight"
33973 \begin_layout Plain Layout
33987 \begin_layout Plain Layout
33996 \begin_layout Plain Layout
34010 \begin_layout Standard
34011 \begin_inset VSpace bigskip
34017 \begin_layout Standard
34022 boxes the default space between the box content and the box border is 3
34023 \begin_inset space \thinspace{}
34026 pt and can be changed with the value of
34033 The default background color red can either be changed locally with the
34038 definecolor{shadecolor}
34040 or globally with the menu
34042 Tools\SpecialChar \menuseparator
34043 Preferences\SpecialChar \menuseparator
34044 Colors\SpecialChar \menuseparator
34046 \begin_inset space ~
34058 command is explained in section
34059 \begin_inset space ~
34063 \begin_inset CommandInset ref
34065 reference "sec:Colored-Tables"
34073 \begin_layout Plain Layout
34080 requires the LaTeX-package
34084 in the preamble, see section
34085 \begin_inset space ~
34089 \begin_inset CommandInset ref
34091 reference "sec:Colored-Boxes"
34100 For example the appearance of the following shaded background box is set
34101 with the TeX-Code commands
34104 \begin_layout Standard
34114 \begin_inset Newline newline
34121 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34124 \begin_layout Standard
34128 \begin_layout Plain Layout
34137 \begin_layout Plain Layout
34141 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34147 \begin_inset Box Shaded
34157 height_special "totalheight"
34160 \begin_layout Plain Layout
34163 This is yellow text in a
34173 box with dark green background.
34182 \begin_layout Plain Layout
34191 \begin_layout Plain Layout
34195 definecolor{shadecolor}{rgb}{1,0,0}
34203 \begin_layout Standard
34204 \begin_inset VSpace bigskip
34207 Changed lengths and widths are valid for all boxes following the commands
34211 \begin_layout Section
34213 \begin_inset CommandInset label
34215 name "sec:Minipages"
34220 \begin_inset Index idx
34223 \begin_layout Plain Layout
34232 \begin_layout Standard
34233 Minipages are treated by LaTeX as pages within pages and can therefore for
34234 example have their own footnotes.
34237 \begin_layout Standard
34238 Minipages are useful when you write documents with different languages.
34241 \begin_layout Standard
34242 Below are two example minipages side by side.
34243 Their width is set to 45
34244 \begin_inset space \thinspace{}
34247 col% and they are separated by a horizontal fill, that was inserted via
34250 Insert\SpecialChar \menuseparator
34252 \begin_inset space ~
34255 Formatting\SpecialChar \menuseparator
34257 \begin_inset space ~
34263 \begin_inset Newpage newpage
34269 \begin_layout Standard
34270 \begin_inset Box Frameless
34280 height_special "totalheight"
34283 \begin_layout Plain Layout
34286 Dies ist ein deutscher Text.
34287 Dies ist ein deutscher Text.
34288 Dies ist ein deutscher Text.
34289 Dies ist ein deutscher Text.
34290 Dies ist ein deutscher Text.
34291 Dies ist ein deutscher Text.
34292 Dies ist ein deutscher Text.
34293 Dies ist ein deutscher Text.
34294 Dies ist ein deutscher Text.
34295 Dies ist ein deutscher Text.
34296 Dies ist ein deutscher Text.
34297 Dies ist ein deutscher Text.
34298 Dies ist ein deutscher Text
34302 \begin_layout Plain Layout
34305 Dies ist eine deutsche Fußnote.
34311 Dies ist ein deutscher Text.
34312 Dies ist ein deutscher Text.
34318 \begin_inset space \hfill{}
34322 \begin_inset Box Frameless
34332 height_special "totalheight"
34335 \begin_layout Plain Layout
34336 This is an English Text.
34337 This is an English Text.
34338 This is an English Text.
34339 This is an English Text.
34340 This is an English Text.
34341 This is an English Text.
34342 This is an English Text.
34343 This is an English Text.
34344 This is an English Text.
34345 This is an English Text.
34346 This is an English Text.
34347 This is an English Text.
34348 This is an English Text.
34349 This is an English Text.
34350 This is an English Text.
34351 This is an English Text.
34355 \begin_layout Plain Layout
34356 This is an English footnote.
34361 This is an English Text.
34369 \begin_layout Standard
34370 \begin_inset VSpace bigskip
34373 The document-wide paragraph settings are ignored within minipages.
34374 That means that there will be no space between paragraphs in minipages
34375 although you set it to e.
34376 \begin_inset space \thinspace{}
34380 \begin_inset space \space{}
34387 in the document settings.
34390 \begin_layout Standard
34391 Minipages can also be used to set a background color for text parts, see
34393 \begin_inset space ~
34397 \begin_inset CommandInset ref
34399 reference "sub:Color-for-Paragraphs"
34406 \begin_layout Standard
34407 \begin_inset Note Greyedout
34410 \begin_layout Plain Layout
34415 You cannot have floats or margin notes inside minipages but minipages can
34416 be used inside tables, floats, and other boxes.
34424 \begin_layout Section
34426 \begin_inset CommandInset label
34428 name "sec:Parboxes"
34433 \begin_inset Index idx
34436 \begin_layout Plain Layout
34445 \begin_layout Standard
34446 Parboxes are very similar to minipages with the difference that they cannot
34450 \begin_layout Standard
34452 \begin_inset Box Frameless
34462 height_special "totalheight"
34465 \begin_layout Plain Layout
34466 This a text within a parbox.
34467 This a text within a parbox.
34470 \begin_layout Plain Layout
34471 This footnote won't appear:
34475 \begin_layout Plain Layout
34476 This footnote is inside a parbox and will therefore not appear.
34489 \begin_layout Section
34490 Boxes for Words and Characters
34491 \begin_inset Index idx
34494 \begin_layout Plain Layout
34495 Boxes ! for Characters
34503 \begin_layout Subsection
34504 Prevent Hyphenation
34505 \begin_inset CommandInset label
34507 name "sec:Prevent-Hyphenation"
34512 \begin_inset Index idx
34515 \begin_layout Plain Layout
34516 Boxes ! to Prevent Hyphenation
34524 \begin_layout Standard
34525 You can use the box type
34529 to prevent words or text from being hyphenated.
34530 \begin_inset Newline newline
34533 Here is an example text:
34536 \begin_layout Standard
34537 This line is an example to show how you can prevent the hyphenation of
34538 \begin_inset Quotes eld
34542 \begin_inset Quotes erd
34548 \begin_layout Standard
34549 To prevent the hyphenation of the word
34550 \begin_inset Quotes eld
34554 \begin_inset Quotes erd
34557 , put the word into a box, set the
34560 \begin_inset space ~
34569 and use no explicit width.
34572 \begin_layout Standard
34573 This is the result:
34576 \begin_layout Standard
34577 This line is an example to show how you can prevent the hyphenation of
34578 \begin_inset Box Frameless
34588 height_special "totalheight"
34591 \begin_layout Plain Layout
34592 \begin_inset Quotes eld
34596 \begin_inset Quotes erd
34607 \begin_layout Standard
34608 You can alternatively set the command
34609 \begin_inset Quotes eld
34619 \begin_inset Quotes grd
34622 as TeX-Code directly before the word:
34625 \begin_layout Standard
34626 This line is an example to show how you can prevent the hyphenation of
34627 \begin_inset Quotes eld
34634 \begin_layout Plain Layout
34644 \begin_inset Quotes erd
34650 \begin_layout Standard
34651 Of course the word now protrudes over the side margin.
34652 To avoid this, add via the menu
34654 Insert\SpecialChar \menuseparator
34655 Formatting\SpecialChar \menuseparator
34657 \begin_inset space ~
34661 \begin_inset space ~
34669 arg "newline-insert newline"
34672 ) a line break before the word:
34675 \begin_layout Standard
34676 This line is an example to show how you can prevent the hyphenation of
34677 \begin_inset Newline newline
34681 \begin_inset Box Frameless
34691 height_special "totalheight"
34694 \begin_layout Plain Layout
34695 \begin_inset Quotes eld
34699 \begin_inset Quotes erd
34710 \begin_layout Subsection
34712 \begin_inset CommandInset label
34714 name "sub:Vertical-Alignment"
34719 \begin_inset Index idx
34722 \begin_layout Plain Layout
34723 Boxes ! for Vertical Alignment
34729 \begin_inset Index idx
34732 \begin_layout Plain Layout
34741 \begin_layout Standard
34742 With the help of the command
34748 you can align words, characters or other boxes vertically relative to the
34756 is used with the following scheme:
34759 \begin_layout Standard
34764 raisebox{lift}[height][depth]{box content}
34767 \begin_layout Standard
34768 The lift can be a positive value to raise the box or a negative value to
34772 \begin_layout Standard
34773 To align for example the word
34774 \begin_inset Quotes eld
34778 \begin_inset Quotes erd
34781 so that the bottom of the
34782 \begin_inset Quotes eld
34786 \begin_inset Quotes erd
34790 \begin_inset Quotes eld
34794 \begin_inset Quotes erd
34797 is at the baseline, insert the command
34800 \begin_layout Standard
34810 \begin_layout Standard
34811 in TeX-Code before the word.
34812 After the word insert a closing brace
34813 \begin_inset Quotes eld
34821 \begin_inset Quotes erd
34825 \begin_inset Newline newline
34828 This is the result:
34831 \begin_layout Standard
34832 This is a text line with the word
34836 \begin_layout Plain Layout
34848 \begin_inset Quotes eld
34852 \begin_inset Quotes erd
34859 \begin_layout Plain Layout
34869 \begin_layout Standard
34870 \begin_inset VSpace bigskip
34873 When you raise or lower characters in a line, the line distance will be
34877 \begin_layout Standard
34878 This is a text line with the word
34882 \begin_layout Plain Layout
34894 \begin_inset Quotes eld
34898 \begin_inset Quotes erd
34905 \begin_layout Plain Layout
34913 \begin_inset Newline newline
34916 This is a text line with the word
34920 \begin_layout Plain Layout
34930 \begin_inset Quotes eld
34934 \begin_inset Quotes erd
34941 \begin_layout Plain Layout
34951 \begin_layout Standard
34952 If you want to prevent this for a certain reason, set the box height to
34957 \begin_layout Standard
34967 \begin_layout Standard
34968 This is a text line with the word
34972 \begin_layout Plain Layout
34984 \begin_inset Quotes eld
34988 \begin_inset Quotes erd
34995 \begin_layout Plain Layout
35003 \begin_inset Newline newline
35006 This is a text line with the word
35010 \begin_layout Plain Layout
35014 raisebox{0.5cm}[0pt]{
35020 \begin_inset Quotes eld
35024 \begin_inset Quotes erd
35031 \begin_layout Plain Layout
35041 \begin_layout Section
35043 \begin_inset CommandInset label
35045 name "sec:Colored-Boxes"
35050 \begin_inset Index idx
35053 \begin_layout Plain Layout
35062 \begin_layout Subsection
35064 \begin_inset Index idx
35067 \begin_layout Plain Layout
35076 \begin_layout Standard
35077 To color the background of text the text must be put into a so called
35078 \begin_inset Quotes eld
35082 \begin_inset Quotes erd
35086 This requires that the LaTeX-package
35091 \begin_inset Index idx
35094 \begin_layout Plain Layout
35095 LaTeX-packages ! color
35100 is loaded in the document preamble with the command
35103 \begin_layout Standard
35108 @ifundefined{textcolor}
35109 \begin_inset Newline newline
35113 \begin_inset Phantom HPhantom
35116 \begin_layout Plain Layout
35119 \begin_inset space ~
35129 usepackage{color}}{}
35132 \begin_layout Standard
35137 will be loaded automatically by LyX when you color text.
35141 \begin_layout Plain Layout
35142 To avoid it being loaded twice the command
35156 \begin_layout Standard
35157 \begin_inset VSpace medskip
35160 Colorboxes are created with the command
35167 This will be used with the following scheme:
35170 \begin_layout Standard
35175 colorbox{color}{box content}
35178 \begin_layout Standard
35179 The box content can also be a box and colorboxes can also be within other
35183 \begin_layout Standard
35184 The following colors are predefined:
35185 \begin_inset Newline newline
35224 \begin_inset Newline newline
35227 You can also define your own color as described in section
35228 \begin_inset space ~
35232 \begin_inset CommandInset ref
35234 reference "sec:Colored-Tables"
35241 \begin_layout Standard
35243 \begin_inset space \thinspace{}
35247 \begin_inset space \space{}
35250 a red background for a word, insert the command
35253 \begin_layout Standard
35261 \begin_layout Standard
35262 before the word in TeX-Code.
35263 After the word insert a closing brace
35264 \begin_inset Quotes eld
35272 \begin_inset Quotes erd
35276 \begin_inset Newline newline
35279 This is the result:
35282 \begin_layout Standard
35283 This is a line where the word
35287 \begin_layout Plain Layout
35297 \begin_inset Quotes eld
35301 \begin_inset Quotes erd
35308 \begin_layout Plain Layout
35315 has a red background.
35318 \begin_layout Standard
35319 \begin_inset VSpace bigskip
35322 If you would like the box frame in a different color, you can use the command
35329 with the following scheme:
35332 \begin_layout Standard
35337 fcolorbox{frame color}{box color}{box content}
35340 \begin_layout Standard
35354 The frame thickness and the space between the frame and the box content
35355 can be adjusted with the lengths
35367 , respectively, as described in section
35368 \begin_inset space ~
35372 \begin_inset CommandInset ref
35374 reference "sec:Decoration"
35381 \begin_layout Standard
35382 For the following example the command
35385 \begin_layout Standard
35390 fcolorbox{cyan}{magenta}{
35393 \begin_layout Standard
35397 \begin_layout Standard
35398 Here is an example where the frame line thickness was set to 1
35399 \begin_inset space \thinspace{}
35403 \begin_inset Newline newline
35410 \begin_layout Plain Layout
35425 \begin_layout Plain Layout
35429 fcolorbox{cyan}{magenta}{
35434 This is text within a colored, framed box.
35438 \begin_layout Plain Layout
35448 \begin_layout Standard
35449 \begin_inset VSpace bigskip
35452 Of course you can also have colored text inside a colorbox:
35453 \begin_inset Newline newline
35460 \begin_layout Plain Layout
35464 fcolorbox{cyan}{magenta}{
35471 This is colored text within a colored, framed box.
35477 \begin_layout Plain Layout
35488 \begin_layout Plain Layout
35502 \begin_layout Standard
35503 \begin_inset VSpace medskip
35509 \begin_layout Standard
35510 \begin_inset Note Greyedout
35513 \begin_layout Plain Layout
35518 Text in colorboxes cannot have line breaks.
35519 To color multiple text lines or paragraphs, use a box inside a colorbox
35520 as described in the following.
35528 \begin_layout Subsection
35529 Color for Paragraphs
35530 \begin_inset CommandInset label
35532 name "sub:Color-for-Paragraphs"
35537 \begin_inset Index idx
35540 \begin_layout Plain Layout
35541 Color ! for Paragraphs
35549 \begin_layout Standard
35550 To set the background color for more than one text line, put the text into
35552 Before the minipage insert the
35561 \begin_layout Standard
35569 \begin_layout Standard
35571 After the minipage insert a closing brace
35572 \begin_inset Quotes eld
35580 \begin_inset Quotes erd
35586 \begin_layout Standard
35590 \begin_layout Plain Layout
35594 colorbox{lightgrey}{
35600 \begin_inset Box Frameless
35610 height_special "totalheight"
35613 \begin_layout Plain Layout
35614 This is text with background color.
35615 This is text with background color.
35618 \begin_layout Plain Layout
35619 \begin_inset VSpace defskip
35622 The text can have footnotes
35626 \begin_layout Plain Layout
35627 Another example footnote
35632 and can include tables and figures.
35635 \begin_layout Plain Layout
35637 \begin_inset Tabular
35638 <lyxtabular version="3" rows="3" columns="3">
35639 <features rotate="0" tabularvalignment="middle">
35640 <column alignment="center" valignment="top">
35641 <column alignment="center" valignment="top">
35642 <column alignment="center" valignment="top">
35644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35647 \begin_layout Plain Layout
35653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35656 \begin_layout Plain Layout
35662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35665 \begin_layout Plain Layout
35673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35676 \begin_layout Plain Layout
35682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35685 \begin_layout Plain Layout
35687 \begin_inset Quotes erd
35695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35698 \begin_layout Plain Layout
35706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35709 \begin_layout Plain Layout
35715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35718 \begin_layout Plain Layout
35724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35727 \begin_layout Plain Layout
35747 \begin_layout Plain Layout
35757 \begin_layout Section
35758 Rotated and Scaled Boxes
35761 \begin_layout Standard
35762 To use the commands described in this section, the LaTeX-package
35767 \begin_inset Index idx
35770 \begin_layout Plain Layout
35771 LaTeX-packages ! graphicx
35776 needs to be loaded in the document preamble with the command
35779 \begin_layout Standard
35784 @ifundefined{rotatebox}
35785 \begin_inset Newline newline
35789 \begin_inset Phantom HPhantom
35792 \begin_layout Plain Layout
35795 \begin_inset space ~
35805 usepackage{graphicx}}{}
35808 \begin_layout Standard
35809 \begin_inset Note Greyedout
35812 \begin_layout Plain Layout
35817 Not all DVI-viewers are able to display rotated or scaled material.
35825 \begin_layout Standard
35826 \begin_inset Note Greyedout
35829 \begin_layout Plain Layout
35834 Floats are not allowed inside a rotated or scaled box.
35842 \begin_layout Subsection
35844 \begin_inset Index idx
35847 \begin_layout Plain Layout
35854 \begin_inset Index idx
35857 \begin_layout Plain Layout
35866 \begin_layout Standard
35867 To rotate material, you can put it into a rotated box.
35868 Such a box is created using the command
35874 in TeX-Code with the following scheme:
35877 \begin_layout Standard
35882 rotatebox[rotation origin]{rotation angle}{box content}
35885 \begin_layout Standard
35886 The rotation origin is specified in the form
35891 The following positions are possible:
35911 (top), along with meaningful combinations of the four base positions.
35916 means that the rotation origin is at the top left corner of the box.
35917 When no rotation origin is specified, the position
35922 The rotation angle is a number that can be negative that specifies the
35924 The rotation direction is counterclockwise.
35927 \begin_layout Standard
35928 In the following example the command
35932 rotatebox[origin=c]{60}{
35934 was inserted as TeX-Code before the text
35935 \begin_inset Quotes eld
35939 \begin_inset Quotes erd
35942 ; after the text the box was closed by a closing brace
35949 \begin_layout Standard
35954 \begin_layout Plain Layout
35958 rotatebox[origin=c]{60}{
35967 \begin_layout Plain Layout
35977 \begin_layout Standard
35978 The box content can also be another box or an inline formula:
35981 \begin_layout Standard
35986 \begin_layout Plain Layout
35990 rotatebox[origin=r]{-60}{
35996 \begin_inset Box Doublebox
36006 height_special "totalheight"
36009 \begin_layout Plain Layout
36019 \begin_layout Plain Layout
36030 \begin_layout Plain Layout
36034 rotatebox[origin=lb]{60}{
36040 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36047 \begin_layout Plain Layout
36057 \begin_layout Standard
36058 or an image or table:
36061 \begin_layout Standard
36066 \begin_layout Plain Layout
36070 rotatebox[origin=lb]{90}{
36076 \begin_inset Graphics
36077 filename clipart/platypus.eps
36087 \begin_layout Plain Layout
36094 with a rotated image
36098 \begin_layout Plain Layout
36102 rotatebox[origin=l]{-90}{
36108 \begin_inset Tabular
36109 <lyxtabular version="3" rows="2" columns="2">
36110 <features rotate="0" tabularvalignment="middle">
36111 <column alignment="center" valignment="top">
36112 <column alignment="center" valignment="top">
36114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36117 \begin_layout Plain Layout
36123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36126 \begin_layout Plain Layout
36134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36137 \begin_layout Plain Layout
36143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36146 \begin_layout Plain Layout
36161 \begin_layout Plain Layout
36169 \begin_inset Index idx
36172 \begin_layout Plain Layout
36179 \begin_inset Index idx
36182 \begin_layout Plain Layout
36183 Table Customization ! Rotating
36191 \begin_layout Subsection
36193 \begin_inset Index idx
36196 \begin_layout Plain Layout
36203 \begin_inset Index idx
36206 \begin_layout Plain Layout
36215 \begin_layout Standard
36216 To scale material the commands
36228 can be used as TeX-Code.
36231 \begin_layout Standard
36238 is used with the following scheme:
36241 \begin_layout Standard
36246 scalebox{horizontal}[vertical]{box content}
36249 \begin_layout Standard
36250 Horizontal and vertical are the corresponding scaling factors.
36251 If no vertical scaling factor is given, the horizontal factor will also
36252 be used as the vertical one.
36255 \begin_layout Standard
36262 creates for example a double size
36266 \begin_layout Plain Layout
36279 \begin_layout Plain Layout
36286 , compared with the document text size.
36289 \begin_layout Standard
36294 scalebox{2}[1]{Hello}
36296 on the other hand distorts the
36300 \begin_layout Plain Layout
36313 \begin_layout Plain Layout
36323 \begin_layout Standard
36324 If the scaling factor is negative, the box content will be mirrored.
36325 Therefore the command
36329 scalebox{-1}[1]{Hello}
36331 can be used to create mirror writing:
36335 \begin_layout Plain Layout
36348 \begin_layout Plain Layout
36358 \begin_layout Standard
36363 scalebox{1}[-1]{Hello}
36369 \begin_layout Plain Layout
36382 \begin_layout Plain Layout
36392 \begin_layout Standard
36397 scalebox{-1}[1]{box content}
36399 there exists the command
36400 \begin_inset Newline newline
36407 reflectbox{box content}
36412 \begin_layout Standard
36413 \begin_inset VSpace bigskip
36422 is used to scale the box to a defined width and height.
36423 The command scheme is:
36426 \begin_layout Standard
36431 resizebox{width}{height}{box content}
36434 \begin_layout Standard
36435 If one of the two command arguments given is an exclamation mark
36439 , the size is set so that the aspect ratio of the box content is kept.
36442 \begin_layout Standard
36447 resizebox{2cm}{1cm}{Hello}
36453 \begin_layout Plain Layout
36457 resizebox{2cm}{1cm}{
36466 \begin_layout Plain Layout
36474 \begin_inset Newline newline
36481 resizebox{2cm}{!}{Hello}
36487 \begin_layout Plain Layout
36500 \begin_layout Plain Layout
36510 \begin_layout Standard
36511 \begin_inset VSpace bigskip
36515 \begin_inset Note Greyedout
36518 \begin_layout Plain Layout
36535 are set to zero, no LaTeX-errors occur when exporting the document but
36536 the exported files can not or only partly be displayed.
36544 \begin_layout Standard
36545 \begin_inset VSpace bigskip
36551 \begin_layout Standard
36552 The boxes can be combined in any order.
36554 \begin_inset space \thinspace{}
36558 \begin_inset space \space{}
36562 \begin_inset Newline newline
36569 rotatebox[origin=c]{-45}{
36573 reflectbox{Hello}}}
36574 \begin_inset Newline newline
36582 \begin_layout Standard
36587 \begin_layout Plain Layout
36591 rotatebox[origin=c]{-45}{
36604 \begin_layout Plain Layout
36614 \begin_layout Standard
36616 Images, tables, and inline formulas are allowed as box content:
36619 \begin_layout Standard
36624 \begin_layout Plain Layout
36628 rotatebox[origin=c]{-30}{
36638 \begin_inset Graphics
36639 filename clipart/platypus.eps
36649 \begin_layout Plain Layout
36660 \begin_layout Plain Layout
36664 rotatebox[origin=c]{-45}{
36674 \begin_inset Tabular
36675 <lyxtabular version="3" rows="2" columns="2">
36676 <features rotate="0" tabularvalignment="middle">
36677 <column alignment="center" valignment="top">
36678 <column alignment="center" valignment="top">
36680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36683 \begin_layout Plain Layout
36689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36692 \begin_layout Plain Layout
36700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36703 \begin_layout Plain Layout
36709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36712 \begin_layout Plain Layout
36727 \begin_layout Plain Layout
36738 \begin_layout Plain Layout
36742 rotatebox[origin=c]{-45}{
36752 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36759 \begin_layout Plain Layout
36767 \begin_inset Index idx
36770 \begin_layout Plain Layout
36777 \begin_inset Index idx
36780 \begin_layout Plain Layout
36781 Table Customization ! Scaling
36789 \begin_layout Standard
36790 When the global formula style
36794 is used in the document
36798 \begin_layout Plain Layout
36800 \begin_inset Quotes eld
36804 \begin_inset Quotes erd
36807 is added to the document class options.
36812 , display style formulas can also be scaled.
36815 \begin_layout Chapter
36816 Objects Surrounded by Text
36817 \begin_inset Index idx
36820 \begin_layout Plain Layout
36829 \begin_layout Section
36831 \begin_inset CommandInset label
36833 name "sec:Wrap-Floats"
36838 \begin_inset Index idx
36841 \begin_layout Plain Layout
36842 Floats ! Wrap Floats
36848 \begin_inset Index idx
36851 \begin_layout Plain Layout
36852 Surrounded by text ! Wrap Floats
36860 \begin_layout Standard
36861 \begin_inset Wrap figure
36868 \begin_layout Plain Layout
36869 \begin_inset Graphics
36870 filename clipart/mobius.eps
36872 scaleBeforeRotation
36873 rotateOrigin center
36880 \begin_layout Plain Layout
36881 \begin_inset Caption Standard
36883 \begin_layout Plain Layout
36884 \begin_inset CommandInset label
36886 name "fig:This-is-a"
36890 This is a figure wrap float.
36900 This float type is used if you want to wrap text around a figure or table
36901 so that it only occupies some fraction of the column width.
36902 It can be inserted using the menu
36904 Insert\SpecialChar \menuseparator
36905 Floats\SpecialChar \menuseparator
36907 \begin_inset space ~
36911 \begin_inset space ~
36919 \begin_inset space ~
36923 \begin_inset space ~
36928 if the LaTeX-package
36933 \begin_inset Index idx
36936 \begin_layout Plain Layout
36937 LaTeX-packages ! wrapfig
36946 \begin_layout Plain Layout
36947 Installing a LaTeX-package is explained it in the
36950 \begin_inset space ~
36960 The settings of the float can be modified by right-clicking on the float
36962 The mandatory settings are the float
36975 that specifies how much the float is set into the paragraph
36976 \begin_inset space \thinspace{}
36980 \begin_inset space \thinspace{}
36983 page margin, and the
36986 \begin_inset space ~
36991 that specifies how many text lines the float will approximately need.
36992 The line span is often hard to approximate; so it is better only to use
36993 it when you encounter float placement problems.
36994 You can furthermore decide if LaTeX is allowed to let the float float within
36995 the paragraph or to surrounding paragraphs.
36997 \begin_inset space ~
37001 \begin_inset CommandInset ref
37003 reference "fig:This-is-a"
37007 is an example text wrap float with a width of 40
37008 \begin_inset space \thinspace{}
37012 \begin_inset space \thinspace{}
37015 cm overhang, set to the left.
37018 \begin_layout Standard
37019 \begin_inset Note Greyedout
37022 \begin_layout Plain Layout
37028 \begin_inset space ~
37031 wrap float floats are fragile! E.
37032 \begin_inset space \thinspace{}
37036 \begin_inset space \space{}
37039 having a figure too close to the bottom of the page can mess things up in
37040 such a way that the float does not appear in the output or that it is placed
37041 over some other text.
37049 \begin_layout Standard
37050 In general, the following applies for wrap floats:
37053 \begin_layout Itemize
37054 They should not be placed in paragraphs that run over a page break.
37055 That means that wrap floats are better inserted in their exact place when
37056 the document is almost finished and you are able to estimate where page
37057 breaks will appear.
37060 \begin_layout Itemize
37061 They should either be placed in their own paragraph before the paragraph
37062 where they should wrap into or within a paragraph.
37065 \begin_layout Itemize
37066 In consecutive paragraphs they may cause troubles, so ensure that there
37067 is a text paragraph between them as separator.
37070 \begin_layout Itemize
37071 They are not allowed in section headings or tables.
37074 \begin_layout Itemize
37075 Their numbering and referencing works as described in chap.
37076 \begin_inset space \thinspace{}
37080 \begin_inset CommandInset ref
37082 reference "chap:Floats"
37089 \begin_layout Section
37090 Surrounded Fixed Objects
37091 \begin_inset Index idx
37094 \begin_layout Plain Layout
37095 Surrounded by text ! Fixed objects
37103 \begin_layout Standard
37104 The wrap floats described in sec.
37105 \begin_inset space \thinspace{}
37109 \begin_inset CommandInset ref
37111 reference "sec:Wrap-Floats"
37115 have these positions in the paragraph:
37118 \begin_layout Standard
37121 \begin_inset Tabular
37122 <lyxtabular version="3" rows="2" columns="2">
37123 <features rotate="0" tabularvalignment="middle">
37124 <column alignment="center" valignment="top">
37125 <column alignment="center" valignment="top">
37127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37130 \begin_layout Plain Layout
37131 \begin_inset Graphics
37132 filename ../images/dialog-show-new-inset_graphics.png
37134 scaleBeforeRotation
37143 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37146 \begin_layout Plain Layout
37154 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37157 \begin_layout Plain Layout
37163 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37166 \begin_layout Plain Layout
37178 \begin_inset Tabular
37179 <lyxtabular version="3" rows="2" columns="2">
37180 <features rotate="0" tabularvalignment="middle">
37181 <column alignment="center" valignment="top">
37182 <column alignment="center" valignment="top">
37184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37187 \begin_layout Plain Layout
37193 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37196 \begin_layout Plain Layout
37197 \begin_inset Graphics
37198 filename ../images/dialog-show-new-inset_graphics.png
37200 scaleBeforeRotation
37211 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37214 \begin_layout Plain Layout
37220 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37223 \begin_layout Plain Layout
37237 \begin_layout Standard
37238 To get an object exactly at the position where it is inserted, for example
37239 to get one of these positions:
37240 \begin_inset VSpace defskip
37246 \begin_layout Standard
37249 \begin_inset Tabular
37250 <lyxtabular version="3" rows="2" columns="2">
37251 <features rotate="0" tabularvalignment="middle">
37252 <column alignment="center" valignment="top">
37253 <column alignment="center" valignment="top">
37255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37258 \begin_layout Plain Layout
37264 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37267 \begin_layout Plain Layout
37275 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37278 \begin_layout Plain Layout
37279 \begin_inset Graphics
37280 filename ../images/dialog-show-new-inset_graphics.png
37282 scaleBeforeRotation
37291 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37294 \begin_layout Plain Layout
37306 \begin_inset Tabular
37307 <lyxtabular version="3" rows="2" columns="2">
37308 <features rotate="0" tabularvalignment="middle">
37309 <column alignment="center" valignment="top">
37310 <column alignment="center" valignment="top">
37312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37315 \begin_layout Plain Layout
37321 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37324 \begin_layout Plain Layout
37332 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37335 \begin_layout Plain Layout
37341 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37344 \begin_layout Plain Layout
37345 \begin_inset Graphics
37346 filename ../images/dialog-show-new-inset_graphics.png
37348 scaleBeforeRotation
37363 \begin_inset Tabular
37364 <lyxtabular version="3" rows="2" columns="3">
37365 <features rotate="0" tabularvalignment="middle">
37366 <column alignment="center" valignment="top">
37367 <column alignment="center" valignment="top">
37368 <column alignment="center" valignment="top">
37370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37373 \begin_layout Plain Layout
37379 <cell alignment="center" valignment="top" topline="true" usebox="none">
37382 \begin_layout Plain Layout
37383 \begin_inset Graphics
37384 filename ../images/dialog-show-new-inset_graphics.png
37386 scaleBeforeRotation
37395 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37398 \begin_layout Plain Layout
37406 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37409 \begin_layout Plain Layout
37415 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37418 \begin_layout Plain Layout
37424 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37427 \begin_layout Plain Layout
37439 \begin_inset Tabular
37440 <lyxtabular version="3" rows="2" columns="3">
37441 <features rotate="0" tabularvalignment="middle">
37442 <column alignment="center" valignment="top">
37443 <column alignment="center" valignment="top">
37444 <column alignment="center" valignment="top">
37446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37449 \begin_layout Plain Layout
37455 <cell alignment="center" valignment="top" topline="true" usebox="none">
37458 \begin_layout Plain Layout
37464 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37467 \begin_layout Plain Layout
37475 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37478 \begin_layout Plain Layout
37484 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37487 \begin_layout Plain Layout
37488 \begin_inset Graphics
37489 filename ../images/dialog-show-new-inset_graphics.png
37491 scaleBeforeRotation
37500 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37503 \begin_layout Plain Layout
37517 \begin_layout Standard
37520 \begin_inset Tabular
37521 <lyxtabular version="3" rows="3" columns="2">
37522 <features rotate="0" tabularvalignment="middle">
37523 <column alignment="center" valignment="top">
37524 <column alignment="center" valignment="top">
37526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37529 \begin_layout Plain Layout
37535 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37538 \begin_layout Plain Layout
37546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37549 \begin_layout Plain Layout
37550 \begin_inset Graphics
37551 filename ../images/dialog-show-new-inset_graphics.png
37553 scaleBeforeRotation
37562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37565 \begin_layout Plain Layout
37573 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37576 \begin_layout Plain Layout
37582 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37585 \begin_layout Plain Layout
37597 \begin_inset Tabular
37598 <lyxtabular version="3" rows="3" columns="3">
37599 <features rotate="0" tabularvalignment="middle">
37600 <column alignment="center" valignment="top">
37601 <column alignment="center" valignment="top">
37602 <column alignment="center" valignment="top">
37604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37607 \begin_layout Plain Layout
37613 <cell alignment="center" valignment="top" topline="true" usebox="none">
37616 \begin_layout Plain Layout
37622 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37625 \begin_layout Plain Layout
37633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37636 \begin_layout Plain Layout
37642 <cell alignment="center" valignment="top" usebox="none">
37645 \begin_layout Plain Layout
37646 \begin_inset Graphics
37647 filename ../images/dialog-show-new-inset_graphics.png
37649 scaleBeforeRotation
37658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37661 \begin_layout Plain Layout
37669 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37672 \begin_layout Plain Layout
37678 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37681 \begin_layout Plain Layout
37687 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37690 \begin_layout Plain Layout
37702 \begin_inset Tabular
37703 <lyxtabular version="3" rows="3" columns="2">
37704 <features rotate="0" tabularvalignment="middle">
37705 <column alignment="center" valignment="top">
37706 <column alignment="center" valignment="top">
37708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37711 \begin_layout Plain Layout
37717 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37720 \begin_layout Plain Layout
37728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37731 \begin_layout Plain Layout
37737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37740 \begin_layout Plain Layout
37741 \begin_inset Graphics
37742 filename ../images/dialog-show-new-inset_graphics.png
37744 scaleBeforeRotation
37755 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37758 \begin_layout Plain Layout
37764 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37767 \begin_layout Plain Layout
37781 \begin_layout Standard
37783 you can use the LaTeX-package
37788 \begin_inset Index idx
37791 \begin_layout Plain Layout
37792 LaTeX-packages ! picinpar
37798 Here is an example:
37801 \begin_layout Standard
37805 \begin_layout Plain Layout
37815 \begin_inset Note Note
37818 \begin_layout Plain Layout
37819 The following section will only be displayed when the LaTeX-package
37831 \begin_layout Standard
37835 \begin_layout Plain Layout
37839 begin{window}[2,c,{
37845 \begin_inset Graphics
37846 filename clipart/mobius.eps
37849 scaleBeforeRotation
37850 rotateOrigin center
37858 \begin_layout Plain Layout
37863 \begin_layout Plain Layout
37872 It was in the spring of the year 1894 that all London was interested, and
37873 the fashionable world dismayed, by the murder of the Honourable Ronald
37874 Adair under most unusual and inexplicable circumstances.
37875 The public has already learned those particulars of the crime which
37881 \begin_layout Plain Layout
37892 came out in the police investigation, but a good deal was suppressed upon
37893 that occasion, since the case for the prosecution was so overwhelmingly
37894 strong that it was not necessary to bring forward all the facts.
37895 Only now, at the end of nearly ten years, am I allowed to supply those
37896 missing links which make up the whole of that remarkable chain.
37902 \begin_layout Plain Layout
37914 \begin_layout Standard
37918 \begin_layout Plain Layout
37927 Footnote of the paragraph with the fixed object.
37931 \begin_layout Plain Layout
37941 \begin_layout Standard
37942 Surrounded fixed objects are used to let text float around them, at which
37943 the object's position in the paragraph can be determined by the number
37945 In contrary to floats is it not possible to have a numbered caption.
37948 \begin_layout Standard
37949 A fixed object is inserted by adding the command
37952 \begin_layout Standard
37957 begin{window}[2,c,{
37960 \begin_layout Standard
37961 as TeX-Code at the beginning of the paragraph.
37962 The first parameter in the bracket, here '2', defines the number of lines
37963 above the object, the second, here 'c', the position of the object.
37964 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37965 Behind the command you insert the object.
37966 In this example an image with a width of 40
37967 \begin_inset space \thinspace{}
37970 % of the text column width was inserted.
37971 The object can also be a table, a box or an equation.
37972 Behind the object the command
37975 \begin_layout Standard
37978 },description text]
37979 \begin_inset Newline newline
37985 \begin_layout Standard
37988 \begin_inset Quotes eld
37996 \begin_inset Quotes erd
37999 is in the second line.
38000 The description text is optional.
38001 The text surrounding the object must be in the same paragraph as the object,
38002 so it must begin directly after the
38007 At the end of the paragraph insert the command:
38010 \begin_layout Standard
38018 \begin_layout Standard
38019 Within a paragraph with a fixed object, you cannot insert footnotes in the
38021 You have to use instead the command
38027 inside the paragraph and outside the command
38033 as described in sec.
38034 \begin_inset space \thinspace{}
38038 \begin_inset CommandInset ref
38040 reference "sec:Footnotes"
38047 \begin_layout Standard
38051 \begin_layout Plain Layout
38061 \begin_inset Note Note
38064 \begin_layout Plain Layout
38065 The following will be displayed when the LaTeX-package
38077 \begin_layout Standard
38078 You need to install the LaTeX-package
38082 to see the following part of this section in the output.
38085 \begin_layout Standard
38089 \begin_layout Plain Layout
38101 \begin_layout Section
38103 \begin_inset Index idx
38106 \begin_layout Plain Layout
38113 \begin_inset Index idx
38116 \begin_layout Plain Layout
38117 Surrounded by text ! Initials
38125 \begin_layout Standard
38126 To use initials, you must have the LaTeX-package
38131 \begin_inset Index idx
38134 \begin_layout Plain Layout
38135 LaTeX-packages ! lettrine
38140 installed and use the module
38144 in your document (menu
38146 Document\SpecialChar \menuseparator
38147 Settings\SpecialChar \menuseparator
38151 To insert an initial, use the style
38156 This style has a mandatory and two optional arguments.
38157 The arguments are inserted via the
38162 The mandatory argument
38166 contains the letter(s) that is the initial, the argument
38169 \begin_inset space ~
38173 \begin_inset space ~
38178 contains the rest of the word or text of the initial letter(s).
38183 contains parameters to modify the initial.
38184 For more information about the possible parameters see the documentation
38190 \begin_inset CommandInset citation
38197 The style itself contains the text that is surrounding the initial.
38198 The usual style is hereby that the word whose first letter is the initial,
38206 \begin_layout Standard
38207 Here are some examples:
38210 \begin_layout Standard
38214 \begin_layout Plain Layout
38224 \begin_inset Note Note
38227 \begin_layout Plain Layout
38228 The following section will only be displayed when the LaTeX-package
38240 \begin_layout Enumerate
38241 No optional argument, the initial is the letter 'I' in the math font
38242 \begin_inset Formula $\mathfrak{Fraktur}$
38249 \begin_layout Initial
38250 \begin_inset Argument 2
38253 \begin_layout Plain Layout
38254 \begin_inset Formula $\mathfrak{I}$
38263 \begin_inset Argument 3
38266 \begin_layout Plain Layout
38272 was in the spring of the year 1894 that all London was interested, and
38273 the fashionable world dismayed, by the murder of the Honourable Ronald
38274 Adair under most unusual and inexplicable circumstances.
38275 The public has already learned those particulars of the crime which came
38276 out in the police investigation, but a good deal was suppressed upon that
38277 occasion, since the case for the prosecution was so overwhelmingly strong
38278 that it was not necessary to bring forward all the facts.
38279 \begin_inset Newpage newpage
38286 \begin_layout Enumerate
38287 Only one line is surrounding the initial, which is formed by two letters
38288 in standard font and no text is printed in small caps:
38292 \begin_layout Initial
38293 \begin_inset Argument 1
38296 \begin_layout Plain Layout
38303 \begin_inset Argument 2
38306 \begin_layout Plain Layout
38312 was in the spring of the year 1894 that all London was interested, and
38313 the fashionable world dismayed, by the murder of the Honourable Ronald
38314 Adair under most unusual and inexplicable circumstances.
38315 The public has already learned those particulars of the crime which came
38316 out in the police investigation, but a good deal was suppressed upon that
38317 occasion, since the case for the prosecution was so overwhelmingly strong
38318 that it was not necessary to bring forward all the facts.
38322 \begin_layout Enumerate
38323 Magenta, hanging initial over 3
38324 \begin_inset space ~
38327 lines in the math font
38328 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
38332 \begin_inset Quotes eld
38335 t was in the spring
38336 \begin_inset Quotes erd
38343 ; to color the initial, you must insert this command before the initial:
38344 \begin_inset Newline newline
38358 \begin_inset Newline newline
38366 \begin_inset Quotes eld
38370 \begin_inset Quotes erd
38374 \begin_inset Quotes eld
38378 \begin_inset Quotes erd
38382 \begin_inset Quotes eld
38386 \begin_inset Quotes erd
38390 \begin_inset Quotes eld
38394 \begin_inset Quotes erd
38398 \begin_inset Quotes eld
38402 \begin_inset Quotes erd
38406 \begin_inset Quotes eld
38410 \begin_inset Quotes erd
38414 \begin_inset Quotes eld
38418 \begin_inset Quotes erd
38422 \begin_inset Quotes eld
38426 \begin_inset Quotes erd
38429 , and add this command to the document preamble:
38430 \begin_inset Newline newline
38437 @ifundefined{textcolor}
38438 \begin_inset Newline newline
38442 \begin_inset space ~
38447 usepackage{color}}{}
38451 \begin_layout Standard
38455 \begin_layout Plain Layout
38469 \begin_inset Note Note
38472 \begin_layout Plain Layout
38473 makes the initial magenta
38481 \begin_layout Initial
38482 \begin_inset Argument 1
38485 \begin_layout Plain Layout
38486 lines=3, lhang=0.33, loversize=0.25
38492 \begin_inset Argument 2
38495 \begin_layout Plain Layout
38496 \begin_inset Formula $\mathcal{I}$
38505 \begin_inset Argument 3
38508 \begin_layout Plain Layout
38509 t was in the spring
38514 of the year 1894 that all London was interested, and the fashionable world
38515 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38516 and inexplicable circumstances.
38517 The public has already learned those particulars of the crime which came
38518 out in the police investigation, but a good deal was suppressed upon that
38519 occasion, since the case for the prosecution was so overwhelmingly strong
38520 that it was not necessary to bring forward all the facts.
38524 \begin_layout Standard
38528 \begin_layout Plain Layout
38538 \begin_inset Note Note
38541 \begin_layout Plain Layout
38542 The following will be displayed when the LaTeX-package
38554 \begin_layout Standard
38555 You need to install the LaTeX-package
38559 to see the following part of this section in the output.
38562 \begin_layout Standard
38566 \begin_layout Plain Layout
38578 \begin_layout Chapter
38579 External Document Parts
38580 \begin_inset Index idx
38583 \begin_layout Plain Layout
38584 External Document Parts
38592 \begin_layout Standard
38595 Insert\SpecialChar \menuseparator
38598 you can insert external material into your document.
38602 \begin_layout Description
38604 \begin_inset space ~
38607 Document Another LyX document; its content is directly inserted to your
38611 \begin_layout Description
38613 \begin_inset space ~
38616 Text A text document; each line is inserted in your document as a separate
38620 \begin_layout Description
38622 \begin_inset space ~
38626 \begin_inset space ~
38630 \begin_inset space ~
38633 Lines A text document; text lines are inserted in your document continuously
38634 but an empty text line creates a new paragraph.
38637 \begin_layout Description
38639 \begin_inset space ~
38642 Material Files in various formats.
38645 \begin_layout Description
38647 \begin_inset space ~
38650 Document LyX or LaTeX-documents.
38653 \begin_layout Section
38655 \begin_inset Index idx
38658 \begin_layout Plain Layout
38659 External Document Parts ! External Material
38667 \begin_layout Standard
38668 The external material feature allows you to insert files into your document
38669 without converting them to a format that can be read by the document output
38671 LyX takes care of the necessary conversions.
38672 This is similar to images that can be inserted in various image formats
38674 When you have enabled Instant Preview in LyX's preferences under
38677 \begin_inset space ~
38681 \begin_inset space ~
38684 feel\SpecialChar \menuseparator
38687 , the external material types Dia and Xfig are directly shown in LyX.
38690 \begin_layout Standard
38691 External material can be inserted via the
38695 dialog that is accessible with the menu
38697 Insert\SpecialChar \menuseparator
38698 File\SpecialChar \menuseparator
38700 \begin_inset space ~
38706 Currently the following file types (
38713 \begin_layout Description
38714 ChessDiagram This template supports chess position diagrams made with the
38718 \begin_inset CommandInset href
38721 target "http://en.wikipedia.org/wiki/XBoard"
38730 \begin_layout Description
38731 Date This inserts the date in the form
38736 This is a date inserted as external material:
38737 \begin_inset External
38744 \begin_inset space ~
38748 \begin_inset Note Note
38751 \begin_layout Plain Layout
38752 Remove the protected space when bug 4398 is fixed!
38758 \begin_inset Newline newline
38761 The date is not shown within LyX, only in the output.
38762 There are two other methods of inserting a date: Via menu
38764 Insert\SpecialChar \menuseparator
38767 and with the LaTeX command
38774 The different methods are compared in Table
38775 \begin_inset space ~
38779 \begin_inset CommandInset ref
38781 reference "tab:Comparison-of-the"
38788 \begin_layout Description
38789 Dia This template supports diagrams created with the program
38792 \begin_inset CommandInset href
38795 target "http://en.wikipedia.org/wiki/Dia_(software)"
38804 \begin_layout Description
38805 GnumericSpreadsheet With this template you can insert spreadsheets
38806 \begin_inset space \thinspace{}
38810 \begin_inset space \thinspace{}
38813 tables in the format of
38816 \begin_inset CommandInset href
38819 target "http://en.wikipedia.org/wiki/Gnumeric"
38826 \begin_inset CommandInset href
38828 name "OpenDocument"
38829 target "http://en.wikipedia.org/wiki/OpenDocument"
38834 \begin_inset CommandInset href
38836 name "Microsoft Office XML"
38837 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38842 \begin_inset CommandInset href
38844 name "Office Open XML"
38845 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38850 For this feature LyX must have found the program
38854 during its configuration.
38855 This program is part of Gnumeric, so that you must have Gnumeric installed,
38856 also if you don't have tables in the Gnumeric format.
38857 For examples and possible limitations have a look at LyX's example file
38865 \begin_layout Description
38866 LilyPond This template is used for music notation typeset with the program
38867 \begin_inset Newline linebreak
38873 \begin_inset CommandInset href
38876 target "http://en.wikipedia.org/wiki/LilyPond"
38883 For LyX's extended support for LilyPond have a look at LyX's example file
38891 \begin_layout Description
38892 PDFPages With this template you can insert PDF documents to your document.
38893 To specify the range of pages that should be included, use the option
38903 LaTeX and LyX options
38906 The argument of this option is a comma separated list, containing page
38907 numbers (insert as option
38911 ), ranges of page numbers (
38915 ) or any combination.
38916 To insert empty pages use {}.
38918 \begin_inset space \thinspace{}
38922 \begin_inset space ~
38927 pages={3,{},8-11,15}
38929 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38930 Page ranges are specified in the syntax
38939 This selects all pages from
38952 defaults to the first page; omitting
38956 defaults to the last page of the document.
38957 The last page can also be selected with the keyword
38962 (This is only permitted in a page range.) So
38966 will insert all pages of the document and
38970 will insert all pages in reverse order.
38971 If the pages option is not specified, only the first page of the PDF is
38973 \begin_inset Newline newline
38980 inserts the pages with their original size, if this option is not given,
38981 the pages will be resized to fith the width of the page of your document.
38986 you can specify the width and height of the input pages and their rotation.
38987 If another width than 100
38988 \begin_inset space \thinspace{}
38991 Scale% is used, the option
38995 will be overwritten.
38996 For more info and possible options, have a look into the documentation
38997 of the LaTeX-package
39002 \begin_inset CommandInset citation
39009 \begin_inset Index idx
39012 \begin_layout Plain Layout
39013 LaTeX-packages ! pdfpages
39019 \begin_inset Newline newline
39022 To use this template in a
39026 presentation you need to first insert an
39030 environment and in a subsequent paragraph a TeX-Code box containing the
39035 setbeamertemplate{background canvas}{}
39038 Then you can insert as many paragraphs containing the PDFPages template
39040 Behind the included PDF pages you can resume the Beamer presentation by
39041 beginning a new frame or by starting a new section.
39042 To avoid stray blank pages prior to the PDF pages, make sure to use the
39047 alignment for the paragraph containing the template.
39048 \begin_inset Newline newline
39051 Here is an included PDF which is rotated by -5°:
39052 \begin_inset External
39054 filename clipart/Abstract.pdf
39055 extra LaTeX "noautoscale, pages=-"
39057 rotateOrigin bottomleft
39064 \begin_layout Description
39065 RasterImage This can be used for bitmap images.
39066 The image can be treated in the
39070 dialog like the images that are usually included via the
39074 dialog as described in section
39075 \begin_inset space ~
39079 \begin_inset CommandInset ref
39081 reference "sec:Graphics-Dialog"
39086 The difference to the normal image input is that only raster images are
39087 allowed; that means that PDF and EPS-images are not supported.
39088 Here is an inserted raster image:
39089 \begin_inset External
39090 template RasterImage
39091 filename clipart/ToolbarEnvBox.png
39098 \begin_layout Description
39099 XFig This template supports images created with the program
39102 \begin_inset CommandInset href
39105 target "http://en.wikipedia.org/wiki/Xfig"
39114 \begin_layout Standard
39115 \begin_inset Float table
39121 \begin_layout Plain Layout
39122 \begin_inset Caption Standard
39124 \begin_layout Plain Layout
39125 \begin_inset CommandInset label
39127 name "tab:Comparison-of-the"
39131 Comparison of the date input methods.
39139 \begin_layout Plain Layout
39141 \begin_inset Tabular
39142 <lyxtabular version="3" rows="4" columns="4">
39143 <features rotate="0" tabularvalignment="middle">
39144 <column alignment="center" valignment="top">
39145 <column alignment="center" valignment="top">
39146 <column alignment="center" valignment="top">
39147 <column alignment="center" valignment="top">
39149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39152 \begin_layout Plain Layout
39158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39161 \begin_layout Plain Layout
39164 External Material\SpecialChar \menuseparator
39170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39173 \begin_layout Plain Layout
39176 Insert\SpecialChar \menuseparator
39182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39185 \begin_layout Plain Layout
39197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39200 \begin_layout Plain Layout
39206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39209 \begin_layout Plain Layout
39215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39218 \begin_layout Plain Layout
39224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39227 \begin_layout Plain Layout
39228 as TeX-Code inset box
39235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39238 \begin_layout Plain Layout
39244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39247 \begin_layout Plain Layout
39253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39256 \begin_layout Plain Layout
39262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39265 \begin_layout Plain Layout
39273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39276 \begin_layout Plain Layout
39282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39285 \begin_layout Plain Layout
39291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39294 \begin_layout Plain Layout
39300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39303 \begin_layout Plain Layout
39322 \begin_layout Standard
39323 When you use the option
39335 dialog, only the path to the inserted file is shown in the output.
39336 \begin_inset Newline newline
39339 External material is displayed in LyX either as a box like this:
39340 \begin_inset Graphics
39341 filename clipart/ExternalMaterialQt4.png
39343 scaleBeforeRotation
39347 or as image, depending on the option
39353 LaTeX and LyX options
39358 \begin_layout Standard
39365 manual explains how you can define your own templates.
39368 \begin_layout Section
39370 \begin_inset CommandInset label
39372 name "sec:Child-Documents"
39377 \begin_inset Index idx
39380 \begin_layout Plain Layout
39381 External Document Parts ! Child Documents
39387 \begin_inset Index idx
39390 \begin_layout Plain Layout
39399 \begin_layout Standard
39400 Child documents are used if you have a long document consisting of several
39401 larger parts or sections.
39402 For maintenance it is often useful and sometimes even required to split
39403 the document into several files that can be revised separately.
39404 The different documents are then the so called
39405 \begin_inset Quotes eld
39409 \begin_inset Quotes erd
39412 , and a master document connects them to print the full document or parts
39414 A child document inherits elements from its master, for example the LaTeX
39415 preamble, the bibliography, and labels for cross-references.
39418 \begin_layout Standard
39419 To be able to work on child documents without the need to open their master,
39420 specify in the child document the master in the menu
39422 Document\SpecialChar \menuseparator
39423 Settings\SpecialChar \menuseparator
39425 \begin_inset space ~
39431 This master document will then be used in the background by LyX when you
39432 edit the child document.
39435 \begin_layout Standard
39436 Included documents are displayed in LyX as a box like this:
39437 \begin_inset Graphics
39438 filename clipart/ChildDocumentQt4.png
39440 scaleBeforeRotation
39444 To include child documents in a master document use the menu
39446 Insert\SpecialChar \menuseparator
39447 File\SpecialChar \menuseparator
39449 \begin_inset space ~
39455 A dialog pops up where you can choose between four include methods:
39458 \begin_layout Description
39459 Include You can include LyX- and LaTeX-documents.
39468 dialog, the included document will be opened in LyX in a new file tab so
39469 that you can modify it.
39470 \begin_inset Newline newline
39476 \begin_layout Standard
39477 Here is a child document inserted using
39482 \begin_inset CommandInset include
39483 LatexCommand include
39484 filename "DummyDocument1.lyx"
39491 \begin_layout Standard
39492 The section numbering includes the sections of the included files in the
39493 order they are inserted in the master document.
39494 The included example document has for example a subsection that is numbered
39495 as a subsection of this section.
39496 Labels of included documents can be referenced: Subsection
39497 \begin_inset space ~
39501 \begin_inset CommandInset ref
39503 reference "sub:External-Subsection-1"
39510 \begin_layout Standard
39511 The preamble of the child document is ignored; only the preamble of the
39512 master document is used.
39513 Branches in child documents will be ignored by the master document when
39514 the master document does not have a branch with the same name.
39515 Included documents are inserted starting on a new page and ending with
39519 \begin_layout Standard
39520 \begin_inset Note Greyedout
39523 \begin_layout Plain Layout
39528 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39529 the document in case the child document uses another document class than
39530 the master document as this will lead to unexpected outputs.
39538 \begin_layout Description
39539 Input This method is very similar to the Include method.
39540 The differences are:
39544 \begin_layout Itemize
39545 Input files don't start with a new page and don't end with a page break.
39548 \begin_layout Itemize
39549 Input files can be previewed in LyX when
39552 \begin_inset space ~
39557 is enabled in LyX's preferences under
39560 \begin_inset space ~
39564 \begin_inset space ~
39567 feel\SpecialChar \menuseparator
39573 \begin_layout Itemize
39574 You cannot exclude Input files via the menu
39576 Document\SpecialChar \menuseparator
39577 Settings\SpecialChar \menuseparator
39584 \begin_layout Standard
39585 Here is a child document inserted using
39590 \begin_inset CommandInset include
39592 filename "DummyDocument2.lyx"
39599 \begin_layout Description
39600 Verbatim With this method any text file can be included.
39601 The file is shown in the output with its source code; no command used in
39602 the text is invoked.
39603 You can use the option
39605 Mark spaces in output
39607 that displays the character
39608 \begin_inset Quotes eld
39615 \begin_layout Plain Layout
39625 \begin_inset Quotes erd
39628 for every space character in the source code.
39629 The difference from the method via the menu
39631 Insert\SpecialChar \menuseparator
39632 File\SpecialChar \menuseparator
39634 \begin_inset space ~
39639 is that the document content is not shown in LyX.
39642 \begin_layout Standard
39643 Here is a child document inserted as Verbatim:
39644 \begin_inset CommandInset include
39645 LatexCommand verbatiminput
39646 filename "DummyTextDocument.txt"
39651 \begin_inset VSpace bigskip
39654 Here is a child document inserted as Verbatim using the
39656 Mark spaces in output
39659 \begin_inset CommandInset include
39660 LatexCommand verbatiminput*
39661 filename "DummyTextDocument.txt"
39668 \begin_layout Standard
39669 \begin_inset VSpace bigskip
39675 \begin_layout Standard
39676 \begin_inset Note Greyedout
39679 \begin_layout Plain Layout
39684 As you can see in the examples above, the text of the documents included
39689 is not broken at the end of the document lines.
39697 \begin_layout Description
39698 Listings This type is described in chapter
39699 \begin_inset space ~
39703 \begin_inset CommandInset ref
39705 reference "cha:Program-Code-Listings"
39712 \begin_layout Standard
39713 \begin_inset Note Greyedout
39716 \begin_layout Plain Layout
39721 Including the same document twice in a document using different methods
39722 could cause LaTeX-problems.
39730 \begin_layout Standard
39731 If you want to view/export only selected children of your master document,
39732 either because you want to save compiling time or because you want to distribut
39733 e single chapters of the book you are just writing, you can exclude children
39735 This is done via the menu
39737 Document\SpecialChar \menuseparator
39738 Settings\SpecialChar \menuseparator
39742 You can exclude\SpecialChar \slash{}
39743 include children by double-clicking on the
39747 column of the respective child document in the list (note that this only
39748 works for documents embedded via
39749 \begin_inset Quotes eld
39753 \begin_inset Quotes erd
39757 \begin_inset Quotes eld
39761 \begin_inset Quotes erd
39767 Maintain counters and references
39769 is enabled, LyX will assure that all page numbers, references etc.
39770 \begin_inset space ~
39773 are correct as if the whole document was processed.
39774 This is useful if you want the selected sub-documents to look exactly as
39775 in the context of the whole document.
39776 However, LyX needs to process the whole document in the background for
39778 So if you want to save compile time and if counters and references do not
39779 need to be correct, disable this checkbox.
39782 \begin_layout Standard
39783 Alternatively, you can put each included file into a branch.
39787 \begin_layout Plain Layout
39788 Branches are described in section
39801 By enabling\SpecialChar \slash{}
39802 disabling branches you can decide which included files will
39803 appear in the output.
39804 This has the advantage that it also works with Input'ed sub-documents.
39805 However, counters and references will not be maintained with this approach.
39808 \begin_layout Chapter
39809 Program Code Listings
39810 \begin_inset CommandInset label
39812 name "cha:Program-Code-Listings"
39817 \begin_inset Index idx
39820 \begin_layout Plain Layout
39827 \begin_inset Index idx
39830 \begin_layout Plain Layout
39837 \begin_inset Index idx
39840 \begin_layout Plain Layout
39849 \begin_layout Standard
39850 To include and typeset program code you can use the
39854 inset that can be inserted via the menu
39856 Insert\SpecialChar \menuseparator
39865 \begin_inset Index idx
39868 \begin_layout Plain Layout
39869 LaTeX-packages ! listings
39874 provides a powerful and flexible way to insert program source code into
39878 \begin_layout Standard
39879 Right-clicking on a listings inset opens the context menu containing where
39880 you can set the listings format.
39883 \begin_layout Standard
39884 By default, a listing starts a new paragraph in the output.
39885 The placement option
39888 \begin_inset space ~
39893 prints the listing inline like this:
39894 \begin_inset listings
39895 lstparams "language={C++}"
39899 \begin_layout Plain Layout
39907 \begin_inset Newline newline
39914 creates a listings float where you can specify the placement options
39915 \begin_inset Quotes eld
39923 \begin_inset Quotes erd
39927 \begin_inset Quotes eld
39935 \begin_inset Quotes erd
39939 \begin_inset Quotes eld
39947 \begin_inset Quotes erd
39951 \begin_inset Quotes eld
39959 \begin_inset Quotes erd
39962 corresponding to the float placement options described in section
39963 \begin_inset space ~
39967 \begin_inset CommandInset ref
39969 reference "sec:Float-Placement"
39974 The placement options can be mixed and are inserted without any separation,
39976 \begin_inset space \thinspace{}
39980 \begin_inset space \space{}
39984 \begin_inset Quotes eld
39992 \begin_inset Quotes erd
39997 \begin_inset Quotes eld
40001 \begin_inset Quotes erd
40004 has sometimes no effect, but you don't need to use the
40008 option in this case as also non-float listings can have captions and be
40012 \begin_layout Standard
40013 You can add captions to listings with the menu
40015 Insert\SpecialChar \menuseparator
40019 Listings can be referenced like floats: Listing
40020 \begin_inset space ~
40024 \begin_inset CommandInset ref
40026 reference "lst:Example-Listing"
40031 A list of listings which contains all listings with captions can be created
40034 Insert\SpecialChar \menuseparator
40036 \begin_inset space ~
40040 \begin_inset space ~
40043 TOC\SpecialChar \menuseparator
40047 The list entries are the listing caption and the listing number.
40050 \begin_layout Standard
40051 \begin_inset listings
40052 lstparams "language=Python"
40056 \begin_layout Plain Layout
40058 \begin_inset Caption Standard
40060 \begin_layout Plain Layout
40061 \begin_inset CommandInset label
40063 name "lst:Example-Listing"
40067 Example Listing float
40072 # Example listing float
40075 \begin_layout Plain Layout
40080 \begin_layout Plain Layout
40082 'this is a python function'
40085 \begin_layout Plain Layout
40095 \begin_layout Standard
40096 When you have set a programming language in the listings dialog, the keywords
40097 of this language will be recognized and specially typeset in the output.
40098 In the example listings the Python keyword
40099 \begin_inset Quotes eld
40103 \begin_inset Quotes erd
40106 is recognized and printed bold in the output.
40109 \begin_layout Standard
40110 \begin_inset Note Greyedout
40113 \begin_layout Plain Layout
40118 If you don't get bold keywords when using typewriter fonts, your
40122 font probably doesn't provide a bold shape.
40123 In this case select a different one in the menu
40125 Document\SpecialChar \menuseparator
40126 Settings\SpecialChar \menuseparator
40138 provide bold shapes.)
40146 \begin_layout Standard
40150 \begin_inset space ~
40155 of the listings dialog you can specify the line numbering style.
40156 You can insert a number to specify which lines are numbered in the field
40163 \begin_inset space \thinspace{}
40167 \begin_inset space \space{}
40171 \begin_inset Quotes eld
40175 \begin_inset Quotes erd
40178 , only every 3rd line will be numbered.
40181 \begin_layout Standard
40182 You can furthermore specify a range of lines; only these will then appear
40186 Extended character table
40188 should be used when you use national characters like the German umlauts
40190 \begin_inset Newline newline
40193 Here is an example listing with left line numbering, step
40194 \begin_inset Quotes eld
40198 \begin_inset Quotes erd
40202 \begin_inset Quotes eld
40206 \begin_inset Quotes erd
40210 \begin_inset Quotes eld
40213 Extended character table
40214 \begin_inset Quotes erd
40218 \begin_inset Quotes eld
40222 \begin_inset space ~
40226 \begin_inset space ~
40230 \begin_inset Quotes erd
40234 \begin_inset space \thinspace{}
40238 \begin_inset space \thinspace{}
40244 \begin_layout Standard
40245 \begin_inset listings
40246 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
40250 \begin_layout Plain Layout
40255 \begin_layout Plain Layout
40257 'this is a python function'
40260 \begin_layout Plain Layout
40265 \begin_layout Plain Layout
40270 \begin_layout Plain Layout
40272 'This is a German word: Tschüß'
40275 \begin_layout Plain Layout
40280 \begin_layout Plain Layout
40285 \begin_layout Plain Layout
40287 'this is a python function'
40290 \begin_layout Plain Layout
40300 \begin_layout Standard
40301 When you have tabulators in your listing, you can specify the number of
40302 characters that are spanned by a tabulator in the field
40305 \begin_inset space ~
40313 \begin_layout Standard
40314 \begin_inset Note Greyedout
40317 \begin_layout Plain Layout
40322 Due to a bug in the
40326 package the line numbering is shifted by a line by every previous listing.
40327 That's the reason why the lines 2 and 5 are numbered in the above listing
40328 and not the lines 3 and 6.
40336 \begin_layout Standard
40337 \begin_inset VSpace bigskip
40343 \begin_layout Standard
40344 It is also possible to print lines from a file as listing.
40345 To do this, use the menu
40347 Insert\SpecialChar \menuseparator
40348 File\SpecialChar \menuseparator
40351 and choose the type
40359 \begin_layout Plain Layout
40360 The other child document types are described in section
40361 \begin_inset space ~
40365 \begin_inset CommandInset ref
40367 reference "sec:Child-Documents"
40376 In the child document dialog you can specify the listing parameters in
40378 To show a list of all available parameters, type in a question mark
40379 \begin_inset Quotes eld
40383 \begin_inset Quotes erd
40389 \begin_layout Standard
40390 To reference child document listings, write a label text into the corresponding
40391 field of the child document dialog.
40392 The label can then be referenced using the menu
40394 Insert\SpecialChar \menuseparator
40400 \begin_layout Standard
40402 \begin_inset space ~
40406 \begin_inset CommandInset ref
40408 reference "lst:file-listing"
40412 is an example for a listing of a file; there the lines 10
40413 \begin_inset space \thinspace{}
40417 \begin_inset space \thinspace{}
40420 15 of this LyX file are listed.
40423 \begin_layout Standard
40424 \begin_inset CommandInset include
40425 LatexCommand lstinputlisting
40426 filename "EmbeddedObjects.lyx"
40427 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40434 \begin_layout Standard
40435 \begin_inset VSpace bigskip
40441 \begin_layout Standard
40442 Inserting a formula into a listing can be done the following way:
40445 \begin_layout Enumerate
40446 Open the listings dialog and add
40447 \begin_inset Newline newline
40455 \begin_inset Newline newline
40458 to the field of the
40465 \begin_layout Enumerate
40466 Create a formula outside the listing
40469 \begin_layout Enumerate
40470 Copy the content of the formula (not the formula inset) to the clipboard
40480 \begin_layout Enumerate
40481 In the listing write
40482 \begin_inset Quotes eld
40490 \begin_inset Quotes erd
40493 and copy from the clipboard between the dollar-signs (shortcut
40502 \begin_layout Standard
40503 \begin_inset listings
40504 lstparams "language=Python,mathescape=true"
40508 \begin_layout Plain Layout
40510 \begin_inset Caption Standard
40512 \begin_layout Plain Layout
40513 Example Listing float containing a formula
40518 # Example listing float
40521 \begin_layout Plain Layout
40526 \begin_layout Plain Layout
40539 \begin_layout Plain Layout
40549 \begin_layout Standard
40550 \begin_inset VSpace bigskip
40556 \begin_layout Standard
40557 Global listings settings can be set in the
40559 Document\SpecialChar \menuseparator
40560 Settings\SpecialChar \menuseparator
40564 To get there a list of available options, type in a question mark
40565 \begin_inset Quotes eld
40569 \begin_inset Quotes erd
40575 \begin_layout Standard
40576 For more information about the
40580 package, we refer to its documentation
40581 \begin_inset CommandInset citation
40590 \begin_layout Standard
40591 \begin_inset Newpage newpage
40597 \begin_layout Chapter
40599 Units available in LyX
40600 \begin_inset Index idx
40603 \begin_layout Plain Layout
40610 \begin_inset CommandInset label
40612 name "cha:Units-available-in"
40619 \begin_layout Standard
40620 To understand the units described in this documentation, Table
40621 \begin_inset space ~
40625 \begin_inset CommandInset ref
40627 reference "tab:Units"
40631 explains all units available in LyX.
40634 \begin_layout Standard
40635 \begin_inset Float table
40641 \begin_layout Plain Layout
40642 \begin_inset Caption Standard
40644 \begin_layout Plain Layout
40645 \begin_inset CommandInset label
40659 \begin_layout Plain Layout
40660 \begin_inset VSpace medskip
40666 \begin_layout Plain Layout
40668 \begin_inset Tabular
40669 <lyxtabular version="3" rows="20" columns="2">
40670 <features rotate="0" tabularvalignment="middle">
40671 <column alignment="center" valignment="top">
40672 <column alignment="center" valignment="top">
40674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40677 \begin_layout Plain Layout
40683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40686 \begin_layout Plain Layout
40694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40697 \begin_layout Plain Layout
40703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40706 \begin_layout Plain Layout
40714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40717 \begin_layout Plain Layout
40723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40726 \begin_layout Plain Layout
40734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40737 \begin_layout Plain Layout
40743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40746 \begin_layout Plain Layout
40754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40757 \begin_layout Plain Layout
40763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40766 \begin_layout Plain Layout
40768 \begin_inset space \thinspace{}
40772 \begin_inset space \thinspace{}
40782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40785 \begin_layout Plain Layout
40791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40794 \begin_layout Plain Layout
40796 \begin_inset space \thinspace{}
40800 \begin_inset space \thinspace{}
40810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40813 \begin_layout Plain Layout
40819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40822 \begin_layout Plain Layout
40823 scaled point (65536
40824 \begin_inset space \thinspace{}
40828 \begin_inset space \thinspace{}
40838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40841 \begin_layout Plain Layout
40847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40850 \begin_layout Plain Layout
40852 \begin_inset space \thinspace{}
40856 \begin_inset space \thinspace{}
40866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40869 \begin_layout Plain Layout
40875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40878 \begin_layout Plain Layout
40880 \begin_inset space \thinspace{}
40884 \begin_inset Formula $\approx$
40888 \begin_inset space \thinspace{}
40898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40901 \begin_layout Plain Layout
40907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40910 \begin_layout Plain Layout
40912 \begin_inset space \thinspace{}
40916 \begin_inset space \thinspace{}
40926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40929 \begin_layout Plain Layout
40935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40938 \begin_layout Plain Layout
40939 % of original image width
40946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40949 \begin_layout Plain Layout
40955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40958 \begin_layout Plain Layout
40966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40969 \begin_layout Plain Layout
40975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40978 \begin_layout Plain Layout
40986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40989 \begin_layout Plain Layout
40995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40998 \begin_layout Plain Layout
41006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41009 \begin_layout Plain Layout
41015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41018 \begin_layout Plain Layout
41026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41029 \begin_layout Plain Layout
41035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41038 \begin_layout Plain Layout
41046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41049 \begin_layout Plain Layout
41055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41058 \begin_layout Plain Layout
41066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41069 \begin_layout Plain Layout
41075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41078 \begin_layout Plain Layout
41090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41093 \begin_layout Plain Layout
41099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41102 \begin_layout Plain Layout
41114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41117 \begin_layout Plain Layout
41123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41126 \begin_layout Plain Layout
41128 \begin_inset space \thinspace{}
41132 \begin_inset space \thinspace{}
41153 \begin_layout Chapter
41154 Output File Formats with Graphics
41155 \begin_inset CommandInset label
41157 name "cha:Output-File-Formats"
41164 \begin_layout Section
41166 \begin_inset Index idx
41169 \begin_layout Plain Layout
41176 \begin_inset Index idx
41179 \begin_layout Plain Layout
41184 \begin_layout Plain Layout
41195 \begin_layout Plain Layout
41210 \begin_layout Standard
41211 This file type has the extension
41212 \begin_inset Quotes eld
41220 \begin_inset Quotes erd
41225 \begin_inset Quotes eld
41229 \begin_inset Quotes erd
41232 (DVI), because it is completely portable; you can move them from one machine
41233 to another without needing to do any sort of conversion.
41234 At the time when this file-format was developed, this was no matter of
41236 DVIs are used for quick previews and as pre-stage for other output formats,
41240 \begin_layout Standard
41241 \begin_inset Note Greyedout
41244 \begin_layout Plain Layout
41249 DVI-files do not contain images; they will only be a linked.
41254 So don't forget this, if you move your
41258 file to another computer.
41259 This property can also slow down your computer when you view the DVI, because
41260 the DVI-viewer has to convert the image in the background to make it visible
41261 when you scroll in the DVI.
41262 So it is recommended that you use PDF for files with many images.
41265 \begin_layout Standard
41266 You can export your document to DVI by using the menu
41268 File\SpecialChar \menuseparator
41269 Export\SpecialChar \menuseparator
41273 You can view your document as DVI via the
41280 \begin_layout Section
41282 \begin_inset CommandInset label
41284 name "sec:PostScript"
41289 \begin_inset Index idx
41292 \begin_layout Plain Layout
41293 File Formats ! PostScript
41299 \begin_inset Index idx
41302 \begin_layout Plain Layout
41307 \begin_layout Plain Layout
41318 \begin_layout Plain Layout
41333 \begin_layout Standard
41334 This file type has the extension
41335 \begin_inset Quotes eld
41343 \begin_inset Quotes erd
41347 PostScript was developed by the company
41351 as a printer language.
41352 The file therefore contains commands that the printer uses to print the
41354 PostScript can be seen as a
41355 \begin_inset Quotes eld
41358 programming language
41359 \begin_inset Quotes erd
41362 ; you can calculate with it and draw diagrams and images
41366 \begin_layout Plain Layout
41367 If you are interested to learn more about this, have a look at the LaTeX-package
41373 \begin_inset CommandInset citation
41385 Due to this ability, the files are often bigger than PDFs.
41388 \begin_layout Standard
41389 PostScript can only contain images in the format
41390 \begin_inset Quotes eld
41393 Encapsulated PostScript
41394 \begin_inset Quotes erd
41397 (EPS, file extension
41398 \begin_inset Quotes eld
41406 \begin_inset Quotes erd
41410 As LyX allows you to use any known image format in your document, it has
41411 to convert images in the background to EPS.
41413 \begin_inset space ~
41417 \begin_inset space ~
41420 images in your document, LyX has to do 50
41421 \begin_inset space ~
41424 conversions whenever you view or export your document.
41425 This will slow down your work flow with LyX drastically.
41426 So if you plan to use PostScript, you can insert your images directly as
41427 EPS to avoid this problem.
41430 \begin_layout Standard
41431 You can export your document to PostScript using the menu
41433 File\SpecialChar \menuseparator
41434 Export\SpecialChar \menuseparator
41438 You can view your document as PostScript via the
41445 \begin_layout Section
41447 \begin_inset Index idx
41450 \begin_layout Plain Layout
41457 \begin_inset Index idx
41460 \begin_layout Plain Layout
41469 \begin_layout Standard
41470 This file type has the extension
41471 \begin_inset Quotes eld
41479 \begin_inset Quotes erd
41484 \begin_inset Quotes eld
41487 Portable Document Format
41488 \begin_inset Quotes erd
41491 (PDF) was developed by
41495 as a derivative of PostScript.
41496 It is more compressed and it uses fewer commands than PostScript.
41498 \begin_inset Quotes eld
41502 \begin_inset Quotes erd
41505 implies, it can be processed at any computer system and the printed output
41506 looks exactly the same.
41509 \begin_layout Standard
41510 PDF can contain images in its own PDF format, in the format
41511 \begin_inset Quotes eld
41514 Joint Photographic Experts Group
41515 \begin_inset Quotes erd
41518 (JPG, file extension
41519 \begin_inset Quotes eld
41527 \begin_inset Quotes erd
41531 \begin_inset Quotes eld
41539 \begin_inset Quotes erd
41542 ), and in the format
41543 \begin_inset Quotes eld
41546 Portable Network Graphics
41547 \begin_inset Quotes erd
41550 (PNG, file extension
41551 \begin_inset Quotes eld
41559 \begin_inset Quotes erd
41563 Nevertheless you can use any other image format, because LyX converts them
41564 in the background to one of these formats.
41565 But as described in the section about PostScript, the image conversion
41566 will slow down your work flow.
41567 So it is recommended that you use images in one of the three mentioned
41571 \begin_layout Standard
41572 You can export your document to PDF via the menu
41574 File\SpecialChar \menuseparator
41577 in three different ways:
41580 \begin_layout Description
41582 \begin_inset space ~
41585 (ps2pdf) This uses the program
41589 that creates a PDF from a PostScript-version of your file.
41590 The PostScript-version is produced by the program
41594 which uses a DVI-version as intermediate step.
41595 So this export variant consists of three conversions.
41598 \begin_layout Description
41600 \begin_inset space ~
41603 (dvipdfm) This uses the program
41607 that converts your file in the background to DVI and in a second step to
41611 \begin_layout Description
41613 \begin_inset space ~
41616 (pdflatex) This uses the program
41620 that converts your file directly to PDF.
41623 \begin_layout Standard
41624 It is recommended that you use
41627 \begin_inset space ~
41636 supports all features of actual PDF-versions, is quick and works stable.
41641 is not under development and therefore a bit outdated.
41644 \begin_layout Standard
41645 You can view your document as PDF via the
41649 menu or by using a toolbar button.
41652 \begin_layout Chapter
41653 List of dvips color names
41654 \begin_inset CommandInset label
41656 name "chap:List-of-dvips-colornames"
41663 \begin_layout Standard
41664 \begin_inset Tabular
41665 <lyxtabular version="3" rows="17" columns="4">
41666 <features rotate="0" tabularvalignment="middle">
41667 <column alignment="left" valignment="top" width="0pt">
41668 <column alignment="left" valignment="top" width="0pt">
41669 <column alignment="left" valignment="top" width="0pt">
41670 <column alignment="left" valignment="top" width="0pt">
41672 <cell alignment="left" valignment="top" usebox="none">
41675 \begin_layout Plain Layout
41679 \begin_layout Plain Layout
41692 \begin_layout Plain Layout
41703 \begin_layout Plain Layout
41715 <cell alignment="left" valignment="top" usebox="none">
41718 \begin_layout Plain Layout
41722 \begin_layout Plain Layout
41735 \begin_layout Plain Layout
41746 \begin_layout Plain Layout
41758 <cell alignment="left" valignment="top" usebox="none">
41761 \begin_layout Plain Layout
41765 \begin_layout Plain Layout
41778 \begin_layout Plain Layout
41789 \begin_layout Plain Layout
41801 <cell alignment="left" valignment="top" usebox="none">
41804 \begin_layout Plain Layout
41808 \begin_layout Plain Layout
41821 \begin_layout Plain Layout
41832 \begin_layout Plain Layout
41846 <cell alignment="center" valignment="top" usebox="none">
41849 \begin_layout Plain Layout
41853 \begin_layout Plain Layout
41866 \begin_layout Plain Layout
41874 \begin_inset Phantom Phantom
41877 \begin_layout Plain Layout
41887 \begin_layout Plain Layout
41899 <cell alignment="center" valignment="top" usebox="none">
41902 \begin_layout Plain Layout
41906 \begin_layout Plain Layout
41919 \begin_layout Plain Layout
41927 \begin_inset Phantom Phantom
41930 \begin_layout Plain Layout
41940 \begin_layout Plain Layout
41952 <cell alignment="center" valignment="top" usebox="none">
41955 \begin_layout Plain Layout
41959 \begin_layout Plain Layout
41972 \begin_layout Plain Layout
41980 \begin_inset Phantom Phantom
41983 \begin_layout Plain Layout
41993 \begin_layout Plain Layout
42005 <cell alignment="center" valignment="top" usebox="none">
42008 \begin_layout Plain Layout
42012 \begin_layout Plain Layout
42025 \begin_layout Plain Layout
42033 \begin_inset Phantom Phantom
42036 \begin_layout Plain Layout
42046 \begin_layout Plain Layout
42060 <cell alignment="left" valignment="top" usebox="none">
42063 \begin_layout Plain Layout
42067 \begin_layout Plain Layout
42080 \begin_layout Plain Layout
42088 \begin_inset Phantom Phantom
42091 \begin_layout Plain Layout
42101 \begin_layout Plain Layout
42113 <cell alignment="left" valignment="top" usebox="none">
42116 \begin_layout Plain Layout
42120 \begin_layout Plain Layout
42133 \begin_layout Plain Layout
42141 \begin_inset Phantom Phantom
42144 \begin_layout Plain Layout
42154 \begin_layout Plain Layout
42166 <cell alignment="left" valignment="top" usebox="none">
42169 \begin_layout Plain Layout
42173 \begin_layout Plain Layout
42186 \begin_layout Plain Layout
42194 \begin_inset Phantom Phantom
42197 \begin_layout Plain Layout
42207 \begin_layout Plain Layout
42219 <cell alignment="left" valignment="top" usebox="none">
42222 \begin_layout Plain Layout
42226 \begin_layout Plain Layout
42239 \begin_layout Plain Layout
42247 \begin_inset Phantom Phantom
42250 \begin_layout Plain Layout
42260 \begin_layout Plain Layout
42274 <cell alignment="left" valignment="top" usebox="none">
42277 \begin_layout Plain Layout
42281 \begin_layout Plain Layout
42294 \begin_layout Plain Layout
42302 \begin_inset Phantom Phantom
42305 \begin_layout Plain Layout
42315 \begin_layout Plain Layout
42327 <cell alignment="left" valignment="top" usebox="none">
42330 \begin_layout Plain Layout
42334 \begin_layout Plain Layout
42347 \begin_layout Plain Layout
42355 \begin_inset Phantom Phantom
42358 \begin_layout Plain Layout
42368 \begin_layout Plain Layout
42380 <cell alignment="left" valignment="top" usebox="none">
42383 \begin_layout Plain Layout
42387 \begin_layout Plain Layout
42400 \begin_layout Plain Layout
42408 \begin_inset Phantom Phantom
42411 \begin_layout Plain Layout
42421 \begin_layout Plain Layout
42433 <cell alignment="left" valignment="top" usebox="none">
42436 \begin_layout Plain Layout
42440 \begin_layout Plain Layout
42453 \begin_layout Plain Layout
42461 \begin_inset Phantom Phantom
42464 \begin_layout Plain Layout
42474 \begin_layout Plain Layout
42488 <cell alignment="left" valignment="top" usebox="none">
42491 \begin_layout Plain Layout
42495 \begin_layout Plain Layout
42508 \begin_layout Plain Layout
42516 \begin_inset Phantom Phantom
42519 \begin_layout Plain Layout
42529 \begin_layout Plain Layout
42541 <cell alignment="left" valignment="top" usebox="none">
42544 \begin_layout Plain Layout
42548 \begin_layout Plain Layout
42561 \begin_layout Plain Layout
42569 \begin_inset Phantom Phantom
42572 \begin_layout Plain Layout
42582 \begin_layout Plain Layout
42594 <cell alignment="left" valignment="top" usebox="none">
42597 \begin_layout Plain Layout
42601 \begin_layout Plain Layout
42614 \begin_layout Plain Layout
42622 \begin_inset Phantom Phantom
42625 \begin_layout Plain Layout
42635 \begin_layout Plain Layout
42647 <cell alignment="left" valignment="top" usebox="none">
42650 \begin_layout Plain Layout
42654 \begin_layout Plain Layout
42667 \begin_layout Plain Layout
42675 \begin_inset Phantom Phantom
42678 \begin_layout Plain Layout
42688 \begin_layout Plain Layout
42702 <cell alignment="left" valignment="top" usebox="none">
42705 \begin_layout Plain Layout
42709 \begin_layout Plain Layout
42722 \begin_layout Plain Layout
42730 \begin_inset Phantom Phantom
42733 \begin_layout Plain Layout
42743 \begin_layout Plain Layout
42755 <cell alignment="left" valignment="top" usebox="none">
42758 \begin_layout Plain Layout
42762 \begin_layout Plain Layout
42775 \begin_layout Plain Layout
42783 \begin_inset Phantom Phantom
42786 \begin_layout Plain Layout
42796 \begin_layout Plain Layout
42808 <cell alignment="left" valignment="top" usebox="none">
42811 \begin_layout Plain Layout
42815 \begin_layout Plain Layout
42828 \begin_layout Plain Layout
42836 \begin_inset Phantom Phantom
42839 \begin_layout Plain Layout
42849 \begin_layout Plain Layout
42861 <cell alignment="left" valignment="top" usebox="none">
42864 \begin_layout Plain Layout
42868 \begin_layout Plain Layout
42881 \begin_layout Plain Layout
42889 \begin_inset Phantom Phantom
42892 \begin_layout Plain Layout
42902 \begin_layout Plain Layout
42916 <cell alignment="center" valignment="top" usebox="none">
42919 \begin_layout Plain Layout
42923 \begin_layout Plain Layout
42936 \begin_layout Plain Layout
42944 \begin_inset Phantom Phantom
42947 \begin_layout Plain Layout
42957 \begin_layout Plain Layout
42969 <cell alignment="center" valignment="top" usebox="none">
42972 \begin_layout Plain Layout
42976 \begin_layout Plain Layout
42989 \begin_layout Plain Layout
42997 \begin_inset Phantom Phantom
43000 \begin_layout Plain Layout
43010 \begin_layout Plain Layout
43022 <cell alignment="center" valignment="top" usebox="none">
43025 \begin_layout Plain Layout
43029 \begin_layout Plain Layout
43042 \begin_layout Plain Layout
43050 \begin_inset Phantom Phantom
43053 \begin_layout Plain Layout
43063 \begin_layout Plain Layout
43075 <cell alignment="center" valignment="top" usebox="none">
43078 \begin_layout Plain Layout
43082 \begin_layout Plain Layout
43095 \begin_layout Plain Layout
43103 \begin_inset Phantom Phantom
43106 \begin_layout Plain Layout
43116 \begin_layout Plain Layout
43130 <cell alignment="left" valignment="top" usebox="none">
43133 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43150 \begin_layout Plain Layout
43158 \begin_inset Phantom Phantom
43161 \begin_layout Plain Layout
43171 \begin_layout Plain Layout
43183 <cell alignment="left" valignment="top" usebox="none">
43186 \begin_layout Plain Layout
43190 \begin_layout Plain Layout
43203 \begin_layout Plain Layout
43211 \begin_inset Phantom Phantom
43214 \begin_layout Plain Layout
43224 \begin_layout Plain Layout
43236 <cell alignment="left" valignment="top" usebox="none">
43239 \begin_layout Plain Layout
43243 \begin_layout Plain Layout
43256 \begin_layout Plain Layout
43264 \begin_inset Phantom Phantom
43267 \begin_layout Plain Layout
43277 \begin_layout Plain Layout
43289 <cell alignment="left" valignment="top" usebox="none">
43292 \begin_layout Plain Layout
43296 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43317 \begin_inset Phantom Phantom
43320 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43344 <cell alignment="left" valignment="top" usebox="none">
43347 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43364 \begin_layout Plain Layout
43372 \begin_inset Phantom Phantom
43375 \begin_layout Plain Layout
43385 \begin_layout Plain Layout
43397 <cell alignment="left" valignment="top" usebox="none">
43400 \begin_layout Plain Layout
43404 \begin_layout Plain Layout
43417 \begin_layout Plain Layout
43425 \begin_inset Phantom Phantom
43428 \begin_layout Plain Layout
43438 \begin_layout Plain Layout
43450 <cell alignment="left" valignment="top" usebox="none">
43453 \begin_layout Plain Layout
43457 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43478 \begin_inset Phantom Phantom
43481 \begin_layout Plain Layout
43491 \begin_layout Plain Layout
43503 <cell alignment="left" valignment="top" usebox="none">
43506 \begin_layout Plain Layout
43510 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43531 \begin_inset Phantom Phantom
43534 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43558 <cell alignment="left" valignment="top" usebox="none">
43561 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43578 \begin_layout Plain Layout
43586 \begin_inset Phantom Phantom
43589 \begin_layout Plain Layout
43599 \begin_layout Plain Layout
43611 <cell alignment="left" valignment="top" usebox="none">
43614 \begin_layout Plain Layout
43618 \begin_layout Plain Layout
43631 \begin_layout Plain Layout
43639 \begin_inset Phantom Phantom
43642 \begin_layout Plain Layout
43652 \begin_layout Plain Layout
43664 <cell alignment="left" valignment="top" usebox="none">
43667 \begin_layout Plain Layout
43671 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43692 \begin_inset Phantom Phantom
43695 \begin_layout Plain Layout
43705 \begin_layout Plain Layout
43717 <cell alignment="left" valignment="top" usebox="none">
43720 \begin_layout Plain Layout
43724 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43745 \begin_inset Phantom Phantom
43748 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43772 <cell alignment="left" valignment="top" usebox="none">
43775 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43792 \begin_layout Plain Layout
43800 \begin_inset Phantom Phantom
43803 \begin_layout Plain Layout
43813 \begin_layout Plain Layout
43825 <cell alignment="left" valignment="top" usebox="none">
43828 \begin_layout Plain Layout
43832 \begin_layout Plain Layout
43845 \begin_layout Plain Layout
43853 \begin_inset Phantom Phantom
43856 \begin_layout Plain Layout
43866 \begin_layout Plain Layout
43878 <cell alignment="left" valignment="top" usebox="none">
43881 \begin_layout Plain Layout
43885 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43906 \begin_inset Phantom Phantom
43909 \begin_layout Plain Layout
43919 \begin_layout Plain Layout
43931 <cell alignment="left" valignment="top" usebox="none">
43934 \begin_layout Plain Layout
43938 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43959 \begin_inset Phantom Phantom
43962 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43986 <cell alignment="left" valignment="top" usebox="none">
43989 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44006 \begin_layout Plain Layout
44014 \begin_inset Phantom Phantom
44017 \begin_layout Plain Layout
44027 \begin_layout Plain Layout
44039 <cell alignment="left" valignment="top" usebox="none">
44042 \begin_layout Plain Layout
44046 \begin_layout Plain Layout
44059 \begin_layout Plain Layout
44067 \begin_inset Phantom Phantom
44070 \begin_layout Plain Layout
44080 \begin_layout Plain Layout
44092 <cell alignment="left" valignment="top" usebox="none">
44095 \begin_layout Plain Layout
44099 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44120 \begin_inset Phantom Phantom
44123 \begin_layout Plain Layout
44133 \begin_layout Plain Layout
44145 <cell alignment="left" valignment="top" usebox="none">
44148 \begin_layout Plain Layout
44152 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44173 \begin_inset Phantom Phantom
44176 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44200 <cell alignment="left" valignment="top" usebox="none">
44203 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44220 \begin_layout Plain Layout
44228 \begin_inset Phantom Phantom
44231 \begin_layout Plain Layout
44241 \begin_layout Plain Layout
44253 <cell alignment="left" valignment="top" usebox="none">
44256 \begin_layout Plain Layout
44260 \begin_layout Plain Layout
44273 \begin_layout Plain Layout
44281 \begin_inset Phantom Phantom
44284 \begin_layout Plain Layout
44294 \begin_layout Plain Layout
44306 <cell alignment="left" valignment="top" usebox="none">
44309 \begin_layout Plain Layout
44313 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44334 \begin_inset Phantom Phantom
44337 \begin_layout Plain Layout
44347 \begin_layout Plain Layout
44359 <cell alignment="left" valignment="top" usebox="none">
44362 \begin_layout Plain Layout
44366 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44387 \begin_inset Phantom Phantom
44390 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44414 <cell alignment="left" valignment="top" usebox="none">
44417 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44434 \begin_layout Plain Layout
44442 \begin_inset Phantom Phantom
44445 \begin_layout Plain Layout
44455 \begin_layout Plain Layout
44467 <cell alignment="left" valignment="top" usebox="none">
44470 \begin_layout Plain Layout
44474 \begin_layout Plain Layout
44487 \begin_layout Plain Layout
44495 \begin_inset Phantom Phantom
44498 \begin_layout Plain Layout
44508 \begin_layout Plain Layout
44520 <cell alignment="left" valignment="top" usebox="none">
44523 \begin_layout Plain Layout
44527 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44548 \begin_inset Phantom Phantom
44551 \begin_layout Plain Layout
44561 \begin_layout Plain Layout
44573 <cell alignment="left" valignment="top" usebox="none">
44576 \begin_layout Plain Layout
44580 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44601 \begin_inset Phantom Phantom
44604 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44628 <cell alignment="left" valignment="top" usebox="none">
44631 \begin_layout Plain Layout
44635 \begin_layout Plain Layout
44648 \begin_layout Plain Layout
44656 \begin_inset Phantom Phantom
44659 \begin_layout Plain Layout
44669 \begin_layout Plain Layout
44681 <cell alignment="left" valignment="top" usebox="none">
44684 \begin_layout Plain Layout
44688 \begin_layout Plain Layout
44701 \begin_layout Plain Layout
44709 \begin_inset Phantom Phantom
44712 \begin_layout Plain Layout
44722 \begin_layout Plain Layout
44734 <cell alignment="left" valignment="top" usebox="none">
44737 \begin_layout Plain Layout
44741 \begin_layout Plain Layout
44754 \begin_layout Plain Layout
44762 \begin_inset Phantom Phantom
44765 \begin_layout Plain Layout
44775 \begin_layout Plain Layout
44787 <cell alignment="left" valignment="top" usebox="none">
44790 \begin_layout Plain Layout
44794 \begin_layout Plain Layout
44807 \begin_layout Plain Layout
44815 \begin_inset Phantom Phantom
44818 \begin_layout Plain Layout
44828 \begin_layout Plain Layout
44842 <cell alignment="left" valignment="top" usebox="none">
44845 \begin_layout Plain Layout
44849 \begin_layout Plain Layout
44862 \begin_layout Plain Layout
44870 \begin_inset Phantom Phantom
44873 \begin_layout Plain Layout
44883 \begin_layout Plain Layout
44895 <cell alignment="left" valignment="top" usebox="none">
44898 \begin_layout Plain Layout
44902 \begin_layout Plain Layout
44915 \begin_layout Plain Layout
44923 \begin_inset Phantom Phantom
44926 \begin_layout Plain Layout
44936 \begin_layout Plain Layout
44948 <cell alignment="left" valignment="top" usebox="none">
44951 \begin_layout Plain Layout
44955 \begin_layout Plain Layout
44968 \begin_layout Plain Layout
44976 \begin_inset Phantom Phantom
44979 \begin_layout Plain Layout
44989 \begin_layout Plain Layout
45001 <cell alignment="left" valignment="top" usebox="none">
45004 \begin_layout Plain Layout
45008 \begin_layout Plain Layout
45021 \begin_layout Plain Layout
45029 \begin_inset Phantom Phantom
45032 \begin_layout Plain Layout
45042 \begin_layout Plain Layout
45056 <cell alignment="left" valignment="top" usebox="none">
45059 \begin_layout Plain Layout
45063 \begin_layout Plain Layout
45076 \begin_layout Plain Layout
45084 \begin_inset Phantom Phantom
45087 \begin_layout Plain Layout
45097 \begin_layout Plain Layout
45109 <cell alignment="left" valignment="top" usebox="none">
45112 \begin_layout Plain Layout
45118 <cell alignment="left" valignment="top" usebox="none">
45121 \begin_layout Plain Layout
45127 <cell alignment="left" valignment="top" usebox="none">
45130 \begin_layout Plain Layout
45144 \begin_layout Chapter
45145 Explanation of Equation
45146 \begin_inset space ~
45150 \begin_inset CommandInset ref
45157 \begin_inset CommandInset label
45159 name "cha:Explanation-of-Equation"
45166 \begin_layout Standard
45167 We can calculate the total width of
45172 \begin_inset Formula $W_{\mathrm{tot\,n}}$
45176 \begin_inset Formula
45178 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
45184 \begin_inset Formula $W_{g\,n}$
45187 is the given width of all cells,
45193 is the LaTeX-length between the cell text and the cell border (its default
45195 \begin_inset space \thinspace{}
45205 is the thickness of the cell border line, the default is 0.4
45206 \begin_inset space \thinspace{}
45212 \begin_layout Standard
45214 \begin_inset space ~
45218 \begin_inset CommandInset ref
45220 reference "eq:Wtot_n"
45224 , the total width of a multicolumn
45225 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45229 \begin_inset Formula
45231 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45239 \begin_layout Standard
45240 By setting equation
45241 \begin_inset space ~
45245 \begin_inset CommandInset ref
45247 reference "eq:Wtot_n"
45252 \begin_inset CommandInset ref
45254 reference "eq:Wtot_mult"
45258 equal we can calculate the needed given width
45259 \begin_inset Formula $W_{g\,n}$
45266 columns are spanned, so that each column has a total width of
45267 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45271 \begin_inset Formula
45273 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45281 \begin_layout Bibliography
45282 \begin_inset CommandInset bibitem
45283 LatexCommand bibitem
45284 key "latexcompanion"
45288 Frank Mittelbach and Michel Goossens:
45290 The LaTeX Companion Second Edition.
45293 Addison-Wesley, 2004
45296 \begin_layout Bibliography
45297 \begin_inset CommandInset bibitem
45298 LatexCommand bibitem
45303 Helmut Kopka and Patrick W.
45306 A Guide to LaTeX Fourth Edition.
45309 Addison-Wesley, 2003
45312 \begin_layout Bibliography
45313 \begin_inset CommandInset bibitem
45314 LatexCommand bibitem
45321 LaTeX: A Document Preparation System.
45324 Addison-Wesley, second edition, 1994
45327 \begin_layout Bibliography
45328 \begin_inset CommandInset bibitem
45329 LatexCommand bibitem
45334 Documentation of the LaTeX-package
45337 \begin_inset CommandInset href
45340 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45347 \begin_inset Index idx
45350 \begin_layout Plain Layout
45351 LaTeX-packages ! arydshln
45359 \begin_layout Bibliography
45360 \begin_inset CommandInset bibitem
45361 LatexCommand bibitem
45366 Documentation of the LaTeX-package
45369 \begin_inset CommandInset href
45372 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45379 \begin_inset Index idx
45382 \begin_layout Plain Layout
45383 LaTeX-packages ! booktabs
45391 \begin_layout Bibliography
45392 \begin_inset CommandInset bibitem
45393 LatexCommand bibitem
45398 Documentation of the LaTeX-package
45401 \begin_inset CommandInset href
45404 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45411 \begin_inset Index idx
45414 \begin_layout Plain Layout
45415 LaTeX-packages ! caption
45423 \begin_layout Bibliography
45424 \begin_inset CommandInset bibitem
45425 LatexCommand bibitem
45430 Documentation of the LaTeX-package
45433 \begin_inset CommandInset href
45436 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45443 \begin_inset Index idx
45446 \begin_layout Plain Layout
45447 LaTeX-packages ! diagbox
45455 \begin_layout Bibliography
45456 \begin_inset CommandInset bibitem
45457 LatexCommand bibitem
45462 Documentation of the LaTeX-package
45465 \begin_inset CommandInset href
45468 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45475 \begin_inset Index idx
45478 \begin_layout Plain Layout
45479 LaTeX-packages ! endfloat
45487 \begin_layout Bibliography
45488 \begin_inset CommandInset bibitem
45489 LatexCommand bibitem
45494 Documentation of the LaTeX-package
45497 \begin_inset CommandInset href
45500 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45507 \begin_inset Index idx
45510 \begin_layout Plain Layout
45511 LaTeX-packages ! footmisc
45519 \begin_layout Bibliography
45520 \begin_inset CommandInset bibitem
45521 LatexCommand bibitem
45526 Documentation of the LaTeX-package
45529 \begin_inset CommandInset href
45532 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45539 \begin_inset Index idx
45542 \begin_layout Plain Layout
45543 LaTeX-packages ! hyperref
45551 \begin_layout Bibliography
45552 \begin_inset CommandInset bibitem
45553 LatexCommand bibitem
45558 Documentation of the LaTeX-package
45561 \begin_inset CommandInset href
45564 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45571 \begin_inset Index idx
45574 \begin_layout Plain Layout
45575 LaTeX-packages ! hyperref
45583 \begin_layout Bibliography
45584 \begin_inset CommandInset bibitem
45585 LatexCommand bibitem
45590 Documentation of the LaTeX-package
45593 \begin_inset CommandInset href
45596 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45603 \begin_inset Index idx
45606 \begin_layout Plain Layout
45607 LaTeX-packages ! KOMA-Script
45615 \begin_layout Bibliography
45616 \begin_inset CommandInset bibitem
45617 LatexCommand bibitem
45622 Documentation of the LaTeX-package
45625 \begin_inset CommandInset href
45628 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45635 \begin_inset CommandInset href
45638 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45643 \begin_inset Index idx
45646 \begin_layout Plain Layout
45647 LaTeX-packages ! lettrine
45655 \begin_layout Bibliography
45656 \begin_inset CommandInset bibitem
45657 LatexCommand bibitem
45662 Documentation of the LaTeX-package
45665 \begin_inset CommandInset href
45668 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45675 \begin_inset Index idx
45678 \begin_layout Plain Layout
45679 LaTeX-packages ! listings
45687 \begin_layout Bibliography
45688 \begin_inset CommandInset bibitem
45689 LatexCommand bibitem
45694 Documentation of the LaTeX-package
45697 \begin_inset CommandInset href
45700 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45707 \begin_inset Index idx
45710 \begin_layout Plain Layout
45711 LaTeX-packages ! marginnote
45719 \begin_layout Bibliography
45720 \begin_inset CommandInset bibitem
45721 LatexCommand bibitem
45726 Documentation of the LaTeX-package
45729 \begin_inset CommandInset href
45732 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45739 \begin_inset Index idx
45742 \begin_layout Plain Layout
45743 LaTeX-packages ! pdfpages
45751 \begin_layout Bibliography
45752 \begin_inset CommandInset bibitem
45753 LatexCommand bibitem
45758 Documentation of the LaTeX-package
45761 \begin_inset CommandInset href
45764 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45771 \begin_inset Index idx
45774 \begin_layout Plain Layout
45775 LaTeX-packages ! prettyref
45783 \begin_layout Bibliography
45784 \begin_inset CommandInset bibitem
45785 LatexCommand bibitem
45790 Web page of the LaTeX-package
45793 \begin_inset CommandInset href
45796 target "http://tug.org/PSTricks/"
45803 \begin_inset Index idx
45806 \begin_layout Plain Layout
45807 LaTeX-packages ! PSTricks
45815 \begin_layout Bibliography
45816 \begin_inset CommandInset bibitem
45817 LatexCommand bibitem
45822 Documentation of the LaTeX-package
45825 \begin_inset CommandInset href
45828 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45835 \begin_inset Index idx
45838 \begin_layout Plain Layout
45839 LaTeX-packages ! refstyle
45847 \begin_layout Bibliography
45848 \begin_inset CommandInset bibitem
45849 LatexCommand bibitem
45854 Documentation of the LaTeX-package
45857 \begin_inset CommandInset href
45860 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45867 \begin_inset Index idx
45870 \begin_layout Plain Layout
45871 LaTeX-packages ! sidecap
45879 \begin_layout Bibliography
45880 \begin_inset CommandInset bibitem
45881 LatexCommand bibitem
45887 \begin_inset CommandInset href
45890 target "http://wiki.lyx.org/LyX/NewInLyX20"
45894 about new features in
45901 \begin_layout Standard
45902 \begin_inset CommandInset index_print
45903 LatexCommand printindex