1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for colored table rows
85 \usepackage[table]{xcolor}
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
154 \newboolean{lettrine}
155 \IfFileExists{lettrine.sty}
156 {\usepackage{lettrine}
157 \setboolean{lettrine}{true}}
158 {\setboolean{lettrine}{false}}
162 \IfFileExists{diagbox.sty}
163 {\usepackage{diagbox}
164 \setboolean{diagbox}{true}}
165 {\setboolean{diagbox}{false}}
167 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
168 \use_default_options false
172 \maintain_unincluded_children false
174 \language_package default
179 \font_typewriter default
181 \font_default_family default
182 \use_non_tex_fonts false
188 \default_output_format default
190 \bibtex_command default
191 \index_command default
195 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
196 \pdf_author "LyX Team, Uwe Stöhr"
197 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
198 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
200 \pdf_bookmarksnumbered true
201 \pdf_bookmarksopen true
202 \pdf_bookmarksopenlevel 1
203 \pdf_breaklinks false
207 \pdf_pdfusetitle false
208 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
211 \use_package amsmath 2
212 \use_package amssymb 2
213 \use_package cancel 0
215 \use_package mathdots 1
216 \use_package mathtools 0
217 \use_package mhchem 1
218 \use_package stackrel 0
219 \use_package stmaryrd 0
220 \use_package undertilde 0
222 \cite_engine_type default
226 \paperorientation portrait
230 \notefontcolor #0000ff
237 \paragraph_separation skip
239 \quotes_language english
242 \paperpagestyle default
243 \tracking_changes false
244 \output_changes false
247 \html_be_strict false
253 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
262 \begin_layout Plain Layout
264 If you have comments or error corrections, please send them to the LyX Documenta
266 \begin_inset CommandInset href
268 name "lyx-docs@lists.lyx.org"
269 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
280 \begin_inset Note Note
283 \begin_layout Plain Layout
290 \begin_inset Newline newline
294 \begin_inset Newline newline
302 \begin_layout Standard
303 \begin_inset CommandInset toc
304 LatexCommand tableofcontents
311 \begin_layout Standard
312 \begin_inset Note Note
315 \begin_layout Plain Layout
316 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
327 diagbox, lettrine, marginnote, picinpar
334 If they are not installed you can export the document anyway but the sections
335 where the packages are required won't appear in the output.
338 \begin_layout Plain Layout
339 The latest PDF-version of this document can be found here:
340 \begin_inset Newline newline
345 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
353 \begin_layout Chapter
355 \begin_inset Index idx
358 \begin_layout Plain Layout
365 \begin_inset Index idx
368 \begin_layout Plain Layout
373 \begin_layout Plain Layout
384 \begin_layout Plain Layout
399 \begin_layout Section
401 \begin_inset Index idx
404 \begin_layout Plain Layout
405 Figures ! Graphics Dialog
411 \begin_inset CommandInset label
413 name "sec:Graphics-Dialog"
420 \begin_layout Standard
421 To insert an image into your document, place the cursor at the text position
422 you want and click on the toolbar icon
425 arg "dialog-show-new-inset graphics"
430 Insert\SpecialChar \menuseparator
434 Then a dialog will appear to choose the file to load.
435 The image will appear in the output exactly at the position where it is
439 \begin_layout Standard
440 The graphics dialog can be called at any time by clicking on an image.
441 This dialog has three tabs:
444 \begin_layout Description
449 Here you can choose an image file and adjust its appearance in the output.
450 The available units for the image size are explained in appendix
455 \begin_inset CommandInset ref
457 reference "cha:Units-available-in"
462 \begin_inset Newline newline
466 \begin_inset Index idx
469 \begin_layout Plain Layout
475 You can rotate images counter-clockwise by setting a rotation angle and
477 The image will also be rotated inside LyX.
478 \begin_inset Newline newline
482 \begin_inset Index idx
485 \begin_layout Plain Layout
491 Images can be scaled by using a percentage value or by setting the width
492 and height explicitly.
493 If you set only the width or only the height, the other size will be determined
495 If you set both, then the image will be transformed to the given size,
496 possibly distorting it.
497 To prevent the image from distortion, use the option
499 Maintain aspect ratio
502 The image will then be scaled so that its width and height don't exceed
503 the specified dimensions.
504 \begin_inset Newline newline
507 Images can be opened in a program of your choice by right-clicking on it
508 and choosing the entry
517 The program can be set for every image format in the file format settings
518 in LyX's preferences.
521 \begin_layout Description
526 Alternatively to the usage of scaling units it is possible to set image
527 coordinates to adjust the height and width of the image in the output.
528 The coordinates can also be calculated automatically by pressing the button
558 will only print the image region within the given coordinates.
559 Normally you don't need to worry about image coordinates and can ignore
563 \begin_layout Description
580 In this tab you can modify the appearance of the image within LyX and LaTeX
581 experts can specify additional LaTeX options.
582 \begin_inset Newline newline
593 makes the image appear in the output only as a frame with the size of the
595 \begin_inset Newline newline
614 option only affects zipped EPS-graphics, e.
615 \begin_inset space \thinspace{}
619 \begin_inset space \space{}
627 When the option is used the images will not be unzipped on export, since
628 LaTeX can handle them as they are.
629 \begin_inset Newline newline
632 Zipped EPS-graphics are useful to save disk space when you choose PostScript
633 as output format, see appendix
638 \begin_inset CommandInset ref
640 reference "sec:PostScript"
645 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
647 \begin_inset Newline newline
655 \begin_inset Newline newline
660 zgrep %%Bounding x.eps.gz > x.eps.bb
663 \begin_inset Newline newline
666 The second command creates the bounding box file
667 \begin_inset Quotes eld
671 \begin_inset Quotes erd
674 that is needed by LaTeX for zipped graphics.
675 \begin_inset Newline newline
686 you can define or join an image settings group.
687 \begin_inset Index idx
690 \begin_layout Plain Layout
691 Figures ! Settings grouping
696 Images within such a group share their settings, so adjusting one image
697 of the group automatically also adjusts all other images of the group in
699 So you can for example change the size for a bunch of images without the
700 need to manually change each of them.
701 Joining an existing group can also be done using the context menu of the
702 image by checking the name of the desired group.
705 \begin_layout Standard
706 \begin_inset VSpace bigskip
712 \begin_layout Standard
713 This is an example image in EPS format
717 \begin_layout Plain Layout
718 Image formats are explained in section
723 \begin_inset CommandInset ref
725 reference "sec:Image-Formats"
734 within a separate, horizontally centered paragraph:
737 \begin_layout Standard
739 \begin_inset Graphics
740 filename clipart/mobius.eps
750 \begin_layout Standard
751 This is the same image like the one above but in draft mode:
754 \begin_layout Standard
756 \begin_inset Graphics
757 filename clipart/mobius.eps
768 \begin_layout Standard
769 \begin_inset Newpage newpage
775 \begin_layout Section
777 \begin_inset CommandInset label
779 name "sec:Figure-Floats"
784 \begin_inset Index idx
787 \begin_layout Plain Layout
794 \begin_inset Index idx
797 \begin_layout Plain Layout
806 \begin_layout Standard
807 For general explanations about floats, have a look at section
812 \begin_inset CommandInset ref
814 reference "sec:FloatIntroduction"
821 \begin_layout Standard
825 arg "float-insert figure"
830 Insert\SpecialChar \menuseparator
831 Float\SpecialChar \menuseparator
834 inserts a float with a caption that has the label
835 \begin_inset Quotes eld
843 \begin_inset Quotes erd
846 (# is the actual number).
847 You can insert the image above the caption, like in Figure
852 \begin_inset CommandInset ref
854 reference "fig:kill-plat"
858 or below the caption, like in Figure
863 \begin_inset CommandInset ref
865 reference "fig:escher"
870 More about caption placement is described in section
875 \begin_inset CommandInset ref
877 reference "sec:Caption-Placement"
884 \begin_layout Standard
885 \begin_inset Float figure
890 \begin_layout Plain Layout
892 \begin_inset Graphics
893 filename clipart/platypus.eps
903 \begin_layout Plain Layout
904 \begin_inset Caption Standard
906 \begin_layout Plain Layout
907 \begin_inset CommandInset label
913 A severely distorted platypus in a float.
926 \begin_layout Standard
927 \begin_inset Float figure
932 \begin_layout Plain Layout
933 \begin_inset Caption Standard
935 \begin_layout Plain Layout
936 \begin_inset CommandInset label
951 \begin_layout Plain Layout
953 \begin_inset Graphics
954 filename clipart/escher-lsd.eps
969 \begin_layout Standard
970 \begin_inset Index idx
973 \begin_layout Plain Layout
974 References ! to Figures
984 \begin_inset CommandInset ref
986 reference "fig:kill-plat"
991 \begin_inset CommandInset ref
993 reference "fig:escher"
997 are examples of referenced figures.
998 Figures can be referenced in the text by referencing their label.
999 To do this insert a label in the caption using the menu
1001 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1011 You can now refer to the label using the menu
1013 Insert\SpecialChar \menuseparator
1015 \begin_inset space ~
1020 or the toolbar button
1023 arg "dialog-show-new-inset ref"
1027 It is important to use references to floats, rather than using vague references
1029 \begin_inset Quotes eld
1033 \begin_inset Quotes erd
1036 , because LaTeX will reposition the floats in the final document and it
1038 \begin_inset Quotes eld
1042 \begin_inset Quotes erd
1046 \begin_inset Newline newline
1049 Referencing is explained in detail in section
1050 \begin_inset space ~
1054 \begin_inset CommandInset ref
1056 reference "sec:Referencing-Floats"
1063 \begin_layout Standard
1064 Normally only one image is inserted to a figure float, but sometimes you
1065 might want to use two images with separate subcaptions.
1066 This can be done by inserting image floats into existing image floats.
1067 Note that only the main caption of the float is added to the List of Figures.
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "fig:Two-distorted-images"
1079 is an example of a figure float with two images set side by side.
1080 You can also set the images one below the other.
1082 \begin_inset space ~
1086 \begin_inset CommandInset ref
1088 reference "fig:Undefinable-structure"
1093 \begin_inset CommandInset ref
1095 reference "fig:A-Platypus"
1102 \begin_layout Standard
1103 \begin_inset Float figure
1108 \begin_layout Plain Layout
1109 \begin_inset space \hfill{}
1113 \begin_inset Float figure
1118 \begin_layout Plain Layout
1119 \begin_inset Caption Standard
1121 \begin_layout Plain Layout
1122 \begin_inset CommandInset label
1124 name "fig:Undefinable-structure"
1128 Undefinable structure.
1136 \begin_layout Plain Layout
1137 \begin_inset Graphics
1138 filename clipart/escher-lsd.eps
1151 \begin_inset space \hfill{}
1155 \begin_inset Float figure
1160 \begin_layout Plain Layout
1161 \begin_inset Caption Standard
1163 \begin_layout Plain Layout
1164 \begin_inset CommandInset label
1166 name "fig:A-Platypus"
1178 \begin_layout Plain Layout
1179 \begin_inset Graphics
1180 filename clipart/platypus.eps
1193 \begin_inset space \hfill{}
1199 \begin_layout Plain Layout
1200 \begin_inset Caption Standard
1202 \begin_layout Plain Layout
1203 \begin_inset CommandInset label
1205 name "fig:Two-distorted-images"
1210 \begin_inset CommandInset label
1212 name "fig2:Two-distorted-images-2"
1216 Two distorted images.
1217 Both images are in the image settings group named
1218 \begin_inset Quotes eld
1222 \begin_inset Quotes erd
1238 \begin_layout Standard
1239 \begin_inset Newpage newpage
1245 \begin_layout Section
1247 \begin_inset CommandInset label
1249 name "sec:Image-Formats"
1254 \begin_inset Index idx
1257 \begin_layout Plain Layout
1264 \begin_inset Index idx
1267 \begin_layout Plain Layout
1268 Figures ! Image Formats
1276 \begin_layout Standard
1277 You can insert images in any known file format.
1278 But as explained in appendix
1279 \begin_inset space ~
1283 \begin_inset CommandInset ref
1285 reference "cha:Output-File-Formats"
1289 , each output document format allows only a few image formats.
1290 LyX uses therefore the program
1294 in the background to convert the images to the right format.
1295 To increase your work flow by avoiding these conversions in the background,
1296 you could choose to use only the image formats that can directly be embedded
1297 in the output file format.
1298 The output file formats are explained in appendix
1299 \begin_inset space ~
1303 \begin_inset CommandInset ref
1305 reference "cha:Output-File-Formats"
1312 \begin_layout Standard
1313 Similar to fonts there are two types of image formats:
1316 \begin_layout Description
1318 \begin_inset space ~
1321 images consist of pixel values, often in a compressed form.
1322 They are therefore not fully scalable and look pixelated in large zooms.
1323 Well-known bitmap image formats are
1324 \begin_inset Quotes eld
1327 Graphics Interchange Format
1328 \begin_inset Quotes erd
1331 (GIF, file extension
1332 \begin_inset Quotes eld
1340 \begin_inset Quotes erd
1344 \begin_inset Index idx
1347 \begin_layout Plain Layout
1352 \begin_layout Plain Layout
1363 \begin_layout Plain Layout
1376 \begin_inset Quotes eld
1379 Portable Network Graphics
1380 \begin_inset Quotes erd
1383 (PNG, file extension
1384 \begin_inset Quotes eld
1392 \begin_inset Quotes erd
1396 \begin_inset Index idx
1399 \begin_layout Plain Layout
1404 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1428 \begin_inset Quotes eld
1431 Joint Photographic Experts Group
1432 \begin_inset Quotes erd
1435 (JPG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Quotes eld
1456 \begin_inset Quotes erd
1460 \begin_inset Index idx
1463 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1494 \begin_layout Description
1496 \begin_inset space ~
1499 images consist of vectors and can therefore be scaled to any size without
1501 The scaling ability is necessary if you want to create presentations, because
1502 presentations are always scaled by the video projector.
1503 Scaling is also useful for online documents to let the user zoom into diagrams.
1504 \begin_inset Newline newline
1507 Well-known scalable image formats are
1508 \begin_inset Quotes eld
1511 Scalable Vector Graphics
1512 \begin_inset Quotes erd
1515 (SVG, file extension
1516 \begin_inset Quotes eld
1524 \begin_inset Quotes erd
1528 \begin_inset Index idx
1531 \begin_layout Plain Layout
1536 \begin_layout Plain Layout
1547 \begin_layout Plain Layout
1560 \begin_inset Quotes eld
1563 Encapsulated PostScript
1564 \begin_inset Quotes erd
1567 (EPS, file extension
1568 \begin_inset Quotes eld
1576 \begin_inset Quotes erd
1580 \begin_inset Index idx
1583 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1615 Portable Document Format
1616 \begin_inset Quotes erd
1619 (PDF, file extension
1620 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1632 \begin_inset Index idx
1635 \begin_layout Plain Layout
1642 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 (WMF, file extension
1650 \begin_inset Quotes eld
1658 \begin_inset Quotes erd
1662 \begin_inset Index idx
1665 \begin_layout Plain Layout
1670 \begin_layout Plain Layout
1681 \begin_layout Plain Layout
1695 \begin_inset Quotes eld
1699 \begin_inset Quotes erd
1702 , because you can convert any bitmap image to a PDF or EPS-image and the
1703 result will still be a bitmap image.
1704 In such cases only a header with the image properties is added to the original
1709 \begin_layout Plain Layout
1710 In the case of PDF, the original image is additionally compressed.
1716 The PDF-files generated by
1720 are for example bitmap images.
1723 \begin_layout Standard
1724 Normally it is not possible to convert a bitmap image into a scalable one,
1726 Only the image formats PDF and EPS can directly be embedded to PDF and
1727 PostScript output files, respectively.
1728 SVG and WMF-images are recalculated to bitmaps when the output file is
1729 generated because there is currently no adequate WMF/SVG
1730 \begin_inset Formula $\to$
1733 PDF/EPS converter available.
1736 \begin_layout Chapter
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1750 \begin_layout Section
1752 \begin_inset Index idx
1755 \begin_layout Plain Layout
1756 Table ! Introduction
1764 \begin_layout Standard
1765 You can insert a table using either the toolbar button
1768 arg "tabular-insert"
1773 Insert\SpecialChar \menuseparator
1777 The toolbar button offers you a graphical selection: move the mouse to
1778 set the column/row number of the table that should be created and then
1779 press a mouse button.
1780 When you use the menu to create a table, a dialog will appear, asking you
1781 for the number of rows and columns.
1782 \begin_inset Newline newline
1785 The default table has lines around any cell and the first row appears separated
1786 from the rest of the table.
1787 This separation occurs due to a double line: The cells of the first row
1788 have a line below them and the cells of the second row have a line above
1790 Here is an example table:
1793 \begin_layout Standard
1795 \begin_inset Tabular
1796 <lyxtabular version="3" rows="4" columns="4">
1797 <features rotate="0" tabularvalignment="middle">
1798 <column alignment="center" valignment="top">
1799 <column alignment="center" valignment="top">
1800 <column alignment="center" valignment="top">
1801 <column alignment="center" valignment="top">
1803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1833 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1842 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1853 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1880 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1889 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1900 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1927 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1936 \begin_layout Plain Layout
1944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1947 \begin_layout Plain Layout
1962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1965 \begin_layout Plain Layout
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1974 \begin_layout Plain Layout
1980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1983 \begin_layout Plain Layout
1997 \begin_layout Section
1999 \begin_inset Index idx
2002 \begin_layout Plain Layout
2011 \begin_layout Standard
2012 You can alter a table by clicking on it with the right mouse button, which
2013 brings up the context menu.
2014 Under the menu entry
2018 you can adjust the settings of that cell and row/column respectively where
2019 the cursor is currently placed.
2022 More\SpecialChar \menuseparator
2025 opens the table dialog where you can adjust more things.
2026 Most of the dialog options also work on selections.
2027 This means if you select more cells, columns or rows, the action is done
2028 for the whole selection.
2029 Note that there is a difference between selecting the
2033 of the cell, and the cell itself.
2034 \begin_inset Newline newline
2037 With the dialog option
2040 \begin_inset space ~
2045 every change you make in the dialog is directly applied.
2046 If you move the cursor to another table cell the dialog will then also
2047 be updated with the parameters of the new cell.
2048 If you change length values in the dialog you must press
2052 to get the change applied.
2053 \begin_inset Newline newline
2056 You can alter tables with the following tabs of the table dialog:
2059 \begin_layout Description
2063 \begin_inset space ~
2068 Here you can set the table width
2069 \begin_inset Index idx
2072 \begin_layout Plain Layout
2078 , and the horizontal alignment and the width of the current column.
2082 \begin_inset space ~
2086 \begin_inset space ~
2091 is described in section
2092 \begin_inset space ~
2096 \begin_inset CommandInset ref
2098 reference "sub:Special-Cell-Alignment"
2103 When you have set a width you can also adjust the vertical alignment of
2105 A given width will allow the cell to have line breaks and multiple paragraphs
2107 \begin_inset space \thinspace{}
2111 \begin_inset CommandInset ref
2113 reference "sub:Multiple-Lines-in"
2118 If you set no width, the column is as wide as the content of its widest
2120 \begin_inset Newline newline
2123 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2125 \begin_inset space \thinspace{}
2129 \begin_inset CommandInset ref
2131 reference "sub:Multicolumns"
2135 or the cells of one column as multirow cell, see sec.
2136 \begin_inset space \thinspace{}
2140 \begin_inset CommandInset ref
2142 reference "sub:Multirows"
2147 \begin_inset Newline newline
2150 The rotate check boxes rotate the current cell, a selection, or the whole
2151 table counter-clockwise by 90
2152 \begin_inset space \thinspace{}
2156 The rotation is not shown within LyX, only in the output.
2157 For more information see sec.
2158 \begin_inset space \thinspace{}
2162 \begin_inset CommandInset ref
2164 reference "sec:Rotated-Table-Cells"
2169 \begin_inset Newline newline
2173 \begin_inset Note Greyedout
2176 \begin_layout Plain Layout
2181 Not all DVI-viewers are able to display rotations.
2187 \begin_inset Newline newline
2190 The table-wide vertical alignment is used for tables within text lines:
2191 \begin_inset Newline newline
2194 A line with tables with different alignments:
2195 \begin_inset Tabular
2196 <lyxtabular version="3" rows="2" columns="2">
2197 <features rotate="0" tabularvalignment="top">
2198 <column alignment="center" valignment="top" width="0pt">
2199 <column alignment="center" valignment="top">
2201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2204 \begin_layout Plain Layout
2210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2213 \begin_layout Plain Layout
2230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2233 \begin_layout Plain Layout
2248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2251 \begin_layout Plain Layout
2263 \begin_inset Tabular
2264 <lyxtabular version="3" rows="2" columns="2">
2265 <features rotate="0" tabularvalignment="middle">
2266 <column alignment="center" valignment="top">
2267 <column alignment="center" valignment="top">
2269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2272 \begin_layout Plain Layout
2278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2281 \begin_layout Plain Layout
2298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2301 \begin_layout Plain Layout
2316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2319 \begin_layout Plain Layout
2331 \begin_inset Tabular
2332 <lyxtabular version="3" rows="2" columns="2">
2333 <features rotate="0" tabularvalignment="bottom">
2334 <column alignment="center" valignment="top" width="0pt">
2335 <column alignment="center" valignment="top">
2337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2340 \begin_layout Plain Layout
2346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2349 \begin_layout Plain Layout
2366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2369 \begin_layout Plain Layout
2384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2387 \begin_layout Plain Layout
2399 \begin_inset Newline newline
2402 It is also possible to enter a LaTeX-argument which is needed for special
2403 table formattings, see sec.
2404 \begin_inset space \thinspace{}
2408 \begin_inset CommandInset ref
2410 reference "sub:Multicolumn-Calculations"
2415 \begin_inset CommandInset ref
2417 reference "sec:Colored-Tables"
2424 \begin_layout Description
2429 In this tab you can add and delete border lines for the current row/column.
2430 \begin_inset Newline newline
2433 Using the style option
2437 will convert the table to a formal table as described in sec.
2438 \begin_inset space \thinspace{}
2442 \begin_inset CommandInset ref
2444 reference "sec:Formal-Tables"
2449 \begin_inset Newline newline
2452 You can also add space here to table rows as described in sec.
2453 \begin_inset space \thinspace{}
2457 \begin_inset CommandInset ref
2459 reference "sub:Row-Spacing"
2466 \begin_layout Description
2471 This tab is to make a table a so called
2472 \begin_inset Quotes eld
2480 \begin_inset Quotes erd
2483 that can run over several pages.
2485 \begin_inset space ~
2489 \begin_inset CommandInset ref
2491 reference "sec:Longtables"
2496 \begin_inset CommandInset ref
2498 reference "sec:Special-Longtable-Issues"
2502 describe the longtable features in detail.
2505 \begin_layout Section
2507 \begin_inset Index idx
2510 \begin_layout Plain Layout
2519 \begin_layout Standard
2520 The table toolbar is an alternative to the table dialog to be able to alter
2522 It should normally appear at the bottom of LyX's main window when the cursor
2524 You can alternatively switch it on to appear always, by right-clicking
2525 in LyX's main menu bar.
2528 \begin_layout Standard
2529 The toolbar has the following icons:
2532 \begin_layout Labeling
2533 \labelwidthstring 00.00.0000
2536 arg "inset-modify tabular append-row"
2539 adds a row below the current cell or selection
2542 \begin_layout Labeling
2543 \labelwidthstring 00.00.0000
2546 arg "inset-modify tabular append-column"
2549 adds a column right beside the current cell or selection
2552 \begin_layout Labeling
2553 \labelwidthstring 00.00.0000
2556 arg "inset-modify tabular delete-row"
2559 deletes the current row or selection
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2566 arg "inset-modify tabular delete-column"
2569 deletes the current column or selection
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2576 arg "inset-modify tabular move-row-up"
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2586 arg "inset-modify tabular move-column-left"
2589 moves the column to the left
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2596 arg "inset-modify tabular move-row-down"
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "inset-modify tabular move-column-right"
2609 moves the column to the right
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2616 arg "inset-modify tabular toggle-line-top"
2619 adds a line at the top of the current cell / row or of a selection
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2626 arg "inset-modify tabular toggle-line-bottom"
2629 adds a line at the bottom of the current cell / row or of a selection
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2636 arg "inset-modify tabular toggle-line-left"
2639 adds a line at the left side of the current cell / row or of a selection
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2646 arg "inset-modify tabular toggle-line-right"
2649 adds a line at the right side of the current cell / row or of a selection
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2656 arg "inset-modify tabular set-all-lines"
2659 adds lines around the current or selected cells - if the current cell no
2660 multicolumn cell this also affects the current row and column
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2667 arg "inset-modify tabular unset-all-lines"
2670 deletes all lines of the current or selected cells - if the current cell
2671 no multicolumn cell this also affects the current row and column
2674 \begin_layout Labeling
2675 \labelwidthstring 00.00.0000
2678 arg "inset-modify tabular m-align-left"
2681 left-aligns the content of the current cell / column
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2688 arg "inset-modify tabular m-align-center"
2691 centers the content of the current cell / column horizontally
2694 \begin_layout Labeling
2695 \labelwidthstring 00.00.0000
2698 arg "inset-modify tabular m-align-right"
2701 right-aligns the content of the current cell / column
2704 \begin_layout Labeling
2705 \labelwidthstring 00.00.0000
2708 arg "inset-modify tabular align-decimal"
2711 aligns the content of the current column at a character
2714 \begin_layout Labeling
2715 \labelwidthstring 00.00.0000
2718 arg "inset-modify tabular m-valign-top"
2721 aligns the content of the current cell vertically to the top
2724 \begin_layout Labeling
2725 \labelwidthstring 00.00.0000
2728 arg "inset-modify tabular m-valign-middle"
2731 centers the content of the current cell vertically
2734 \begin_layout Labeling
2735 \labelwidthstring 00.00.0000
2738 arg "inset-modify tabular m-valign-bottom"
2741 aligns the content of the current cell vertically to the bottom
2744 \begin_layout Labeling
2745 \labelwidthstring 00.00.0000
2748 arg "inset-modify tabular set-rotate-cell"
2751 rotates the current cell or selection counter-clockwise by 90°
2754 \begin_layout Labeling
2755 \labelwidthstring 00.00.0000
2758 arg "inset-modify tabular set-rotate-tabular"
2761 rotates the whole table counter-clockwise by 90°
2764 \begin_layout Labeling
2765 \labelwidthstring 00.00.0000
2768 arg "inset-modify tabular multicolumn"
2771 sets the current cell or selection as a multicolumn
2774 \begin_layout Labeling
2775 \labelwidthstring 00.00.0000
2778 arg "inset-modify tabular multirow"
2781 sets the current cell or selection as a multirow
2784 \begin_layout Standard
2785 \begin_inset Note Greyedout
2788 \begin_layout Plain Layout
2793 For the output the vertical alignment of the first cell in a row is used
2794 for all following cells in the row.
2802 \begin_layout Section
2804 \begin_inset Index idx
2807 \begin_layout Plain Layout
2816 \begin_layout Standard
2817 In addition to the table dialog and toolbar, the menu
2819 Edit\SpecialChar \menuseparator
2822 allows you to add and delete border lines for the current row/column and
2823 to set the current selection as multicolumn.
2824 The menu is only available when the cursor is inside a table.
2827 \begin_layout Section
2829 \begin_inset CommandInset label
2831 name "sec:Table-Floats"
2836 \begin_inset Index idx
2839 \begin_layout Plain Layout
2846 \begin_inset Index idx
2849 \begin_layout Plain Layout
2858 \begin_layout Standard
2859 For general explanations about floats, have a look at section
2860 \begin_inset space ~
2864 \begin_inset CommandInset ref
2866 reference "sec:FloatIntroduction"
2873 \begin_layout Standard
2874 \begin_inset Float table
2880 \begin_layout Plain Layout
2881 \begin_inset Caption Standard
2883 \begin_layout Plain Layout
2884 \begin_inset CommandInset label
2886 name "tab:a table float"
2898 \begin_layout Plain Layout
2900 \begin_inset Tabular
2901 <lyxtabular version="3" rows="3" columns="3">
2902 <features rotate="0" tabularvalignment="middle">
2903 <column alignment="center" valignment="top" width="0pt">
2904 <column alignment="center" valignment="top" width="0pt">
2905 <column alignment="center" valignment="top" width="0pt">
2907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2910 \begin_layout Plain Layout
2925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2928 \begin_layout Plain Layout
2943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2946 \begin_layout Plain Layout
2963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2966 \begin_layout Plain Layout
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2984 \begin_layout Plain Layout
2999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3002 \begin_layout Plain Layout
3019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3022 \begin_layout Plain Layout
3032 \begin_inset Formula $\int x^{2}dx$
3040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3043 \begin_layout Plain Layout
3053 \begin_inset Formula $\left[\begin{array}{cc}
3064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3067 \begin_layout Plain Layout
3077 \begin_inset Formula $1+1=2$
3098 \begin_layout Standard
3099 Table floats can be inserted using the menu
3101 Insert\SpecialChar \menuseparator
3102 Float\SpecialChar \menuseparator
3105 or the toolbar button
3108 arg "float-insert table"
3114 \begin_layout Standard
3115 The float appears as a collapsible box with a caption that has the label
3117 \begin_inset Quotes eld
3121 \begin_inset space ~
3125 \begin_inset Quotes erd
3128 (# is the actual table number).
3129 You can insert tables in the float above or below the caption.
3132 \begin_layout Standard
3134 \begin_inset space ~
3138 \begin_inset CommandInset ref
3140 reference "tab:a table float"
3144 is an example table within a table float.
3147 \begin_layout Standard
3148 Having the caption above the table is the common rule that is unfortunately
3149 not supported in LaTeX's standard classes.
3150 This means that, if you are using the document classes
3166 , there will be no space between the caption and the table.
3167 To insert the needed space, add the following option to the load command
3168 of the LaTeX-package
3173 \begin_inset Index idx
3176 \begin_layout Plain Layout
3177 LaTeX-packages ! caption
3182 in your document preamble
3186 \begin_layout Plain Layout
3187 For more information have a look at section
3188 \begin_inset space ~
3192 \begin_inset CommandInset ref
3194 reference "sec:Caption-Placement"
3206 \begin_layout Standard
3212 \begin_layout Standard
3217 , which is described in section
3218 \begin_inset space ~
3222 \begin_inset CommandInset ref
3224 reference "sec:Caption-Formatting"
3228 , is used to adjust the caption format.
3231 \begin_layout Standard
3232 \begin_inset Index idx
3235 \begin_layout Plain Layout
3236 References ! to Tables
3241 Tables can be cross-referenced in the text by referencing their label.
3242 To do this insert a label in the caption using the menu
3244 Insert\SpecialChar \menuseparator
3247 or the toolbar button
3254 You can now refer to the label using the menu
3256 Insert\SpecialChar \menuseparator
3258 \begin_inset space ~
3263 or the toolbar button
3266 arg "dialog-show-new-inset ref"
3270 \begin_inset Newline newline
3273 Referencing is explained in detail in section
3274 \begin_inset space ~
3278 \begin_inset CommandInset ref
3280 reference "sec:Referencing-Floats"
3287 \begin_layout Section
3289 \begin_inset CommandInset label
3291 name "sec:Longtables"
3296 \begin_inset Index idx
3299 \begin_layout Plain Layout
3306 \begin_inset Index idx
3309 \begin_layout Plain Layout
3318 \begin_layout Standard
3319 If the table is too long to fit on one page, you can use the option
3322 \begin_inset space ~
3326 \begin_inset space ~
3335 of the table dialog to split the table automatically over more pages.
3336 Doing this enables the following options:
3339 \begin_layout Description
3340 Header: The current row is defined to be a header row that appears on all
3341 pages of the longtable; except for the first page, if
3344 \begin_inset space ~
3350 This is therefore called the main header.
3353 \begin_layout Description
3355 \begin_inset space ~
3358 header: The current row is defined to be a header row that appears on the
3359 first page of the longtable.
3362 \begin_layout Description
3363 Footer: The current row is defined to be a footer row that appears on all
3364 pages of the longtable; except for the last page, if
3367 \begin_inset space ~
3375 \begin_layout Description
3377 \begin_inset space ~
3380 footer: The current row is defined to be a footer row that appears on the
3381 last page of the longtable.
3384 \begin_layout Description
3385 Caption: The current row contains the table caption.
3386 The row is reset as single column and a caption is inserted.
3387 More about longtable captions is explained in sec.
3388 \begin_inset space \thinspace{}
3392 \begin_inset CommandInset ref
3394 reference "sub:Longtable-Captions"
3401 \begin_layout Standard
3402 You can also specify a row where the table is split.
3403 See the following longtable to see how it works:
3406 \begin_layout Standard
3408 \begin_inset Tabular
3409 <lyxtabular version="3" rows="69" columns="3">
3410 <features rotate="0" islongtable="true" longtabularalignment="center">
3411 <column alignment="left" valignment="top" width="0cm">
3412 <column alignment="left" valignment="top" width="0pt">
3413 <column alignment="center" valignment="top" width="0pt">
3414 <row endfirsthead="true">
3415 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3418 \begin_layout Plain Layout
3421 Example Phone List (ignore the names)
3426 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3429 \begin_layout Plain Layout
3435 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Plain Layout
3445 <row endfirsthead="true">
3446 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3449 \begin_layout Plain Layout
3457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3460 \begin_layout Plain Layout
3466 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Plain Layout
3478 <row endhead="true">
3479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3482 \begin_layout Plain Layout
3490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3493 \begin_layout Plain Layout
3499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3502 \begin_layout Plain Layout
3509 <row endhead="true">
3510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3513 \begin_layout Plain Layout
3521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3524 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3533 \begin_layout Plain Layout
3542 <row endfoot="true">
3543 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3546 \begin_layout Plain Layout
3547 continued on next page
3552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3555 \begin_layout Plain Layout
3561 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3564 \begin_layout Plain Layout
3572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3575 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" usebox="none">
3586 \begin_layout Plain Layout
3592 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3595 \begin_layout Plain Layout
3603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3606 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" usebox="none">
3617 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3626 \begin_layout Plain Layout
3634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3637 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" usebox="none">
3648 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3657 \begin_layout Plain Layout
3665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3668 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" usebox="none">
3679 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3688 \begin_layout Plain Layout
3696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3699 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" usebox="none">
3710 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3719 \begin_layout Plain Layout
3727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3730 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" usebox="none">
3741 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3750 \begin_layout Plain Layout
3758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3761 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" usebox="none">
3772 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3781 \begin_layout Plain Layout
3789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3792 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" usebox="none">
3803 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3812 \begin_layout Plain Layout
3820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3823 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" usebox="none">
3834 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3843 \begin_layout Plain Layout
3851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3854 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" usebox="none">
3865 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3874 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" usebox="none">
3896 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3905 \begin_layout Plain Layout
3913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3916 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" usebox="none">
3927 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3936 \begin_layout Plain Layout
3944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3947 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" usebox="none">
3958 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3967 \begin_layout Plain Layout
3975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3978 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" usebox="none">
3989 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3998 \begin_layout Plain Layout
4006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4009 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" usebox="none">
4020 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4029 \begin_layout Plain Layout
4037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4040 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" usebox="none">
4051 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4060 \begin_layout Plain Layout
4068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4071 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" usebox="none">
4082 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4091 \begin_layout Plain Layout
4099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4102 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" usebox="none">
4113 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4122 \begin_layout Plain Layout
4130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4133 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" usebox="none">
4144 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4153 \begin_layout Plain Layout
4161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4164 \begin_layout Plain Layout
4172 <cell alignment="center" valignment="top" usebox="none">
4175 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4184 \begin_layout Plain Layout
4192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="center" valignment="top" usebox="none">
4206 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4215 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="center" valignment="top" usebox="none">
4237 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4246 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="center" valignment="top" usebox="none">
4268 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4277 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="center" valignment="top" usebox="none">
4299 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4308 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="center" valignment="top" usebox="none">
4330 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4339 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="center" valignment="top" usebox="none">
4361 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4370 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="center" valignment="top" usebox="none">
4392 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4401 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="center" valignment="top" usebox="none">
4423 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4432 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="center" valignment="top" usebox="none">
4454 \begin_layout Plain Layout
4460 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4463 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="center" valignment="top" usebox="none">
4485 \begin_layout Plain Layout
4491 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4494 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4516 \begin_layout Plain Layout
4522 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4525 \begin_layout Plain Layout
4533 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4542 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4545 \begin_layout Plain Layout
4551 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4554 \begin_layout Plain Layout
4562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4565 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" usebox="none">
4576 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4585 \begin_layout Plain Layout
4593 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4596 \begin_layout Plain Layout
4604 <cell alignment="center" valignment="top" usebox="none">
4607 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4616 \begin_layout Plain Layout
4624 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4627 \begin_layout Plain Layout
4635 <cell alignment="center" valignment="top" usebox="none">
4638 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4647 \begin_layout Plain Layout
4655 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4658 \begin_layout Plain Layout
4666 <cell alignment="center" valignment="top" usebox="none">
4669 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4678 \begin_layout Plain Layout
4686 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4689 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" usebox="none">
4700 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4709 \begin_layout Plain Layout
4717 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4720 \begin_layout Plain Layout
4728 <cell alignment="center" valignment="top" usebox="none">
4731 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4740 \begin_layout Plain Layout
4748 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4751 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" usebox="none">
4762 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4771 \begin_layout Plain Layout
4779 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4782 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" usebox="none">
4793 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4802 \begin_layout Plain Layout
4810 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4813 \begin_layout Plain Layout
4821 <cell alignment="center" valignment="top" usebox="none">
4824 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4833 \begin_layout Plain Layout
4841 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4844 \begin_layout Plain Layout
4852 <cell alignment="center" valignment="top" usebox="none">
4855 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4864 \begin_layout Plain Layout
4872 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4875 \begin_layout Plain Layout
4883 <cell alignment="center" valignment="top" usebox="none">
4886 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4895 \begin_layout Plain Layout
4903 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4906 \begin_layout Plain Layout
4914 <cell alignment="center" valignment="top" usebox="none">
4917 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4926 \begin_layout Plain Layout
4934 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4937 \begin_layout Plain Layout
4945 <cell alignment="center" valignment="top" usebox="none">
4948 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4957 \begin_layout Plain Layout
4965 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4968 \begin_layout Plain Layout
4976 <cell alignment="center" valignment="top" usebox="none">
4979 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4988 \begin_layout Plain Layout
4996 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4999 \begin_layout Plain Layout
5007 <cell alignment="center" valignment="top" usebox="none">
5010 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5019 \begin_layout Plain Layout
5027 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5030 \begin_layout Plain Layout
5038 <cell alignment="center" valignment="top" usebox="none">
5041 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5050 \begin_layout Plain Layout
5058 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5061 \begin_layout Plain Layout
5069 <cell alignment="center" valignment="top" usebox="none">
5072 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5081 \begin_layout Plain Layout
5089 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5092 \begin_layout Plain Layout
5100 <cell alignment="center" valignment="top" usebox="none">
5103 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5112 \begin_layout Plain Layout
5120 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5123 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" usebox="none">
5134 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5143 \begin_layout Plain Layout
5151 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5154 \begin_layout Plain Layout
5162 <cell alignment="center" valignment="top" usebox="none">
5165 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5174 \begin_layout Plain Layout
5182 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5185 \begin_layout Plain Layout
5193 <cell alignment="center" valignment="top" usebox="none">
5196 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5205 \begin_layout Plain Layout
5213 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5216 \begin_layout Plain Layout
5224 <cell alignment="center" valignment="top" usebox="none">
5227 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5236 \begin_layout Plain Layout
5244 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5247 \begin_layout Plain Layout
5255 <cell alignment="center" valignment="top" usebox="none">
5258 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5267 \begin_layout Plain Layout
5275 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5278 \begin_layout Plain Layout
5286 <cell alignment="center" valignment="top" usebox="none">
5289 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5298 \begin_layout Plain Layout
5306 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5309 \begin_layout Plain Layout
5317 <cell alignment="center" valignment="top" usebox="none">
5320 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5329 \begin_layout Plain Layout
5337 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5340 \begin_layout Plain Layout
5348 <cell alignment="center" valignment="top" usebox="none">
5351 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5360 \begin_layout Plain Layout
5368 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5371 \begin_layout Plain Layout
5379 <cell alignment="center" valignment="top" usebox="none">
5382 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5391 \begin_layout Plain Layout
5399 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5402 \begin_layout Plain Layout
5410 <cell alignment="center" valignment="top" usebox="none">
5413 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5422 \begin_layout Plain Layout
5430 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5433 \begin_layout Plain Layout
5441 <cell alignment="center" valignment="top" usebox="none">
5444 \begin_layout Plain Layout
5450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5453 \begin_layout Plain Layout
5461 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5472 <cell alignment="center" valignment="top" usebox="none">
5475 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5484 \begin_layout Plain Layout
5492 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5495 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5515 \begin_layout Plain Layout
5522 <row endlastfoot="true">
5523 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5526 \begin_layout Plain Layout
5532 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5544 \begin_layout Plain Layout
5559 \begin_layout Plain Layout
5563 addtocounter{table}{-1}
5569 \begin_inset Note Note
5572 \begin_layout Plain Layout
5573 See the first greyed-out note in section
5574 \begin_inset space ~
5578 \begin_inset CommandInset ref
5580 reference "sub:Longtable-Captions"
5584 for an explanation of this command.
5592 \begin_layout Subsection
5593 Footnotes in Longtables
5594 \begin_inset CommandInset label
5596 name "sub:Footnotes-in-Longtables"
5601 \begin_inset Index idx
5604 \begin_layout Plain Layout
5605 Longtables ! Footnotes
5613 \begin_layout Standard
5614 Footnotes can be inserted to every longtable cell.
5615 They appear at the bottom of the page where the table cell with the footnote
5618 \begin_inset space ~
5622 \begin_inset CommandInset ref
5624 reference "tab:DiffCaptions"
5628 has for example a footnote.
5631 \begin_layout Subsection
5633 \begin_inset Index idx
5636 \begin_layout Plain Layout
5637 Longtables ! Alignment
5645 \begin_layout Standard
5646 The horizontal alignment of longtables can be set in the table settings
5648 For left- and right-alignment the table will be directly at the page border.
5649 To add space between the table and the border one has to set the alignment
5650 to center and change the value of the LaTeX-lengths
5662 by inserting this line as TeX-Code before the longtable:
5665 \begin_layout Standard
5675 \begin_layout Standard
5676 The value can have any of the units listed in Table
5677 \begin_inset space ~
5681 \begin_inset CommandInset ref
5683 reference "tab:Units"
5694 controls the horizontal distance from the left page border to the longtable,
5701 the distance from the right side.
5702 The default value for both lengths is
5708 , which is in this case the same as an horizontal fill in LyX.
5711 \begin_layout Standard
5712 The following longtable was centered and
5728 \begin_layout Plain Layout
5744 \begin_layout Standard
5745 \begin_inset Tabular
5746 <lyxtabular version="3" rows="5" columns="5">
5747 <features rotate="0" islongtable="true" longtabularalignment="center">
5748 <column alignment="center" valignment="top">
5749 <column alignment="center" valignment="top" width="0pt">
5750 <column alignment="center" valignment="top">
5751 <column alignment="center" valignment="top">
5752 <column alignment="center" valignment="top">
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Plain Layout
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Plain Layout
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5775 \begin_layout Plain Layout
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5784 \begin_layout Plain Layout
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5793 \begin_layout Plain Layout
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5840 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5887 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5934 \begin_layout Plain Layout
5942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5945 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5954 \begin_layout Plain Layout
5960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5963 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5981 \begin_layout Plain Layout
5996 \begin_layout Plain Layout
6013 \begin_layout Plain Layout
6017 addtocounter{table}{-1}
6023 \begin_inset Note Note
6026 \begin_layout Plain Layout
6027 See the first greyed-out note in section
6028 \begin_inset space ~
6032 \begin_inset CommandInset ref
6034 reference "sub:Longtable-Captions"
6038 for an explanation of this command.
6046 \begin_layout Subsection
6048 \begin_inset Index idx
6051 \begin_layout Plain Layout
6052 Longtables ! Captions
6058 \begin_inset CommandInset label
6060 name "sub:Longtable-Captions"
6067 \begin_layout Standard
6068 A longtable cannot be put into a table float because floats can only be
6070 But the caption environment of floats can also be used for longtables when
6071 you use the longtable option
6075 as described in sec.
6076 \begin_inset space \thinspace{}
6080 \begin_inset CommandInset ref
6082 reference "sec:Longtables"
6087 Only one table row should contain a caption, either a header or a footer
6091 \begin_layout Standard
6092 Here is a short longtable to see how it works:
6095 \begin_layout Standard
6096 \begin_inset Tabular
6097 <lyxtabular version="3" rows="6" columns="5">
6098 <features rotate="0" islongtable="true" longtabularalignment="center">
6099 <column alignment="center" valignment="top">
6100 <column alignment="center" valignment="top">
6101 <column alignment="center" valignment="top">
6102 <column alignment="center" valignment="top">
6103 <column alignment="center" valignment="top">
6104 <row endfirsthead="true" caption="true">
6105 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6108 \begin_layout Plain Layout
6109 \begin_inset Caption Standard
6111 \begin_layout Plain Layout
6112 Longtable with caption
6113 \begin_inset Argument 1
6116 \begin_layout Plain Layout
6132 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6135 \begin_layout Plain Layout
6141 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6144 \begin_layout Plain Layout
6150 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6153 \begin_layout Plain Layout
6159 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6162 \begin_layout Plain Layout
6170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6173 \begin_layout Plain Layout
6179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6182 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6191 \begin_layout Plain Layout
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6200 \begin_layout Plain Layout
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6209 \begin_layout Plain Layout
6217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6256 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6303 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6350 \begin_layout Plain Layout
6358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6361 \begin_layout Plain Layout
6367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6370 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6388 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6397 \begin_layout Plain Layout
6411 \begin_layout Standard
6412 \begin_inset VSpace medskip
6416 \begin_inset Note Greyedout
6419 \begin_layout Plain Layout
6423 \begin_inset space ~
6428 The table number is increased for every longtable, even if you did not
6429 set a caption for it.
6430 For this reason you could have the case that e.
6431 \begin_inset space \thinspace{}
6435 \begin_inset space \space{}
6439 \begin_inset space ~
6443 \begin_inset space ~
6446 2.1 in the list of tables if there are two longtables without captions.
6447 To avoid this you can add the following command in TeX-Code after every
6448 longtable without a caption:
6451 \begin_layout Plain Layout
6456 addtocounter{table}{-1}
6459 \begin_layout Plain Layout
6460 This is not needed when none of your longtables has a caption and you add
6461 the following code to the document preamble:
6464 \begin_layout Plain Layout
6474 \begin_inset Newline newline
6485 addtocounter{table}{-1}}
6493 \begin_layout Standard
6494 \begin_inset Note Greyedout
6497 \begin_layout Plain Layout
6501 \begin_inset space ~
6511 \begin_inset Index idx
6514 \begin_layout Plain Layout
6515 LaTeX-packages ! hyperref
6528 dialog to link cross-references, the link to a longtable caption will always
6529 point to the beginning of the document.
6537 \begin_layout Subsubsection
6538 References to Longtables
6539 \begin_inset Index idx
6542 \begin_layout Plain Layout
6543 Longtables ! References
6551 \begin_layout Standard
6552 \begin_inset Tabular
6553 <lyxtabular version="3" rows="6" columns="5">
6554 <features rotate="0" islongtable="true" longtabularalignment="center">
6555 <column alignment="center" valignment="top">
6556 <column alignment="center" valignment="top">
6557 <column alignment="center" valignment="top">
6558 <column alignment="center" valignment="top">
6559 <column alignment="center" valignment="top">
6560 <row endfirsthead="true" caption="true">
6561 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6564 \begin_layout Plain Layout
6565 \begin_inset Caption Standard
6567 \begin_layout Plain Layout
6568 Referenced longtable
6569 \begin_inset CommandInset label
6571 name "tab:RefExample"
6585 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6588 \begin_layout Plain Layout
6594 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6597 \begin_layout Plain Layout
6603 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6606 \begin_layout Plain Layout
6612 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6615 \begin_layout Plain Layout
6623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6626 \begin_layout Plain Layout
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Plain Layout
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Plain Layout
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6662 \begin_layout Plain Layout
6670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6673 \begin_layout Plain Layout
6679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6709 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6720 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6756 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6767 \begin_layout Plain Layout
6773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6776 \begin_layout Plain Layout
6782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6785 \begin_layout Plain Layout
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6794 \begin_layout Plain Layout
6800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6803 \begin_layout Plain Layout
6811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6814 \begin_layout Plain Layout
6820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6823 \begin_layout Plain Layout
6829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6832 \begin_layout Plain Layout
6838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6841 \begin_layout Plain Layout
6847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6850 \begin_layout Plain Layout
6864 \begin_layout Standard
6865 To reference a longtable, insert a label into the caption.
6868 \begin_layout Standard
6869 This is a reference to Table
6870 \begin_inset space ~
6874 \begin_inset CommandInset ref
6876 reference "tab:RefExample"
6883 \begin_layout Standard
6884 The caption layout can be set together with all other captions of your document
6885 using the LaTeX-package
6890 \begin_inset Index idx
6893 \begin_layout Plain Layout
6894 LaTeX-packages ! caption
6900 \begin_inset space ~
6904 \begin_inset CommandInset ref
6906 reference "sec:Caption-Formatting"
6913 \begin_layout Subsubsection
6915 \begin_inset Index idx
6918 \begin_layout Plain Layout
6919 Longtables ! Caption Width
6927 \begin_layout Standard
6928 The maximal width of caption lines is defined by the length
6935 Its default value is 4
6936 \begin_inset space \thinspace{}
6940 To change it add the following command to your document preamble or as
6941 TeX-Code into your document before the longtable that should be affected
6944 \begin_layout Standard
6954 \begin_layout Standard
6955 where the width could have one of the units listed in appendix
6956 \begin_inset space ~
6960 \begin_inset CommandInset ref
6962 reference "cha:Units-available-in"
6969 \begin_layout Standard
6970 The following tables show the difference:
6973 \begin_layout Standard
6974 \begin_inset Tabular
6975 <lyxtabular version="3" rows="6" columns="5">
6976 <features rotate="0" islongtable="true" longtabularalignment="center">
6977 <column alignment="center" valignment="top">
6978 <column alignment="center" valignment="top">
6979 <column alignment="center" valignment="top">
6980 <column alignment="center" valignment="top">
6981 <column alignment="center" valignment="top">
6982 <row endfirsthead="true" caption="true">
6983 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6986 \begin_layout Plain Layout
6987 \begin_inset Caption Standard
6989 \begin_layout Plain Layout
6990 long full title with default width long full title with default width long
6991 full title with default width
6992 \begin_inset Argument 1
6995 \begin_layout Plain Layout
6996 caption with default width
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7032 \begin_layout Plain Layout
7038 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7041 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7088 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7135 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7182 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7220 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7229 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7267 \begin_layout Plain Layout
7273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7276 \begin_layout Plain Layout
7290 \begin_layout Standard
7294 \begin_layout Plain Layout
7306 \begin_inset Tabular
7307 <lyxtabular version="3" rows="6" columns="5">
7308 <features rotate="0" islongtable="true" longtabularalignment="center">
7309 <column alignment="center" valignment="top">
7310 <column alignment="center" valignment="top">
7311 <column alignment="center" valignment="top">
7312 <column alignment="center" valignment="top">
7313 <column alignment="center" valignment="top">
7314 <row endfirsthead="true" caption="true">
7315 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7318 \begin_layout Plain Layout
7319 \begin_inset Caption Standard
7321 \begin_layout Plain Layout
7322 long full title with width set to 5
7323 \begin_inset space \thinspace{}
7326 cm long full title with width set to 5
7327 \begin_inset space \thinspace{}
7330 cm long full title with width set to 5
7331 \begin_inset space \thinspace{}
7335 \begin_inset Argument 1
7338 \begin_layout Plain Layout
7340 \begin_inset space \thinspace{}
7344 \begin_inset space \thinspace{}
7348 \begin_inset space \thinspace{}
7366 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7369 \begin_layout Plain Layout
7375 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7378 \begin_layout Plain Layout
7384 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7387 \begin_layout Plain Layout
7393 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7396 \begin_layout Plain Layout
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7407 \begin_layout Plain Layout
7413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7416 \begin_layout Plain Layout
7422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7425 \begin_layout Plain Layout
7431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7434 \begin_layout Plain Layout
7440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7443 \begin_layout Plain Layout
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7454 \begin_layout Plain Layout
7460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7463 \begin_layout Plain Layout
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Plain Layout
7478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Plain Layout
7507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7510 \begin_layout Plain Layout
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Plain Layout
7525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7548 \begin_layout Plain Layout
7554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7557 \begin_layout Plain Layout
7563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7566 \begin_layout Plain Layout
7572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7595 \begin_layout Plain Layout
7601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7604 \begin_layout Plain Layout
7610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7613 \begin_layout Plain Layout
7619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7622 \begin_layout Plain Layout
7628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7631 \begin_layout Plain Layout
7645 \begin_layout Standard
7649 \begin_layout Plain Layout
7663 \begin_layout Standard
7664 \begin_inset Note Greyedout
7667 \begin_layout Plain Layout
7672 When the LaTeX-package
7677 \begin_inset Index idx
7680 \begin_layout Plain Layout
7681 LaTeX-packages ! caption
7686 is used, as in this document, the full page width is used for the caption
7687 when you use the default value of 4
7688 \begin_inset space \thinspace{}
7698 To get in this case exactly a 4
7699 \begin_inset space \thinspace{}
7702 in wide caption, you can either use a value slightly different from 4.0
7703 \begin_inset space \thinspace{}
7707 \begin_inset space \thinspace{}
7711 \begin_inset space \space{}
7715 \begin_inset space \thinspace{}
7718 in, or the LaTeX-command
7722 captionsetup{width=value}
7724 that is provided by the
7736 \begin_layout Subsubsection
7737 Different Captions for Table Pages
7738 \begin_inset Index idx
7741 \begin_layout Plain Layout
7742 Longtables ! Different Captions for Pages
7750 \begin_layout Standard
7751 When the table captions for the following pages should differ from the one
7752 of the first table page, mark a empty row as header which contains a caption.
7753 Then right-click on the caption and select in the context menu
7756 \begin_inset space ~
7763 \begin_inset space ~
7767 \begin_inset CommandInset ref
7769 reference "tab:DiffCaptions"
7773 is an example of a longtable with different heading where the second caption
7774 does not include the table number.
7777 \begin_layout Standard
7779 \begin_inset Tabular
7780 <lyxtabular version="3" rows="59" columns="3">
7781 <features rotate="0" islongtable="true" longtabularalignment="center">
7782 <column alignment="left" valignment="top" width="0cm">
7783 <column alignment="left" valignment="top" width="0pt">
7784 <column alignment="center" valignment="top" width="0pt">
7785 <row endfirsthead="true" caption="true">
7786 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7789 \begin_layout Plain Layout
7790 \begin_inset Caption Standard
7792 \begin_layout Plain Layout
7794 \begin_inset CommandInset label
7796 name "tab:DiffCaptions"
7801 \begin_inset Argument 1
7804 \begin_layout Plain Layout
7820 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7839 <row endfirsthead="true">
7840 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7843 \begin_layout Plain Layout
7846 Example Phone List (ignore the names)
7851 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7863 \begin_layout Plain Layout
7870 <row endfirsthead="true">
7871 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7903 <row endhead="true" caption="true">
7904 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7907 \begin_layout Plain Layout
7908 \begin_inset Caption LongTableNoNumber
7910 \begin_layout Plain Layout
7911 Continued Example Phone List
7921 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7924 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7933 \begin_layout Plain Layout
7940 <row endhead="true">
7941 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7944 \begin_layout Plain Layout
7952 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7955 \begin_layout Plain Layout
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7964 \begin_layout Plain Layout
7971 <row endhead="true">
7972 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7975 \begin_layout Plain Layout
7983 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7986 \begin_layout Plain Layout
7992 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8004 <row endfoot="true">
8005 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8008 \begin_layout Plain Layout
8009 continued on next page
8014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8017 \begin_layout Plain Layout
8023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8037 \begin_layout Plain Layout
8045 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8048 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8068 \begin_layout Plain Layout
8076 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8079 \begin_layout Plain Layout
8085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8099 \begin_layout Plain Layout
8107 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8110 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8200 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8231 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8262 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8293 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8324 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8355 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8386 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8417 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8420 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8429 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8440 \begin_layout Plain Layout
8448 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8451 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8480 \begin_layout Plain Layout
8491 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8494 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8514 \begin_layout Plain Layout
8522 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8525 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8545 \begin_layout Plain Layout
8553 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8556 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8576 \begin_layout Plain Layout
8584 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8587 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8607 \begin_layout Plain Layout
8615 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8618 \begin_layout Plain Layout
8624 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8638 \begin_layout Plain Layout
8646 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9019 \begin_layout Plain Layout
9025 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9039 \begin_layout Plain Layout
9047 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9050 \begin_layout Plain Layout
9056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9070 \begin_layout Plain Layout
9078 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9081 \begin_layout Plain Layout
9087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9101 \begin_layout Plain Layout
9109 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9112 \begin_layout Plain Layout
9118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9132 \begin_layout Plain Layout
9140 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9143 \begin_layout Plain Layout
9149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9163 \begin_layout Plain Layout
9171 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9174 \begin_layout Plain Layout
9180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9194 \begin_layout Plain Layout
9202 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9205 \begin_layout Plain Layout
9211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9225 \begin_layout Plain Layout
9233 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9236 \begin_layout Plain Layout
9242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9256 \begin_layout Plain Layout
9264 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9267 \begin_layout Plain Layout
9273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9287 \begin_layout Plain Layout
9295 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9318 \begin_layout Plain Layout
9326 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9329 \begin_layout Plain Layout
9335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9349 \begin_layout Plain Layout
9357 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9360 \begin_layout Plain Layout
9366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9380 \begin_layout Plain Layout
9388 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9391 \begin_layout Plain Layout
9397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9411 \begin_layout Plain Layout
9419 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9422 \begin_layout Plain Layout
9428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9442 \begin_layout Plain Layout
9450 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9453 \begin_layout Plain Layout
9459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9473 \begin_layout Plain Layout
9481 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9484 \begin_layout Plain Layout
9490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9504 \begin_layout Plain Layout
9512 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9515 \begin_layout Plain Layout
9521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9535 \begin_layout Plain Layout
9543 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9546 \begin_layout Plain Layout
9552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9566 \begin_layout Plain Layout
9574 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9577 \begin_layout Plain Layout
9583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9594 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9597 \begin_layout Plain Layout
9605 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9608 \begin_layout Plain Layout
9614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9617 \begin_layout Plain Layout
9625 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9628 \begin_layout Plain Layout
9636 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9639 \begin_layout Plain Layout
9645 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9648 \begin_layout Plain Layout
9662 \begin_layout Section
9663 Special Longtable Issues
9664 \begin_inset CommandInset label
9666 name "sec:Special-Longtable-Issues"
9673 \begin_layout Subsection
9674 Longtable Calculation
9675 \begin_inset Index idx
9678 \begin_layout Plain Layout
9679 Longtables ! Calculation
9687 \begin_layout Standard
9688 LaTeX calculates the height of table pages and their page breaks using so
9690 Chunks are parts of tables that held at the same time in LaTeX's memory.
9691 The default value was historically set to only 20 table rows.
9692 If you are using longtables with many pages this may slow down the creation
9694 You can safely increase the chunk size to values of 100-1000 by adding
9695 this command line to your document preamble:
9698 \begin_layout Standard
9703 setcounter{LTchunksize}{100}
9706 \begin_layout Subsection
9707 Floats and Longtables
9708 \begin_inset Index idx
9711 \begin_layout Plain Layout
9720 \begin_layout Standard
9721 There might be problems when a float appears on the same page where a longtable
9723 To avoid such a situation, insert a
9724 \begin_inset Quotes eld
9728 \begin_inset Quotes erd
9733 Insert\SpecialChar \menuseparator
9734 Formatting\SpecialChar \menuseparator
9736 \begin_inset space ~
9741 ) before your longtable.
9744 \begin_layout Subsection
9746 \begin_inset Index idx
9749 \begin_layout Plain Layout
9750 Longtables ! Forced Page Breaks
9758 \begin_layout Standard
9759 By default tables are only broken between rows.
9760 If you have a cell with multiples lines and want to have a page break within
9761 the cell, insert the new line command
9762 \begin_inset Quotes eld
9774 \begin_inset Quotes erd
9777 as TeX-Code at the point of the cell where it can be broken.
9786 command you have to insert in TeX-Code as many
9787 \begin_inset Quotes eld
9795 \begin_inset Quotes erd
9798 characters as the number of the following table columns.
9803 is the character to separate table cells.
9804 Write in TeX-Code after each
9808 the content of the corresponding following cell and delete the content
9810 \begin_inset Newline newline
9821 command, insert as many
9825 characters as the number of table columns before the current column.
9827 \begin_inset space ~
9831 \begin_inset CommandInset ref
9833 reference "tab:ForcedPagebreak"
9837 the cell that should be broken is in the second column followed by another
9839 Therefore the following command was inserted in the cell as TeX-Code after
9841 \begin_inset Quotes eld
9849 \begin_inset Quotes erd
9855 \begin_layout Standard
9865 \begin_inset Newline newline
9871 \begin_layout Standard
9873 \begin_inset Quotes eld
9877 \begin_inset Quotes erd
9880 in the third column of the row was deleted.
9887 is only needed when a page break should definitely occur at this position,
9888 otherwise it would be a conditional break.
9889 If your footer row of the longtable has for a certain reason no upper line
9890 but you would have a horizontal line where the cell is broken, use this
9894 \begin_layout Standard
9902 \begin_inset Newline newline
9910 \begin_layout Standard
9911 When the cell to be broken is in the last column, the command
9914 \begin_layout Standard
9924 \begin_layout Standard
9925 must be inserted as TeX-Code at the beginning of the cell.
9926 This ensures that the part of the cell that will be displayed on the new
9927 page appears with the full width.
9930 \begin_layout Standard
9932 \begin_inset Tabular
9933 <lyxtabular version="3" rows="38" columns="3">
9934 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9935 <column alignment="left" valignment="top" width="0cm">
9936 <column alignment="left" valignment="top" width="3cm">
9937 <column alignment="center" valignment="top" width="0pt">
9938 <row endfirsthead="true" caption="true">
9939 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9942 \begin_layout Plain Layout
9943 \begin_inset Caption Standard
9945 \begin_layout Plain Layout
9946 Table with forced page break in table cell
9947 \begin_inset CommandInset label
9949 name "tab:ForcedPagebreak"
9954 \begin_inset Argument 1
9957 \begin_layout Plain Layout
9958 Table with forced page break in table cell
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9992 <row endfirsthead="true">
9993 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9996 \begin_layout Plain Layout
9999 Example Phone List (ignore the names)
10004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10007 \begin_layout Plain Layout
10013 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10016 \begin_layout Plain Layout
10023 <row endfirsthead="true">
10024 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10027 \begin_layout Plain Layout
10035 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10038 \begin_layout Plain Layout
10044 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10056 <row endhead="true">
10057 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10060 \begin_layout Plain Layout
10064 \begin_layout Plain Layout
10068 caption*{Continued Example Phone List}
10082 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10085 \begin_layout Plain Layout
10091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10101 <row endhead="true">
10102 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10116 \begin_layout Plain Layout
10122 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10132 <row endhead="true">
10133 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10136 \begin_layout Plain Layout
10144 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10147 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10165 <row endfoot="true">
10166 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10169 \begin_layout Plain Layout
10170 continued on next page
10175 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10178 \begin_layout Plain Layout
10184 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10209 \begin_layout Plain Layout
10215 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10240 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10271 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10302 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10333 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10364 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10395 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10426 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10457 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10488 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10519 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10539 \begin_layout Plain Layout
10547 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10550 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10570 \begin_layout Plain Layout
10578 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10581 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10601 \begin_layout Plain Layout
10609 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10612 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10632 \begin_layout Plain Layout
10640 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10643 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10663 \begin_layout Plain Layout
10671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10674 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10694 \begin_layout Plain Layout
10702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10705 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10725 \begin_layout Plain Layout
10733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10736 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10756 \begin_layout Plain Layout
10764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10767 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10787 \begin_layout Plain Layout
10795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10798 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10818 \begin_layout Plain Layout
10826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10829 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10849 \begin_layout Plain Layout
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10866 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10869 \begin_layout Plain Layout
10877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10880 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10893 Fürst von Montecompatri, 11.
10894 Fürst von Sulmona und Vivaro, 10.
10895 Fürst von Rossano, 5.
10896 Herzog von Canemorte, 11.
10897 Herzog von Palombara, 5.
10898 Herzog von Castelchiodato,
10902 \begin_layout Plain Layout
10913 \begin_layout Plain Layout
10921 Herzog von Poggionativo, 11.
10922 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10923 Graf von Valinfreda, 11.
10924 Baron von Cropalati, 11.
10925 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10930 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10944 \begin_layout Plain Layout
10952 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10955 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10975 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11006 \begin_layout Plain Layout
11014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11017 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11037 \begin_layout Plain Layout
11045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11048 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11068 \begin_layout Plain Layout
11076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11079 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11099 \begin_layout Plain Layout
11107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11110 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11130 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11147 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11150 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11169 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11172 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11181 \begin_layout Plain Layout
11195 \begin_layout Section
11196 Multiple Lines, Columns and Rows
11199 \begin_layout Subsection
11200 Multiple Lines in Table Cells
11201 \begin_inset CommandInset label
11203 name "sub:Multiple-Lines-in"
11208 \begin_inset Index idx
11211 \begin_layout Plain Layout
11212 Multiple Lines in Table Cells
11218 \begin_inset Index idx
11221 \begin_layout Plain Layout
11230 \begin_layout Standard
11232 \begin_inset Float table
11238 \begin_layout Plain Layout
11239 \begin_inset Caption Standard
11241 \begin_layout Plain Layout
11242 \begin_inset CommandInset label
11244 name "tab:Table-with-multiple"
11248 Table with multiple lines in cells
11256 \begin_layout Plain Layout
11258 \begin_inset Tabular
11259 <lyxtabular version="3" rows="3" columns="3">
11260 <features rotate="0" tabularvalignment="middle">
11261 <column alignment="center" valignment="middle" width="2.5cm">
11262 <column alignment="center" valignment="middle">
11263 <column alignment="center" valignment="middle">
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11268 \begin_layout Plain Layout
11270 \begin_inset Newline linebreak
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11281 \begin_layout Plain Layout
11287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11290 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11310 \begin_layout Plain Layout
11316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11319 \begin_layout Plain Layout
11327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11330 \begin_layout Plain Layout
11336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11339 \begin_layout Plain Layout
11345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11348 \begin_layout Plain Layout
11367 \begin_layout Standard
11368 Setting a fixed width for a column enables you to enter text as a paragraph
11369 with multiple lines and hyphenation.
11372 \begin_layout Standard
11374 \begin_inset space ~
11378 \begin_inset CommandInset ref
11380 reference "tab:Table-with-multiple"
11384 , create a 3×3 table, mark the first cell and right-click on it.
11385 In the appearing table dialog we set a cell width of 2.5
11386 \begin_inset space \thinspace{}
11389 cm and choose centered for the vertical and horizontal alignment.
11390 The vertical alignment is used for all cells of the row.
11391 As our text is smaller than 2.5
11392 \begin_inset space \thinspace{}
11395 cm, only one line will appear.
11396 To get two lines, a justified line break (shortcut
11399 arg "newline-insert linebreak"
11403 If the text is wider than the set cell width, it will automatically be
11404 broken to several lines.
11407 \begin_layout Standard
11408 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11409 by LaTeX if it is the first entry.
11410 Therefore you need to insert something to prevent the word not being the
11412 So add a horizontal space of 0
11413 \begin_inset space \thinspace{}
11416 pt before the word.
11417 As the space is zero, it doesn't change the output.
11419 \begin_inset space ~
11423 \begin_inset CommandInset ref
11425 reference "tab:Table-with-and"
11432 \begin_layout Standard
11433 \begin_inset Float table
11439 \begin_layout Plain Layout
11440 \begin_inset Caption Standard
11442 \begin_layout Plain Layout
11443 \begin_inset CommandInset label
11445 name "tab:Table-with-and"
11449 Table with and without hyphenation
11457 \begin_layout Plain Layout
11458 \begin_inset space \hfill{}
11462 \begin_inset Tabular
11463 <lyxtabular version="3" rows="3" columns="3">
11464 <features rotate="0" tabularvalignment="middle">
11465 <column alignment="center" valignment="middle" width="2.5cm">
11466 <column alignment="center" valignment="middle">
11467 <column alignment="center" valignment="middle">
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11473 verylongtablecellword
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11490 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11519 \begin_layout Plain Layout
11527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11530 \begin_layout Plain Layout
11536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11539 \begin_layout Plain Layout
11545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11548 \begin_layout Plain Layout
11560 \begin_inset space \hfill{}
11564 \begin_inset Tabular
11565 <lyxtabular version="3" rows="3" columns="3">
11566 <features rotate="0" tabularvalignment="middle">
11567 <column alignment="center" valignment="middle" width="2.5cm">
11568 <column alignment="center" valignment="middle">
11569 <column alignment="center" valignment="middle">
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11574 \begin_layout Plain Layout
11575 \begin_inset space \hspace{}
11579 verylongtablecellword
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11587 \begin_layout Plain Layout
11593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11596 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11607 \begin_layout Plain Layout
11613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Plain Layout
11666 \begin_inset space \hfill{}
11677 \begin_layout Subsection
11679 \begin_inset CommandInset label
11681 name "sub:Multicolumns"
11686 \begin_inset Index idx
11689 \begin_layout Plain Layout
11696 \begin_inset Index idx
11699 \begin_layout Plain Layout
11700 Table ! Multicolumns
11708 \begin_layout Subsubsection
11712 \begin_layout Standard
11713 To merge cells over multiple columns, select as many cells within a row
11714 as you want to merge and use either the table-toolbar button
11717 arg "inset-modify tabular multicolumn"
11722 Edit\SpecialChar \menuseparator
11723 Table\SpecialChar \menuseparator
11726 , or right click on the marked cells and choose
11730 in the context menu.
11733 \begin_layout Standard
11734 Multicolumns have there own cell settings.
11735 That means changing cell borders, cell alignment, and the width only affects
11737 Here is an example table with a multicolumn cell in the first row and one
11738 in the last row without the upper border:
11741 \begin_layout Standard
11743 \begin_inset Tabular
11744 <lyxtabular version="3" rows="3" columns="4">
11745 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11746 <column alignment="center" valignment="top" width="0pt">
11747 <column alignment="center" valignment="middle">
11748 <column alignment="center" valignment="top" width="0in">
11749 <column alignment="center" valignment="top" width="0pt">
11751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11760 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11769 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11781 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11792 \begin_layout Plain Layout
11807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11828 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11857 \begin_layout Plain Layout
11863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11866 \begin_layout Plain Layout
11880 \begin_layout Subsubsection
11881 Multicolumn Calculations
11882 \begin_inset CommandInset label
11884 name "sub:Multicolumn-Calculations"
11889 \begin_inset Index idx
11892 \begin_layout Plain Layout
11893 Multicolumns ! Calculations
11901 \begin_layout Standard
11902 LyX supports multicolumns directly, but we have to take account of the cell
11903 width of the columns spanned by the multicolumn cell.
11906 \begin_layout Standard
11907 \begin_inset Float table
11913 \begin_layout Plain Layout
11914 \begin_inset Caption Standard
11916 \begin_layout Plain Layout
11917 \begin_inset CommandInset label
11919 name "tab:Table-with-centered"
11923 Table with centered multicolumn text above two columns that have exactly
11924 half the width of the multicolumn cell
11925 \begin_inset Argument 1
11928 \begin_layout Plain Layout
11929 Perfect multicolumn table
11942 \begin_layout Plain Layout
11944 \begin_inset Tabular
11945 <lyxtabular version="3" rows="3" columns="3">
11946 <features rotate="0" tabularvalignment="middle">
11947 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11948 <column alignment="center" valignment="middle">
11949 <column alignment="center" valignment="top">
11951 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11954 \begin_layout Plain Layout
11955 multiple lines multicolumn
11960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11963 \begin_layout Plain Layout
11969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11972 \begin_layout Plain Layout
11980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11983 \begin_layout Plain Layout
11989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11992 \begin_layout Plain Layout
11998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12001 \begin_layout Plain Layout
12009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12012 \begin_layout Plain Layout
12018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12021 \begin_layout Plain Layout
12027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12030 \begin_layout Plain Layout
12049 \begin_layout Standard
12050 To create for example Table
12051 \begin_inset space ~
12055 \begin_inset CommandInset ref
12057 reference "tab:Table-with-centered"
12061 , mark the first two cells in the first row of a 3×3 table and right-click
12063 Now choose for this cell
12072 \begin_inset space \thinspace{}
12075 cm in the table dialog.
12076 The merged columns should have exactly half the width of the multicolumn
12077 cell, so that you would set a width of 1.25
12078 \begin_inset space \thinspace{}
12081 cm for the first column.
12082 The second column has then automatically a width of 1.25
12083 \begin_inset space \thinspace{}
12086 cm (multicolumn width - width of first column).
12087 This was done for Table
12088 \begin_inset space ~
12092 \begin_inset CommandInset ref
12094 reference "tab:Table-without-half"
12101 \begin_layout Standard
12102 \begin_inset Float table
12107 \begin_layout Plain Layout
12108 \begin_inset Caption Standard
12110 \begin_layout Plain Layout
12111 \begin_inset CommandInset label
12113 name "tab:Table-without-half"
12117 Table where the spanned table columns are not exactly half the width of
12118 the multicolumn cell
12119 \begin_inset Argument 1
12122 \begin_layout Plain Layout
12123 Imperfect multicolumn table
12136 \begin_layout Plain Layout
12138 \begin_inset Tabular
12139 <lyxtabular version="3" rows="3" columns="3">
12140 <features rotate="0" tabularvalignment="middle">
12141 <column alignment="center" valignment="top" width="1.25cm">
12142 <column alignment="center" valignment="top">
12143 <column alignment="center" valignment="top">
12145 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12148 \begin_layout Plain Layout
12149 multiple lines multicolumn
12154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12157 \begin_layout Plain Layout
12163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12166 \begin_layout Plain Layout
12174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12177 \begin_layout Plain Layout
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12186 \begin_layout Plain Layout
12192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12195 \begin_layout Plain Layout
12203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12206 \begin_layout Plain Layout
12212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12215 \begin_layout Plain Layout
12221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12224 \begin_layout Plain Layout
12243 \begin_layout Standard
12244 You can see that the first column is not half the width of the multicolumn
12245 cell, it is a bit bigger.
12246 The reason is that the specified width of a cell
12247 \begin_inset Formula $W_{g}$
12250 is not its total width
12251 \begin_inset Formula $W_{\mathrm{tot}}$
12254 because a cell is always a bit larger than specified.
12256 \begin_inset space ~
12260 \begin_inset CommandInset ref
12262 reference "cha:Explanation-of-Equation"
12266 explains this in detail.
12269 \begin_layout Standard
12271 \begin_inset Formula $W_{g\,n}$
12274 which the user needs to set when
12278 columns are spanned can be calculated, so that each column has a total
12280 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12284 \begin_inset Formula
12286 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12294 \begin_layout Standard
12295 In our case we have
12296 \begin_inset Formula $n=2$
12300 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12303 cm and the default values for the lengths, so that equation
12304 \begin_inset CommandInset ref
12311 \begin_inset Formula
12313 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12321 \begin_layout Standard
12322 To enable calculations in LaTeX, the LaTeX-package
12326 must be loaded with the document preamble line
12327 \begin_inset Index idx
12330 \begin_layout Plain Layout
12331 LaTeX-packages ! calc
12339 \begin_layout Standard
12347 \begin_layout Standard
12348 LyX does not allow you to calculate lengths in the
12352 field of the table dialog.
12353 Therefore you have to format the column by inserting a LaTeX-argument in
12355 Here is an overview about the arguments:
12358 \begin_layout Itemize
12363 creates cell with a fixed width, its text is vertically top-aligned
12366 \begin_layout Itemize
12371 creates cell with a fixed width, its text is vertically centered
12374 \begin_layout Itemize
12379 creates cell with a fixed width, its text is vertically bottom-aligned
12382 \begin_layout Standard
12383 By entering a LaTeX-argument, all cell settings set in the table dialog
12387 \begin_layout Standard
12388 \begin_inset Note Greyedout
12391 \begin_layout Plain Layout
12396 Due to a bug, LyX shows the overwritten settings anyway.
12404 \begin_layout Standard
12405 As the text should be horizontally centered, the command
12412 You can now enter the following LaTeX-argument for the first spanned column:
12415 \begin_layout Standard
12420 centering}m{1.25cm-6.2pt}
12423 \begin_layout Standard
12428 means, that the commands inside the braces are applied before the cell
12432 \begin_layout Standard
12433 Although we have chosen centered alignment for the text of the multicolumn
12434 cell, it is still left aligned.
12435 This is because LyX only applies the alignment to single columns.
12436 So for the multicolumn cell we have to use the LaTeX-argument
12439 \begin_layout Standard
12447 \begin_layout Subsection
12449 \begin_inset CommandInset label
12451 name "sub:Multirows"
12456 \begin_inset Index idx
12459 \begin_layout Plain Layout
12466 \begin_inset Index idx
12469 \begin_layout Plain Layout
12478 \begin_layout Standard
12479 To merge cells over multiple rows, select as many cells within a column
12480 as you want to merge and use either the table-toolbar button
12483 arg "inset-modify tabular multirow"
12488 Edit\SpecialChar \menuseparator
12489 Table\SpecialChar \menuseparator
12492 , or right click on the marked cells and choose
12496 in the context menu.
12499 \begin_layout Standard
12500 Here is an example table with a multirow in the first column:
12503 \begin_layout Standard
12505 \begin_inset Tabular
12506 <lyxtabular version="3" rows="3" columns="3">
12507 <features rotate="0" tabularvalignment="middle">
12508 <column alignment="center" valignment="top" width="0pt">
12509 <column alignment="center" valignment="top">
12510 <column alignment="center" valignment="top">
12512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12524 \begin_layout Plain Layout
12530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12533 \begin_layout Plain Layout
12541 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12544 \begin_layout Plain Layout
12550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12553 \begin_layout Plain Layout
12559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12562 \begin_layout Plain Layout
12570 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12582 \begin_layout Plain Layout
12588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12591 \begin_layout Plain Layout
12605 \begin_layout Standard
12606 The width of multirow cells is set by setting the width and alignment for
12612 shifts the content of the multirow up/down if the offset is positive/negative.
12615 \begin_layout Standard
12616 If the column of a multirow cell has no explicit width, the multirow cell
12617 inherits the alignment of the column.
12618 Otherwise it is by default left-aligned.
12619 To override the default, renew the command
12628 \begin_layout Standard
12640 \begin_layout Standard
12641 in the document preamble.
12642 Then all entries of multirow cells in the document are centered.
12643 If centering is only needed for several tables, you can renew the command
12644 in a TeX-Code box just before the table instead of the preamble.
12645 If the text should be right-aligned, replace
12658 To return to left-alignment
12667 \begin_layout Standard
12668 This is an example table with a right-aligned multirow cell that has a vertical
12670 \begin_inset space \thinspace{}
12674 \begin_inset space \thinspace{}
12680 \begin_layout Standard
12686 \begin_layout Plain Layout
12700 \begin_inset Tabular
12701 <lyxtabular version="3" rows="4" columns="3">
12702 <features rotate="0" tabularvalignment="middle">
12703 <column alignment="center" valignment="top" width="3cm">
12704 <column alignment="center" valignment="top">
12705 <column alignment="center" valignment="top">
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12710 \begin_layout Plain Layout
12716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12719 \begin_layout Plain Layout
12725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12728 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12739 \begin_layout Plain Layout
12745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12748 \begin_layout Plain Layout
12754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12757 \begin_layout Plain Layout
12765 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12777 \begin_layout Plain Layout
12783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12786 \begin_layout Plain Layout
12794 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12806 \begin_layout Plain Layout
12812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12815 \begin_layout Plain Layout
12830 \begin_layout Plain Layout
12846 \begin_layout Standard
12847 To start a new line in a multirow you can use a forced line break (shortcut
12851 arg "newline-insert newline"
12854 ) but this will not respect the cell lines as demonstrated in this table:
12857 \begin_layout Standard
12860 \begin_inset Tabular
12861 <lyxtabular version="3" rows="3" columns="2">
12862 <features rotate="0" tabularvalignment="middle">
12863 <column alignment="left" valignment="middle" width="2cm">
12864 <column alignment="center" valignment="top">
12866 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12869 \begin_layout Plain Layout
12871 \begin_inset Newline newline
12875 \begin_inset Newline newline
12883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12886 \begin_layout Plain Layout
12894 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12897 \begin_layout Plain Layout
12903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12906 \begin_layout Plain Layout
12914 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12917 \begin_layout Plain Layout
12923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12926 \begin_layout Plain Layout
12940 \begin_layout Standard
12941 Therefore be careful with forced line breaks.
12944 \begin_layout Subsection
12945 Cells with diagonal line(s)
12948 \begin_layout Standard
12949 To tell the reader what is meant by column and row headings in a table,
12950 it is helpful to split the first cell of the table by one or two diagonal
12952 This can be achieved by loading the LaTeX-package
12957 \begin_inset Index idx
12960 \begin_layout Plain Layout
12961 LaTeX-packages ! picinpar
12966 in the document preamble.
12967 The package provides the command
12973 that is inserted as TeX-Code and that can take 2 or 3
12974 \begin_inset space ~
12980 \begin_layout Standard
12985 diagbox[options]{lower left}{upper right}
12988 \begin_layout Standard
12993 diagbox[options]{lower left}{upper left}{upper right}
12996 \begin_layout Standard
12997 The first scheme divides the cell by a single diagonal line and the arguments
12998 are placed below and above this line.
12999 The second scheme divides the cell by 2
13000 \begin_inset space ~
13006 \begin_layout Standard
13010 \begin_layout Plain Layout
13020 \begin_inset Note Note
13023 \begin_layout Plain Layout
13024 The following section will only be displayed when the LaTeX-package
13036 \begin_layout Standard
13037 Here is an example table where
13043 is used in the 2-argument scheme in the first cell:
13044 \begin_inset VSpace medskip
13050 \begin_layout Standard
13052 \begin_inset Tabular
13053 <lyxtabular version="3" rows="4" columns="4">
13054 <features rotate="0" tabularvalignment="middle">
13055 <column alignment="center" valignment="top">
13056 <column alignment="center" valignment="top">
13057 <column alignment="center" valignment="top">
13058 <column alignment="center" valignment="top">
13060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13063 \begin_layout Plain Layout
13067 \begin_layout Plain Layout
13080 \begin_layout Plain Layout
13091 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13115 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13124 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13153 \begin_layout Plain Layout
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13162 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13191 \begin_layout Plain Layout
13197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13200 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13229 \begin_layout Plain Layout
13235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13238 \begin_layout Plain Layout
13250 \begin_inset VSpace medskip
13256 \begin_layout Standard
13257 The 3-argument scheme is for example useful for cross-tables of sports leagues
13261 \begin_layout Standard
13264 \begin_inset Tabular
13265 <lyxtabular version="3" rows="4" columns="4">
13266 <features rotate="0" tabularvalignment="middle">
13267 <column alignment="center" valignment="top" width="0pt">
13268 <column alignment="center" valignment="top">
13269 <column alignment="center" valignment="top">
13270 <column alignment="center" valignment="top">
13272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13275 \begin_layout Plain Layout
13279 \begin_layout Plain Layout
13292 \begin_layout Plain Layout
13303 \begin_layout Plain Layout
13314 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13329 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13338 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13347 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13367 \begin_layout Plain Layout
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13376 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13385 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13405 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13414 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13423 \begin_layout Plain Layout
13431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13434 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13443 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13452 \begin_layout Plain Layout
13458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13461 \begin_layout Plain Layout
13475 \begin_layout Standard
13476 For larger cross-tables one might use split cells in 2 or every corner of
13477 the table like in this example:
13480 \begin_layout Standard
13483 \begin_inset Tabular
13484 <lyxtabular version="3" rows="5" columns="5">
13485 <features rotate="0" tabularvalignment="middle">
13486 <column alignment="center" valignment="top" width="0pt">
13487 <column alignment="center" valignment="top">
13488 <column alignment="center" valignment="top">
13489 <column alignment="center" valignment="top">
13490 <column alignment="center" valignment="top">
13492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13495 \begin_layout Plain Layout
13499 \begin_layout Plain Layout
13512 \begin_layout Plain Layout
13523 \begin_layout Plain Layout
13534 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13549 \begin_layout Plain Layout
13555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13567 \begin_layout Plain Layout
13573 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13576 \begin_layout Plain Layout
13580 \begin_layout Plain Layout
13593 \begin_layout Plain Layout
13604 \begin_layout Plain Layout
13615 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13632 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13641 \begin_layout Plain Layout
13647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13659 \begin_layout Plain Layout
13665 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13668 \begin_layout Plain Layout
13676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13679 \begin_layout Plain Layout
13685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13688 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13715 \begin_layout Plain Layout
13723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13726 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13762 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13773 \begin_layout Plain Layout
13777 \begin_layout Plain Layout
13790 \begin_layout Plain Layout
13801 \begin_layout Plain Layout
13812 \begin_layout Plain Layout
13824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13827 \begin_layout Plain Layout
13833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13836 \begin_layout Plain Layout
13842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13845 \begin_layout Plain Layout
13851 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13854 \begin_layout Plain Layout
13858 \begin_layout Plain Layout
13871 \begin_layout Plain Layout
13882 \begin_layout Plain Layout
13893 \begin_layout Plain Layout
13913 \begin_layout Standard
13914 To rotate the diagonal lines, the command option
13939 and represent a point of a compass.
13944 is for example the south-west corner.
13945 Thus in the lower left cell of the above table the command
13948 \begin_layout Standard
13953 diagbox[dir=SW]{Team home}{Result}{Team away}
13956 \begin_layout Standard
13958 If no direction is given, it will be NW.
13961 \begin_layout Standard
13962 The necessary width of split cells is automatically calculated.
13963 Thus if you set a fixed column width smaller than the calculated one, the
13964 cell's content will protrude the cell borders:
13967 \begin_layout Standard
13970 \begin_inset Tabular
13971 <lyxtabular version="3" rows="2" columns="2">
13972 <features rotate="0" tabularvalignment="middle">
13973 <column alignment="center" valignment="top" width="3cm">
13974 <column alignment="center" valignment="top">
13976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13979 \begin_layout Plain Layout
13983 \begin_layout Plain Layout
13996 \begin_layout Plain Layout
14007 \begin_layout Plain Layout
14019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14022 \begin_layout Plain Layout
14030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14033 \begin_layout Plain Layout
14039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14042 \begin_layout Plain Layout
14056 \begin_layout Standard
14057 If you need a certain width for columns with a split cell, use the command
14062 (replace '3cm' by the width you need).
14063 In the following table the width of the first column is set to 4
14064 \begin_inset space \thinspace{}
14075 \begin_inset space \thinspace{}
14079 \begin_inset space \thinspace{}
14084 tabcolsep is necessary because the overall width is the width for the text
14085 (in this case the 4
14086 \begin_inset space \thinspace{}
14089 cm) plus two times the separation of the text and the cell border.
14090 The calculation of the width cannot be done in the command option of
14096 so one needs to create a new length which can be used later.
14097 This is done with the TeX-Code commands
14100 \begin_layout Standard
14108 \begin_inset Newline newline
14120 \begin_layout Standard
14124 \begin_layout Plain Layout
14133 \begin_layout Plain Layout
14149 \begin_layout Standard
14150 To enable calculations in LaTeX one needs to load the package
14155 \begin_inset Index idx
14158 \begin_layout Plain Layout
14159 LaTeX-packages ! calc
14164 in the document preamble.
14167 \begin_layout Standard
14168 In this table you can now use the command
14171 \begin_layout Standard
14181 \begin_layout Standard
14185 \begin_layout Standard
14188 \begin_inset Tabular
14189 <lyxtabular version="3" rows="2" columns="2">
14190 <features rotate="0" tabularvalignment="middle">
14191 <column alignment="center" valignment="top" width="4cm">
14192 <column alignment="center" valignment="top">
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14197 \begin_layout Plain Layout
14201 \begin_layout Plain Layout
14216 \begin_layout Plain Layout
14227 \begin_layout Plain Layout
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14242 \begin_layout Plain Layout
14250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14253 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14262 \begin_layout Plain Layout
14276 \begin_layout Standard
14277 Note that the split cell needs to be the widest one in the column.
14278 Otherwise the length of the diagonal line cannot be calculated correctly
14279 like in this table:
14282 \begin_layout Standard
14285 \begin_inset Tabular
14286 <lyxtabular version="3" rows="2" columns="2">
14287 <features rotate="0" tabularvalignment="middle">
14288 <column alignment="center" valignment="top" width="0pt">
14289 <column alignment="center" valignment="top">
14291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14294 \begin_layout Plain Layout
14298 \begin_layout Plain Layout
14311 \begin_layout Plain Layout
14322 \begin_layout Plain Layout
14334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14337 \begin_layout Plain Layout
14345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14348 \begin_layout Plain Layout
14354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14357 \begin_layout Plain Layout
14371 \begin_layout Standard
14372 In this case use the
14383 It is then not necessary to add 2
14385 tabcolsep because the cell width is now the width of the column.
14386 In this table a width of 3
14387 \begin_inset space \thinspace{}
14393 \begin_layout Standard
14396 \begin_inset Tabular
14397 <lyxtabular version="3" rows="2" columns="2">
14398 <features rotate="0" tabularvalignment="middle">
14399 <column alignment="center" valignment="top" width="0pt">
14400 <column alignment="center" valignment="top">
14402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14405 \begin_layout Plain Layout
14409 \begin_layout Plain Layout
14413 diagbox[width=3cm]{
14422 \begin_layout Plain Layout
14433 \begin_layout Plain Layout
14445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14448 \begin_layout Plain Layout
14456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14459 \begin_layout Plain Layout
14465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14468 \begin_layout Plain Layout
14482 \begin_layout Standard
14483 For multiple text lines in split cells one needs some extra height to fit
14484 the text to the cell.
14485 This can be achieved with the
14495 (replace '3cm' by the height you need).
14496 In the following table the command
14499 \begin_layout Standard
14504 diagbox[width=3cm,height=1.4cm]{A
14515 \begin_layout Standard
14516 is used in the first cell.
14525 creates hereby the line break.
14529 \begin_layout Plain Layout
14530 Breaking lines with
14534 is only possible when the column has a fixed width.
14542 \begin_layout Standard
14545 \begin_inset Tabular
14546 <lyxtabular version="3" rows="2" columns="2">
14547 <features rotate="0" tabularvalignment="middle">
14548 <column alignment="center" valignment="top">
14549 <column alignment="center" valignment="top">
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14554 \begin_layout Plain Layout
14558 \begin_layout Plain Layout
14562 diagbox[width=3cm,height=1.4cm]{
14571 \begin_layout Plain Layout
14586 \begin_layout Plain Layout
14597 \begin_layout Plain Layout
14612 \begin_layout Plain Layout
14624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14627 \begin_layout Plain Layout
14635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14638 \begin_layout Plain Layout
14644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14647 \begin_layout Plain Layout
14661 \begin_layout Standard
14665 \begin_layout Plain Layout
14675 \begin_inset Note Note
14678 \begin_layout Plain Layout
14679 The following will be displayed when the LaTeX-package
14691 \begin_layout Standard
14692 You need to install the LaTeX-package
14696 to see the following part of this section in the output.
14699 \begin_layout Standard
14703 \begin_layout Plain Layout
14715 \begin_layout Standard
14716 For more info about the LaTeX-package
14720 , see its documentation,
14721 \begin_inset CommandInset citation
14730 \begin_layout Section
14732 \begin_inset CommandInset label
14734 name "sec:Formal-Tables"
14739 \begin_inset Index idx
14742 \begin_layout Plain Layout
14751 \begin_layout Standard
14752 Tables are often typeset in books similar to Table
14753 \begin_inset space ~
14757 \begin_inset CommandInset ref
14759 reference "tab:Example-booktabs-table"
14764 This kind of tables is called
14765 \begin_inset Quotes eld
14773 \begin_inset Quotes erd
14777 To make a table a formal table use the option
14785 tab of the table dialog.
14788 \begin_layout Standard
14789 \begin_inset Float table
14795 \begin_layout Plain Layout
14796 \begin_inset Caption Standard
14798 \begin_layout Plain Layout
14799 \begin_inset CommandInset label
14801 name "tab:Example-booktabs-table"
14805 Example booktabs-table
14813 \begin_layout Plain Layout
14815 \begin_inset Tabular
14816 <lyxtabular version="3" rows="8" columns="4">
14817 <features rotate="0" booktabs="true" tabularvalignment="middle">
14818 <column alignment="center" valignment="top">
14819 <column alignment="center" valignment="top">
14820 <column alignment="center" valignment="top">
14821 <column alignment="center" valignment="top">
14823 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14826 \begin_layout Plain Layout
14832 <cell alignment="center" valignment="top" topline="true" usebox="none">
14835 \begin_layout Plain Layout
14837 \begin_inset space \thinspace{}
14845 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14848 \begin_layout Plain Layout
14850 \begin_inset space \thinspace{}
14858 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14861 \begin_layout Plain Layout
14869 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14872 \begin_layout Plain Layout
14876 \begin_layout Plain Layout
14889 \begin_layout Plain Layout
14898 Detector thickness in µm
14903 <cell alignment="center" valignment="top" usebox="none">
14906 \begin_layout Plain Layout
14912 <cell alignment="center" valignment="top" usebox="none">
14915 \begin_layout Plain Layout
14921 <cell alignment="center" valignment="top" usebox="none">
14924 \begin_layout Plain Layout
14932 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14935 \begin_layout Plain Layout
14941 <cell alignment="center" valignment="top" topline="true" usebox="none">
14944 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" topline="true" usebox="none">
14953 \begin_layout Plain Layout
14959 <cell alignment="center" valignment="top" topline="true" usebox="none">
14962 \begin_layout Plain Layout
14969 <row topspace="default">
14970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14973 \begin_layout Plain Layout
14974 Spatial resolution in µm
14979 <cell alignment="center" valignment="top" usebox="none">
14982 \begin_layout Plain Layout
14988 <cell alignment="center" valignment="top" usebox="none">
14991 \begin_layout Plain Layout
14997 <cell alignment="center" valignment="top" usebox="none">
15000 \begin_layout Plain Layout
15007 <row topspace="default">
15008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15011 \begin_layout Plain Layout
15013 \begin_inset Formula $f_{\mathrm{max}}$
15021 <cell alignment="center" valignment="top" usebox="none">
15024 \begin_layout Plain Layout
15030 <cell alignment="center" valignment="top" usebox="none">
15033 \begin_layout Plain Layout
15039 <cell alignment="center" valignment="top" usebox="none">
15042 \begin_layout Plain Layout
15049 <row topspace="default">
15050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15053 \begin_layout Plain Layout
15057 \begin_layout Plain Layout
15061 cmidrule(l{10pt}){1-1}
15066 LSF-spatial resolution
15071 <cell alignment="center" valignment="top" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15089 <cell alignment="center" valignment="top" usebox="none">
15092 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15127 <cell alignment="center" valignment="top" usebox="none">
15130 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15141 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15150 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15159 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15168 \begin_layout Plain Layout
15187 \begin_layout Standard
15188 Spaces to table rows can be added using the
15192 tab of the table dialog as described in section
15193 \begin_inset space ~
15197 \begin_inset CommandInset ref
15199 reference "sub:Row-Spacing"
15206 \begin_layout Standard
15207 Unlike normal tables, formal tables have no vertical table lines.
15208 The horizontal table lines can be set as for normal tables but they appear
15209 with different widths in the output:
15210 \begin_inset Newline newline
15213 The first and the last table line have a default width of 0.08
15214 \begin_inset space \thinspace{}
15217 em while the other lines have a default width of 0.05
15218 \begin_inset space \thinspace{}
15224 \begin_layout Standard
15225 The default widths can be changed with the following preamble lines
15228 \begin_layout Standard
15238 \begin_inset Newline newline
15250 \begin_layout Standard
15251 This example is for the first line, the so called
15256 If you want to change the width for the last line, replace
15265 To change the width for the other lines replace
15274 You can use all units listed in appendix
15275 \begin_inset space ~
15279 \begin_inset CommandInset ref
15281 reference "cha:Units-available-in"
15288 \begin_layout Standard
15289 Lines that do not span all table columns can be created by setting a table
15290 line for multicolumn cells.
15291 LyX will then internally use the command
15297 to create this line.
15301 \begin_layout Standard
15306 cmidrule[width](trim){startcol-endcol}
15309 \begin_layout Standard
15316 are currently not supported by LyX so you have to use TeX-Code to be able
15324 s can manually be created by inserting the command as TeX-Code as the first
15325 cell entry of the first cell of a row.
15326 The line is then drawn in the output above the current row.
15329 \begin_layout Standard
15330 The default for the width is 0.03
15331 \begin_inset space \thinspace{}
15335 Startcol is the number of the column where the line starts and endcol the
15336 column number where the line ends.
15337 The endcol always needs to be specified, also when the line should span
15339 The optional parameter trim could be either
15347 where the trimwidth is also optional.
15348 Using for example the parameter
15352 means that the line is trimmed from its left end by 2
15353 \begin_inset space \thinspace{}
15357 If you don't specify the trimwidth the lines are trimmed by the default
15359 \begin_inset space \thinspace{}
15365 \begin_layout Standard
15366 \begin_inset VSpace bigskip
15370 \begin_inset space ~
15374 \begin_inset CommandInset ref
15376 reference "tab:Example-booktabs-table"
15380 was created using the commands
15383 \begin_layout Standard
15393 \begin_layout Standard
15394 at the beginning of the second row and
15397 \begin_layout Standard
15402 cmidrule(l{10pt}){1-1}
15405 \begin_layout Standard
15409 \begin_layout Standard
15410 \begin_inset VSpace bigskip
15416 \begin_layout Standard
15417 You might want to have overlapping
15424 \begin_inset space ~
15428 \begin_inset CommandInset ref
15430 reference "tab:Special-booktabs-table"
15435 This can be achieved with the TeX-Code command
15438 \begin_layout Standard
15446 \begin_layout Standard
15447 The command that was used for the second row of Table
15448 \begin_inset space ~
15452 \begin_inset CommandInset ref
15454 reference "tab:Special-booktabs-table"
15461 \begin_layout Standard
15475 \begin_layout Standard
15476 The command for the sixth row is
15479 \begin_layout Standard
15491 \begin_layout Standard
15492 \begin_inset VSpace bigskip
15498 \begin_layout Standard
15499 If you are in any way not satisfied with the border line spacing, you can
15500 use the following command to produce lines that span over all table columns
15505 \begin_layout Standard
15510 specialrule{width}{space above}{space below}
15513 \begin_layout Standard
15514 For more information about these features, refer to the manual of the LaTeX-pack
15520 \begin_inset CommandInset citation
15527 \begin_inset Index idx
15530 \begin_layout Plain Layout
15531 LaTeX-packages ! booktabs
15539 \begin_layout Standard
15540 \begin_inset Float table
15546 \begin_layout Plain Layout
15547 \begin_inset Caption Standard
15549 \begin_layout Plain Layout
15550 \begin_inset CommandInset label
15552 name "tab:Special-booktabs-table"
15556 Special booktabs-table
15564 \begin_layout Plain Layout
15566 \begin_inset Tabular
15567 <lyxtabular version="3" rows="8" columns="4">
15568 <features rotate="0" booktabs="true" tabularvalignment="middle">
15569 <column alignment="center" valignment="top">
15570 <column alignment="center" valignment="top">
15571 <column alignment="center" valignment="top">
15572 <column alignment="center" valignment="top">
15574 <cell alignment="center" valignment="top" topline="true" usebox="none">
15577 \begin_layout Plain Layout
15583 <cell alignment="center" valignment="top" topline="true" usebox="none">
15586 \begin_layout Plain Layout
15588 \begin_inset space \thinspace{}
15596 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15599 \begin_layout Plain Layout
15601 \begin_inset space \thinspace{}
15609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15612 \begin_layout Plain Layout
15620 <cell alignment="center" valignment="top" usebox="none">
15623 \begin_layout Plain Layout
15627 \begin_layout Plain Layout
15640 \begin_layout Plain Layout
15653 \begin_layout Plain Layout
15666 \begin_layout Plain Layout
15675 Detector thickness in µm
15680 <cell alignment="center" valignment="top" usebox="none">
15683 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" usebox="none">
15692 \begin_layout Plain Layout
15698 <cell alignment="center" valignment="top" usebox="none">
15701 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" usebox="none">
15712 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" usebox="none">
15730 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" usebox="none">
15739 \begin_layout Plain Layout
15746 <row topspace="default">
15747 <cell alignment="center" valignment="top" usebox="none">
15750 \begin_layout Plain Layout
15751 Spatial resolution in µm
15756 <cell alignment="center" valignment="top" usebox="none">
15759 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" usebox="none">
15768 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" usebox="none">
15777 \begin_layout Plain Layout
15784 <row topspace="default">
15785 <cell alignment="center" valignment="top" usebox="none">
15788 \begin_layout Plain Layout
15790 \begin_inset Formula $f_{\mathrm{max}}$
15798 <cell alignment="center" valignment="top" usebox="none">
15801 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15816 <cell alignment="center" valignment="top" usebox="none">
15819 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" topline="true" usebox="none">
15830 \begin_layout Plain Layout
15834 \begin_layout Plain Layout
15847 \begin_layout Plain Layout
15856 LSF-spatial resolution
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" topline="true" usebox="none">
15873 \begin_layout Plain Layout
15879 <cell alignment="center" valignment="top" topline="true" usebox="none">
15882 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" usebox="none">
15902 \begin_layout Plain Layout
15908 <cell alignment="center" valignment="top" usebox="none">
15911 \begin_layout Plain Layout
15917 <cell alignment="center" valignment="top" usebox="none">
15920 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15940 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15949 \begin_layout Plain Layout
15955 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15958 \begin_layout Plain Layout
15977 \begin_layout Section
15978 Vertical Table Alignment
15979 \begin_inset Index idx
15982 \begin_layout Plain Layout
15991 \begin_layout Standard
15992 To align tables vertically in a text line, the table must be inside a box.
15993 The box can then be vertically aligned as described in section
15994 \begin_inset space ~
15998 \begin_inset CommandInset ref
16000 reference "sec:Box-Dialog"
16007 \begin_layout Standard
16008 In the following example the tables are inside a minipage
16012 \begin_layout Plain Layout
16013 Minipages are described in section
16014 \begin_inset space ~
16018 \begin_inset CommandInset ref
16020 reference "sec:Minipages"
16029 box that has a width of 15
16030 \begin_inset space \thinspace{}
16036 \begin_layout Itemize
16038 \begin_inset Box Frameless
16048 height_special "totalheight"
16051 \begin_layout Plain Layout
16052 \begin_inset Tabular
16053 <lyxtabular version="3" rows="3" columns="3">
16054 <features rotate="0" tabularvalignment="middle">
16055 <column alignment="center" valignment="top">
16056 <column alignment="center" valignment="top">
16057 <column alignment="center" valignment="top">
16059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16062 \begin_layout Plain Layout
16068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16071 \begin_layout Plain Layout
16077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16080 \begin_layout Plain Layout
16088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16091 \begin_layout Plain Layout
16097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16100 \begin_layout Plain Layout
16106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16109 \begin_layout Plain Layout
16117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16120 \begin_layout Plain Layout
16126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16129 \begin_layout Plain Layout
16135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16138 \begin_layout Plain Layout
16158 \begin_layout Plain Layout
16170 \begin_inset Box Frameless
16180 height_special "totalheight"
16183 \begin_layout Plain Layout
16184 \begin_inset Tabular
16185 <lyxtabular version="3" rows="3" columns="3">
16186 <features rotate="0" tabularvalignment="middle">
16187 <column alignment="center" valignment="top">
16188 <column alignment="center" valignment="top">
16189 <column alignment="center" valignment="top">
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16194 \begin_layout Plain Layout
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16203 \begin_layout Plain Layout
16209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16212 \begin_layout Plain Layout
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16223 \begin_layout Plain Layout
16229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16232 \begin_layout Plain Layout
16238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16241 \begin_layout Plain Layout
16249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16252 \begin_layout Plain Layout
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16261 \begin_layout Plain Layout
16267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16270 \begin_layout Plain Layout
16290 \begin_layout Plain Layout
16300 \begin_layout Itemize
16302 \begin_inset Box Frameless
16312 height_special "totalheight"
16315 \begin_layout Plain Layout
16316 \begin_inset Tabular
16317 <lyxtabular version="3" rows="3" columns="3">
16318 <features rotate="0" tabularvalignment="middle">
16319 <column alignment="center" valignment="top">
16320 <column alignment="center" valignment="top">
16321 <column alignment="center" valignment="top">
16323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16326 \begin_layout Plain Layout
16332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16335 \begin_layout Plain Layout
16341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16344 \begin_layout Plain Layout
16352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16355 \begin_layout Plain Layout
16361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16364 \begin_layout Plain Layout
16370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16373 \begin_layout Plain Layout
16381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16384 \begin_layout Plain Layout
16390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16393 \begin_layout Plain Layout
16399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16402 \begin_layout Plain Layout
16421 \begin_layout Itemize
16423 \begin_inset Box Frameless
16433 height_special "totalheight"
16436 \begin_layout Plain Layout
16437 \begin_inset Tabular
16438 <lyxtabular version="3" rows="3" columns="3">
16439 <features rotate="0" tabularvalignment="middle">
16440 <column alignment="center" valignment="top">
16441 <column alignment="center" valignment="top">
16442 <column alignment="center" valignment="top">
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16476 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16485 \begin_layout Plain Layout
16491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16494 \begin_layout Plain Layout
16502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16505 \begin_layout Plain Layout
16511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16514 \begin_layout Plain Layout
16520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16523 \begin_layout Plain Layout
16543 \begin_layout Plain Layout
16555 \begin_inset Box Frameless
16565 height_special "totalheight"
16568 \begin_layout Plain Layout
16569 \begin_inset Tabular
16570 <lyxtabular version="3" rows="3" columns="3">
16571 <features rotate="0" tabularvalignment="middle">
16572 <column alignment="center" valignment="top">
16573 <column alignment="center" valignment="top">
16574 <column alignment="center" valignment="top">
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16579 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16588 \begin_layout Plain Layout
16594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16597 \begin_layout Plain Layout
16605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16608 \begin_layout Plain Layout
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16617 \begin_layout Plain Layout
16623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16626 \begin_layout Plain Layout
16634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16637 \begin_layout Plain Layout
16643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16646 \begin_layout Plain Layout
16652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16655 \begin_layout Plain Layout
16675 \begin_layout Plain Layout
16685 \begin_layout Standard
16686 As you will see, the content of the first and last table row is not correctly
16688 To get this alignment, the minipage box must be set into a raisebox
16692 \begin_layout Plain Layout
16693 Raiseboxes are described in section
16694 \begin_inset space ~
16698 \begin_inset CommandInset ref
16700 reference "sub:Vertical-Alignment"
16710 In the example above the second table in the first item is aligned using
16711 the TeX-Code-command
16714 \begin_layout Standard
16724 \begin_layout Standard
16726 After the box the closing brace
16730 is inserted as TeX-Code.
16731 For the second table in the last item the command
16734 \begin_layout Standard
16744 \begin_layout Standard
16748 \begin_layout Standard
16749 \begin_inset Note Greyedout
16752 \begin_layout Plain Layout
16757 The alignment of the table row content to the surrounding text line is
16759 The required value for the
16765 command for this alignment depends on the document font, the font size,
16766 and the table line thickness.
16774 \begin_layout Section
16776 \begin_inset CommandInset label
16778 name "sec:Colored-Tables"
16783 \begin_inset Index idx
16786 \begin_layout Plain Layout
16795 \begin_layout Subsection
16797 \begin_inset Index idx
16800 \begin_layout Plain Layout
16801 Table Color ! for Cells
16807 \begin_inset Index idx
16810 \begin_layout Plain Layout
16811 Color ! for Table Cells
16819 \begin_layout Standard
16820 \begin_inset Float table
16826 \begin_layout Plain Layout
16827 \begin_inset Caption Standard
16829 \begin_layout Plain Layout
16830 \begin_inset CommandInset label
16832 name "tab:Table-colored-without"
16836 Table colored without using the package
16841 \begin_inset Argument 1
16844 \begin_layout Plain Layout
16845 Table without colortbl
16858 \begin_layout Plain Layout
16860 \begin_inset Tabular
16861 <lyxtabular version="3" rows="3" columns="3">
16862 <features rotate="0" tabularvalignment="middle">
16863 <column alignment="center" valignment="top">
16864 <column alignment="center" valignment="top">
16865 <column alignment="center" valignment="top">
16867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16870 \begin_layout Plain Layout
16878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16881 \begin_layout Plain Layout
16889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16892 \begin_layout Plain Layout
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16905 \begin_layout Plain Layout
16913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16916 \begin_layout Plain Layout
16924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16927 \begin_layout Plain Layout
16937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16940 \begin_layout Plain Layout
16948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16951 \begin_layout Plain Layout
16959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16962 \begin_layout Plain Layout
16983 \begin_layout Standard
16984 If you only need colored text, mark the cells and choose a color in the
16988 \begin_inset space ~
16993 dialog (toolbar button
16996 arg "dialog-show character"
17000 This was used to create Table
17001 \begin_inset space ~
17005 \begin_inset CommandInset ref
17007 reference "tab:Table-colored-without"
17012 In any other case you have to use the LaTeX-package
17017 \begin_inset Index idx
17020 \begin_layout Plain Layout
17021 LaTeX-packages ! colortbl
17029 \begin_layout Standard
17033 \begin_layout Plain Layout
17043 \begin_inset Note Note
17046 \begin_layout Plain Layout
17047 The following section part will only be displayed when the LaTeX-package
17060 \begin_layout Standard
17061 To create colored tables,
17065 must be loaded in the preamble with the line
17068 \begin_layout Standard
17073 usepackage{colortbl}
17076 \begin_layout Standard
17077 The color of a column is adjusted with the command
17080 \begin_layout Standard
17085 columncolor{name of color}
17088 \begin_layout Standard
17094 More about the command
17098 is contained in section
17099 \begin_inset space ~
17103 \begin_inset CommandInset ref
17105 reference "sub:Multicolumn-Calculations"
17112 \begin_layout Standard
17113 The following color names are predefined:
17116 \begin_layout Standard
17150 \begin_layout Standard
17151 \begin_inset VSpace medskip
17157 \begin_layout Standard
17158 If you add the options
17161 \begin_layout Standard
17164 usenames,dvipsnames
17167 \begin_layout Standard
17168 to the document class options in the document settings, you can additionally
17170 \begin_inset space ~
17174 These colors are listed in appendix
17175 \begin_inset space ~
17179 \begin_inset CommandInset ref
17181 reference "chap:List-of-dvips-colornames"
17186 One of these colors,
17190 , is used as example in Table
17191 \begin_inset space ~
17195 \begin_inset CommandInset ref
17197 reference "tab:Table-colored-using"
17204 \begin_layout Standard
17205 \begin_inset VSpace medskip
17211 \begin_layout Standard
17212 You can also define your own color with the command
17215 \begin_layout Standard
17220 definecolor{color name}{color model}{color values}
17223 \begin_layout Standard
17224 The color model can be
17227 \begin_layout Labeling
17228 \labelwidthstring 00.00.0000
17229 cmyk: cyan, magenta, yellow, black
17232 \begin_layout Labeling
17233 \labelwidthstring 00.00.0000
17234 rgb: red, green blue
17237 \begin_layout Labeling
17238 \labelwidthstring 00.00.0000
17242 \begin_layout Standard
17243 and the color values are comma separated numbers between 0 and 1 describing
17244 the factor for the corresponding color of the color model.
17247 \begin_layout Standard
17249 \begin_inset space \thinspace{}
17253 \begin_inset space \space{}
17260 " in the preamble with
17263 \begin_layout Standard
17268 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17271 \begin_layout Standard
17279 \begin_layout Standard
17284 definecolor{lightgray}{gray}{0.8}
17287 \begin_layout Standard
17288 \begin_inset VSpace medskip
17294 \begin_layout Standard
17295 Lines are colored with the command
17298 \begin_layout Standard
17303 rowcolor{name of color}
17306 \begin_layout Standard
17307 and cells are colored with the command
17310 \begin_layout Standard
17315 cellcolor{name of color}
17318 \begin_layout Standard
17319 Both commands are inserted at the beginning of a cell as TeX-Code.
17322 \begin_layout Standard
17323 To color characters in the table, mark the cells and use the
17326 \begin_inset space ~
17332 If a cell contains TeX-Code mark only the characters, otherwise the colored
17333 TeX-Code will cause LaTeX-errors.
17336 \begin_layout Standard
17337 \begin_inset Note Greyedout
17340 \begin_layout Plain Layout
17345 Not all DVI-viewers are able to display self-defined colors.
17353 \begin_layout Standard
17354 \begin_inset VSpace bigskip
17360 \begin_layout Standard
17362 \begin_inset space ~
17366 \begin_inset CommandInset ref
17368 reference "tab:Table-colored-using"
17372 do the following: The color of the first column should be
17380 \begin_layout Standard
17385 columncolor{darkgreen}
17390 \begin_layout Standard
17391 as LaTeX-argument for this column.
17392 The first row should be light blue, therefore the TeX-Code command
17395 \begin_layout Standard
17403 \begin_layout Standard
17404 is inserted to the first cell of this row.
17405 Note that this overwrites the column color for the first cell.
17406 The last cell of the last row is colored maroon by inserting the TeX-Code
17410 \begin_layout Standard
17418 \begin_layout Standard
17419 The characters could now be colored using the menu
17421 Edit\SpecialChar \menuseparator
17423 \begin_inset space ~
17431 \begin_layout Standard
17432 \begin_inset Float table
17438 \begin_layout Plain Layout
17439 \begin_inset Caption Standard
17441 \begin_layout Plain Layout
17442 \begin_inset CommandInset label
17444 name "tab:Table-colored-using"
17448 Table colored using the package
17453 \begin_inset Argument 1
17456 \begin_layout Plain Layout
17457 Table with colortbl
17470 \begin_layout Plain Layout
17472 \begin_inset Tabular
17473 <lyxtabular version="3" rows="3" columns="3">
17474 <features rotate="0" tabularvalignment="middle">
17475 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17476 <column alignment="center" valignment="top">
17477 <column alignment="center" valignment="top">
17479 <cell alignment="center" valignment="top" usebox="none">
17482 \begin_layout Plain Layout
17486 \begin_layout Plain Layout
17502 <cell alignment="center" valignment="top" usebox="none">
17505 \begin_layout Plain Layout
17513 <cell alignment="center" valignment="top" usebox="none">
17516 \begin_layout Plain Layout
17526 <cell alignment="center" valignment="top" usebox="none">
17529 \begin_layout Plain Layout
17537 <cell alignment="center" valignment="top" usebox="none">
17540 \begin_layout Plain Layout
17548 <cell alignment="center" valignment="top" usebox="none">
17551 \begin_layout Plain Layout
17561 <cell alignment="center" valignment="top" usebox="none">
17564 \begin_layout Plain Layout
17572 <cell alignment="center" valignment="top" usebox="none">
17575 \begin_layout Plain Layout
17583 <cell alignment="center" valignment="top" usebox="none">
17586 \begin_layout Plain Layout
17590 \begin_layout Plain Layout
17619 \begin_layout Standard
17623 \begin_layout Plain Layout
17633 \begin_inset Note Note
17636 \begin_layout Plain Layout
17637 The following will be displayed when the LaTeX-package
17649 \begin_layout Standard
17650 You need to install the package
17654 to see the content of this section in the output.
17657 \begin_layout Standard
17661 \begin_layout Plain Layout
17673 \begin_layout Subsection
17675 \begin_inset Index idx
17678 \begin_layout Plain Layout
17679 Table Color ! for Rows
17685 \begin_inset Index idx
17688 \begin_layout Plain Layout
17689 Color ! for Table Rows
17697 \begin_layout Standard
17698 In case every second table row needs to be colored there is an alternative
17699 to the method described in the previous section: One loads the package
17705 \begin_inset Index idx
17708 \begin_layout Plain Layout
17709 LaTeX-packages ! xcolor
17713 \begin_layout Plain Layout
17727 in the document preamble with the command
17730 \begin_layout Standard
17735 usepackage[table]{xcolor}
17738 \begin_layout Standard
17743 automatically loads also the package
17748 \begin_inset Index idx
17751 \begin_layout Plain Layout
17752 LaTeX-packages ! colortbl
17761 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17764 \begin_layout Standard
17768 \begin_layout Plain Layout
17778 \begin_inset Note Note
17781 \begin_layout Plain Layout
17782 The following section part will only be displayed when the LaTeX-package
17795 \begin_layout Standard
17796 The table rows are colored with the command
17799 \begin_layout Standard
17804 rowcolors[commands]{row number}{odd row color}{even row color}
17807 \begin_layout Standard
17808 that is either inserted in the document preamble or as TeX-Code before the
17809 first table to be colored.
17811 \begin_inset space ~
17814 number is the number of the first row which should be colored according
17815 to the odd row color.
17816 commands can be additional commands that are executed before every table
17818 So for example the command
17821 \begin_layout Standard
17826 rowcolors{1}{white}{lightgray}
17829 \begin_layout Standard
17830 leads to the coloring scheme of Table
17831 \begin_inset space ~
17835 \begin_inset CommandInset ref
17837 reference "tab:Table-rowcolors"
17845 \begin_layout Standard
17852 hline]{1}{lightgray}{cyan}
17855 \begin_layout Standard
17856 leads to the coloring scheme of Table
17857 \begin_inset space ~
17861 \begin_inset CommandInset ref
17863 reference "tab:Table-rowcolors-2"
17869 \begin_inset space ~
17873 \begin_inset space ~
17877 \begin_inset space ~
17881 \begin_inset space ~
17884 color are left empty, no color will be used so that the command
17887 \begin_layout Standard
17895 \begin_layout Standard
17896 deletes all colors.
17903 affects all tables following that command.
17906 \begin_layout Standard
17910 \begin_layout Plain Layout
17914 rowcolors{1}{white}{lightgray}
17922 \begin_layout Standard
17923 \begin_inset Float table
17929 \begin_layout Plain Layout
17930 \begin_inset Caption Standard
17932 \begin_layout Plain Layout
17933 \begin_inset CommandInset label
17935 name "tab:Table-rowcolors"
17939 Table where every second row is colored light gray.
17947 \begin_layout Plain Layout
17949 \begin_inset Tabular
17950 <lyxtabular version="3" rows="4" columns="3">
17951 <features rotate="0" tabularvalignment="middle">
17952 <column alignment="center" valignment="top">
17953 <column alignment="center" valignment="top" width="0pt">
17954 <column alignment="center" valignment="top" width="0pt">
17956 <cell alignment="center" valignment="top" usebox="none">
17959 \begin_layout Plain Layout
17965 <cell alignment="center" valignment="top" usebox="none">
17968 \begin_layout Plain Layout
17974 <cell alignment="center" valignment="top" usebox="none">
17977 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" usebox="none">
17997 \begin_layout Plain Layout
18003 <cell alignment="center" valignment="top" usebox="none">
18006 \begin_layout Plain Layout
18014 <cell alignment="center" valignment="top" usebox="none">
18017 \begin_layout Plain Layout
18023 <cell alignment="center" valignment="top" usebox="none">
18026 \begin_layout Plain Layout
18032 <cell alignment="center" valignment="top" usebox="none">
18035 \begin_layout Plain Layout
18043 <cell alignment="center" valignment="top" usebox="none">
18046 \begin_layout Plain Layout
18052 <cell alignment="center" valignment="top" usebox="none">
18055 \begin_layout Plain Layout
18061 <cell alignment="center" valignment="top" usebox="none">
18064 \begin_layout Plain Layout
18083 \begin_layout Standard
18087 \begin_layout Plain Layout
18093 hline]{1}{lightgray}{cyan}
18101 \begin_layout Standard
18102 \begin_inset Float table
18108 \begin_layout Plain Layout
18109 \begin_inset Caption Standard
18111 \begin_layout Plain Layout
18112 \begin_inset CommandInset label
18114 name "tab:Table-rowcolors-2"
18118 Table where every second row is colored cyan and at which there is a line
18127 \begin_layout Plain Layout
18129 \begin_inset Tabular
18130 <lyxtabular version="3" rows="4" columns="3">
18131 <features rotate="0" tabularvalignment="middle">
18132 <column alignment="center" valignment="top">
18133 <column alignment="center" valignment="top">
18134 <column alignment="center" valignment="top" width="0pt">
18136 <cell alignment="center" valignment="top" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18154 <cell alignment="center" valignment="top" usebox="none">
18157 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18183 <cell alignment="center" valignment="top" usebox="none">
18186 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" usebox="none">
18206 \begin_layout Plain Layout
18212 <cell alignment="center" valignment="top" usebox="none">
18215 \begin_layout Plain Layout
18223 <cell alignment="center" valignment="top" usebox="none">
18226 \begin_layout Plain Layout
18232 <cell alignment="center" valignment="top" usebox="none">
18235 \begin_layout Plain Layout
18241 <cell alignment="center" valignment="top" usebox="none">
18244 \begin_layout Plain Layout
18263 \begin_layout Standard
18267 \begin_layout Plain Layout
18277 \begin_inset Note Note
18280 \begin_layout Plain Layout
18281 turns off the row coloring
18289 \begin_layout Standard
18293 \begin_layout Plain Layout
18303 \begin_inset Note Note
18306 \begin_layout Plain Layout
18307 The following will be displayed when the LaTeX-package
18319 \begin_layout Standard
18320 You need to install the package
18324 to see the content of this section in the output.
18327 \begin_layout Standard
18331 \begin_layout Plain Layout
18343 \begin_layout Subsection
18345 \begin_inset Index idx
18348 \begin_layout Plain Layout
18349 Table Color ! for Lines
18355 \begin_inset Index idx
18358 \begin_layout Plain Layout
18359 Color ! for Table Lines
18367 \begin_layout Standard
18368 As described in section
18369 \begin_inset space ~
18373 \begin_inset CommandInset ref
18375 reference "sub:Line-Thickness"
18379 , the line thickness for all lines in a table can be adjusted with the length
18388 \begin_inset space \thinspace{}
18391 pt for all tables of this section.
18395 \begin_layout Plain Layout
18401 arrayrulewidth}{1.5pt}
18409 \begin_layout Standard
18410 To color vertical lines for example with green, create the following column
18411 format in the document preamble, according to the description in section
18412 \begin_inset space ~
18416 \begin_inset CommandInset ref
18418 reference "sub:Customized-Format"
18425 \begin_layout Standard
18430 newcolumntype{W}{!{
18437 \begin_layout Standard
18439 \begin_inset space ~
18443 \begin_inset CommandInset ref
18445 reference "tab:Table-with-vertical-colored"
18453 was used for the last column and
18457 for the other columns.
18460 \begin_layout Standard
18461 If you want to have several colors, define more column formats.
18464 \begin_layout Standard
18465 \begin_inset Float table
18471 \begin_layout Plain Layout
18472 \begin_inset Caption Standard
18474 \begin_layout Plain Layout
18475 \begin_inset CommandInset label
18477 name "tab:Table-with-vertical-colored"
18481 Table with colored vertical lines
18489 \begin_layout Plain Layout
18491 \begin_inset Tabular
18492 <lyxtabular version="3" rows="3" columns="3">
18493 <features rotate="0" tabularvalignment="middle">
18494 <column alignment="center" valignment="top" special="Wc">
18495 <column alignment="center" valignment="top" special="Wc">
18496 <column alignment="center" valignment="top" special="WcW">
18498 <cell alignment="center" valignment="top" topline="true" usebox="none">
18501 \begin_layout Plain Layout
18507 <cell alignment="center" valignment="top" topline="true" usebox="none">
18510 \begin_layout Plain Layout
18516 <cell alignment="center" valignment="top" topline="true" usebox="none">
18519 \begin_layout Plain Layout
18527 <cell alignment="center" valignment="top" topline="true" usebox="none">
18530 \begin_layout Plain Layout
18536 <cell alignment="center" valignment="top" topline="true" usebox="none">
18539 \begin_layout Plain Layout
18545 <cell alignment="center" valignment="top" topline="true" usebox="none">
18548 \begin_layout Plain Layout
18556 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18559 \begin_layout Plain Layout
18565 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18568 \begin_layout Plain Layout
18574 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18577 \begin_layout Plain Layout
18596 \begin_layout Standard
18597 \begin_inset VSpace bigskip
18600 To color horizontal lines for example with red, as in Table
18601 \begin_inset space ~
18605 \begin_inset CommandInset ref
18607 reference "tab:Table-with-horizontal-colored"
18611 , insert these commands in TeX-Code before the table or table float:
18614 \begin_layout Standard
18624 \begin_inset Newline newline
18632 \begin_inset Newline newline
18636 \begin_inset Phantom HPhantom
18639 \begin_layout Plain Layout
18642 \begin_inset space ~
18652 arrayrulecolor{red}
18656 arrayrulecolor{black}}
18659 \begin_layout Standard
18663 \begin_layout Plain Layout
18674 \begin_layout Plain Layout
18683 \begin_layout Plain Layout
18687 arrayrulecolor{red}
18691 arrayrulecolor{black}}
18697 \begin_inset Float table
18703 \begin_layout Plain Layout
18704 \begin_inset Caption Standard
18706 \begin_layout Plain Layout
18707 \begin_inset CommandInset label
18709 name "tab:Table-with-horizontal-colored"
18713 Table with colored horizontal lines
18721 \begin_layout Plain Layout
18723 \begin_inset Tabular
18724 <lyxtabular version="3" rows="3" columns="3">
18725 <features rotate="0" tabularvalignment="middle">
18726 <column alignment="center" valignment="top">
18727 <column alignment="center" valignment="top">
18728 <column alignment="center" valignment="top">
18730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18742 \begin_layout Plain Layout
18748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18751 \begin_layout Plain Layout
18759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18771 \begin_layout Plain Layout
18777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18780 \begin_layout Plain Layout
18788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18791 \begin_layout Plain Layout
18797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18800 \begin_layout Plain Layout
18806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18809 \begin_layout Plain Layout
18828 \begin_layout Standard
18829 To return to the default line color black, insert this command in TeX-Code
18830 after the table or table float:
18833 \begin_layout Standard
18845 \begin_layout Standard
18847 \begin_inset space ~
18851 \begin_inset CommandInset ref
18853 reference "tab:Table-with-colored"
18857 is an example with colored vertical and horizontal lines.
18860 \begin_layout Standard
18861 \begin_inset Float table
18867 \begin_layout Plain Layout
18868 \begin_inset Caption Standard
18870 \begin_layout Plain Layout
18871 \begin_inset CommandInset label
18873 name "tab:Table-with-colored"
18877 Table with colored lines
18885 \begin_layout Plain Layout
18887 \begin_inset Tabular
18888 <lyxtabular version="3" rows="3" columns="3">
18889 <features rotate="0" tabularvalignment="middle">
18890 <column alignment="center" valignment="top" special="Wc">
18891 <column alignment="center" valignment="top" special="Wc">
18892 <column alignment="center" valignment="top" special="WcW">
18894 <cell alignment="center" valignment="top" topline="true" usebox="none">
18897 \begin_layout Plain Layout
18903 <cell alignment="center" valignment="top" topline="true" usebox="none">
18906 \begin_layout Plain Layout
18912 <cell alignment="center" valignment="top" topline="true" usebox="none">
18915 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" topline="true" usebox="none">
18926 \begin_layout Plain Layout
18932 <cell alignment="center" valignment="top" topline="true" usebox="none">
18935 \begin_layout Plain Layout
18941 <cell alignment="center" valignment="top" topline="true" usebox="none">
18944 \begin_layout Plain Layout
18951 <row topspace="default">
18952 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18955 \begin_layout Plain Layout
18961 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18964 \begin_layout Plain Layout
18970 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18973 \begin_layout Plain Layout
18992 \begin_layout Standard
18996 \begin_layout Plain Layout
19012 \begin_layout Standard
19016 \begin_layout Plain Layout
19022 arrayrulewidth}{0.4pt}
19030 \begin_layout Section
19031 Rotated Table Cells
19032 \begin_inset CommandInset label
19034 name "sec:Rotated-Table-Cells"
19039 \begin_inset Index idx
19042 \begin_layout Plain Layout
19043 Table ! Rotated Cells
19049 \begin_inset Index idx
19052 \begin_layout Plain Layout
19061 \begin_layout Standard
19062 \begin_inset Note Greyedout
19065 \begin_layout Plain Layout
19070 Not all DVI-viewers are able to display rotations.
19078 \begin_layout Standard
19079 Currently LyX only offers to rotate table cells by 90
19080 \begin_inset space \thinspace{}
19083 ° counter-clockwise.
19084 To rotate cells by an angle of your choice, you have to add this to the
19088 \begin_layout Standard
19093 @ifundefined{turnbox}{
19095 usepackage{rotating}}{}
19098 \begin_layout Standard
19099 In the table cell that should be rotated, add at the beginning this command
19103 \begin_layout Standard
19111 \begin_layout Standard
19112 where angle is the rotation angle in °.
19113 At the end of the cell the command
19116 \begin_layout Standard
19124 \begin_layout Standard
19125 is inserted as TeX-code.
19128 \begin_layout Standard
19130 \begin_inset space ~
19134 \begin_inset CommandInset ref
19136 reference "tab:Table-with-rotated-multi"
19140 is an example where 3
19141 \begin_inset space ~
19144 cells were rotated by 45
19145 \begin_inset space \thinspace{}
19151 \begin_layout Standard
19152 \begin_inset Float table
19157 \begin_layout Plain Layout
19158 \begin_inset Caption Standard
19160 \begin_layout Plain Layout
19161 \begin_inset CommandInset label
19163 name "tab:Table-with-rotated"
19167 Table with rotated cells in the first row.
19175 \begin_layout Plain Layout
19178 \begin_inset Tabular
19179 <lyxtabular version="3" rows="2" columns="3">
19180 <features rotate="0" tabularvalignment="middle">
19181 <column alignment="center" valignment="top">
19182 <column alignment="center" valignment="top" width="0pt">
19183 <column alignment="center" valignment="top">
19185 <cell alignment="center" valignment="top" usebox="none">
19188 \begin_layout Plain Layout
19192 \begin_layout Plain Layout
19205 \begin_layout Plain Layout
19219 <cell alignment="center" valignment="top" usebox="none">
19222 \begin_layout Plain Layout
19226 \begin_layout Plain Layout
19239 \begin_layout Plain Layout
19253 <cell alignment="center" valignment="top" usebox="none">
19256 \begin_layout Plain Layout
19260 \begin_layout Plain Layout
19273 \begin_layout Plain Layout
19289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19292 \begin_layout Plain Layout
19298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19301 \begin_layout Plain Layout
19307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19310 \begin_layout Plain Layout
19329 \begin_layout Standard
19330 \begin_inset Note Greyedout
19333 \begin_layout Plain Layout
19338 Line breaks (shortcut
19341 arg "newline-insert newline"
19344 ) are not allowed in rotated cells.
19352 \begin_layout Standard
19353 If you want to rotate table cells containing line breaks, you have to put
19354 the cell content into a minipage or a parbox.
19358 \begin_layout Plain Layout
19359 For more about these boxes see sec.
19360 \begin_inset space \thinspace{}
19364 \begin_inset CommandInset ref
19366 reference "sec:Minipages"
19371 \begin_inset CommandInset ref
19373 reference "sec:Parboxes"
19382 If you rotate this cell by 90
19383 \begin_inset space \thinspace{}
19386 ° the width of the box is the height of the cell.
19388 \begin_inset space ~
19392 \begin_inset CommandInset ref
19394 reference "tab:Table-with-rotated-multi"
19398 is an example for a rotated multiline cell where the box width was set
19400 \begin_inset space \thinspace{}
19406 \begin_layout Standard
19407 \begin_inset Float table
19412 \begin_layout Plain Layout
19413 \begin_inset Caption Standard
19415 \begin_layout Plain Layout
19416 \begin_inset CommandInset label
19418 name "tab:Table-with-rotated-multi"
19422 Table with rotated multiline cell.
19430 \begin_layout Plain Layout
19433 \begin_inset Tabular
19434 <lyxtabular version="3" rows="2" columns="3">
19435 <features rotate="0" tabularvalignment="middle">
19436 <column alignment="center" valignment="top">
19437 <column alignment="center" valignment="top" width="0pt">
19438 <column alignment="center" valignment="top">
19440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19443 \begin_layout Plain Layout
19449 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19452 \begin_layout Plain Layout
19453 \begin_inset Box Frameless
19463 height_special "totalheight"
19466 \begin_layout Plain Layout
19468 \begin_inset Newline newline
19481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19484 \begin_layout Plain Layout
19492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19495 \begin_layout Plain Layout
19501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19504 \begin_layout Plain Layout
19510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19513 \begin_layout Plain Layout
19532 \begin_layout Section
19533 Table Width Calculation
19534 \begin_inset CommandInset label
19536 name "sec:Table-Width-Calculation"
19543 \begin_layout Standard
19544 For wide tables it is sometimes difficult to assure that the table does
19545 not protrude over the page margin.
19546 Setting a fixed width for every column of the table is the solution, but
19547 what amount of space is needed for each column?
19550 \begin_layout Standard
19552 \begin_inset Formula $W_{\mathrm{table}}$
19555 can be calculated: Every column has the width of the specified column width
19557 \begin_inset Formula $W_{\mathrm{column}}$
19560 (that the content of the column can consume) plus two times the separation
19561 between the column content and the column border (LaTeX length
19568 \begin_inset space \thinspace{}
19571 pt) plus the width of a border line (LaTeX length
19578 \begin_inset space \thinspace{}
19582 \begin_inset Formula $n$
19586 \begin_inset space ~
19589 columns have the same width, the table width is
19590 \begin_inset Formula
19592 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19600 \begin_layout Standard
19601 The available width for a table is the space between the page margins or
19602 the width of a text column (for a two-column document) (LaTeX length
19609 If all table columns should have the same width and
19610 \begin_inset Formula $W_{\mathrm{table}}$
19614 \begin_inset space \thinspace{}
19620 \begin_inset Formula $W_{\mathrm{column}}$
19623 can easily be calculated.
19626 \begin_layout Standard
19627 To be able to perform calculations you need to load the LaTeX-package
19632 \begin_inset Index idx
19635 \begin_layout Plain Layout
19636 LaTeX-packages ! calc
19641 in the document preamble.
19642 To set the width in the table dialog you have to use the field
19647 The command scheme for this field is the same that is explained in section
19648 \begin_inset space ~
19652 \begin_inset CommandInset ref
19654 reference "sub:Multicolumn-Calculations"
19660 \begin_inset space \thinspace{}
19663 columns with an uniform width and centered text, enter there for each column
19667 \begin_layout Standard
19674 columnwidth-62.4pt)/5}
19677 \begin_layout Standard
19679 \begin_inset space \thinspace{}
19682 columns where 2 should have 0.75
19683 \begin_inset space ~
19686 times the width than the 3 others, the calculation is
19687 \begin_inset Formula
19689 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19690 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19691 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19692 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19700 \begin_layout Standard
19701 In the table therefore the command
19704 \begin_layout Standard
19711 columnwidth-62.4pt)/
19716 \begin_layout Standard
19717 is used for the wider columns and
19720 \begin_layout Standard
19727 columnwidth-62.4pt)/
19734 \begin_layout Standard
19735 for the smaller ones:
19738 \begin_layout Standard
19739 \begin_inset Tabular
19740 <lyxtabular version="3" rows="2" columns="5">
19741 <features rotate="0" tabularvalignment="middle">
19742 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19743 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19744 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19745 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19746 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19751 \begin_layout Plain Layout
19757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19760 \begin_layout Plain Layout
19766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19769 \begin_layout Plain Layout
19775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19778 \begin_layout Plain Layout
19784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19787 \begin_layout Plain Layout
19795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19798 \begin_layout Plain Layout
19799 111111 1111111 111111 111111111 11111 11111 1111
19804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19807 \begin_layout Plain Layout
19813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19816 \begin_layout Plain Layout
19817 2222 22222 222222 222222222 2222222 22 22222
19822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19825 \begin_layout Plain Layout
19831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19834 \begin_layout Plain Layout
19835 333333 333333 333333 33333 3333333 333
19848 \begin_layout Section
19849 Table Customization
19850 \begin_inset Index idx
19853 \begin_layout Plain Layout
19854 Table Customization
19860 \begin_inset Index idx
19863 \begin_layout Plain Layout
19864 Table ! Customization
19872 \begin_layout Subsection
19874 \begin_inset CommandInset label
19876 name "sub:Row-Spacing"
19881 \begin_inset Index idx
19884 \begin_layout Plain Layout
19885 Table Customization ! Row Spacing
19893 \begin_layout Standard
19894 You can add vertical space to table rows in the
19898 tab of the table dialog.
19899 You find there three possibilities:
19902 \begin_layout Description
19904 \begin_inset space ~
19908 \begin_inset space ~
19911 row will add space above the characters of the table row.
19912 If the table is a formal table
19916 \begin_layout Plain Layout
19917 Formal tables are explained in section
19918 \begin_inset space ~
19922 \begin_inset CommandInset ref
19924 reference "sec:Formal-Tables"
19933 LyX will insert as default 0.5
19934 \begin_inset space \thinspace{}
19938 For normal tables the inserted space will unfortunately destroy the vertical
19939 table lines as in the following table:
19940 \begin_inset VSpace medskip
19944 \begin_inset Newline newline
19948 \begin_inset space \hspace*{}
19953 \begin_inset space \hfill{}
19957 \begin_inset Tabular
19958 <lyxtabular version="3" rows="3" columns="1">
19959 <features rotate="0" tabularvalignment="middle">
19960 <column alignment="center" valignment="top">
19962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19965 \begin_layout Plain Layout
19972 <row topspace="3mm">
19973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19976 \begin_layout Plain Layout
19978 \begin_inset space \thinspace{}
19981 mm space top of row
19988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19991 \begin_layout Plain Layout
20003 \begin_inset space \hfill{}
20007 \begin_inset space \hspace*{}
20012 \begin_inset VSpace medskip
20016 \begin_inset Newline newline
20019 So inserting space in the top of row for normal tables is only useful when
20020 you don't have vertical lines.
20023 \begin_layout Description
20025 \begin_inset space ~
20029 \begin_inset space ~
20032 row will add space below the characters of the table row.
20033 If the table is a formal table LyX will insert as default 0.5
20034 \begin_inset space \thinspace{}
20037 em space, for normal tables the default size is 2
20038 \begin_inset space \thinspace{}
20044 \begin_layout Description
20046 \begin_inset space ~
20049 rows adds space between the current and the following row.
20050 If the table is a formal table LyX will insert as default 0.5
20051 \begin_inset space \thinspace{}
20055 For normal tables the inserted space will unfortunately destroy the vertical
20056 table lines as in the following table:
20057 \begin_inset VSpace medskip
20061 \begin_inset Newline newline
20065 \begin_inset space \hspace*{}
20070 \begin_inset space \hfill{}
20074 \begin_inset Tabular
20075 <lyxtabular version="3" rows="3" columns="1">
20076 <features rotate="0" tabularvalignment="middle">
20077 <column alignment="center" valignment="top">
20079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20082 \begin_layout Plain Layout
20089 <row interlinespace="3mm">
20090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20093 \begin_layout Plain Layout
20094 \begin_inset Formula $\downarrow$
20098 \begin_inset space \thinspace{}
20101 mm space between row
20102 \begin_inset Formula $\downarrow$
20112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20115 \begin_layout Plain Layout
20116 \begin_inset Formula $\uparrow$
20120 \begin_inset space \thinspace{}
20123 mm space between row
20124 \begin_inset Formula $\uparrow$
20138 \begin_inset space \hfill{}
20142 \begin_inset space \hspace*{}
20147 \begin_inset VSpace medskip
20151 \begin_inset Newline newline
20154 So inserting space between rows for normal tables is only useful when you
20155 don't have vertical lines.
20158 \begin_layout Standard
20159 \begin_inset VSpace bigskip
20162 When you want to add extra height to all cells of all tables, you can do
20163 this with the following preamble lines:
20166 \begin_layout Standard
20171 @ifundefined{extrarowheight}
20172 \begin_inset Newline newline
20176 \begin_inset Phantom HPhantom
20179 \begin_layout Plain Layout
20182 \begin_inset space ~
20192 usepackage{array}}{}
20193 \begin_inset Newline newline
20200 extrarowheight}{height}
20203 \begin_layout Standard
20204 But this has the disadvantage that the cell texts are no longer exactly
20205 vertically centered.
20210 will be loaded automatically by LyX when you use self defined table formats.
20211 To avoid that it being loaded twice the command
20217 is used in the above command.)
20220 \begin_layout Standard
20221 If you are using font sizes larger than the normal size, the table borders
20222 are often too close to the letters.
20223 This can be corrected by inserting the command
20229 in TeX-Code at the beginning of a table row.
20231 \begin_inset space ~
20235 \begin_inset CommandInset ref
20237 reference "tab:Vertical-alignment-of"
20241 illustrates the effect.
20244 \begin_layout Standard
20246 \begin_inset Float table
20252 \begin_layout Plain Layout
20253 \begin_inset Caption Standard
20255 \begin_layout Plain Layout
20256 \begin_inset CommandInset label
20258 name "tab:Vertical-alignment-of"
20262 Vertical alignment of text with large font sizes.
20270 \begin_layout Plain Layout
20271 \begin_inset space \hfill{}
20275 \begin_inset Float table
20280 \begin_layout Plain Layout
20281 \begin_inset Caption Standard
20283 \begin_layout Plain Layout
20292 \begin_layout Plain Layout
20295 \begin_inset Tabular
20296 <lyxtabular version="3" rows="6" columns="1">
20297 <features rotate="0" tabularvalignment="middle">
20298 <column alignment="left" valignment="top">
20300 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20303 \begin_layout Plain Layout
20311 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20314 \begin_layout Plain Layout
20324 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20327 \begin_layout Plain Layout
20337 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20340 \begin_layout Plain Layout
20350 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20353 \begin_layout Plain Layout
20363 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20366 \begin_layout Plain Layout
20385 \begin_inset space \hfill{}
20389 \begin_inset Float table
20394 \begin_layout Plain Layout
20395 \begin_inset Caption Standard
20397 \begin_layout Plain Layout
20398 Table using the command
20412 \begin_layout Plain Layout
20415 \begin_inset Tabular
20416 <lyxtabular version="3" rows="6" columns="1">
20417 <features rotate="0" tabularvalignment="middle">
20418 <column alignment="left" valignment="top">
20420 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20423 \begin_layout Plain Layout
20431 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20434 \begin_layout Plain Layout
20440 \begin_layout Plain Layout
20456 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20459 \begin_layout Plain Layout
20465 \begin_layout Plain Layout
20481 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20484 \begin_layout Plain Layout
20490 \begin_layout Plain Layout
20506 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20509 \begin_layout Plain Layout
20515 \begin_layout Plain Layout
20531 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20534 \begin_layout Plain Layout
20540 \begin_layout Plain Layout
20567 \begin_inset space \hfill{}
20578 \begin_layout Subsection
20579 Special Cell Alignment
20580 \begin_inset CommandInset label
20582 name "sub:Special-Cell-Alignment"
20587 \begin_inset Index idx
20590 \begin_layout Plain Layout
20591 Table Customization ! Special Cell Alignment
20599 \begin_layout Standard
20600 Sometimes it looks better when the cell entries of a column are aligned
20601 with a special character, e.
20602 \begin_inset space \thinspace{}
20606 \begin_inset space \space{}
20609 with the decimal separator as in Table
20610 \begin_inset space ~
20614 \begin_inset CommandInset ref
20616 reference "tab:Table-cells-align"
20621 This alignment is achieved by setting the cursor into the column and then
20622 either pressing the toolbar button
20625 arg "inset-modify tabular align-decimal"
20628 or setting the alignment in the table settings to
20631 \begin_inset space ~
20635 \begin_inset space ~
20641 The alignment character can be a character of your choice and is specified
20642 in the table settings.
20645 \begin_layout Standard
20646 \begin_inset Float table
20652 \begin_layout Plain Layout
20653 \begin_inset Caption Standard
20655 \begin_layout Plain Layout
20656 \begin_inset CommandInset label
20658 name "tab:Table-cells-align"
20662 Table cells of a column aligned with the decimal separator.
20670 \begin_layout Plain Layout
20672 \begin_inset Tabular
20673 <lyxtabular version="3" rows="4" columns="1">
20674 <features rotate="0" booktabs="true" tabularvalignment="middle">
20675 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20677 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20680 \begin_layout Plain Layout
20688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20691 \begin_layout Plain Layout
20699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20702 \begin_layout Plain Layout
20710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20713 \begin_layout Plain Layout
20732 \begin_layout Standard
20733 \begin_inset Float table
20739 \begin_layout Plain Layout
20740 \begin_inset Caption Standard
20742 \begin_layout Plain Layout
20743 \begin_inset CommandInset label
20745 name "tab:Table-align-operator"
20749 Table cells of a column aligned with the operators.
20757 \begin_layout Plain Layout
20759 \begin_inset Tabular
20760 <lyxtabular version="3" rows="4" columns="2">
20761 <features rotate="0" booktabs="true" tabularvalignment="middle">
20762 <column alignment="right" valignment="top" width="0pt">
20763 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20765 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20768 \begin_layout Plain Layout
20774 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20777 \begin_layout Plain Layout
20785 <cell alignment="center" valignment="top" usebox="none">
20788 \begin_layout Plain Layout
20789 \begin_inset Formula $12\,+$
20797 <cell alignment="center" valignment="top" usebox="none">
20800 \begin_layout Plain Layout
20801 \begin_inset Formula $\,6$
20811 <cell alignment="center" valignment="top" usebox="none">
20814 \begin_layout Plain Layout
20815 \begin_inset Formula $0\,-$
20823 <cell alignment="center" valignment="top" usebox="none">
20826 \begin_layout Plain Layout
20827 \begin_inset Formula $\,68$
20837 <cell alignment="center" valignment="top" usebox="none">
20840 \begin_layout Plain Layout
20841 \begin_inset Formula $-123\,/$
20849 <cell alignment="center" valignment="top" usebox="none">
20852 \begin_layout Plain Layout
20853 \begin_inset Formula $\,0$
20874 \begin_layout Standard
20875 For alignments at characters in formulas this method does not work because
20876 the field to specify the alignment character does not allow formulas.
20877 In this case one need to use the method from Table
20878 \begin_inset space ~
20882 \begin_inset CommandInset ref
20884 reference "tab:Table-align-operator"
20889 This table was created with a 4×2 table.
20890 The heading is a centered multicolumn.
20891 The first column is right-aligned and contains the first part including
20893 The second column is left aligned and contains the rest.
20894 A small space was added at the beginning of each cell of the second column
20895 to get the space that is usually around operators.
20896 To omit the space that is normally between two table columns, the following
20897 LaTeX-argument was used for the second column:
20900 \begin_layout Standard
20906 \begin_layout Standard
20908 \begin_inset space ~
20912 \begin_inset CommandInset ref
20914 reference "tab:Several-table-cell"
20918 shows some example alignments.
20919 For the alignment with the relation sign, a small space was added like
20920 for the second column of Table
20921 \begin_inset space ~
20925 \begin_inset CommandInset ref
20927 reference "tab:Table-align-operator"
20934 \begin_layout Standard
20935 \begin_inset Float table
20941 \begin_layout Plain Layout
20942 \begin_inset Caption Standard
20944 \begin_layout Plain Layout
20945 \begin_inset CommandInset label
20947 name "tab:Several-table-cell"
20951 Several table cell alignments.
20959 \begin_layout Plain Layout
20961 \begin_inset Tabular
20962 <lyxtabular version="3" rows="4" columns="6">
20963 <features rotate="0" tabularvalignment="middle">
20964 <column alignment="right" valignment="top">
20965 <column alignment="left" valignment="top" special="@{}l">
20966 <column alignment="right" valignment="top">
20967 <column alignment="left" valignment="top" special="@{}l">
20968 <column alignment="right" valignment="top">
20969 <column alignment="left" valignment="top" special="@{}l">
20971 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20974 \begin_layout Plain Layout
20980 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20983 \begin_layout Plain Layout
20989 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20992 \begin_layout Plain Layout
20998 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21001 \begin_layout Plain Layout
21007 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21010 \begin_layout Plain Layout
21016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21019 \begin_layout Plain Layout
21027 <cell alignment="center" valignment="top" usebox="none">
21030 \begin_layout Plain Layout
21036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21039 \begin_layout Plain Layout
21041 \begin_inset space \thinspace{}
21049 <cell alignment="center" valignment="top" usebox="none">
21052 \begin_layout Plain Layout
21053 \begin_inset Formula $10\cdot$
21061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21064 \begin_layout Plain Layout
21065 \begin_inset Formula $10^{\mbox{-}17}$
21073 <cell alignment="center" valignment="top" usebox="none">
21076 \begin_layout Plain Layout
21077 \begin_inset Formula $\Gamma(t)\propto$
21085 <cell alignment="center" valignment="top" usebox="none">
21088 \begin_layout Plain Layout
21089 \begin_inset Formula $\:\Upsilon(t)$
21099 <cell alignment="center" valignment="top" usebox="none">
21102 \begin_layout Plain Layout
21108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21111 \begin_layout Plain Layout
21113 \begin_inset space \thinspace{}
21121 <cell alignment="center" valignment="top" usebox="none">
21124 \begin_layout Plain Layout
21125 \begin_inset Formula $5.78\cdot$
21133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21136 \begin_layout Plain Layout
21137 \begin_inset Formula $10^{7}$
21145 <cell alignment="center" valignment="top" usebox="none">
21148 \begin_layout Plain Layout
21149 \begin_inset Formula $A\ne$
21157 <cell alignment="center" valignment="top" usebox="none">
21160 \begin_layout Plain Layout
21161 \begin_inset Formula $\:B_{\mathrm{red}}$
21171 <cell alignment="center" valignment="top" usebox="none">
21174 \begin_layout Plain Layout
21180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21183 \begin_layout Plain Layout
21185 \begin_inset space \thinspace{}
21193 <cell alignment="center" valignment="top" usebox="none">
21196 \begin_layout Plain Layout
21198 \begin_inset Formula $33.5\cdot$
21206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21209 \begin_layout Plain Layout
21210 \begin_inset Formula $10^{4}$
21218 <cell alignment="center" valignment="top" usebox="none">
21221 \begin_layout Plain Layout
21222 \begin_inset Formula $\sin(\alpha)\ge$
21230 <cell alignment="center" valignment="top" usebox="none">
21233 \begin_layout Plain Layout
21234 \begin_inset Formula $\:\sin(\beta)$
21255 \begin_layout Subsection
21256 Customized Cell/Column Format
21257 \begin_inset CommandInset label
21259 name "sub:Customized-Format"
21264 \begin_inset Index idx
21267 \begin_layout Plain Layout
21268 Table Customization ! Cell/Column Format
21276 \begin_layout Standard
21277 Calculating the required width for normal columns as described in section
21278 \begin_inset space ~
21282 \begin_inset CommandInset ref
21284 reference "sec:Table-Width-Calculation"
21288 or for spanned columns as described in section
21289 \begin_inset space ~
21293 \begin_inset CommandInset ref
21295 reference "sub:Multicolumn-Calculations"
21299 is very annoying if you have several tables where a calculation is necessary.
21300 To make life easier, you can define a cell/column format in the preamble,
21301 that can be used in all tables of the document.
21302 The format is defined with the command
21305 \begin_layout Standard
21310 newcolumntype{name of format}[number of arguments]{commands}
21313 \begin_layout Standard
21314 The format name may only consist of one letter.
21339 are predefined and cannot be used.
21340 But all letters are allowed as capitals.
21343 \begin_layout Standard
21344 \begin_inset VSpace medskip
21350 \begin_layout Standard
21351 For vertically and horizontally centered multicolumn cells with a fixed
21352 width you can define the cell format
21355 \begin_layout Standard
21360 newcolumntype{M}[1]{>{
21367 \begin_layout Standard
21374 avoids the problem of hyphenating the first word, as described in section
21375 \begin_inset space ~
21379 \begin_inset CommandInset ref
21381 reference "sub:Multiple-Lines-in"
21386 Now you can simply enter
21389 \begin_layout Standard
21395 \begin_layout Standard
21400 in the table dialog to create a multicolumn.
21403 \begin_layout Standard
21404 \begin_inset VSpace bigskip
21410 \begin_layout Standard
21411 For cells spanned by a multicolumn cell, you can define the format
21414 \begin_layout Standard
21419 newcolumntype{S}[2]{>{
21424 \begin_inset Newline newline
21428 \begin_inset Phantom HPhantom
21431 \begin_layout Plain Layout
21445 arrayrulewidth)*(1-#2))/#2}}
21448 \begin_layout Standard
21449 This format uses equation
21450 \begin_inset CommandInset ref
21456 to calculate the required width so that each spanned cell has the same
21460 \begin_layout Standard
21464 \begin_layout Standard
21467 S{width of multicolumn cell}{number of spanned columns}
21470 \begin_layout Standard
21471 as LaTeX-argument of the column.
21474 \begin_layout Standard
21475 \begin_inset VSpace bigskip
21481 \begin_layout Standard
21482 For colored columns, you can define
21485 \begin_layout Standard
21490 newcolumntype{K}[1]{>{
21497 \begin_layout Standard
21499 \begin_inset Quotes eld
21503 \begin_inset Quotes erd
21506 at the end creates a column with a flexible width whose text is horizontally
21511 \begin_layout Standard
21517 \begin_layout Standard
21521 \begin_layout Standard
21522 \begin_inset VSpace bigskip
21528 \begin_layout Standard
21530 \begin_inset space ~
21534 \begin_inset CommandInset ref
21536 reference "tab:Table-using-user-defined"
21540 use the LaTeX-arguments
21543 \begin_layout Standard
21549 \begin_layout Standard
21550 for the first column and the multicolumn,
21553 \begin_layout Standard
21559 \begin_layout Standard
21560 for the last column, and
21563 \begin_layout Standard
21569 \begin_layout Standard
21570 for the cells in the second column.
21573 \begin_layout Standard
21574 \begin_inset Float table
21580 \begin_layout Plain Layout
21581 \begin_inset Caption Standard
21583 \begin_layout Plain Layout
21584 \begin_inset CommandInset label
21586 name "tab:Table-using-user-defined"
21590 Table using user-defined table formats
21598 \begin_layout Plain Layout
21600 \begin_inset Tabular
21601 <lyxtabular version="3" rows="3" columns="4">
21602 <features rotate="0" tabularvalignment="middle">
21603 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21604 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21605 <column alignment="center" valignment="middle">
21606 <column alignment="center" valignment="middle" special="K{red}">
21608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21611 \begin_layout Plain Layout
21612 verylongtablecellword
21617 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21620 \begin_layout Plain Layout
21621 multiple lines multicolumn
21626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21629 \begin_layout Plain Layout
21635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21638 \begin_layout Plain Layout
21646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21649 \begin_layout Plain Layout
21655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21658 \begin_layout Plain Layout
21664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21667 \begin_layout Plain Layout
21673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21676 \begin_layout Plain Layout
21684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21687 \begin_layout Plain Layout
21693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21696 \begin_layout Plain Layout
21702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21705 \begin_layout Plain Layout
21711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21714 \begin_layout Plain Layout
21733 \begin_layout Subsection
21735 \begin_inset CommandInset label
21737 name "sub:Line-Thickness"
21742 \begin_inset Index idx
21745 \begin_layout Plain Layout
21746 Table Customization ! Line Thickness
21754 \begin_layout Standard
21755 The line thickness for all lines in a table can be adjusted with the length
21763 To set for example a line thickness of 1.5
21764 \begin_inset space \thinspace{}
21768 \begin_inset space ~
21772 \begin_inset CommandInset ref
21774 reference "tab:Table-with-1.5"
21778 , insert the command
21781 \begin_layout Standard
21788 arrayrulewidth}{1.5pt}
21791 \begin_layout Standard
21792 in TeX-Code before the table or table float.
21793 The changed thickness is valid for all subsequent tables.
21794 To use the default value again, set
21801 \begin_inset space \thinspace{}
21804 pt in TeX-Code after the table or table float.
21807 \begin_layout Standard
21811 \begin_layout Plain Layout
21817 arrayrulewidth}{1.5pt}
21823 \begin_inset Float table
21828 \begin_layout Plain Layout
21829 \begin_inset Caption Standard
21831 \begin_layout Plain Layout
21832 \begin_inset CommandInset label
21834 name "tab:Table-with-1.5"
21839 \begin_inset space \thinspace{}
21850 \begin_layout Plain Layout
21852 \begin_inset Tabular
21853 <lyxtabular version="3" rows="3" columns="3">
21854 <features rotate="0" tabularvalignment="middle">
21855 <column alignment="center" valignment="top">
21856 <column alignment="center" valignment="top">
21857 <column alignment="center" valignment="top">
21859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21862 \begin_layout Plain Layout
21868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21871 \begin_layout Plain Layout
21877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21880 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21900 \begin_layout Plain Layout
21906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21909 \begin_layout Plain Layout
21917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21920 \begin_layout Plain Layout
21926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21929 \begin_layout Plain Layout
21935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21938 \begin_layout Plain Layout
21958 \begin_layout Plain Layout
21964 arrayrulewidth}{0.4pt}
21972 \begin_layout Standard
21973 \begin_inset VSpace bigskip
21976 To set the line thickness to 1.5
21977 \begin_inset space \thinspace{}
21980 pt only for horizontal lines, as in Table
21981 \begin_inset space ~
21985 \begin_inset CommandInset ref
21987 reference "tab:Table-with-horizontal"
21991 , insert these commands in TeX-Code before the table or table float:
21994 \begin_layout Standard
22004 \begin_inset Newline newline
22012 \begin_inset Newline newline
22021 arrayrulewidth 1.5pt}
22022 \begin_inset Newline newline
22033 arrayrulewidth 0.4pt}}
22036 \begin_layout Standard
22037 To return to the default line thickness, insert this command in TeX-Code
22038 after the table or table float:
22041 \begin_layout Standard
22053 \begin_layout Standard
22057 \begin_layout Plain Layout
22068 \begin_layout Plain Layout
22077 \begin_layout Plain Layout
22085 arrayrulewidth 1.5pt}
22088 \begin_layout Plain Layout
22098 arrayrulewidth 0.4pt}}
22104 \begin_inset Float table
22109 \begin_layout Plain Layout
22110 \begin_inset Caption Standard
22112 \begin_layout Plain Layout
22113 \begin_inset CommandInset label
22115 name "tab:Table-with-horizontal"
22120 \begin_inset space \thinspace{}
22123 pt thick horizontal lines
22131 \begin_layout Plain Layout
22133 \begin_inset Tabular
22134 <lyxtabular version="3" rows="3" columns="3">
22135 <features rotate="0" tabularvalignment="middle">
22136 <column alignment="center" valignment="top">
22137 <column alignment="center" valignment="top">
22138 <column alignment="center" valignment="top">
22140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22143 \begin_layout Plain Layout
22149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22152 \begin_layout Plain Layout
22158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22161 \begin_layout Plain Layout
22169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22172 \begin_layout Plain Layout
22178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22181 \begin_layout Plain Layout
22187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22190 \begin_layout Plain Layout
22198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22201 \begin_layout Plain Layout
22207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22210 \begin_layout Plain Layout
22216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22219 \begin_layout Plain Layout
22239 \begin_layout Plain Layout
22255 \begin_layout Standard
22256 \begin_inset VSpace bigskip
22259 To set the line thickness to 1.5
22260 \begin_inset space \thinspace{}
22263 pt only for vertical lines, create the following column format in the document
22264 preamble, according to the description in section
22265 \begin_inset space ~
22269 \begin_inset CommandInset ref
22271 reference "sub:Customized-Format"
22278 \begin_layout Standard
22283 newcolumntype{V}{!{
22285 vrule width 1.5pt}}
22288 \begin_layout Standard
22290 \begin_inset space ~
22294 \begin_inset CommandInset ref
22296 reference "tab:Table-with-vertical"
22303 \begin_layout Standard
22309 \begin_layout Standard
22310 was used for the last column and
22313 \begin_layout Standard
22319 \begin_layout Standard
22320 for the other columns.
22323 \begin_layout Standard
22324 \begin_inset Float table
22329 \begin_layout Plain Layout
22330 \begin_inset Caption Standard
22332 \begin_layout Plain Layout
22333 \begin_inset CommandInset label
22335 name "tab:Table-with-vertical"
22340 \begin_inset space \thinspace{}
22343 pt thick vertical lines
22351 \begin_layout Plain Layout
22353 \begin_inset Tabular
22354 <lyxtabular version="3" rows="3" columns="3">
22355 <features rotate="0" tabularvalignment="middle">
22356 <column alignment="center" valignment="top" special="Vc">
22357 <column alignment="center" valignment="top" special="Vc">
22358 <column alignment="center" valignment="top" special="VcV">
22360 <cell alignment="center" valignment="top" topline="true" usebox="none">
22363 \begin_layout Plain Layout
22369 <cell alignment="center" valignment="top" topline="true" usebox="none">
22372 \begin_layout Plain Layout
22378 <cell alignment="center" valignment="top" topline="true" usebox="none">
22381 \begin_layout Plain Layout
22389 <cell alignment="center" valignment="top" topline="true" usebox="none">
22392 \begin_layout Plain Layout
22398 <cell alignment="center" valignment="top" topline="true" usebox="none">
22401 \begin_layout Plain Layout
22407 <cell alignment="center" valignment="top" topline="true" usebox="none">
22410 \begin_layout Plain Layout
22418 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22421 \begin_layout Plain Layout
22427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22430 \begin_layout Plain Layout
22436 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22439 \begin_layout Plain Layout
22458 \begin_layout Subsection
22460 \begin_inset Index idx
22463 \begin_layout Plain Layout
22464 Table Customization ! Dashed Lines
22472 \begin_layout Standard
22476 \begin_layout Plain Layout
22486 \begin_inset Note Note
22489 \begin_layout Plain Layout
22490 The following section will only be displayed when the LaTeX-package
22502 \begin_layout Standard
22503 \begin_inset Float table
22509 \begin_layout Plain Layout
22510 \begin_inset Caption Standard
22512 \begin_layout Plain Layout
22513 \begin_inset CommandInset label
22515 name "tab:Table-with-dashed"
22519 Table with dashed lines
22527 \begin_layout Plain Layout
22529 \begin_inset Tabular
22530 <lyxtabular version="3" rows="5" columns="5">
22531 <features rotate="0" tabularvalignment="middle">
22532 <column alignment="center" valignment="top">
22533 <column alignment="center" valignment="top">
22534 <column alignment="center" valignment="top" special=":c">
22535 <column alignment="center" valignment="top">
22536 <column alignment="center" valignment="top">
22538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22541 \begin_layout Plain Layout
22547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22550 \begin_layout Plain Layout
22556 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22559 \begin_layout Plain Layout
22565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22568 \begin_layout Plain Layout
22574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22577 \begin_layout Plain Layout
22585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22588 \begin_layout Plain Layout
22594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22597 \begin_layout Plain Layout
22603 <cell alignment="center" valignment="top" topline="true" usebox="none">
22606 \begin_layout Plain Layout
22612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22615 \begin_layout Plain Layout
22621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22624 \begin_layout Plain Layout
22632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22635 \begin_layout Plain Layout
22639 \begin_layout Plain Layout
22653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22656 \begin_layout Plain Layout
22662 <cell alignment="center" valignment="top" usebox="none">
22665 \begin_layout Plain Layout
22671 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22674 \begin_layout Plain Layout
22680 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22683 \begin_layout Plain Layout
22691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22694 \begin_layout Plain Layout
22698 \begin_layout Plain Layout
22712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22715 \begin_layout Plain Layout
22721 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22724 \begin_layout Plain Layout
22730 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22733 \begin_layout Plain Layout
22739 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22742 \begin_layout Plain Layout
22750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22753 \begin_layout Plain Layout
22759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22762 \begin_layout Plain Layout
22768 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22771 \begin_layout Plain Layout
22777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22780 \begin_layout Plain Layout
22786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22789 \begin_layout Plain Layout
22808 \begin_layout Standard
22809 LyX does not natively support dashed lines, so you have to use TeX-Code.
22810 As a prerequisite the LaTeX-package
22815 \begin_inset Index idx
22818 \begin_layout Plain Layout
22819 LaTeX-packages ! arydshln
22824 must be loaded in the document preamble with the command
22827 \begin_layout Standard
22832 usepackage{arydshln}
22835 \begin_layout Standard
22836 To make a vertical line dashed, enter the colon
22837 \begin_inset Quotes eld
22841 \begin_inset Quotes erd
22844 together with the character for the horizontal alignment as LaTeX-argument
22845 in the table cell dialog.
22848 \begin_layout Standard
22849 For a horizontal dashed line add the command
22852 \begin_layout Standard
22860 \begin_layout Standard
22861 in TeX-Code as first element of the first cell in the table row.
22864 \begin_layout Standard
22865 For dashed multicolumn lines use the command
22868 \begin_layout Standard
22873 cdashline{line number
22878 \begin_layout Standard
22879 in TeX-Code as the first element of the first cell in the table row.
22880 If you have for example a multicolumn spanning columns 2 to 4 and you want
22881 to have a dashed line above, add the command
22884 \begin_layout Standard
22892 \begin_layout Standard
22893 as the first element of the first cell in the row of the multicolumn.
22896 \begin_layout Standard
22897 \begin_inset VSpace bigskip
22903 \begin_layout Standard
22905 \begin_inset space ~
22909 \begin_inset CommandInset ref
22911 reference "tab:Table-with-dashed"
22916 \begin_inset Quotes eld
22924 \begin_inset Quotes erd
22927 as LaTeX-argument of the third column.
22928 The TeX-Code command
22934 was inserted in the first cell of the third row and the TeX-Code command
22935 \begin_inset Newline newline
22944 was inserted in the first cell of the fourth row.
22947 \begin_layout Standard
22948 \begin_inset VSpace bigskip
22954 \begin_layout Standard
22955 Tables with dashed lines can also be colored as shown by Table
22956 \begin_inset space ~
22960 \begin_inset CommandInset ref
22962 reference "tab:Colored-table-with"
22969 \begin_layout Standard
22973 \begin_layout Plain Layout
22979 arrayrulewidth}{1pt}
22985 \begin_inset Note Note
22988 \begin_layout Plain Layout
22989 thicker lines for better visualization of the line color
22997 \begin_layout Standard
23001 \begin_layout Plain Layout
23005 dashgapcolor{green}
23011 \begin_inset Note Note
23014 \begin_layout Plain Layout
23015 color gaps between dashes green
23023 \begin_layout Standard
23027 \begin_layout Plain Layout
23038 \begin_layout Plain Layout
23047 \begin_layout Plain Layout
23051 arrayrulecolor{red}
23055 arrayrulecolor{black}}
23061 \begin_inset Note Note
23064 \begin_layout Plain Layout
23065 color horizontal, dashed lines red
23073 \begin_layout Standard
23077 \begin_layout Plain Layout
23088 \begin_layout Plain Layout
23097 \begin_layout Plain Layout
23101 arrayrulecolor{yellow}
23105 arrayrulecolor{black}}
23111 \begin_inset Note Note
23114 \begin_layout Plain Layout
23115 color partial horizontal, dashed lines yellow
23123 \begin_layout Standard
23124 \begin_inset Float table
23130 \begin_layout Plain Layout
23131 \begin_inset Caption Standard
23133 \begin_layout Plain Layout
23134 \begin_inset CommandInset label
23136 name "tab:Colored-table-with"
23140 Colored table with dashed lines
23148 \begin_layout Plain Layout
23150 \begin_inset Tabular
23151 <lyxtabular version="3" rows="5" columns="5">
23152 <features rotate="0" tabularvalignment="middle">
23153 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23154 <column alignment="center" valignment="top" width="0pt">
23155 <column alignment="center" valignment="top" width="0pt" special=":c">
23156 <column alignment="center" valignment="top">
23157 <column alignment="center" valignment="top">
23159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23162 \begin_layout Plain Layout
23168 <cell alignment="center" valignment="top" topline="true" usebox="none">
23171 \begin_layout Plain Layout
23177 <cell alignment="center" valignment="top" topline="true" usebox="none">
23180 \begin_layout Plain Layout
23186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23189 \begin_layout Plain Layout
23195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23198 \begin_layout Plain Layout
23206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23209 \begin_layout Plain Layout
23215 <cell alignment="center" valignment="top" topline="true" usebox="none">
23218 \begin_layout Plain Layout
23224 <cell alignment="center" valignment="top" topline="true" usebox="none">
23227 \begin_layout Plain Layout
23233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23236 \begin_layout Plain Layout
23242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23245 \begin_layout Plain Layout
23253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23256 \begin_layout Plain Layout
23260 \begin_layout Plain Layout
23273 \begin_layout Plain Layout
23287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23290 \begin_layout Plain Layout
23296 <cell alignment="center" valignment="top" usebox="none">
23299 \begin_layout Plain Layout
23305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23308 \begin_layout Plain Layout
23314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23317 \begin_layout Plain Layout
23325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23328 \begin_layout Plain Layout
23332 \begin_layout Plain Layout
23346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23349 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23358 \begin_layout Plain Layout
23364 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23367 \begin_layout Plain Layout
23373 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23376 \begin_layout Plain Layout
23384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23387 \begin_layout Plain Layout
23393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23396 \begin_layout Plain Layout
23402 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23405 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23414 \begin_layout Plain Layout
23420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23423 \begin_layout Plain Layout
23427 \begin_layout Plain Layout
23454 \begin_layout Standard
23458 \begin_layout Plain Layout
23472 \begin_inset Note Note
23475 \begin_layout Plain Layout
23484 \begin_layout Standard
23488 \begin_layout Plain Layout
23502 \begin_inset Note Note
23505 \begin_layout Plain Layout
23514 \begin_layout Standard
23518 \begin_layout Plain Layout
23528 \begin_inset Note Note
23531 \begin_layout Plain Layout
23540 \begin_layout Standard
23544 \begin_layout Plain Layout
23550 arrayrulewidth}{0.4pt}
23556 \begin_inset Note Note
23559 \begin_layout Plain Layout
23568 \begin_layout Standard
23569 The coloring of lines, columns and lines works as decribed in section
23570 \begin_inset space ~
23574 \begin_inset CommandInset ref
23576 reference "sec:Colored-Tables"
23581 Coloring horizontal lines works analogically as described there as well,
23582 one only needs to replace in the commands
23606 ; so one uses the command
23609 \begin_layout Standard
23619 \begin_inset Newline newline
23627 \begin_inset Newline newline
23631 \begin_inset Phantom HPhantom
23634 \begin_layout Plain Layout
23635 \begin_inset space ~
23645 arrayrulecolor{red}
23649 arrayrulecolor{black}}
23652 \begin_layout Standard
23662 \begin_layout Standard
23672 \begin_inset Newline newline
23680 \begin_inset Newline newline
23684 \begin_inset Phantom HPhantom
23687 \begin_layout Plain Layout
23688 \begin_inset space ~
23698 arrayrulecolor{red}
23702 arrayrulecolor{black}}
23705 \begin_layout Standard
23706 To get back the black line color, one needs to insert the following commands
23707 as TeX-Code behind the table:
23710 \begin_layout Standard
23718 \begin_layout Standard
23730 \begin_layout Standard
23738 \begin_layout Standard
23750 \begin_layout Standard
23751 To color the gaps between the dashes the command
23754 \begin_layout Standard
23759 dashgapcolor{color}
23762 \begin_layout Standard
23763 can be used in front of a table as TeX-Code.
23764 color is hereby the name of a defined color.
23768 \begin_layout Standard
23776 \begin_layout Standard
23777 unsets the changes made by
23786 \begin_layout Standard
23787 \begin_inset Note Greyedout
23790 \begin_layout Plain Layout
23796 : If there are multiple commands in a cell, the command of
23800 needs to be the first one in the cell.
23806 \begin_inset space ~
23810 \begin_inset CommandInset ref
23812 reference "tab:Colored-table-with"
23836 \begin_layout Standard
23837 \begin_inset Note Greyedout
23840 \begin_layout Plain Layout
23850 must be loaded in the document preamble before the LaTeX-package
23855 \begin_inset Index idx
23858 \begin_layout Plain Layout
23859 LaTeX-packages ! colortbl
23872 \begin_layout Standard
23876 \begin_layout Plain Layout
23886 \begin_inset Note Note
23889 \begin_layout Plain Layout
23890 The following will be displayed when the LaTeX-package
23902 \begin_layout Standard
23903 You need to install the package
23907 to see the content of this section in the output.
23910 \begin_layout Standard
23914 \begin_layout Plain Layout
23926 \begin_layout Standard
23927 For more information about dashed lines see the documentation of
23932 \begin_inset CommandInset citation
23941 \begin_layout Chapter
23943 \begin_inset CommandInset label
23950 \begin_inset Index idx
23953 \begin_layout Plain Layout
23962 \begin_layout Section
23964 \begin_inset CommandInset label
23966 name "sec:FloatIntroduction"
23971 \begin_inset Index idx
23974 \begin_layout Plain Layout
23975 Floats ! Introduction
23983 \begin_layout Standard
23984 A float is a block of text associated with some sort of label, which doesn't
23985 have a fixed location.
23987 \begin_inset Quotes eld
23991 \begin_inset Quotes erd
23994 forward or backward a page or two, to wherever it fits best.
24002 \begin_inset space ~
24007 are also floats because they can float to the next page when there are
24008 too many notes on the page.
24011 \begin_layout Standard
24012 Floats allow a high quality layout.
24013 Images and tables can be spread evenly among the pages to avoid white space
24014 and pages without text.
24015 As the floating often destroys the context between the text and the image/table
24016 , every float can be referenced in the text.
24017 Floats are therefore numbered.
24018 Referencing is described in section
24019 \begin_inset space ~
24023 \begin_inset CommandInset ref
24025 reference "sec:Referencing-Floats"
24032 \begin_layout Standard
24033 To insert a float, use the menu
24035 Insert\SpecialChar \menuseparator
24041 arg "float-insert figure"
24047 arg "float-insert table"
24055 inset, a box with a label.
24056 The label will automatically be translated to the document language in
24058 After the label you can insert the caption text.
24059 The image or table is inserted above or below the caption in a separate
24060 paragraph within the float.
24061 More about the caption placement is contained in section
24062 \begin_inset space ~
24066 \begin_inset CommandInset ref
24068 reference "sec:Caption-Placement"
24073 To keep your LyX-document readable, you can open and close the float box
24074 by left-clicking on the box label.
24075 A closed float box looks like this:
24076 \begin_inset Graphics
24077 filename clipart/floatQt4.png
24079 scaleBeforeRotation
24083 – a gray button with a red label.
24086 \begin_layout Standard
24087 It is recommended that you insert floats as separate standard paragraphs
24088 to avoid possible LaTeX-errors that can occur when the surrounding text
24089 is specially formatted.
24092 \begin_layout Standard
24093 Existing figures or tables can be put into a float by highlighting them
24094 and then pressing the corresponding toolbar button for a new float.
24097 \begin_layout Section
24101 \begin_layout Standard
24102 Besides figure and table floats that are described in sections
24103 \begin_inset space ~
24107 \begin_inset CommandInset ref
24109 reference "sec:Figure-Floats"
24114 \begin_inset CommandInset ref
24116 reference "sec:Table-Floats"
24120 respectively, LyX offers the float types
24129 The latter are explained in sec.
24130 \begin_inset space \thinspace{}
24134 \begin_inset CommandInset ref
24136 reference "sec:Wrap-Floats"
24143 \begin_layout Subsection
24145 \begin_inset Index idx
24148 \begin_layout Plain Layout
24149 Floats ! Algorithms
24157 \begin_layout Standard
24158 \begin_inset Float algorithm
24164 \begin_layout Plain Layout
24165 \begin_inset Caption Standard
24167 \begin_layout Plain Layout
24168 \begin_inset CommandInset label
24170 name "alg:Example-Algorithm-float"
24174 Example Algorithm float
24182 \begin_layout LyX-Code
24184 \begin_inset Newline newline
24187 Sum:= Sum + A(I); /*comment*/
24188 \begin_inset Newline newline
24192 \begin_inset VSpace -4mm
24203 \begin_layout Standard
24204 This float type is inserted with the menu
24206 Insert\SpecialChar \menuseparator
24207 Float\SpecialChar \menuseparator
24211 It is used for program codes and descriptions of algorithms and can be
24212 seen as an alternative to program code listings that are explained in chapter
24213 \begin_inset space ~
24217 \begin_inset CommandInset ref
24219 reference "cha:Program-Code-Listings"
24224 A possible environment for algorithms is the
24228 , described in LyX's
24234 \begin_inset space ~
24238 \begin_inset CommandInset ref
24240 reference "alg:Example-Algorithm-float"
24244 is an example of an algorithm float where -4
24245 \begin_inset space \thinspace{}
24248 mm vertical space was added at the end of the float to have the bottom rule
24249 exactly below the last text line.
24252 \begin_layout Standard
24253 The float label is not automatically translated into the document language.
24254 If your document is not in English, you have to do this manually by adding
24255 the following line to the document preamble
24260 \begin_layout Standard
24265 floatname{algorithm}{your
24266 \begin_inset space ~
24272 \begin_layout Standard
24276 \begin_inset space ~
24282 \begin_inset Quotes eld
24290 \begin_inset Quotes erd
24296 \begin_layout Standard
24297 To insert the list of algorithms you can use the menu
24299 Insert\SpecialChar \menuseparator
24301 \begin_inset space \thinspace{}
24305 \begin_inset space \thinspace{}
24308 TOC\SpecialChar \menuseparator
24311 when your document has the same language as LyX's menu names.
24312 In other cases use this command in TeX-Code instead:
24315 \begin_layout Standard
24320 listof{algorithm}{your
24321 \begin_inset space ~
24327 \begin_layout Standard
24331 \begin_inset space ~
24337 \begin_inset Quotes eld
24345 \begin_inset Quotes erd
24351 \begin_layout Standard
24352 Algorithm floats are not by default numbered in the scheme
24353 \begin_inset Quotes eld
24357 \begin_inset Quotes erd
24360 as is the case for table and figure floats in many document-classes.
24361 To number algorithm floats in the same scheme, add this command to your
24365 \begin_layout Standard
24370 numberwithin{algorithm}{chapter}
24373 \begin_layout Standard
24374 To be able to use the command
24383 \begin_inset space ~
24388 in the document settings the option
24391 \begin_inset space ~
24395 \begin_inset space ~
24399 \begin_inset space ~
24407 \begin_layout Section
24409 \begin_inset Index idx
24412 \begin_layout Plain Layout
24421 \begin_layout Standard
24422 Floats are usually numbered either independently from the sections the floats
24423 are in, or in the scheme
24424 \begin_inset Quotes eld
24428 \begin_inset Quotes erd
24432 \begin_inset Quotes eld
24436 \begin_inset Quotes erd
24440 This depends on the document class used.
24443 \begin_layout Standard
24444 To change section-independent numbering, you can use this command in the
24448 \begin_layout Standard
24460 \begin_layout Standard
24467 is the command that prints the table number.
24468 For figure floats, the command would be
24481 in the command above prints the table number as a small roman number.
24484 \begin_layout Standard
24485 To change the numbering scheme for example to
24486 \begin_inset Quotes eld
24490 \begin_inset Quotes erd
24493 , use this command in the preamble:
24496 \begin_layout Standard
24501 numberwithin{table}{subsection}
24504 \begin_layout Standard
24505 To be able to use the command
24514 \begin_inset space ~
24519 in the document settings the option
24522 \begin_inset space ~
24526 \begin_inset space ~
24530 \begin_inset space ~
24538 \begin_layout Standard
24539 Please also have a look at section
24540 \begin_inset space ~
24544 \begin_inset CommandInset ref
24546 reference "sub:Footnote-Numbering"
24550 for the details and important notes about the numbering commands.
24553 \begin_layout Section
24555 \begin_inset CommandInset label
24557 name "sec:Referencing-Floats"
24562 \begin_inset Index idx
24565 \begin_layout Plain Layout
24566 Floats ! References
24572 \begin_inset Index idx
24575 \begin_layout Plain Layout
24576 References ! to Floats
24584 \begin_layout Standard
24585 To reference a float, insert a label into its caption using the menu
24587 Insert\SpecialChar \menuseparator
24590 or the toolbar button
24597 A grey label box like this one:
24598 \begin_inset Graphics
24599 filename clipart/labelQt4.png
24601 scaleBeforeRotation
24605 will be inserted and the label window pops up asking for the label text.
24606 LyX offers as text the first words of the caption with a prefix.
24607 The prefix depends on the float type, e.
24608 \begin_inset space \thinspace{}
24612 \begin_inset space \space{}
24615 for figure floats the prefix will be "
24622 \begin_layout Standard
24623 The label is used as anchor and name for the reference.
24624 You can refer to the label using the menu
24626 Insert\SpecialChar \menuseparator
24629 or the toolbar button
24632 arg "dialog-show-new-inset ref"
24636 The cross-reference window appears showing all labels of the document.
24637 If you have multiple LyX-documents opened, choose the one you are working
24638 on from the drop-list at the top of the dialog.
24639 You can now sort the labels alphabetically and then choose one.
24640 A grey cross-reference box like this one:
24641 \begin_inset Graphics
24642 filename clipart/referenceQt4.png
24644 scaleBeforeRotation
24649 At the position of the cross-reference box the float number will appear
24653 \begin_layout Standard
24654 It is recommended that you use a protected space between the cross-reference
24655 name and its number to avoid line breaks between them.
24656 If a cross-reference refers to a non-existing label, you will see two question
24657 marks in the output instead of the reference.
24660 \begin_layout Standard
24661 You can change labels at any time by clicking on the label box.
24662 References to the changed label will automatically update their links to
24663 the new label text.
24666 \begin_layout Standard
24670 \begin_inset space ~
24674 \begin_inset space ~
24679 in the cross-reference window sets the cursor before the referred label.
24680 The button text changes then to Go
24681 \begin_inset space ~
24684 Back and you can use it to set the cursor back to the cross-reference.
24687 \begin_layout Subsection
24688 Cross-Reference Formats
24689 \begin_inset CommandInset label
24691 name "sub:Cross-Reference-Formats"
24696 \begin_inset Index idx
24699 \begin_layout Plain Layout
24700 References ! Formats
24708 \begin_layout Standard
24709 There are six varieties of cross-references:
24712 \begin_layout Description
24713 <reference>: prints the float number, this is the default:
24714 \begin_inset CommandInset ref
24716 reference "fig:Two-distorted-images"
24723 \begin_layout Description
24724 (<reference>): prints the float number within two parentheses, this is the
24725 style normally used to reference formulas, especially when the reference
24727 \begin_inset Quotes eld
24731 \begin_inset Quotes erd
24735 \begin_inset CommandInset ref
24744 \begin_layout Description
24745 <page>: prints the page number: Page
24746 \begin_inset space ~
24750 \begin_inset CommandInset ref
24751 LatexCommand pageref
24752 reference "fig:Two-distorted-images"
24759 \begin_layout Description
24761 \begin_inset space ~
24765 \begin_inset space ~
24768 <page>: prints the text "on page" and the page number:
24769 \begin_inset CommandInset ref
24770 LatexCommand vpageref
24771 reference "fig:Two-distorted-images"
24778 \begin_layout Description
24780 \begin_inset space ~
24784 \begin_inset space ~
24788 \begin_inset space ~
24791 <page>: prints the float number, the text "on page", and the page number:
24793 \begin_inset CommandInset ref
24795 reference "fig:Two-distorted-images"
24802 \begin_layout Description
24804 \begin_inset space ~
24807 reference: prints a self-defined cross-reference format.
24808 \begin_inset Newline newline
24812 \begin_inset Note Greyedout
24815 \begin_layout Plain Layout
24820 This feature is only available when you have the LaTeX-package
24829 \begin_inset Index idx
24832 \begin_layout Plain Layout
24833 LaTeX-packages ! prettyref
24839 \begin_inset Index idx
24842 \begin_layout Plain Layout
24843 LaTeX-packages ! refstyle
24854 \begin_inset Newline newline
24857 You can select which LaTeX-package should be used for this feature by setting
24860 Use refstyle (not prettyref) for cross-references
24864 Document\SpecialChar \menuseparator
24865 Settings\SpecialChar \menuseparator
24869 The format is specified by adding the command
24881 (refstyle) to the preamble of the document.
24882 For example redefining all references to figures (which have the label
24884 \begin_inset Quotes eld
24892 \begin_inset Quotes erd
24895 ) can be done with this command
24896 \begin_inset Newline newline
24903 newref{fig}{refcmd={Image on page
24908 \begin_inset Newline newline
24911 For more information about the format, have a look at the package documentations
24913 \begin_inset CommandInset citation
24915 key "prettyref,refstyle"
24922 \begin_layout Description
24924 \begin_inset space ~
24927 reference: prints the caption of the reference:
24928 \begin_inset CommandInset ref
24929 LatexCommand nameref
24930 reference "fig:Two-distorted-images"
24937 \begin_layout Standard
24942 will not print the page number if the label is on the previous, the same,
24945 \begin_inset space \thinspace{}
24949 \begin_inset space \space{}
24953 \begin_inset Quotes eld
24961 \begin_inset Quotes erd
24967 <reference> on page <page>
24969 will not print anything about the page if the label is on the same page.
24972 \begin_layout Standard
24973 The number and current page of the part of the document referred to in the
24974 output is automatically calculated by LaTeX.
24975 The varieties are adjusted in the field
24979 of the cross-reference window that appears when you click on the cross-referenc
24983 \begin_layout Standard
24984 \begin_inset Note Greyedout
24987 \begin_layout Plain Layout
24992 It is recommended to use the LaTeX-package
24997 \begin_inset Index idx
25000 \begin_layout Plain Layout
25001 LaTeX-packages ! refstyle
25011 \begin_inset Index idx
25014 \begin_layout Plain Layout
25015 LaTeX-packages ! prettyref
25020 does not know all of LyX's possible label shortcuts
25024 \begin_layout Plain Layout
25025 \begin_inset Quotes eld
25029 \begin_inset Quotes erd
25032 is for example LyX's shortcut for labels in figure captions.
25037 and is not internationalized.
25045 \begin_layout Standard
25046 \begin_inset Note Greyedout
25049 \begin_layout Plain Layout
25054 Due to a bug in the LaTeX-package
25058 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25059 languages that make the period character active (like French).
25060 For a workaround, see
25061 \begin_inset Newline newline
25065 \begin_inset CommandInset href
25067 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25079 \begin_layout Subsection
25080 Automatic Reference Naming
25081 \begin_inset Index idx
25084 \begin_layout Plain Layout
25085 References ! Automatic Reference Naming
25093 \begin_layout Standard
25099 \begin_inset Index idx
25102 \begin_layout Plain Layout
25103 LaTeX-packages ! hyperref
25108 , that is enabled in the
25116 dialog, provides a very useful feature that cross-references automatically
25117 include the name of the referenced floats (or text parts like
25122 So you will save having to write e.
25123 \begin_inset space \thinspace{}
25127 \begin_inset space \space{}
25131 \begin_inset Quotes eld
25135 \begin_inset Quotes erd
25138 before every reference to a figure.
25139 To use this feature, enable
25143 and insert this line to the LaTeX preamble:
25146 \begin_layout Standard
25162 \begin_layout Standard
25163 When you prefer other reference names than the default ones, for example
25164 you want instead of
25165 \begin_inset Quotes eld
25169 \begin_inset Quotes erd
25173 \begin_inset Quotes eld
25177 \begin_inset space \thinspace{}
25181 \begin_inset Quotes eld
25184 , you can redefine the name by inserting this in the preamble:
25187 \begin_layout Standard
25198 sectionautorefname}
25199 \begin_inset Newline newline
25203 \begin_inset Phantom HPhantom
25206 \begin_layout Plain Layout
25209 \begin_inset space ~
25222 \begin_layout Standard
25223 When you are using another document language than English, replace
25224 \begin_inset Newline newline
25239 , where *** is the name of the language used.
25242 \begin_layout Standard
25243 To get automatic names, but not for certain reference types, for example
25244 not for equations, use this preamble code:
25247 \begin_layout Standard
25258 equationautorefname}[1]{}}
25261 \begin_layout Standard
25262 More about this topic can be found in
25267 \begin_inset CommandInset citation
25276 \begin_layout Standard
25277 \begin_inset Note Greyedout
25280 \begin_layout Plain Layout
25285 Automatic reference naming cannot be used when you use cross-references
25289 \begin_inset space ~
25294 style, as described in section
25295 \begin_inset space ~
25299 \begin_inset CommandInset ref
25301 reference "sub:Cross-Reference-Formats"
25313 \begin_layout Standard
25318 manual is an example where automatic reference naming is used.
25321 \begin_layout Subsection
25323 \begin_inset CommandInset label
25325 name "sub:Reference-Position"
25330 \begin_inset Index idx
25333 \begin_layout Plain Layout
25334 References ! Reference Position
25342 \begin_layout Standard
25348 \begin_inset Index idx
25351 \begin_layout Plain Layout
25352 LaTeX-packages ! hyperref
25365 dialog to link cross-references in the output, you will see that clicking
25366 on an image float reference jumps to the image label.
25367 The caption will be the first text part on the screen, so that you cannot
25368 see the image without scrolling.
25369 This is because the reference link anchor is placed at the position of
25371 With the use of the package
25376 \begin_inset Index idx
25379 \begin_layout Plain Layout
25380 LaTeX-packages ! hypcap
25385 , which is part of the LaTeX-package
25390 \begin_inset Index idx
25393 \begin_layout Plain Layout
25394 LaTeX-packages ! oberdiek
25399 , the link anchor is placed at the beginning of a float.
25400 To use this feature for figure floats, load
25404 in the document preamble with the line
25407 \begin_layout Standard
25412 usepackage[figure]{hypcap}
25415 \begin_layout Standard
25420 for all float types but this is not recommended for stability reasons.
25421 For more information, have a look at
25426 \begin_inset CommandInset citation
25435 \begin_layout Standard
25436 \begin_inset Note Greyedout
25439 \begin_layout Plain Layout
25448 has no effect on references to subfigures.
25456 \begin_layout Section
25458 \begin_inset CommandInset label
25460 name "sec:Float-Placement"
25465 \begin_inset Index idx
25468 \begin_layout Plain Layout
25477 \begin_layout Standard
25478 Right-clicking on a float-box and clicking on
25482 opens a dialog where you can alter the placement options that LaTeX uses
25483 for positioning the float.
25484 \begin_inset Newline newline
25490 \begin_inset space ~
25495 is only useful for two-column documents: If you select it, the float will
25496 span both columns on the page instead of being confined to just one.
25497 \begin_inset Newline newline
25503 \begin_inset space ~
25508 is used to rotate floats, see section
25509 \begin_inset CommandInset ref
25511 reference "sec:Rotated-Floats"
25518 \begin_layout Standard
25519 You can use one or more of the following options in the float dialog to
25520 set the placement for a particular float when you uncheck the option
25523 \begin_inset space ~
25527 \begin_inset space ~
25535 \begin_layout Description
25537 \begin_inset space ~
25541 \begin_inset space ~
25544 possible try to place the float on the position where it has been inserted
25547 \begin_layout Description
25549 \begin_inset space ~
25553 \begin_inset space ~
25556 page try to place the float at the top of the current page
25559 \begin_layout Description
25561 \begin_inset space ~
25565 \begin_inset space ~
25568 page try to place the float at the bottom of the current page
25571 \begin_layout Description
25573 \begin_inset space ~
25577 \begin_inset space ~
25580 floats try to place the float on its own page
25583 \begin_layout Standard
25584 The order of the above option is
25589 That means, if you use the default placement, LaTeX will first try out
25593 \begin_inset space ~
25597 \begin_inset space ~
25605 \begin_inset space ~
25609 \begin_inset space ~
25614 , and then the others.
25615 If you do not use the default, LaTeX will try only the checked options
25616 but in the same order.
25618 \begin_inset space ~
25621 placements is possible the procedure is internally repeated trying to put
25622 the float on the following page.
25625 \begin_layout Standard
25626 By default, each option has its own rules:
25629 \begin_layout Labeling
25630 \labelwidthstring 00.00.0000
25634 \begin_inset space ~
25638 \begin_inset space ~
25643 only floats occupying less than 70
25644 \begin_inset space \thinspace{}
25647 % of the page can be placed at the top of a page (
25656 \begin_layout Labeling
25657 \labelwidthstring 00.00.0000
25661 \begin_inset space ~
25665 \begin_inset space ~
25670 : only floats occupying less than 30
25671 \begin_inset space \thinspace{}
25674 % of the page can be placed at the bottom of a page.
25684 \begin_layout Labeling
25685 \labelwidthstring 00.00.0000
25689 \begin_inset space ~
25693 \begin_inset space ~
25698 : only if more than 50
25699 \begin_inset space \thinspace{}
25702 % of the page is occupied by floats, several floats can be set together
25713 \begin_layout Standard
25714 If you don't like these rules, you can ignore them by using the additional
25718 \begin_inset space ~
25722 \begin_inset space ~
25728 \begin_inset Newline newline
25731 You can also redefine the rules with LaTeX-commands that are given in parenthese
25732 s after the rules description above.
25733 To increase for example the often too small default of the bottom-rule
25735 \begin_inset space \thinspace{}
25738 % of the page, add this line to your document preamble:
25741 \begin_layout Standard
25748 bottomfraction}{0.5}
25751 \begin_layout Standard
25752 Sometimes you might need, under all circumstances, a float to be placed
25753 exactly at the position where it is inserted.
25754 For this case you can use the option
25757 \begin_inset space ~
25763 Use this option very rarely and only if the document is almost ready to
25764 be printed, because the float is then no longer able to
25765 \begin_inset Quotes eld
25769 \begin_inset Quotes erd
25772 when you change your document and this will often destroy the page layout.
25775 \begin_layout Standard
25776 There are no placement options for text wrap floats, because they are always
25777 surrounded by the text of a certain paragraph.
25778 \begin_inset VSpace bigskip
25784 \begin_layout Standard
25785 Sometimes you have the problem that a float is placed at the top of a page
25786 while its corresponding section starts at the middle of the page, so that
25787 the reader could think the float is part of the previous section.
25788 To avoid this the LaTeX-command
25795 It suppresses a given float placement for the page where it is inserted
25796 and can therefore be used to avoid floats being set before a section starts.
25797 To get this, add these commands to your document preamble:
25800 \begin_layout Standard
25810 \begin_inset Newline newline
25824 \begin_layout Standard
25825 You can define the same for all section headings, like chapters and subsections.
25826 This definition is not recommended to be used for small text parts like
25827 subsubsections because LaTeX may then have problems finding a suitable
25831 \begin_layout Standard
25832 \begin_inset VSpace bigskip
25835 In some cases it is required to have all figures/tables at the end of the
25837 For this purpose the LaTeX-package
25842 \begin_inset Index idx
25845 \begin_layout Plain Layout
25846 LaTeX-packages ! endfloat
25852 It puts all figure and table floats at the end of the document into their
25854 At the original float position a text hint like
25855 \begin_inset Quotes eld
25861 \begin_inset space ~
25867 \begin_inset Quotes erd
25871 The endfloat-package is loaded in the preamble with the line
25874 \begin_layout Standard
25879 usepackage[options]{endfloat}
25882 \begin_layout Standard
25883 There are various package options to format the created figure/table sections.
25884 For more information we refer you to the
25889 \begin_inset CommandInset citation
25896 \begin_inset Newline newline
25900 \begin_inset Note Greyedout
25903 \begin_layout Plain Layout
25908 doesn't provide an automatic translation for the text hint, you have to
25909 do this manually, see section
25910 \begin_inset space ~
25914 \begin_inset CommandInset citation
25926 \begin_inset Newline newline
25930 \begin_inset Note Greyedout
25933 \begin_layout Plain Layout
25938 There is currently a bug in
25942 when the caption contains a German
25943 \begin_inset Quotes eld
25947 \begin_inset Quotes erd
25951 Use in this case the command
25952 \begin_inset Quotes eld
25962 \begin_inset Quotes erd
25965 in TeX-Code instead of
25966 \begin_inset Quotes eld
25970 \begin_inset Quotes erd
25981 \begin_layout Standard
25982 \begin_inset VSpace bigskip
25985 For more details about float placements, have a look at LaTeX books,
25986 \begin_inset CommandInset citation
25988 key "latexcompanion,latexguide,latexbook"
25995 \begin_layout Section
25997 \begin_inset CommandInset label
25999 name "sec:Rotated-Floats"
26004 \begin_inset Index idx
26007 \begin_layout Plain Layout
26016 \begin_layout Standard
26017 Especially for wide tables you might have floats rotated.
26018 To rotate a whole float including the caption, right-click on the float-box
26022 \begin_inset space ~
26030 \begin_layout Standard
26031 Rotated floats are always placed on a page of their own (or column of their
26032 own; in case you have a multi-column document).
26033 You can let them span several columns using the float settings option
26036 \begin_inset space ~
26042 Floats are rotated so that you can read them from the outside margin.
26043 To force a certain rotation direction for all pages, you can add either
26052 to the document class options.
26055 \begin_layout Standard
26056 Referencing rotated floats is the same as for normal floats, the caption
26057 format is also the same: Table
26058 \begin_inset space ~
26062 \begin_inset CommandInset ref
26064 reference "tab:Rotated-table"
26068 is an example of a rotated table float.
26071 \begin_layout Standard
26072 \begin_inset Note Greyedout
26075 \begin_layout Plain Layout
26080 Not all DVI-viewers are able to display rotated floats.
26088 \begin_layout Standard
26089 \begin_inset Float table
26094 \begin_layout Plain Layout
26095 \begin_inset Caption Standard
26097 \begin_layout Plain Layout
26098 \begin_inset CommandInset label
26100 name "tab:Rotated-table"
26112 \begin_layout Plain Layout
26114 \begin_inset Tabular
26115 <lyxtabular version="3" rows="1" columns="5">
26116 <features rotate="0" tabularvalignment="middle">
26117 <column alignment="center" valignment="top">
26118 <column alignment="center" valignment="top">
26119 <column alignment="center" valignment="top">
26120 <column alignment="center" valignment="top">
26121 <column alignment="center" valignment="top">
26123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26126 \begin_layout Plain Layout
26132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26135 \begin_layout Plain Layout
26141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26144 \begin_layout Plain Layout
26150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26153 \begin_layout Plain Layout
26159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26162 \begin_layout Plain Layout
26181 \begin_layout Section
26183 \begin_inset Index idx
26186 \begin_layout Plain Layout
26195 \begin_layout Standard
26196 Subfloats are for example used when a figure consists of several images.
26197 They are created by inserting a float into an existing float.
26198 The placement of the subfloats can be controlled in the same way as for
26199 paragraphs as shown in table
26200 \begin_inset space ~
26204 \begin_inset CommandInset ref
26206 reference "tab:Two-subtables-side"
26211 \begin_inset CommandInset ref
26213 reference "tab:Two-subtables-upon"
26220 \begin_layout Standard
26221 Referencing subfloats works as for normal floats: Table
26222 \begin_inset space ~
26226 \begin_inset CommandInset ref
26228 reference "tab:This-is-subtable-a"
26233 \begin_inset CommandInset ref
26235 reference "tab:This-is-subtable-b"
26239 are subtables of table
26240 \begin_inset space ~
26244 \begin_inset CommandInset ref
26246 reference "tab:Two-subtables-side"
26253 \begin_layout Standard
26254 \begin_inset Float table
26259 \begin_layout Plain Layout
26260 \begin_inset Caption Standard
26262 \begin_layout Plain Layout
26263 \begin_inset CommandInset label
26265 name "tab:Two-subtables-side"
26269 Two subtables placed side by side.
26277 \begin_layout Plain Layout
26279 \begin_inset space \hfill{}
26283 \begin_inset Float table
26288 \begin_layout Plain Layout
26289 \begin_inset Caption Standard
26291 \begin_layout Plain Layout
26292 \begin_inset CommandInset label
26294 name "tab:This-is-subtable-a"
26298 This is subtable a.
26306 \begin_layout Plain Layout
26308 \begin_inset Tabular
26309 <lyxtabular version="3" rows="1" columns="5">
26310 <features rotate="0" tabularvalignment="middle">
26311 <column alignment="center" valignment="top">
26312 <column alignment="center" valignment="top">
26313 <column alignment="center" valignment="top">
26314 <column alignment="center" valignment="top">
26315 <column alignment="center" valignment="top">
26317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26320 \begin_layout Plain Layout
26326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26329 \begin_layout Plain Layout
26335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26338 \begin_layout Plain Layout
26344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26347 \begin_layout Plain Layout
26353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26356 \begin_layout Plain Layout
26373 \begin_inset space \hfill{}
26377 \begin_inset Float table
26382 \begin_layout Plain Layout
26383 \begin_inset Caption Standard
26385 \begin_layout Plain Layout
26386 \begin_inset CommandInset label
26388 name "tab:This-is-subtable-b"
26392 This is subtable b.
26400 \begin_layout Plain Layout
26402 \begin_inset Tabular
26403 <lyxtabular version="3" rows="1" columns="5">
26404 <features rotate="0" tabularvalignment="middle">
26405 <column alignment="center" valignment="top">
26406 <column alignment="center" valignment="top">
26407 <column alignment="center" valignment="top">
26408 <column alignment="center" valignment="top">
26409 <column alignment="center" valignment="top">
26411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26414 \begin_layout Plain Layout
26420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26423 \begin_layout Plain Layout
26429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26432 \begin_layout Plain Layout
26438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26441 \begin_layout Plain Layout
26447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26450 \begin_layout Plain Layout
26467 \begin_inset space \hfill{}
26478 \begin_layout Standard
26479 \begin_inset Float table
26484 \begin_layout Plain Layout
26485 \begin_inset Caption Standard
26487 \begin_layout Plain Layout
26488 \begin_inset CommandInset label
26490 name "tab:Two-subtables-upon"
26494 Two subtables placed one above the other.
26495 (a) table with 4 cells, (b) table with 5 cells.
26503 \begin_layout Plain Layout
26505 \begin_inset Float table
26510 \begin_layout Plain Layout
26511 \begin_inset Caption Standard
26513 \begin_layout Plain Layout
26522 \begin_layout Plain Layout
26524 \begin_inset Tabular
26525 <lyxtabular version="3" rows="1" columns="4">
26526 <features rotate="0" tabularvalignment="middle">
26527 <column alignment="center" valignment="top">
26528 <column alignment="center" valignment="top">
26529 <column alignment="center" valignment="top">
26530 <column alignment="center" valignment="top">
26532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26535 \begin_layout Plain Layout
26541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26544 \begin_layout Plain Layout
26550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26553 \begin_layout Plain Layout
26559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26562 \begin_layout Plain Layout
26581 \begin_layout Plain Layout
26583 \begin_inset Float table
26588 \begin_layout Plain Layout
26589 \begin_inset Caption Standard
26591 \begin_layout Plain Layout
26600 \begin_layout Plain Layout
26602 \begin_inset Tabular
26603 <lyxtabular version="3" rows="1" columns="5">
26604 <features rotate="0" tabularvalignment="middle">
26605 <column alignment="center" valignment="top">
26606 <column alignment="center" valignment="top">
26607 <column alignment="center" valignment="top">
26608 <column alignment="center" valignment="top">
26609 <column alignment="center" valignment="top">
26611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26614 \begin_layout Plain Layout
26620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26623 \begin_layout Plain Layout
26629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26632 \begin_layout Plain Layout
26638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26641 \begin_layout Plain Layout
26647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26650 \begin_layout Plain Layout
26674 \begin_layout Section
26675 Floats Side by Side
26676 \begin_inset Index idx
26679 \begin_layout Plain Layout
26680 Floats ! Side by side
26688 \begin_layout Standard
26689 To place floats side by side, as in Figures
26690 \begin_inset space ~
26694 \begin_inset CommandInset ref
26696 reference "fig:Float-left"
26701 \begin_inset CommandInset ref
26703 reference "fig:Float-right"
26712 In it two minipage boxes are inserted.
26716 \begin_layout Plain Layout
26717 Minipages are explained in section
26718 \begin_inset space ~
26722 \begin_inset CommandInset ref
26724 reference "sec:Minipages"
26733 The width is set to 45
26734 \begin_inset space \thinspace{}
26738 \begin_inset space \thinspace{}
26741 column% and the box alignment to
26746 The minipage boxes contain the image and the caption in the same way as
26747 they are in a float.
26748 The only difference is that the image unit
26751 \begin_inset space ~
26755 \begin_inset space ~
26760 is now calculated according to the width of the minipage boxes.
26763 \begin_layout Standard
26764 \begin_inset Float figure
26769 \begin_layout Plain Layout
26770 \begin_inset Box Frameless
26780 height_special "totalheight"
26783 \begin_layout Plain Layout
26785 \begin_inset Graphics
26786 filename clipart/mobius.eps
26789 scaleBeforeRotation
26796 \begin_layout Plain Layout
26797 \begin_inset Caption Standard
26799 \begin_layout Plain Layout
26800 \begin_inset CommandInset label
26802 name "fig:Float-left"
26806 Float on the left side.
26817 \begin_inset space \hfill{}
26821 \begin_inset Box Frameless
26831 height_special "totalheight"
26834 \begin_layout Plain Layout
26836 \begin_inset Graphics
26837 filename clipart/platypus.eps
26840 scaleBeforeRotation
26847 \begin_layout Plain Layout
26848 \begin_inset Caption Standard
26850 \begin_layout Plain Layout
26851 \begin_inset CommandInset label
26853 name "fig:Float-right"
26857 Float on the right side.
26870 \begin_layout Plain Layout
26879 \begin_layout Section
26881 \begin_inset Index idx
26884 \begin_layout Plain Layout
26885 Caption ! Formatting
26891 \begin_inset Index idx
26894 \begin_layout Plain Layout
26895 Floats ! Caption Formatting
26901 \begin_inset CommandInset label
26903 name "sec:Caption-Formatting"
26910 \begin_layout Standard
26915 environment is the default paragraph environment for
26920 On the LyX screen captions appear as a label, e.
26921 \begin_inset space \thinspace{}
26925 \begin_inset space \space{}
26929 \begin_inset Quotes eld
26937 \begin_inset Quotes erd
26940 followed by the caption text.
26942 \begin_inset Quotes eld
26946 \begin_inset Quotes erd
26949 is the actual reference number.
26950 By default the label and the number are in the same font as the caption
26951 text and a colon follows the number to divide the label from the text.
26952 This caption format is suitable for many but not all documents.
26956 \begin_layout Standard
26957 To change the default caption format, load the LaTeX-package
26962 \begin_inset Index idx
26965 \begin_layout Plain Layout
26966 LaTeX-packages ! caption
26971 in the document preamble with this line:
26974 \begin_layout Standard
26979 usepackage[format definition]{caption}
26982 \begin_layout Standard
26983 To have for example the label and the number in sans-serif, bold font and
26984 the table captions always above the table as in this document, use the
26988 \begin_layout Standard
26993 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26996 \begin_layout Standard
26997 You can also define different caption formats for the different float types.
26998 In this case load the
27002 package without format specific options and define the different formats
27003 with the help of the command
27006 \begin_layout Standard
27011 captionsetup[float type]{format definition}
27014 \begin_layout Standard
27015 in the document preamble.
27016 For example the caption formats of Figure
27017 \begin_inset space ~
27021 \begin_inset CommandInset ref
27023 reference "fig:This-is-an-fig"
27028 \begin_inset space ~
27032 \begin_inset CommandInset ref
27034 reference "tab:This-is-an-tab"
27038 can be created using these commands in the document preamble:
27041 \begin_layout Standard
27046 usepackage[tableposition=top]{caption}
27049 \begin_inset Newline newline
27056 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27057 \begin_inset Newline newline
27061 \begin_inset Phantom HPhantom
27064 \begin_layout Plain Layout
27069 captionsetup[figure]{
27075 \begin_inset Newline newline
27080 captionsetup[table]{labelfont={bf,sf}}
27083 \begin_layout Standard
27084 \begin_inset Note Greyedout
27087 \begin_layout Plain Layout
27096 has no effect when a
27101 \begin_inset Index idx
27104 \begin_layout Plain Layout
27105 LaTeX-packages ! KOMA-Script
27110 document class is used.
27111 In this case the document class option
27113 captions=tableheading
27123 \begin_layout Standard
27124 For more information about the package
27128 we refer to its documentation
27129 \begin_inset CommandInset citation
27138 \begin_layout Standard
27139 To change the label name from e.
27140 \begin_inset space \thinspace{}
27144 \begin_inset space \space{}
27148 \begin_inset Quotes eld
27152 \begin_inset Quotes erd
27156 \begin_inset Quotes eld
27160 \begin_inset Quotes erd
27163 use this preamble command:
27166 \begin_layout Standard
27173 fnum@figure}{Image~
27178 \begin_layout Standard
27185 inserts the figure number and
27188 \begin_inset Quotes eld
27194 \begin_inset Quotes erd
27197 creates a protected space.
27200 \begin_layout Standard
27201 \begin_inset VSpace bigskip
27209 \begin_inset Index idx
27212 \begin_layout Plain Layout
27213 LaTeX-packages ! KOMA-Script
27220 article (KOMA-Script)
27228 letter (KOMA-Script)
27232 report (KOMA-Script)
27235 \begin_inset space \thinspace{}
27238 ), you can alternatively to the
27246 's built-in command
27253 For example, to have the caption label in bold, add this command to your
27257 \begin_layout Standard
27262 setkomafont{captionlabel}{
27267 \begin_layout Standard
27268 For more information about
27279 \begin_inset CommandInset citation
27288 \begin_layout Standard
27292 \begin_layout Plain Layout
27296 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27303 \begin_inset Note Note
27306 \begin_layout Plain Layout
27307 The caption format is changed only for this example.
27315 \begin_layout Standard
27316 \begin_inset Float figure
27322 \begin_layout Plain Layout
27324 \begin_inset Graphics
27325 filename clipart/mobius.eps
27328 scaleBeforeRotation
27335 \begin_layout Plain Layout
27336 \begin_inset Caption Standard
27338 \begin_layout Plain Layout
27339 \begin_inset CommandInset label
27341 name "fig:This-is-an-fig"
27345 This is an example figure caption that is longer than one line to show the
27346 different caption format.
27347 Here a self-defined caption format is used.
27360 \begin_layout Standard
27364 \begin_layout Plain Layout
27368 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27377 \begin_layout Standard
27378 \begin_inset Float table
27384 \begin_layout Plain Layout
27385 \begin_inset Caption Standard
27387 \begin_layout Plain Layout
27388 \begin_inset CommandInset label
27390 name "tab:This-is-an-tab"
27394 This is an example table caption that is longer than one line to show the
27395 different caption format.
27396 Here the standard caption format for tables in this document is used.
27404 \begin_layout Plain Layout
27406 \begin_inset Tabular
27407 <lyxtabular version="3" rows="1" columns="5">
27408 <features rotate="0" tabularvalignment="middle">
27409 <column alignment="center" valignment="top">
27410 <column alignment="center" valignment="top">
27411 <column alignment="center" valignment="top">
27412 <column alignment="center" valignment="top">
27413 <column alignment="center" valignment="top">
27415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27418 \begin_layout Plain Layout
27424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27427 \begin_layout Plain Layout
27433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27436 \begin_layout Plain Layout
27442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27445 \begin_layout Plain Layout
27451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27454 \begin_layout Plain Layout
27473 \begin_layout Section
27475 \begin_inset Index idx
27478 \begin_layout Plain Layout
27479 Caption ! Placement
27485 \begin_inset Index idx
27488 \begin_layout Plain Layout
27489 Floats ! Caption Placement
27495 \begin_inset CommandInset label
27497 name "sec:Caption-Placement"
27504 \begin_layout Standard
27505 The common caption placement rule is:
27508 \begin_layout Description
27509 Figure: Caption is set below the figure
27512 \begin_layout Description
27513 Table: Caption is set above the table
27516 \begin_layout Standard
27517 Having the caption above the table is unfortunately not supported in LaTeX's
27519 That means if you are using the document classes
27535 there will be no space between the caption and the table.
27536 To insert the necessary space, load the LaTeX-package
27541 \begin_inset Index idx
27544 \begin_layout Plain Layout
27545 LaTeX-packages ! caption
27550 in your document preamble with the option
27554 \begin_layout Plain Layout
27556 \begin_inset space ~
27560 \begin_inset CommandInset ref
27562 reference "sec:Caption-Formatting"
27566 for more information of the package
27578 \begin_layout Standard
27584 \begin_layout Standard
27590 \begin_inset Index idx
27593 \begin_layout Plain Layout
27594 LaTeX-packages ! KOMA-Script
27601 article (KOMA-Script)
27609 letter (KOMA-Script)
27613 report (KOMA-Script)
27616 \begin_inset space \thinspace{}
27619 ), you can alternatively to the
27623 package set the document class option
27627 \begin_layout Plain Layout
27628 That option is used in this document.
27636 \begin_layout Standard
27639 captions=tableheading
27642 \begin_layout Standard
27643 In documents with a KOMA-Script document class you can also right-click
27644 on a caption and mark in the context menu if this should be a caption above
27645 or below the table/figure.
27646 This way you can override the document-wide caption placement for certain
27649 \begin_inset space ~
27653 \begin_inset CommandInset ref
27655 reference "tab:A-caption-marked"
27659 is an example where the caption is marked a being below the table while
27661 For comparison the caption in Table
27662 \begin_inset space ~
27666 \begin_inset CommandInset ref
27668 reference "tab:A-standard-table"
27675 \begin_layout Standard
27676 \begin_inset Float table
27681 \begin_layout Plain Layout
27682 \begin_inset Caption Below
27684 \begin_layout Plain Layout
27685 \begin_inset CommandInset label
27687 name "tab:A-caption-marked"
27691 A caption marked as being below the table.
27699 \begin_layout Plain Layout
27701 \begin_inset Tabular
27702 <lyxtabular version="3" rows="3" columns="3">
27703 <features rotate="0" tabularvalignment="middle">
27704 <column alignment="center" valignment="top" width="0pt">
27705 <column alignment="center" valignment="top" width="0pt">
27706 <column alignment="center" valignment="top" width="0pt">
27708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27711 \begin_layout Plain Layout
27717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27720 \begin_layout Plain Layout
27726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27729 \begin_layout Plain Layout
27737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27740 \begin_layout Plain Layout
27746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27749 \begin_layout Plain Layout
27755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27758 \begin_layout Plain Layout
27766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27769 \begin_layout Plain Layout
27770 \begin_inset Formula $\int x^{2}dx$
27778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27781 \begin_layout Plain Layout
27782 \begin_inset Formula $\left[\begin{array}{cc}
27785 \end{array}\right]$
27793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27796 \begin_layout Plain Layout
27797 \begin_inset Formula $1+1=2$
27818 \begin_layout Standard
27819 \begin_inset Float table
27824 \begin_layout Plain Layout
27825 \begin_inset Caption Standard
27827 \begin_layout Plain Layout
27828 \begin_inset CommandInset label
27830 name "tab:A-standard-table"
27834 A standard table caption.
27842 \begin_layout Plain Layout
27844 \begin_inset Tabular
27845 <lyxtabular version="3" rows="3" columns="3">
27846 <features rotate="0" tabularvalignment="middle">
27847 <column alignment="center" valignment="top" width="0pt">
27848 <column alignment="center" valignment="top" width="0pt">
27849 <column alignment="center" valignment="top" width="0pt">
27851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27854 \begin_layout Plain Layout
27860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27863 \begin_layout Plain Layout
27869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27872 \begin_layout Plain Layout
27880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27883 \begin_layout Plain Layout
27889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27892 \begin_layout Plain Layout
27898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27901 \begin_layout Plain Layout
27909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27912 \begin_layout Plain Layout
27913 \begin_inset Formula $\int x^{2}dx$
27921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27924 \begin_layout Plain Layout
27925 \begin_inset Formula $\left[\begin{array}{cc}
27928 \end{array}\right]$
27936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27939 \begin_layout Plain Layout
27940 \begin_inset Formula $1+1=2$
27961 \begin_layout Standard
27962 \begin_inset VSpace bigskip
27965 It is also possible to set the caption beside a figure or table.
27966 To get this the LaTeX-package
27971 \begin_inset Index idx
27974 \begin_layout Plain Layout
27975 LaTeX-packages ! sidecap
27980 has to be loaded in the document preamble with the line
27983 \begin_layout Standard
27988 usepackage[option]{sidecap}
27991 \begin_layout Standard
27992 If you set no option, the caption is placed on the side of the outer page
27993 margin – to the right on odd pages, to the left on even pages.
27994 You can change the placement to inner margin with the option
27999 To force the placement always to the right or left, use the option
28010 \begin_layout Standard
28014 \begin_layout Plain Layout
28024 \begin_inset Note Note
28027 \begin_layout Plain Layout
28028 The following section will only be displayed when the LaTeX-package
28040 \begin_layout Standard
28041 To place in LyX the caption of a float on the side, it is necessary to add
28042 these commands to the document preamble:
28045 \begin_layout Standard
28047 \begin_inset CommandInset line
28058 \begin_layout Standard
28065 TabBesBeg}[1][1.0]{%
28066 \begin_inset Newline newline
28070 \begin_inset Phantom HPhantom
28073 \begin_layout Plain Layout
28074 \begin_inset space ~
28089 \begin_inset Newline newline
28093 \begin_inset Phantom HPhantom
28096 \begin_layout Plain Layout
28099 \begin_inset space ~
28114 \begin_inset Newline newline
28118 \begin_inset Phantom HPhantom
28121 \begin_layout Plain Layout
28124 \begin_inset space ~
28134 renewenvironment{table}[1]{
28136 begin{SCtable}[#1]##1}{
28141 \begin_layout Standard
28149 \begin_inset Newline newline
28153 \begin_inset Phantom HPhantom
28156 \begin_layout Plain Layout
28157 \begin_inset space ~
28172 \begin_inset Newline newline
28176 \begin_inset Phantom HPhantom
28179 \begin_layout Plain Layout
28180 \begin_inset space ~
28197 \begin_layout Standard
28204 FigBesBeg}[1][1.0]{%
28205 \begin_inset Newline newline
28209 \begin_inset Phantom HPhantom
28212 \begin_layout Plain Layout
28213 \begin_inset space ~
28228 \begin_inset Newline newline
28232 \begin_inset Phantom HPhantom
28235 \begin_layout Plain Layout
28236 \begin_inset space ~
28251 \begin_inset Newline newline
28255 \begin_inset Phantom HPhantom
28258 \begin_layout Plain Layout
28259 \begin_inset space ~
28269 renewenvironment{figure}[1]{
28271 begin{SCfigure}[#1]##1}{
28276 \begin_layout Standard
28284 \begin_inset Newline newline
28288 \begin_inset Phantom HPhantom
28291 \begin_layout Plain Layout
28292 \begin_inset space ~
28307 \begin_inset Newline newline
28311 \begin_inset Phantom HPhantom
28314 \begin_layout Plain Layout
28315 \begin_inset space ~
28332 \begin_layout Standard
28334 \begin_inset CommandInset line
28345 \begin_layout Standard
28346 The commands allow you to redefine the floats so that the caption is set
28348 For figure floats use the command
28351 \begin_layout Standard
28359 \begin_layout Standard
28360 in TeX-Code before the float.
28361 And insert the command
28364 \begin_layout Standard
28372 \begin_layout Standard
28373 in TeX-Code at the point where you want to get back to the original float
28377 \begin_layout Standard
28378 For table floats use the corresponding commands
28381 \begin_layout Standard
28395 \begin_layout Standard
28397 \begin_inset space ~
28401 \begin_inset CommandInset ref
28403 reference "fig:cap-beside-fig"
28408 \begin_inset space ~
28412 \begin_inset CommandInset ref
28414 reference "tab:cap-beside-tab"
28418 are examples where the caption is set beside.
28421 \begin_layout Standard
28422 You can see in the examples that the caption text appears at the top of
28423 the floats for table floats and at the bottom for figure floats.
28424 To change this, you can use the command
28427 \begin_layout Standard
28432 sidecaptionvpos{float type}{placement}
28435 \begin_layout Standard
28436 in the document preamble or in TeX-Code before the float.
28437 The float type is either
28445 , the placement can be
28446 \begin_inset Quotes eld
28454 \begin_inset Quotes erd
28458 \begin_inset Quotes eld
28466 \begin_inset Quotes erd
28470 \begin_inset Quotes eld
28478 \begin_inset Quotes erd
28482 To have for example the caption of figure floats vertically centered, use
28486 \begin_layout Standard
28491 sidecaptionvpos{figure}{c}
28494 \begin_layout Standard
28495 This was used for Figure
28496 \begin_inset space ~
28500 \begin_inset CommandInset ref
28502 reference "fig:cap-beside-fig-2"
28509 \begin_layout Standard
28510 \begin_inset VSpace medskip
28516 \begin_layout Standard
28517 The default caption width is the width of the image/table.
28518 For thin image/tables, like in Table
28519 \begin_inset space ~
28523 \begin_inset CommandInset ref
28525 reference "tab:cap-beside-tab"
28529 , this leads to captions that are too thin.
28530 You can increase the width by specifying a factor that will be multiplied
28531 with the image/table width to get the caption width.
28532 The caption width will automatically be recalculated in case it would protrude
28533 over the page or column margin due to the specified width.
28538 can either be given as optional argument for
28547 \begin_layout Standard
28555 \begin_layout Standard
28556 or in the definition of
28566 with another value.
28567 If you do the latter, your factor will be the default if
28573 is used without an argument.
28575 \begin_inset space ~
28579 \begin_inset CommandInset ref
28581 reference "tab:cap-beside-tab-wider"
28585 the factor 5 was used.
28588 \begin_layout Standard
28589 \begin_inset Note Greyedout
28592 \begin_layout Plain Layout
28597 For floats with captions set beside, you cannot use the float placement
28601 \begin_inset space ~
28606 because it is not supported by
28618 \begin_layout Standard
28619 \begin_inset VSpace medskip
28622 For more information about the package
28626 we refer to its documentation
28627 \begin_inset CommandInset citation
28636 \begin_layout Standard
28637 \begin_inset Note Greyedout
28640 \begin_layout Plain Layout
28650 \begin_inset Index idx
28653 \begin_layout Plain Layout
28654 LaTeX-packages ! hypcap
28659 , described in section
28660 \begin_inset space ~
28664 \begin_inset CommandInset ref
28666 reference "sub:Reference-Position"
28670 , has no effect on floats with the caption set beside.
28678 \begin_layout Standard
28682 \begin_layout Plain Layout
28694 \begin_layout Standard
28695 \begin_inset Float figure
28700 \begin_layout Plain Layout
28701 \begin_inset Graphics
28702 filename clipart/escher-lsd.eps
28704 scaleBeforeRotation
28711 \begin_layout Plain Layout
28712 \begin_inset Caption Standard
28714 \begin_layout Plain Layout
28715 \begin_inset CommandInset label
28717 name "fig:cap-beside-fig"
28721 This is a caption beside a figure.
28734 \begin_layout Standard
28738 \begin_layout Plain Layout
28750 \begin_layout Standard
28754 \begin_layout Plain Layout
28766 \begin_layout Standard
28767 \begin_inset Float table
28772 \begin_layout Plain Layout
28773 \begin_inset Caption Standard
28775 \begin_layout Plain Layout
28776 \begin_inset CommandInset label
28778 name "tab:cap-beside-tab"
28782 This is a caption beside a table.
28790 \begin_layout Plain Layout
28791 \begin_inset Tabular
28792 <lyxtabular version="3" rows="4" columns="5">
28793 <features rotate="0" tabularvalignment="middle">
28794 <column alignment="center" valignment="top">
28795 <column alignment="center" valignment="top">
28796 <column alignment="center" valignment="top">
28797 <column alignment="center" valignment="top">
28798 <column alignment="center" valignment="top">
28800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28803 \begin_layout Plain Layout
28809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28812 \begin_layout Plain Layout
28818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28821 \begin_layout Plain Layout
28827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28830 \begin_layout Plain Layout
28836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28839 \begin_layout Plain Layout
28847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28850 \begin_layout Plain Layout
28856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28859 \begin_layout Plain Layout
28865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28868 \begin_layout Plain Layout
28874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28877 \begin_layout Plain Layout
28883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28886 \begin_layout Plain Layout
28894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28897 \begin_layout Plain Layout
28903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28906 \begin_layout Plain Layout
28912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28915 \begin_layout Plain Layout
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Plain Layout
28930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28933 \begin_layout Plain Layout
28941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28944 \begin_layout Plain Layout
28950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28953 \begin_layout Plain Layout
28959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28962 \begin_layout Plain Layout
28968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28971 \begin_layout Plain Layout
28977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28980 \begin_layout Plain Layout
28999 \begin_layout Standard
29003 \begin_layout Plain Layout
29015 \begin_layout Standard
29019 \begin_layout Plain Layout
29032 \begin_layout Plain Layout
29036 sidecaptionvpos{figure}{c}
29042 \begin_inset Float figure
29047 \begin_layout Plain Layout
29048 \begin_inset Graphics
29049 filename clipart/escher-lsd.eps
29051 scaleBeforeRotation
29058 \begin_layout Plain Layout
29059 \begin_inset Caption Standard
29061 \begin_layout Plain Layout
29062 \begin_inset CommandInset label
29064 name "fig:cap-beside-fig-2"
29068 This is a vertically centered caption beside a figure.
29081 \begin_layout Standard
29085 \begin_layout Plain Layout
29097 \begin_layout Standard
29101 \begin_layout Plain Layout
29113 \begin_layout Standard
29114 \begin_inset Float table
29119 \begin_layout Plain Layout
29120 \begin_inset Caption Standard
29122 \begin_layout Plain Layout
29123 \begin_inset CommandInset label
29125 name "tab:cap-beside-tab-wider"
29129 This caption is wider than the one in Table
29130 \begin_inset space ~
29134 \begin_inset CommandInset ref
29136 reference "tab:cap-beside-tab"
29148 \begin_layout Plain Layout
29149 \begin_inset Tabular
29150 <lyxtabular version="3" rows="4" columns="5">
29151 <features rotate="0" tabularvalignment="middle">
29152 <column alignment="center" valignment="top">
29153 <column alignment="center" valignment="top">
29154 <column alignment="center" valignment="top">
29155 <column alignment="center" valignment="top">
29156 <column alignment="center" valignment="top">
29158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29161 \begin_layout Plain Layout
29167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29170 \begin_layout Plain Layout
29176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29179 \begin_layout Plain Layout
29185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29188 \begin_layout Plain Layout
29194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29197 \begin_layout Plain Layout
29205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29208 \begin_layout Plain Layout
29214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29217 \begin_layout Plain Layout
29223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29226 \begin_layout Plain Layout
29232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29235 \begin_layout Plain Layout
29241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29244 \begin_layout Plain Layout
29252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29255 \begin_layout Plain Layout
29261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29264 \begin_layout Plain Layout
29270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29273 \begin_layout Plain Layout
29279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29282 \begin_layout Plain Layout
29288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29291 \begin_layout Plain Layout
29299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29302 \begin_layout Plain Layout
29308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29311 \begin_layout Plain Layout
29317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29320 \begin_layout Plain Layout
29326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29329 \begin_layout Plain Layout
29335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29338 \begin_layout Plain Layout
29357 \begin_layout Standard
29361 \begin_layout Plain Layout
29373 \begin_layout Standard
29377 \begin_layout Plain Layout
29387 \begin_inset Note Note
29390 \begin_layout Plain Layout
29391 The following will be displayed when the LaTeX-package
29403 \begin_layout Standard
29404 You need to install the LaTeX-package
29408 to see the following part of this section in the output.
29411 \begin_layout Standard
29415 \begin_layout Plain Layout
29427 \begin_layout Section
29429 \begin_inset Index idx
29432 \begin_layout Plain Layout
29433 Floats ! Float Lists
29441 \begin_layout Standard
29442 Similar to the table of contents where the sections of the document are
29443 listed, there are listings for all float types, like the figures of the
29445 You can insert them via the
29447 Insert\SpecialChar \menuseparator
29449 \begin_inset space ~
29453 \begin_inset space ~
29461 \begin_layout Standard
29462 The list entries are the float captions or its short title, the float number,
29463 and the page number where they appear in the document.
29466 \begin_layout Standard
29467 You can find the list of figures and tables at the end of this document.
29470 \begin_layout Chapter
29474 \begin_layout Section
29476 \begin_inset Index idx
29479 \begin_layout Plain Layout
29488 \begin_layout Standard
29489 Notes are inserted with the toolbar button
29497 Insert\SpecialChar \menuseparator
29501 There are three types of notes:
29504 \begin_layout Description
29506 \begin_inset space ~
29509 Note This note type is for internal notes that won't appear in the output.
29510 Its note-box looks like this:
29511 \begin_inset Newline newline
29515 \begin_inset Newline newline
29519 \begin_inset Graphics
29520 filename clipart/LyXNoteImageQt4.png
29523 scaleBeforeRotation
29528 \begin_inset Note Note
29531 \begin_layout Plain Layout
29532 This is text in a note box that doesn't appear in the output.
29540 \begin_layout Description
29541 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29542 ent, when you export the document to LaTeX via the menu
29544 File\SpecialChar \menuseparator
29545 Export\SpecialChar \menuseparator
29546 LaTeX (pdflatex) / (plain)
29549 Its note-box looks like this:
29550 \begin_inset Newline newline
29554 \begin_inset Newline newline
29558 \begin_inset Graphics
29559 filename clipart/CommentNoteImageQt4.png
29562 scaleBeforeRotation
29567 \begin_inset Note Comment
29570 \begin_layout Plain Layout
29571 This is text in a note box that only appears as comment in LaTeX-files.
29579 \begin_layout Description
29581 \begin_inset space ~
29584 Out This note will appear in the output as grey text.
29585 Its note-box looks like this:
29586 \begin_inset Newline newline
29590 \begin_inset Newline newline
29594 \begin_inset Graphics
29595 filename clipart/GreyedOutNoteImageQt4.png
29598 scaleBeforeRotation
29603 \begin_inset Newline newline
29610 \begin_layout Plain Layout
29614 renewenvironment{lyxgreyedout}
29617 \begin_layout Plain Layout
29621 textcolor[gray]{0.8}
29631 \begin_inset Note Greyedout
29634 \begin_layout Plain Layout
29639 \begin_layout Plain Layout
29640 This is an example footnote within a greyed out note.
29645 of a comment that appears in the output as grey text.
29654 \begin_layout Plain Layout
29658 renewenvironment{lyxgreyedout}
29661 \begin_layout Plain Layout
29675 \begin_inset Note Note
29678 \begin_layout Plain Layout
29679 The greyed out note is here redefined to show it with the original LyX definitio
29680 n because greyed out notes are redefined in the preamble of this document,
29681 as described below, to have blue text.
29687 \begin_inset Newline newline
29691 \begin_inset Newline newline
29694 As you can see in the example, the first line of greyed out notes is a bit
29695 indented and greyed out notes can have footnotes.
29698 \begin_layout Standard
29699 \begin_inset VSpace bigskip
29702 When you use the toolbar button
29711 \begin_inset space ~
29717 You can switch between the three note types by right-clicking on the note-box.
29722 If you want to turn existing text into a note, mark it and click on the
29736 To change a note to text, press the backspace key when the cursor is in
29737 the first position of a note, or press the delete key when the cursor is
29738 in the very last position of the note, respectively.
29741 \begin_layout Standard
29742 \begin_inset VSpace bigskip
29745 You can change the text color of the greyed out notes in the menu
29747 Document\SpecialChar \menuseparator
29748 Settings\SpecialChar \menuseparator
29754 \begin_layout Section
29756 \begin_inset CommandInset label
29758 name "sec:Footnotes"
29763 \begin_inset Index idx
29766 \begin_layout Plain Layout
29773 \begin_inset Index idx
29776 \begin_layout Plain Layout
29785 \begin_layout Standard
29786 Footnotes can be inserted using the toolbar button
29789 arg "footnote-insert"
29794 Insert\SpecialChar \menuseparator
29798 You will then see the following footnote-box:
29799 \begin_inset Graphics
29800 filename clipart/footnoteQt4.png
29802 scaleBeforeRotation
29810 where you can enter the footnote text.
29811 If you want to turn existing text into a footnote, mark it and click on
29837 key when the cursor is in the first position of a
29849 key when the cursor is in the very last position of the
29860 \begin_layout Standard
29861 Here is an example footnote:
29869 \begin_layout Plain Layout
29870 \begin_inset CommandInset label
29872 name "foot:This-is-an"
29876 This is an example footnote.
29889 \begin_layout Plain Layout
29893 newcounter{MyRepeatFoot}
29896 \begin_layout Plain Layout
29900 setcounter{MyRepeatFoot}{
29910 \begin_layout Standard
29911 The footnote will appear in the output as a superscript number at the text
29912 position where the footnote box is placed.
29913 The footnote text is placed at the bottom of the current page.
29914 The footnote number is calculated by LaTeX; the numbers are consecutive.
29915 Whether the footnote number is reset for every chapter depends on your
29919 \begin_layout Standard
29920 Footnotes can be referenced like floats: Insert a label into the footnote
29921 and cross-reference this label in the text as described in section
29922 \begin_inset space ~
29926 \begin_inset CommandInset ref
29928 reference "sec:Referencing-Floats"
29933 \begin_inset Newline newline
29936 This is a cross-reference of Footnote
29937 \begin_inset space ~
29941 \begin_inset CommandInset ref
29943 reference "foot:This-is-an"
29950 \begin_layout Standard
29951 \begin_inset VSpace defskip
29954 Footnotes in title environments are usually not numbered with symbols and
29955 they cannot contain several paragraphs.
29956 See for example the footnote in the titling of this document.
29959 \begin_layout Standard
29960 \begin_inset VSpace defskip
29963 Footnotes in tables are not printed by LaTeX due to technical reasons.
29964 However there exists another method to print them: Instead of the footnote
29971 is inserted as TeX-code.
29972 The text of the footnote is entered as an argument of the TeX-code command
29980 \begin_inset Newline newline
29983 This was done for the following table with the command
29986 \begin_layout Standard
29993 Printed table footnote.
29998 \begin_layout Standard
29999 \begin_inset Tabular
30000 <lyxtabular version="3" rows="2" columns="1">
30001 <features rotate="0" tabularvalignment="middle">
30002 <column alignment="center" valignment="top">
30004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30007 \begin_layout Plain Layout
30008 This an example text.
30012 \begin_layout Plain Layout
30013 This footnote will not be printed!
30025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30028 \begin_layout Plain Layout
30029 This an example text.
30033 \begin_layout Plain Layout
30056 \begin_layout Plain Layout
30065 Printed table footnote.
30069 \begin_layout Plain Layout
30079 \begin_layout Standard
30080 Footnotes in longtables are described in section
30081 \begin_inset space ~
30085 \begin_inset CommandInset ref
30087 reference "sub:Footnotes-in-Longtables"
30094 \begin_layout Standard
30095 Footnotes in minipage boxes are printed, but inside the box and with a different
30096 numbering because a minipage box is like a page inside a page.
30097 (For more about minipages, see section
30098 \begin_inset space ~
30102 \begin_inset CommandInset ref
30104 reference "sec:Minipages"
30108 .) To get a footnote in the minipage that is output at the bottom of the
30109 page like normal footnotes, also use the method of
30124 \begin_layout Standard
30125 \begin_inset Box Frameless
30135 height_special "totalheight"
30138 \begin_layout Plain Layout
30139 This an example text in a minipage.
30143 \begin_layout Plain Layout
30144 Footnote in the minipage.
30152 \begin_layout Plain Layout
30153 This an example text in a minipage.
30157 \begin_layout Plain Layout
30174 \begin_layout Standard
30178 \begin_layout Plain Layout
30187 Footnote outside the minipage.
30191 \begin_layout Plain Layout
30201 \begin_layout Standard
30202 \begin_inset VSpace defskip
30208 \begin_layout Standard
30209 To refer to the same footnote several times without printing the footnote
30210 text every time, use the command
30214 footnotemark[number]
30217 \begin_inset Newline newline
30220 As you do not know the number of the repeating footnote while you are writing
30221 the text, you have to store its number.
30222 For the following footnote mark example, these commands were inserted in
30223 TeX-code after Footnote
30224 \begin_inset space ~
30228 \begin_inset CommandInset ref
30230 reference "foot:This-is-an"
30234 to store the footnote number:
30237 \begin_layout Standard
30242 newcounter{MyRepeatFoot}
30243 \begin_inset Newline newline
30248 setcounter{MyRepeatFoot}{
30253 \begin_layout Standard
30254 The footnote mark was then created with this command:
30257 \begin_layout Standard
30267 \begin_layout Standard
30268 Here is a repeated footnote:
30276 \begin_layout Plain Layout
30290 \begin_layout Standard
30291 If you want to repeat the previous footnote, you can omit the storage of
30292 the footnote number and just use this command instead:
30295 \begin_layout Standard
30305 \begin_layout Standard
30306 Here is another repeated footnote:
30314 \begin_layout Plain Layout
30328 \begin_layout Subsection
30330 \begin_inset CommandInset label
30332 name "sub:Footnote-Numbering"
30337 \begin_inset Index idx
30340 \begin_layout Plain Layout
30341 Footnotes ! Numbering
30349 \begin_layout Standard
30350 To reset the footnote number back to 1 after each section
30352 , add this command to your document preamble:
30355 \begin_layout Standard
30360 @addtoreset{footnote}{section}
30363 \begin_layout Standard
30364 \begin_inset VSpace bigskip
30367 The following preamble command changes the footnote numbering style to small
30371 \begin_layout Standard
30383 \begin_layout Standard
30387 \begin_layout Plain Layout
30400 This is a footnote with roman numbering:
30404 \begin_layout Plain Layout
30405 This is an example footnote with roman numbering.
30413 \begin_layout Standard
30414 To change the numbering style to capital roman numerals replace in the command
30429 \begin_inset Quotes eld
30433 \begin_inset Quotes erd
30436 footnotes with capital or small Latin letters use
30450 \begin_inset Quotes eld
30454 \begin_inset Quotes erd
30457 footnotes with symbols use
30466 \begin_layout Standard
30467 \begin_inset Note Greyedout
30470 \begin_layout Plain Layout
30475 You can only number 26 footnotes with Latin letters, because this numbering
30476 is limited to single letters.
30482 \begin_inset Newline newline
30486 \begin_inset Note Greyedout
30489 \begin_layout Plain Layout
30494 You can only number 9 footnotes with symbols.
30502 \begin_layout Standard
30503 To return to the default numbering style after you have changed to another
30516 in the command above.
30520 \begin_layout Plain Layout
30536 \begin_layout Standard
30537 \begin_inset VSpace bigskip
30543 \begin_layout Standard
30544 If you want to have footnotes numbered in the scheme
30545 \begin_inset Quotes eld
30549 \begin_inset Quotes erd
30552 , add the following command to your document preamble:
30555 \begin_layout Standard
30560 numberwithin{footnote}{chapter}
30563 \begin_layout Standard
30564 To be able to use the command
30573 \begin_inset space ~
30578 in the document settings the option
30581 \begin_inset space ~
30585 \begin_inset space ~
30589 \begin_inset space ~
30597 \begin_layout Standard
30601 \begin_layout Plain Layout
30605 numberwithin{footnote}{chapter}
30610 This is another example footnote:
30616 \begin_layout Plain Layout
30617 This is a footnote numbered in the scheme
30618 \begin_inset Quotes eld
30622 \begin_inset Quotes erd
30636 \begin_layout Plain Layout
30652 \begin_layout Standard
30653 \begin_inset Note Greyedout
30656 \begin_layout Plain Layout
30667 always prints out the footnote number as arabic number; previous redefinitions
30668 to get non-arabic numbers are overwritten.
30676 \begin_layout Standard
30677 So to get for example the scheme
30678 \begin_inset Quotes eld
30684 \begin_inset Quotes erd
30687 , use this command instead of
30696 \begin_layout Standard
30710 \begin_layout Subsection
30712 \begin_inset Index idx
30715 \begin_layout Plain Layout
30716 Footnotes ! Placement
30724 \begin_layout Standard
30725 If you have several footnotes in one page, they appear without vertical
30726 space between them at the bottom of the page.
30727 To make them more readable you can e.
30728 \begin_inset space \thinspace{}
30732 \begin_inset space \space{}
30736 \begin_inset space \thinspace{}
30739 mm space with the following preamble command:
30742 \begin_layout Standard
30752 \begin_inset Newline newline
30766 \begin_layout Standard
30767 \begin_inset VSpace bigskip
30770 In a two-column document the footnotes appear at the bottom of every column,
30772 \begin_inset space ~
30776 \begin_inset CommandInset ref
30778 reference "fig:Standard-footnote-placement"
30783 If the footnotes should only appear at the bottom of the right column,
30785 \begin_inset space ~
30789 \begin_inset CommandInset ref
30791 reference "fig:Footnote-placement-in"
30795 , use the LaTeX-package
30800 \begin_inset Index idx
30803 \begin_layout Plain Layout
30804 LaTeX-packages ! ftnright
30809 with this command in the document preamble:
30812 \begin_layout Standard
30817 usepackage{ftnright}
30820 \begin_layout Standard
30821 \begin_inset Float figure
30827 \begin_layout Plain Layout
30831 \begin_layout Plain Layout
30841 \begin_inset Graphics
30842 filename clipart/without_fntright.pdf
30844 scaleBeforeRotation
30852 \begin_layout Plain Layout
30862 \begin_layout Plain Layout
30863 \begin_inset Caption Standard
30865 \begin_layout Plain Layout
30866 \begin_inset CommandInset label
30868 name "fig:Standard-footnote-placement"
30872 Standard footnote placement in two-column documents.
30885 \begin_layout Standard
30886 \begin_inset Float figure
30892 \begin_layout Plain Layout
30896 \begin_layout Plain Layout
30906 \begin_inset Graphics
30907 filename clipart/with_fntright.pdf
30909 scaleBeforeRotation
30917 \begin_layout Plain Layout
30927 \begin_layout Plain Layout
30928 \begin_inset Caption Standard
30930 \begin_layout Plain Layout
30931 \begin_inset CommandInset label
30933 name "fig:Footnote-placement-in"
30937 Footnote placement in two-column documents when the LaTeX-package
30954 \begin_layout Standard
30955 \begin_inset VSpace bigskip
30958 In some scientific literature it is usual to collect the footnotes and print
30959 them in a separate paragraph at the end of a section, as in Figure
30960 \begin_inset space ~
30964 \begin_inset CommandInset ref
30966 reference "fig:Endnotes"
30971 They are then called
30972 \begin_inset Quotes eld
30976 \begin_inset Quotes erd
30980 \begin_inset Index idx
30983 \begin_layout Plain Layout
30989 To use endnotes instead of footnotes in your document, load in the menu
30992 Document\SpecialChar \menuseparator
30993 Settings\SpecialChar \menuseparator
30999 \begin_inset space ~
31003 \begin_inset space ~
31009 To insert the collected footnotes, insert the command
31012 \begin_layout Standard
31020 \begin_layout Standard
31021 in TeX-Code at the end of a section or chapter.
31024 \begin_layout Standard
31025 \begin_inset Float figure
31030 \begin_layout Plain Layout
31035 \begin_layout Plain Layout
31045 \begin_inset Graphics
31046 filename clipart/endnotes.pdf
31047 scaleBeforeRotation
31055 \begin_layout Plain Layout
31065 \begin_layout Plain Layout
31066 \begin_inset Caption Standard
31068 \begin_layout Plain Layout
31069 \begin_inset CommandInset label
31071 name "fig:Endnotes"
31075 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31089 \begin_layout Standard
31090 \begin_inset VSpace medskip
31093 The paragraph heading for the endnotes isn't automatically translated into
31094 the document language, this must be done manually.
31095 The following preamble command translates the default English
31096 \begin_inset Quotes eld
31100 \begin_inset Quotes erd
31104 \begin_inset Quotes eld
31108 \begin_inset Quotes erd
31114 \begin_layout Standard
31121 notesname}{Anmerkungen}
31124 \begin_layout Standard
31125 \begin_inset VSpace medskip
31128 The numbering of endnotes can be changed like the footnote numbering as
31129 described in section
31130 \begin_inset space ~
31134 \begin_inset CommandInset ref
31136 reference "sub:Footnote-Numbering"
31140 ; just replace the command
31153 To reset the endnote number use the command
31159 as described in section
31160 \begin_inset space ~
31164 \begin_inset CommandInset ref
31166 reference "sub:Footnote-Numbering"
31170 and replace the command parameter
31181 \begin_layout Standard
31182 For endnotes there is the command
31186 endnotemark[number]
31188 similar to the command
31194 , that is described in section
31195 \begin_inset space ~
31199 \begin_inset CommandInset ref
31201 reference "sec:Footnotes"
31208 \begin_layout Standard
31209 \begin_inset VSpace bigskip
31212 Footnotes can also be placed in the page margin and the footnote text alignment
31213 can be changed, see the LaTeX-package
31218 \begin_inset Index idx
31221 \begin_layout Plain Layout
31222 LaTeX-packages ! footmisc
31228 \begin_inset CommandInset citation
31234 for more information about this.
31237 \begin_layout Standard
31238 For various further footnote formatting issues have a look at LaTeX-books,
31240 \begin_inset CommandInset citation
31242 key "latexcompanion,latexguide,latexbook"
31252 \begin_inset Index idx
31255 \begin_layout Plain Layout
31256 LaTeX-packages ! KOMA-Script
31261 document class, you can adjust all footnote settings using class-specific
31263 \begin_inset CommandInset citation
31272 \begin_layout Section
31274 \begin_inset Index idx
31277 \begin_layout Plain Layout
31278 Notes ! Margin Notes
31286 \begin_layout Standard
31287 Margin notes look and behave in LyX like footnotes.
31288 They are inserted via the menu
31290 Insert\SpecialChar \menuseparator
31292 \begin_inset space ~
31297 or the toolbar button
31300 arg "marginalnote-insert"
31314 \begin_inset Quotes eld
31318 \begin_inset Quotes erd
31321 appears where you can enter the text of the margin note.
31324 \begin_layout Standard
31325 At the side is an example margin note.
31330 \begin_inset Marginal
31333 \begin_layout Plain Layout
31334 This is a margin note.
31342 \begin_layout Standard
31343 Margin notes appear at the right side in single-sided documents.
31344 In double-sided documents they appear in the outer margin – left on even
31345 pages, right on odd pages.
31346 The text of margin notes is aligned opposite to the outer margin – right-aligne
31347 d when the note appears in the left margin.
31348 The first line of the margin note is placed at the position of the text
31349 line where it is inserted in the document.
31352 \begin_layout Standard
31353 \begin_inset VSpace bigskip
31356 To place the margin note in the inner margin, add the command
31359 \begin_layout Standard
31367 \begin_layout Standard
31368 in TeX-Code before a margin note.
31369 The new placement is valid for all subsequent margin notes.
31374 \begin_layout Plain Layout
31384 \begin_inset Marginal
31387 \begin_layout Plain Layout
31388 This is a margin note in the inner margin.
31396 \begin_inset Newline newline
31402 \begin_inset Note Greyedout
31405 \begin_layout Plain Layout
31410 There is often not enough space in the inner margin so that the notes are
31411 not correctly displayed in the output.
31419 \begin_layout Standard
31420 To return to the default placement insert the command
31423 \begin_layout Standard
31431 \begin_layout Standard
31436 \begin_layout Plain Layout
31446 \begin_inset Note Greyedout
31449 \begin_layout Plain Layout
31454 The command is ignored when it is within a paragraph where also the command
31469 \begin_layout Standard
31470 \begin_inset VSpace bigskip
31477 \begin_inset Marginal
31480 \begin_layout Plain Layout
31481 AVeryLongMarginParWord that isn't hyphenated.
31489 Similar to the case described in section
31490 \begin_inset space ~
31494 \begin_inset CommandInset ref
31496 reference "sub:Multiple-Lines-in"
31500 , long words cannot be hyphenated when they are the first word in a margin
31502 To avoid this, insert 0
31503 \begin_inset space \thinspace{}
31506 pt horizontal space before the word
31511 \begin_inset Marginal
31514 \begin_layout Plain Layout
31515 \begin_inset space \hspace*{}
31519 AVeryLongMarginParWord that is hyphenated.
31527 \begin_layout Standard
31528 \begin_inset VSpace bigskip
31534 \begin_layout Standard
31535 \begin_inset Note Greyedout
31538 \begin_layout Plain Layout
31543 Margin notes can normally not be used inside tables, floats, and footnotes.
31551 \begin_layout Standard
31552 \begin_inset VSpace bigskip
31558 \begin_layout Standard
31562 \begin_layout Plain Layout
31572 \begin_inset Note Note
31575 \begin_layout Plain Layout
31576 The following section will only be displayed when the LaTeX-package
31588 \begin_layout Standard
31589 This restriction can be evaded by using the LaTeX-package
31594 \begin_inset Index idx
31597 \begin_layout Plain Layout
31598 LaTeX-packages ! marginnote
31604 By adding these two lines to your document preamble, the command used by
31605 LyX for margin notes is redefined to use the command provided by the
31612 \begin_layout Standard
31617 usepackage{marginnote}
31618 \begin_inset Newline newline
31630 \begin_layout Standard
31631 This is also used in this document because
31635 has another useful feature: You can set a vertical offset for the note.
31636 This is often needed when too many margin notes are too close together
31637 or for a better page layout.
31638 The offset is set in LyX as TeX-Code directly after the margin note in
31642 \begin_layout Standard
31648 \begin_layout Standard
31649 where the offset is a length with one of the units listed in Table
31650 \begin_inset space ~
31654 \begin_inset CommandInset ref
31656 reference "tab:Units"
31661 A negative value shifts the note up, a positive value shifts it down.
31665 For example the margin note beside this text line is shifted up 1.5
31666 \begin_inset space \thinspace{}
31669 cm with the TeX-Code-command
31670 \begin_inset Quotes eld
31680 \begin_inset Quotes erd
31684 \begin_inset Marginal
31687 \begin_layout Plain Layout
31688 This margin note is shifted up 1.5
31689 \begin_inset space \thinspace{}
31692 cm from its original position.
31704 \begin_layout Plain Layout
31714 \begin_layout Standard
31715 \begin_inset VSpace medskip
31722 you can also change the alignment of the text in the margin note.
31723 For example the commands
31726 \begin_layout Standard
31733 raggedleftmarginnote}{
31736 \begin_inset Newline newline
31743 raggedrightmarginnote}{
31748 \begin_layout Standard
31749 set the alignment to centered.
31754 raggedleftmarginnote
31756 denotes margin notes that appear at the left side.
31763 \begin_layout Plain Layout
31769 raggedleftmarginnote}{
31774 \begin_layout Plain Layout
31780 raggedrightmarginnote}{
31788 \begin_inset Marginal
31791 \begin_layout Plain Layout
31792 The text of this margin note is centered.
31803 \begin_layout Standard
31810 raggedleftmarginnote}{
31813 \begin_inset Newline newline
31820 raggedrightmarginnote}{
31829 \begin_layout Plain Layout
31835 raggedleftmarginnote}{
31840 \begin_layout Plain Layout
31846 raggedrightmarginnote}{
31856 \begin_layout Standard
31857 \begin_inset VSpace medskip
31860 For the other features of
31864 refer to its documentation
31865 \begin_inset CommandInset citation
31874 \begin_layout Standard
31875 \begin_inset VSpace bigskip
31878 You can adjust the layout of margin notes by changing its definition.
31879 To create for example a header for all margin notes with the underlined,
31880 sans-serif, and bold header text
31881 \begin_inset Quotes eld
31893 \begin_inset Quotes erd
31896 , add this to your document preamble:
31899 \begin_layout Standard
31909 \begin_inset Newline newline
31919 \begin_inset Newline newline
31923 \begin_inset Phantom HPhantom
31926 \begin_layout Plain Layout
31929 \begin_inset space ~
31945 underbar{Attention!}}}%
31946 \begin_inset Newline newline
31950 \begin_inset Phantom HPhantom
31953 \begin_layout Plain Layout
31956 \begin_inset space ~
31973 \begin_layout Standard
31980 \begin_layout Plain Layout
31991 \begin_layout Plain Layout
32002 \begin_layout Plain Layout
32010 underbar{Attention!}}}%
32013 \begin_layout Plain Layout
32027 \begin_inset Marginal
32030 \begin_layout Plain Layout
32031 This is a margin note with a defined heading.
32043 \begin_layout Plain Layout
32057 \begin_layout Plain Layout
32074 \begin_inset Note Note
32077 \begin_layout Plain Layout
32078 The margin note format is changed only for this example.
32086 \begin_layout Standard
32090 \begin_layout Plain Layout
32100 \begin_inset Note Note
32103 \begin_layout Plain Layout
32104 The following will be displayed when the LaTeX-package
32116 \begin_layout Standard
32117 You need to install the LaTeX-package
32121 to see the following part of this section in the output.
32124 \begin_layout Standard
32128 \begin_layout Plain Layout
32140 \begin_layout Chapter
32144 \begin_layout Section
32146 \begin_inset Index idx
32149 \begin_layout Plain Layout
32150 Boxes ! Introduction
32158 \begin_layout Standard
32159 Boxes are used to format a block of text.
32160 Boxes can be used to write documents with multiple languages, see section
32161 \begin_inset space ~
32165 \begin_inset CommandInset ref
32167 reference "sec:Minipages"
32171 , to frame texts, see section
32172 \begin_inset space ~
32176 \begin_inset CommandInset ref
32178 reference "sec:Decoration"
32182 , to prevent words from being hyphenated, see section
32183 \begin_inset space ~
32187 \begin_inset CommandInset ref
32189 reference "sec:Prevent-Hyphenation"
32193 , to align text, see section
32194 \begin_inset space ~
32198 \begin_inset CommandInset ref
32200 reference "sub:Vertical-Alignment"
32204 , or to set the background color of texts, see section
32205 \begin_inset space ~
32209 \begin_inset CommandInset ref
32211 reference "sec:Colored-Boxes"
32218 \begin_layout Standard
32219 Boxes can be inserted with the menu
32221 Insert\SpecialChar \menuseparator
32224 or the toolbar button
32227 arg "box-insert Frameless"
32231 A grey box with the label
32236 \begin_inset Graphics
32237 filename clipart/BoxInsetDefaultQt4.png
32239 scaleBeforeRotation
32244 The box type can be specified by right-clicking on the box and selecting
32250 The box dialog offers the
32253 \begin_inset space ~
32275 is the default for new boxes and is explained in section
32276 \begin_inset space ~
32280 \begin_inset CommandInset ref
32282 reference "sec:Minipages"
32290 is described in section
32291 \begin_inset space ~
32295 \begin_inset CommandInset ref
32297 reference "sec:Parboxes"
32306 \begin_inset CommandInset ref
32308 reference "sec:Prevent-Hyphenation"
32315 \begin_layout Standard
32316 Boxes are not numbered and can therefore not be referenced like floats or
32320 \begin_layout Standard
32321 \begin_inset Note Greyedout
32324 \begin_layout Plain Layout
32329 Boxes must not be the item in an
32345 \begin_layout Standard
32346 \begin_inset Note Greyedout
32349 \begin_layout Plain Layout
32354 For an unknown reason you can only set the
32357 \begin_inset space ~
32366 when you use a framed box.
32370 \begin_inset space ~
32375 type and without frames are explained in section
32376 \begin_inset space ~
32380 \begin_inset CommandInset ref
32382 reference "sec:Prevent-Hyphenation"
32394 \begin_layout Section
32396 \begin_inset CommandInset label
32398 name "sec:Box-Dialog"
32403 \begin_inset Index idx
32406 \begin_layout Plain Layout
32415 \begin_layout Subsection
32417 \begin_inset Index idx
32420 \begin_layout Plain Layout
32429 \begin_layout Standard
32430 In the box dialog you can adjust the box geometry in the fields
32439 The available units for the geometry are explained in Table
32440 \begin_inset space ~
32444 \begin_inset CommandInset ref
32446 reference "tab:Units"
32455 offers the following additional sizes:
32458 \begin_layout Description
32459 Depth This is the plain text
32460 \begin_inset Quotes eld
32464 \begin_inset Quotes erd
32468 It ignores the total depth when there are multiple text lines in the box:
32469 \begin_inset Newline newline
32473 \begin_inset Newline newline
32477 \begin_inset Newline newline
32481 \begin_inset Box Boxed
32491 height_special "depth"
32494 \begin_layout Plain Layout
32496 Box height set to 1
32497 \begin_inset space \thinspace{}
32506 \begin_inset Newline newline
32510 \begin_inset Newline newline
32516 \begin_layout Description
32517 Height This is the height of the text that is inside the box.
32519 \begin_inset space \thinspace{}
32523 \begin_inset space \space{}
32526 2 for this size will set the box height to 2
32527 \begin_inset space ~
32530 times the text height:
32531 \begin_inset Box Boxed
32541 height_special "height"
32544 \begin_layout Plain Layout
32546 Box height set to 2
32547 \begin_inset space \thinspace{}
32558 \begin_layout Description
32560 \begin_inset space ~
32563 Height This is the Height
32564 \begin_inset space \thinspace{}
32568 \begin_inset space \thinspace{}
32572 \begin_inset Box Boxed
32582 height_special "totalheight"
32585 \begin_layout Plain Layout
32587 Box height set to 1
32588 \begin_inset space \thinspace{}
32592 \begin_inset space ~
32603 \begin_layout Description
32604 Width This sets the width of the box as height:
32605 \begin_inset Box Boxed
32615 height_special "width"
32618 \begin_layout Plain Layout
32620 Box height set to 1
32621 \begin_inset space \thinspace{}
32632 \begin_layout Subsection
32634 \begin_inset Index idx
32637 \begin_layout Plain Layout
32646 \begin_layout Standard
32647 When you have chosen an
32650 \begin_inset space ~
32655 , the vertical box alignment can be:
32658 \begin_layout Description
32659 Top This is an example text line.
32661 \begin_inset Box Boxed
32671 height_special "totalheight"
32674 \begin_layout Plain Layout
32676 This box is top-aligned.
32681 This is an example text line.
32684 \begin_layout Description
32685 Middle This is an example text line.
32687 \begin_inset Box Boxed
32697 height_special "totalheight"
32700 \begin_layout Plain Layout
32702 This box is middle-aligned.
32707 This is an example text line.
32710 \begin_layout Description
32711 Bottom This is an example text line.
32713 \begin_inset Box Boxed
32723 height_special "totalheight"
32726 \begin_layout Plain Layout
32728 This box is bottom-aligned.
32733 This is an example text line.
32736 \begin_layout Standard
32737 \begin_inset Note Greyedout
32740 \begin_layout Plain Layout
32745 The vertical box alignment can be lost in the output when you have two
32746 boxes in a line and one has e.
32747 \begin_inset space \thinspace{}
32751 \begin_inset space \space{}
32754 a shadow and the other one not.
32762 \begin_layout Standard
32763 The horizontal box alignment can be set via LyX's paragraph dialog when
32764 you set the box into its own paragraph.
32767 \begin_layout Standard
32768 \begin_inset VSpace bigskip
32771 When you have chosen an
32774 \begin_inset space ~
32779 , the box content can be aligned vertically to:
32782 \begin_layout Description
32783 top This is an example text line.
32785 \begin_inset Box Boxed
32795 height_special "totalheight"
32798 \begin_layout Plain Layout
32800 This box text is top-aligned.
32805 This is an example text line.
32808 \begin_layout Description
32809 middle This is an example text line.
32811 \begin_inset Box Boxed
32821 height_special "totalheight"
32824 \begin_layout Plain Layout
32826 This box text is middle-aligned.
32831 This is an example text line.
32834 \begin_layout Description
32835 bottom This is an example text line.
32837 \begin_inset Box Boxed
32847 height_special "totalheight"
32850 \begin_layout Plain Layout
32852 This box text is bottom-aligned.
32857 This is an example text line.
32860 \begin_layout Description
32861 stretch This is an example text line.
32863 \begin_inset Box Boxed
32873 height_special "totalheight"
32876 \begin_layout Plain Layout
32881 \begin_layout Plain Layout
32886 \begin_layout Plain Layout
32893 This is an example text line.
32896 \begin_layout Standard
32897 To stretch the box content, it must consist of more than one paragraph.
32898 In the example above every text line is in an own paragraph.
32901 \begin_layout Standard
32902 \begin_inset VSpace bigskip
32905 To align the box content horizontally you can use LyX's paragraph dialog
32906 when you have chosen an
32909 \begin_inset space ~
32917 \begin_layout Standard
32919 \begin_inset Box Boxed
32929 height_special "totalheight"
32932 \begin_layout Plain Layout
32937 \begin_layout Plain Layout
32942 \begin_layout Plain Layout
32952 \begin_layout Standard
32953 If you have not set an
32956 \begin_inset space ~
32961 , you can align the box content horizontally in the box dialog.
32964 \begin_layout Standard
32966 \begin_inset Box Boxed
32976 height_special "totalheight"
32979 \begin_layout Plain Layout
32980 This box text is horizontally stretched.
32988 \begin_layout Subsection
32990 \begin_inset CommandInset label
32992 name "sec:Decoration"
32997 \begin_inset Index idx
33000 \begin_layout Plain Layout
33009 \begin_layout Standard
33010 The type of the box can be specified in the box dialog in the drop-down
33016 The following types are possible:
33019 \begin_layout Description
33021 \begin_inset space ~
33024 frame Nothing is drawn.
33027 \begin_layout Description
33029 \begin_inset space ~
33033 \begin_inset space ~
33036 frame This draws a rectangular frame around the box.
33037 The frame line thickness has the size of
33045 \begin_inset Box Boxed
33055 height_special "totalheight"
33058 \begin_layout Plain Layout
33068 \begin_layout Description
33070 \begin_inset space ~
33074 \begin_inset space ~
33077 thin This draws an oval frame around the box.
33078 The frame line thickness has the size 0.4
33079 \begin_inset space \thinspace{}
33084 \begin_inset Box ovalbox
33094 height_special "totalheight"
33097 \begin_layout Plain Layout
33107 \begin_layout Description
33109 \begin_inset space ~
33113 \begin_inset space ~
33116 thick This draws an oval frame around the box.
33117 The frame line thickness has the size 0.8
33118 \begin_inset space \thinspace{}
33123 \begin_inset Box Ovalbox
33133 height_special "totalheight"
33136 \begin_layout Plain Layout
33146 \begin_layout Description
33148 \begin_inset space ~
33151 shadow This draws a rectangular frame with a shadow around the box.
33152 The frame line thickness has the size of
33158 , the shadow has a width of 4
33159 \begin_inset space \thinspace{}
33164 \begin_inset Box Shadowbox
33174 height_special "totalheight"
33177 \begin_layout Plain Layout
33187 \begin_layout Description
33189 \begin_inset space ~
33192 background This draws a box with a red background.
33193 Unlike colored boxes
33197 \begin_layout Plain Layout
33199 \begin_inset space \thinspace{}
33203 \begin_inset CommandInset ref
33205 reference "sec:Colored-Boxes"
33214 , it always uses the whole column width and the box is set as its own paragraph.
33216 \begin_inset Box Shaded
33226 height_special "totalheight"
33229 \begin_layout Plain Layout
33230 Shaded background box
33238 \begin_layout Description
33240 \begin_inset space ~
33244 \begin_inset space ~
33247 frame This draws a double-line rectangular frame around the box.
33248 The line thickness of the inner frame is 0.75
33249 \begin_inset space \thinspace{}
33258 , the thickness of the outer frame is 1.5
33259 \begin_inset space \thinspace{}
33269 The distance between the lines is 1.5
33270 \begin_inset space \thinspace{}
33280 \begin_inset space \thinspace{}
33284 \begin_inset space \thinspace{}
33288 \begin_inset space \thinspace{}
33293 \begin_inset Box Doublebox
33303 height_special "totalheight"
33306 \begin_layout Plain Layout
33308 Double rectangular box
33316 \begin_layout Standard
33317 \begin_inset VSpace bigskip
33320 LyX's box label will reflect the different frame types.
33321 To be able to use all types, the LaTeX-package
33326 \begin_inset Index idx
33329 \begin_layout Plain Layout
33330 LaTeX-packages ! fancybox
33338 \begin_layout Standard
33339 \begin_inset VSpace bigskip
33342 When you use the decoration
33344 simple rectangular frame
33346 and no inner box, you can allow page breaks within a box.
33347 Note that then, unlike other framed boxes, the frame always uses the whole
33348 column width, the box is set as its own paragraph, and
33360 have no effect on this box type.
33361 The frame line thickness has the size of
33369 \begin_inset Box Framed
33379 height_special "totalheight"
33382 \begin_layout Plain Layout
33383 Allow page break box
33391 \begin_layout Section
33393 \begin_inset Index idx
33396 \begin_layout Plain Layout
33397 Boxes ! Customization
33405 \begin_layout Standard
33406 The default value for the size
33413 \begin_inset space \thinspace{}
33417 It can be changed with the following command in TeX-code to e.
33418 \begin_inset space \thinspace{}
33422 \begin_inset space \space{}
33426 \begin_inset space \thinspace{}
33432 \begin_layout Standard
33442 \begin_layout Standard
33446 \begin_layout Plain Layout
33458 \begin_inset Box Boxed
33468 height_special "totalheight"
33471 \begin_layout Plain Layout
33473 Rectangular box with
33480 \begin_inset space \thinspace{}
33484 \begin_inset space \thinspace{}
33488 \begin_inset space \thinspace{}
33500 \begin_layout Plain Layout
33514 \begin_layout Standard
33515 \begin_inset VSpace bigskip
33518 The space between the frame and the box content is for all frame styles
33520 \begin_inset space \thinspace{}
33524 You can change it by setting the length
33531 For example the command
33534 \begin_layout Standard
33544 \begin_layout Standard
33545 sets the value to 10
33546 \begin_inset space \thinspace{}
33549 pt, as with the following box:
33552 \begin_layout Standard
33556 \begin_layout Plain Layout
33568 \begin_inset Box Boxed
33578 height_special "totalheight"
33581 \begin_layout Plain Layout
33583 Rectangular box with
33590 \begin_inset space \thinspace{}
33594 \begin_inset space \thinspace{}
33598 \begin_inset space \thinspace{}
33610 \begin_layout Plain Layout
33624 \begin_layout Standard
33625 \begin_inset VSpace bigskip
33628 The diameter of the round corners of the oval boxes can be set with the
33639 \begin_layout Standard
33647 \begin_layout Standard
33648 sets the diameter to 1
33649 \begin_inset space \thinspace{}
33656 \begin_layout Standard
33664 \begin_layout Standard
33665 sets the diameter to
33668 \begin_inset space \thinspace{}
33672 \begin_inset space \thinspace{}
33675 minimum(width and height of box)
33687 \begin_layout Standard
33691 \begin_layout Plain Layout
33701 \begin_inset Box Ovalbox
33711 height_special "totalheight"
33714 \begin_layout Plain Layout
33723 \begin_inset space \thinspace{}
33727 \begin_inset space \thinspace{}
33731 \begin_inset space \thinspace{}
33743 \begin_layout Plain Layout
33755 \begin_layout Standard
33756 \begin_inset VSpace bigskip
33759 The size of the shadow can be adjusted by changing the length
33767 \begin_inset space \thinspace{}
33770 pt for the following box by this command:
33773 \begin_layout Standard
33783 \begin_layout Standard
33787 \begin_layout Plain Layout
33799 \begin_inset Box Shadowbox
33809 height_special "totalheight"
33812 \begin_layout Plain Layout
33821 \begin_inset space \thinspace{}
33825 \begin_inset space \thinspace{}
33829 \begin_inset space \thinspace{}
33841 \begin_layout Plain Layout
33855 \begin_layout Standard
33856 \begin_inset VSpace bigskip
33862 \begin_layout Standard
33863 The default value for the size
33870 \begin_inset space \thinspace{}
33874 The default space between the note content and the frame is 9
33875 \begin_inset space \thinspace{}
33878 pt and can be changed with the value of
33885 For example the frame appearance of the following
33889 is set with the TeX-Code commands
33892 \begin_layout Standard
33900 \begin_inset Newline newline
33910 \begin_layout Standard
33914 \begin_layout Plain Layout
33923 \begin_layout Plain Layout
33935 \begin_inset Box Framed
33945 height_special "totalheight"
33948 \begin_layout Plain Layout
33962 \begin_layout Plain Layout
33971 \begin_layout Plain Layout
33985 \begin_layout Standard
33986 \begin_inset VSpace bigskip
33992 \begin_layout Standard
33997 boxes the default space between the box content and the box border is 3
33998 \begin_inset space \thinspace{}
34001 pt and can be changed with the value of
34008 The default background color red can either be changed locally with the
34013 definecolor{shadecolor}
34015 or globally with the menu
34017 Tools\SpecialChar \menuseparator
34018 Preferences\SpecialChar \menuseparator
34019 Colors\SpecialChar \menuseparator
34021 \begin_inset space ~
34033 command is explained in section
34034 \begin_inset space ~
34038 \begin_inset CommandInset ref
34040 reference "sec:Colored-Tables"
34048 \begin_layout Plain Layout
34055 requires the LaTeX-package
34059 in the preamble, see section
34060 \begin_inset space ~
34064 \begin_inset CommandInset ref
34066 reference "sec:Colored-Boxes"
34075 For example the appearance of the following shaded background box is set
34076 with the TeX-Code commands
34079 \begin_layout Standard
34089 \begin_inset Newline newline
34096 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34099 \begin_layout Standard
34103 \begin_layout Plain Layout
34112 \begin_layout Plain Layout
34116 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34122 \begin_inset Box Shaded
34132 height_special "totalheight"
34135 \begin_layout Plain Layout
34138 This is yellow text in a
34148 box with dark green background.
34157 \begin_layout Plain Layout
34166 \begin_layout Plain Layout
34170 definecolor{shadecolor}{rgb}{1,0,0}
34178 \begin_layout Standard
34179 \begin_inset VSpace bigskip
34182 Changed lengths and widths are valid for all boxes following the commands
34186 \begin_layout Section
34188 \begin_inset CommandInset label
34190 name "sec:Minipages"
34195 \begin_inset Index idx
34198 \begin_layout Plain Layout
34207 \begin_layout Standard
34208 Minipages are treated by LaTeX as pages within pages and can therefore for
34209 example have their own footnotes.
34212 \begin_layout Standard
34213 Minipages are useful when you write documents with different languages.
34216 \begin_layout Standard
34217 Below are two example minipages side by side.
34218 Their width is set to 45
34219 \begin_inset space \thinspace{}
34222 col% and they are separated by a horizontal fill, that was inserted via
34225 Insert\SpecialChar \menuseparator
34227 \begin_inset space ~
34230 Formatting\SpecialChar \menuseparator
34232 \begin_inset space ~
34238 \begin_inset Newpage newpage
34244 \begin_layout Standard
34245 \begin_inset Box Frameless
34255 height_special "totalheight"
34258 \begin_layout Plain Layout
34261 Dies ist ein deutscher Text.
34262 Dies ist ein deutscher Text.
34263 Dies ist ein deutscher Text.
34264 Dies ist ein deutscher Text.
34265 Dies ist ein deutscher Text.
34266 Dies ist ein deutscher Text.
34267 Dies ist ein deutscher Text.
34268 Dies ist ein deutscher Text.
34269 Dies ist ein deutscher Text.
34270 Dies ist ein deutscher Text.
34271 Dies ist ein deutscher Text.
34272 Dies ist ein deutscher Text.
34273 Dies ist ein deutscher Text
34277 \begin_layout Plain Layout
34280 Dies ist eine deutsche Fußnote.
34286 Dies ist ein deutscher Text.
34287 Dies ist ein deutscher Text.
34293 \begin_inset space \hfill{}
34297 \begin_inset Box Frameless
34307 height_special "totalheight"
34310 \begin_layout Plain Layout
34311 This is an English Text.
34312 This is an English Text.
34313 This is an English Text.
34314 This is an English Text.
34315 This is an English Text.
34316 This is an English Text.
34317 This is an English Text.
34318 This is an English Text.
34319 This is an English Text.
34320 This is an English Text.
34321 This is an English Text.
34322 This is an English Text.
34323 This is an English Text.
34324 This is an English Text.
34325 This is an English Text.
34326 This is an English Text.
34330 \begin_layout Plain Layout
34331 This is an English footnote.
34336 This is an English Text.
34344 \begin_layout Standard
34345 \begin_inset VSpace bigskip
34348 The document-wide paragraph settings are ignored within minipages.
34349 That means that there will be no space between paragraphs in minipages
34350 although you set it to e.
34351 \begin_inset space \thinspace{}
34355 \begin_inset space \space{}
34362 in the document settings.
34365 \begin_layout Standard
34366 Minipages can also be used to set a background color for text parts, see
34368 \begin_inset space ~
34372 \begin_inset CommandInset ref
34374 reference "sub:Color-for-Paragraphs"
34381 \begin_layout Standard
34382 \begin_inset Note Greyedout
34385 \begin_layout Plain Layout
34390 You cannot have floats or margin notes inside minipages but minipages can
34391 be used inside tables, floats, and other boxes.
34399 \begin_layout Section
34401 \begin_inset CommandInset label
34403 name "sec:Parboxes"
34408 \begin_inset Index idx
34411 \begin_layout Plain Layout
34420 \begin_layout Standard
34421 Parboxes are very similar to minipages with the difference that they cannot
34425 \begin_layout Standard
34427 \begin_inset Box Frameless
34437 height_special "totalheight"
34440 \begin_layout Plain Layout
34441 This a text within a parbox.
34442 This a text within a parbox.
34445 \begin_layout Plain Layout
34446 This footnote won't appear:
34450 \begin_layout Plain Layout
34451 This footnote is inside a parbox and will therefore not appear.
34464 \begin_layout Section
34465 Boxes for Words and Characters
34466 \begin_inset Index idx
34469 \begin_layout Plain Layout
34470 Boxes ! for Characters
34478 \begin_layout Subsection
34479 Prevent Hyphenation
34480 \begin_inset CommandInset label
34482 name "sec:Prevent-Hyphenation"
34487 \begin_inset Index idx
34490 \begin_layout Plain Layout
34491 Boxes ! to Prevent Hyphenation
34499 \begin_layout Standard
34500 You can use the box type
34504 to prevent words or text from being hyphenated.
34505 \begin_inset Newline newline
34508 Here is an example text:
34511 \begin_layout Standard
34512 This line is an example to show how you can prevent the hyphenation of
34513 \begin_inset Quotes eld
34517 \begin_inset Quotes erd
34523 \begin_layout Standard
34524 To prevent the hyphenation of the word
34525 \begin_inset Quotes eld
34529 \begin_inset Quotes erd
34532 , put the word into a box, set the
34535 \begin_inset space ~
34544 and use no explicit width.
34547 \begin_layout Standard
34548 This is the result:
34551 \begin_layout Standard
34552 This line is an example to show how you can prevent the hyphenation of
34553 \begin_inset Box Frameless
34563 height_special "totalheight"
34566 \begin_layout Plain Layout
34567 \begin_inset Quotes eld
34571 \begin_inset Quotes erd
34582 \begin_layout Standard
34583 You can alternatively set the command
34584 \begin_inset Quotes eld
34594 \begin_inset Quotes grd
34597 as TeX-Code directly before the word:
34600 \begin_layout Standard
34601 This line is an example to show how you can prevent the hyphenation of
34602 \begin_inset Quotes eld
34609 \begin_layout Plain Layout
34619 \begin_inset Quotes erd
34625 \begin_layout Standard
34626 Of course the word now protrudes over the side margin.
34627 To avoid this, add via the menu
34629 Insert\SpecialChar \menuseparator
34630 Formatting\SpecialChar \menuseparator
34632 \begin_inset space ~
34636 \begin_inset space ~
34644 arg "newline-insert newline"
34647 ) a line break before the word:
34650 \begin_layout Standard
34651 This line is an example to show how you can prevent the hyphenation of
34652 \begin_inset Newline newline
34656 \begin_inset Box Frameless
34666 height_special "totalheight"
34669 \begin_layout Plain Layout
34670 \begin_inset Quotes eld
34674 \begin_inset Quotes erd
34685 \begin_layout Subsection
34687 \begin_inset CommandInset label
34689 name "sub:Vertical-Alignment"
34694 \begin_inset Index idx
34697 \begin_layout Plain Layout
34698 Boxes ! for Vertical Alignment
34704 \begin_inset Index idx
34707 \begin_layout Plain Layout
34716 \begin_layout Standard
34717 With the help of the command
34723 you can align words, characters or other boxes vertically relative to the
34731 is used with the following scheme:
34734 \begin_layout Standard
34739 raisebox{lift}[height][depth]{box content}
34742 \begin_layout Standard
34743 The lift can be a positive value to raise the box or a negative value to
34747 \begin_layout Standard
34748 To align for example the word
34749 \begin_inset Quotes eld
34753 \begin_inset Quotes erd
34756 so that the bottom of the
34757 \begin_inset Quotes eld
34761 \begin_inset Quotes erd
34765 \begin_inset Quotes eld
34769 \begin_inset Quotes erd
34772 is at the baseline, insert the command
34775 \begin_layout Standard
34785 \begin_layout Standard
34786 in TeX-Code before the word.
34787 After the word insert a closing brace
34788 \begin_inset Quotes eld
34796 \begin_inset Quotes erd
34800 \begin_inset Newline newline
34803 This is the result:
34806 \begin_layout Standard
34807 This is a text line with the word
34811 \begin_layout Plain Layout
34823 \begin_inset Quotes eld
34827 \begin_inset Quotes erd
34834 \begin_layout Plain Layout
34844 \begin_layout Standard
34845 \begin_inset VSpace bigskip
34848 When you raise or lower characters in a line, the line distance will be
34852 \begin_layout Standard
34853 This is a text line with the word
34857 \begin_layout Plain Layout
34869 \begin_inset Quotes eld
34873 \begin_inset Quotes erd
34880 \begin_layout Plain Layout
34888 \begin_inset Newline newline
34891 This is a text line with the word
34895 \begin_layout Plain Layout
34905 \begin_inset Quotes eld
34909 \begin_inset Quotes erd
34916 \begin_layout Plain Layout
34926 \begin_layout Standard
34927 If you want to prevent this for a certain reason, set the box height to
34932 \begin_layout Standard
34942 \begin_layout Standard
34943 This is a text line with the word
34947 \begin_layout Plain Layout
34959 \begin_inset Quotes eld
34963 \begin_inset Quotes erd
34970 \begin_layout Plain Layout
34978 \begin_inset Newline newline
34981 This is a text line with the word
34985 \begin_layout Plain Layout
34989 raisebox{0.5cm}[0pt]{
34995 \begin_inset Quotes eld
34999 \begin_inset Quotes erd
35006 \begin_layout Plain Layout
35016 \begin_layout Section
35018 \begin_inset CommandInset label
35020 name "sec:Colored-Boxes"
35025 \begin_inset Index idx
35028 \begin_layout Plain Layout
35037 \begin_layout Subsection
35039 \begin_inset Index idx
35042 \begin_layout Plain Layout
35051 \begin_layout Standard
35052 To color the background of text the text must be put into a so called
35053 \begin_inset Quotes eld
35057 \begin_inset Quotes erd
35061 This requires that the LaTeX-package
35066 \begin_inset Index idx
35069 \begin_layout Plain Layout
35070 LaTeX-packages ! color
35075 is loaded in the document preamble with the command
35078 \begin_layout Standard
35083 @ifundefined{textcolor}
35084 \begin_inset Newline newline
35088 \begin_inset Phantom HPhantom
35091 \begin_layout Plain Layout
35094 \begin_inset space ~
35104 usepackage{color}}{}
35107 \begin_layout Standard
35112 will be loaded automatically by LyX when you color text.
35116 \begin_layout Plain Layout
35117 To avoid it being loaded twice the command
35131 \begin_layout Standard
35132 \begin_inset VSpace medskip
35135 Colorboxes are created with the command
35142 This will be used with the following scheme:
35145 \begin_layout Standard
35150 colorbox{color}{box content}
35153 \begin_layout Standard
35154 The box content can also be a box and colorboxes can also be within other
35158 \begin_layout Standard
35159 The following colors are predefined:
35160 \begin_inset Newline newline
35199 \begin_inset Newline newline
35202 You can also define your own color as described in section
35203 \begin_inset space ~
35207 \begin_inset CommandInset ref
35209 reference "sec:Colored-Tables"
35216 \begin_layout Standard
35218 \begin_inset space \thinspace{}
35222 \begin_inset space \space{}
35225 a red background for a word, insert the command
35228 \begin_layout Standard
35236 \begin_layout Standard
35237 before the word in TeX-Code.
35238 After the word insert a closing brace
35239 \begin_inset Quotes eld
35247 \begin_inset Quotes erd
35251 \begin_inset Newline newline
35254 This is the result:
35257 \begin_layout Standard
35258 This is a line where the word
35262 \begin_layout Plain Layout
35272 \begin_inset Quotes eld
35276 \begin_inset Quotes erd
35283 \begin_layout Plain Layout
35290 has a red background.
35293 \begin_layout Standard
35294 \begin_inset VSpace bigskip
35297 If you would like the box frame in a different color, you can use the command
35304 with the following scheme:
35307 \begin_layout Standard
35312 fcolorbox{frame color}{box color}{box content}
35315 \begin_layout Standard
35329 The frame thickness and the space between the frame and the box content
35330 can be adjusted with the lengths
35342 , respectively, as described in section
35343 \begin_inset space ~
35347 \begin_inset CommandInset ref
35349 reference "sec:Decoration"
35356 \begin_layout Standard
35357 For the following example the command
35360 \begin_layout Standard
35365 fcolorbox{cyan}{magenta}{
35368 \begin_layout Standard
35372 \begin_layout Standard
35373 Here is an example where the frame line thickness was set to 1
35374 \begin_inset space \thinspace{}
35378 \begin_inset Newline newline
35385 \begin_layout Plain Layout
35400 \begin_layout Plain Layout
35404 fcolorbox{cyan}{magenta}{
35409 This is text within a colored, framed box.
35413 \begin_layout Plain Layout
35423 \begin_layout Standard
35424 \begin_inset VSpace bigskip
35427 Of course you can also have colored text inside a colorbox:
35428 \begin_inset Newline newline
35435 \begin_layout Plain Layout
35439 fcolorbox{cyan}{magenta}{
35446 This is colored text within a colored, framed box.
35452 \begin_layout Plain Layout
35463 \begin_layout Plain Layout
35477 \begin_layout Standard
35478 \begin_inset VSpace medskip
35484 \begin_layout Standard
35485 \begin_inset Note Greyedout
35488 \begin_layout Plain Layout
35493 Text in colorboxes cannot have line breaks.
35494 To color multiple text lines or paragraphs, use a box inside a colorbox
35495 as described in the following.
35503 \begin_layout Subsection
35504 Color for Paragraphs
35505 \begin_inset CommandInset label
35507 name "sub:Color-for-Paragraphs"
35512 \begin_inset Index idx
35515 \begin_layout Plain Layout
35516 Color ! for Paragraphs
35524 \begin_layout Standard
35525 To set the background color for more than one text line, put the text into
35527 Before the minipage insert the
35536 \begin_layout Standard
35544 \begin_layout Standard
35546 After the minipage insert a closing brace
35547 \begin_inset Quotes eld
35555 \begin_inset Quotes erd
35561 \begin_layout Standard
35565 \begin_layout Plain Layout
35569 colorbox{lightgrey}{
35575 \begin_inset Box Frameless
35585 height_special "totalheight"
35588 \begin_layout Plain Layout
35589 This is text with background color.
35590 This is text with background color.
35593 \begin_layout Plain Layout
35594 \begin_inset VSpace defskip
35597 The text can have footnotes
35601 \begin_layout Plain Layout
35602 Another example footnote
35607 and can include tables and figures.
35610 \begin_layout Plain Layout
35612 \begin_inset Tabular
35613 <lyxtabular version="3" rows="3" columns="3">
35614 <features rotate="0" tabularvalignment="middle">
35615 <column alignment="center" valignment="top">
35616 <column alignment="center" valignment="top">
35617 <column alignment="center" valignment="top">
35619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35622 \begin_layout Plain Layout
35628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35631 \begin_layout Plain Layout
35637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35640 \begin_layout Plain Layout
35648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35651 \begin_layout Plain Layout
35657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35660 \begin_layout Plain Layout
35662 \begin_inset Quotes erd
35670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35673 \begin_layout Plain Layout
35681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35684 \begin_layout Plain Layout
35690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35693 \begin_layout Plain Layout
35699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35702 \begin_layout Plain Layout
35722 \begin_layout Plain Layout
35732 \begin_layout Section
35733 Rotated and Scaled Boxes
35736 \begin_layout Standard
35737 To use the commands described in this section, the LaTeX-package
35742 \begin_inset Index idx
35745 \begin_layout Plain Layout
35746 LaTeX-packages ! graphicx
35751 needs to be loaded in the document preamble with the command
35754 \begin_layout Standard
35759 @ifundefined{rotatebox}
35760 \begin_inset Newline newline
35764 \begin_inset Phantom HPhantom
35767 \begin_layout Plain Layout
35770 \begin_inset space ~
35780 usepackage{graphicx}}{}
35783 \begin_layout Standard
35784 \begin_inset Note Greyedout
35787 \begin_layout Plain Layout
35792 Not all DVI-viewers are able to display rotated or scaled material.
35800 \begin_layout Standard
35801 \begin_inset Note Greyedout
35804 \begin_layout Plain Layout
35809 Floats are not allowed inside a rotated or scaled box.
35817 \begin_layout Subsection
35819 \begin_inset Index idx
35822 \begin_layout Plain Layout
35829 \begin_inset Index idx
35832 \begin_layout Plain Layout
35841 \begin_layout Standard
35842 To rotate material, you can put it into a rotated box.
35843 Such a box is created using the command
35849 in TeX-Code with the following scheme:
35852 \begin_layout Standard
35857 rotatebox[rotation origin]{rotation angle}{box content}
35860 \begin_layout Standard
35861 The rotation origin is specified in the form
35866 The following positions are possible:
35886 (top), along with meaningful combinations of the four base positions.
35891 means that the rotation origin is at the top left corner of the box.
35892 When no rotation origin is specified, the position
35897 The rotation angle is a number that can be negative that specifies the
35899 The rotation direction is counterclockwise.
35902 \begin_layout Standard
35903 In the following example the command
35907 rotatebox[origin=c]{60}{
35909 was inserted as TeX-Code before the text
35910 \begin_inset Quotes eld
35914 \begin_inset Quotes erd
35917 ; after the text the box was closed by a closing brace
35924 \begin_layout Standard
35929 \begin_layout Plain Layout
35933 rotatebox[origin=c]{60}{
35942 \begin_layout Plain Layout
35952 \begin_layout Standard
35953 The box content can also be another box or an inline formula:
35956 \begin_layout Standard
35961 \begin_layout Plain Layout
35965 rotatebox[origin=r]{-60}{
35971 \begin_inset Box Doublebox
35981 height_special "totalheight"
35984 \begin_layout Plain Layout
35994 \begin_layout Plain Layout
36005 \begin_layout Plain Layout
36009 rotatebox[origin=lb]{60}{
36015 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36022 \begin_layout Plain Layout
36032 \begin_layout Standard
36033 or an image or table:
36036 \begin_layout Standard
36041 \begin_layout Plain Layout
36045 rotatebox[origin=lb]{90}{
36051 \begin_inset Graphics
36052 filename clipart/platypus.eps
36062 \begin_layout Plain Layout
36069 with a rotated image
36073 \begin_layout Plain Layout
36077 rotatebox[origin=l]{-90}{
36083 \begin_inset Tabular
36084 <lyxtabular version="3" rows="2" columns="2">
36085 <features rotate="0" tabularvalignment="middle">
36086 <column alignment="center" valignment="top">
36087 <column alignment="center" valignment="top">
36089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36092 \begin_layout Plain Layout
36098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36101 \begin_layout Plain Layout
36109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36112 \begin_layout Plain Layout
36118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36121 \begin_layout Plain Layout
36136 \begin_layout Plain Layout
36144 \begin_inset Index idx
36147 \begin_layout Plain Layout
36154 \begin_inset Index idx
36157 \begin_layout Plain Layout
36158 Table Customization ! Rotating
36166 \begin_layout Subsection
36168 \begin_inset Index idx
36171 \begin_layout Plain Layout
36178 \begin_inset Index idx
36181 \begin_layout Plain Layout
36190 \begin_layout Standard
36191 To scale material the commands
36203 can be used as TeX-Code.
36206 \begin_layout Standard
36213 is used with the following scheme:
36216 \begin_layout Standard
36221 scalebox{horizontal}[vertical]{box content}
36224 \begin_layout Standard
36225 Horizontal and vertical are the corresponding scaling factors.
36226 If no vertical scaling factor is given, the horizontal factor will also
36227 be used as the vertical one.
36230 \begin_layout Standard
36237 creates for example a double size
36241 \begin_layout Plain Layout
36254 \begin_layout Plain Layout
36261 , compared with the document text size.
36264 \begin_layout Standard
36269 scalebox{2}[1]{Hello}
36271 on the other hand distorts the
36275 \begin_layout Plain Layout
36288 \begin_layout Plain Layout
36298 \begin_layout Standard
36299 If the scaling factor is negative, the box content will be mirrored.
36300 Therefore the command
36304 scalebox{-1}[1]{Hello}
36306 can be used to create mirror writing:
36310 \begin_layout Plain Layout
36323 \begin_layout Plain Layout
36333 \begin_layout Standard
36338 scalebox{1}[-1]{Hello}
36344 \begin_layout Plain Layout
36357 \begin_layout Plain Layout
36367 \begin_layout Standard
36372 scalebox{-1}[1]{box content}
36374 there exists the command
36375 \begin_inset Newline newline
36382 reflectbox{box content}
36387 \begin_layout Standard
36388 \begin_inset VSpace bigskip
36397 is used to scale the box to a defined width and height.
36398 The command scheme is:
36401 \begin_layout Standard
36406 resizebox{width}{height}{box content}
36409 \begin_layout Standard
36410 If one of the two command arguments given is an exclamation mark
36414 , the size is set so that the aspect ratio of the box content is kept.
36417 \begin_layout Standard
36422 resizebox{2cm}{1cm}{Hello}
36428 \begin_layout Plain Layout
36432 resizebox{2cm}{1cm}{
36441 \begin_layout Plain Layout
36449 \begin_inset Newline newline
36456 resizebox{2cm}{!}{Hello}
36462 \begin_layout Plain Layout
36475 \begin_layout Plain Layout
36485 \begin_layout Standard
36486 \begin_inset VSpace bigskip
36490 \begin_inset Note Greyedout
36493 \begin_layout Plain Layout
36510 are set to zero, no LaTeX-errors occur when exporting the document but
36511 the exported files can not or only partly be displayed.
36519 \begin_layout Standard
36520 \begin_inset VSpace bigskip
36526 \begin_layout Standard
36527 The boxes can be combined in any order.
36529 \begin_inset space \thinspace{}
36533 \begin_inset space \space{}
36537 \begin_inset Newline newline
36544 rotatebox[origin=c]{-45}{
36548 reflectbox{Hello}}}
36549 \begin_inset Newline newline
36557 \begin_layout Standard
36562 \begin_layout Plain Layout
36566 rotatebox[origin=c]{-45}{
36579 \begin_layout Plain Layout
36589 \begin_layout Standard
36591 Images, tables, and inline formulas are allowed as box content:
36594 \begin_layout Standard
36599 \begin_layout Plain Layout
36603 rotatebox[origin=c]{-30}{
36613 \begin_inset Graphics
36614 filename clipart/platypus.eps
36624 \begin_layout Plain Layout
36635 \begin_layout Plain Layout
36639 rotatebox[origin=c]{-45}{
36649 \begin_inset Tabular
36650 <lyxtabular version="3" rows="2" columns="2">
36651 <features rotate="0" tabularvalignment="middle">
36652 <column alignment="center" valignment="top">
36653 <column alignment="center" valignment="top">
36655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36658 \begin_layout Plain Layout
36664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36667 \begin_layout Plain Layout
36675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36678 \begin_layout Plain Layout
36684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36687 \begin_layout Plain Layout
36702 \begin_layout Plain Layout
36713 \begin_layout Plain Layout
36717 rotatebox[origin=c]{-45}{
36727 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36734 \begin_layout Plain Layout
36742 \begin_inset Index idx
36745 \begin_layout Plain Layout
36752 \begin_inset Index idx
36755 \begin_layout Plain Layout
36756 Table Customization ! Scaling
36764 \begin_layout Standard
36765 When the global formula style
36769 is used in the document
36773 \begin_layout Plain Layout
36775 \begin_inset Quotes eld
36779 \begin_inset Quotes erd
36782 is added to the document class options.
36787 , display style formulas can also be scaled.
36790 \begin_layout Chapter
36791 Objects Surrounded by Text
36792 \begin_inset Index idx
36795 \begin_layout Plain Layout
36804 \begin_layout Section
36806 \begin_inset CommandInset label
36808 name "sec:Wrap-Floats"
36813 \begin_inset Index idx
36816 \begin_layout Plain Layout
36817 Floats ! Wrap Floats
36823 \begin_inset Index idx
36826 \begin_layout Plain Layout
36827 Surrounded by text ! Wrap Floats
36835 \begin_layout Standard
36836 \begin_inset Wrap figure
36843 \begin_layout Plain Layout
36844 \begin_inset Graphics
36845 filename clipart/mobius.eps
36847 scaleBeforeRotation
36848 rotateOrigin center
36855 \begin_layout Plain Layout
36856 \begin_inset Caption Standard
36858 \begin_layout Plain Layout
36859 \begin_inset CommandInset label
36861 name "fig:This-is-a"
36865 This is a figure wrap float.
36875 This float type is used if you want to wrap text around a figure or table
36876 so that it only occupies some fraction of the column width.
36877 It can be inserted using the menu
36879 Insert\SpecialChar \menuseparator
36880 Floats\SpecialChar \menuseparator
36882 \begin_inset space ~
36886 \begin_inset space ~
36894 \begin_inset space ~
36898 \begin_inset space ~
36903 if the LaTeX-package
36908 \begin_inset Index idx
36911 \begin_layout Plain Layout
36912 LaTeX-packages ! wrapfig
36921 \begin_layout Plain Layout
36922 Installing a LaTeX-package is explained it in the
36925 \begin_inset space ~
36935 The settings of the float can be modified by right-clicking on the float
36937 The mandatory settings are the float
36950 that specifies how much the float is set into the paragraph
36951 \begin_inset space \thinspace{}
36955 \begin_inset space \thinspace{}
36958 page margin, and the
36961 \begin_inset space ~
36966 that specifies how many text lines the float will approximately need.
36967 The line span is often hard to approximate; so it is better only to use
36968 it when you encounter float placement problems.
36969 You can furthermore decide if LaTeX is allowed to let the float float within
36970 the paragraph or to surrounding paragraphs.
36972 \begin_inset space ~
36976 \begin_inset CommandInset ref
36978 reference "fig:This-is-a"
36982 is an example text wrap float with a width of 40
36983 \begin_inset space \thinspace{}
36987 \begin_inset space \thinspace{}
36990 cm overhang, set to the left.
36993 \begin_layout Standard
36994 \begin_inset Note Greyedout
36997 \begin_layout Plain Layout
37003 \begin_inset space ~
37006 wrap float floats are fragile! E.
37007 \begin_inset space \thinspace{}
37011 \begin_inset space \space{}
37014 having a figure too close to the bottom of the page can mess things up in
37015 such a way that the float does not appear in the output or that it is placed
37016 over some other text.
37024 \begin_layout Standard
37025 In general, the following applies for wrap floats:
37028 \begin_layout Itemize
37029 They should not be placed in paragraphs that run over a page break.
37030 That means that wrap floats are better inserted in their exact place when
37031 the document is almost finished and you are able to estimate where page
37032 breaks will appear.
37035 \begin_layout Itemize
37036 They should either be placed in their own paragraph before the paragraph
37037 where they should wrap into or within a paragraph.
37040 \begin_layout Itemize
37041 In consecutive paragraphs they may cause troubles, so ensure that there
37042 is a text paragraph between them as separator.
37045 \begin_layout Itemize
37046 They are not allowed in section headings or tables.
37049 \begin_layout Itemize
37050 Their numbering and referencing works as described in chap.
37051 \begin_inset space \thinspace{}
37055 \begin_inset CommandInset ref
37057 reference "chap:Floats"
37064 \begin_layout Section
37065 Surrounded Fixed Objects
37066 \begin_inset Index idx
37069 \begin_layout Plain Layout
37070 Surrounded by text ! Fixed objects
37078 \begin_layout Standard
37079 The wrap floats described in sec.
37080 \begin_inset space \thinspace{}
37084 \begin_inset CommandInset ref
37086 reference "sec:Wrap-Floats"
37090 have these positions in the paragraph:
37093 \begin_layout Standard
37096 \begin_inset Tabular
37097 <lyxtabular version="3" rows="2" columns="2">
37098 <features rotate="0" tabularvalignment="middle">
37099 <column alignment="center" valignment="top">
37100 <column alignment="center" valignment="top">
37102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37105 \begin_layout Plain Layout
37106 \begin_inset Graphics
37107 filename ../images/dialog-show-new-inset_graphics.png
37109 scaleBeforeRotation
37118 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37121 \begin_layout Plain Layout
37129 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37132 \begin_layout Plain Layout
37138 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37141 \begin_layout Plain Layout
37153 \begin_inset Tabular
37154 <lyxtabular version="3" rows="2" columns="2">
37155 <features rotate="0" tabularvalignment="middle">
37156 <column alignment="center" valignment="top">
37157 <column alignment="center" valignment="top">
37159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37162 \begin_layout Plain Layout
37168 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37171 \begin_layout Plain Layout
37172 \begin_inset Graphics
37173 filename ../images/dialog-show-new-inset_graphics.png
37175 scaleBeforeRotation
37186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37189 \begin_layout Plain Layout
37195 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37198 \begin_layout Plain Layout
37212 \begin_layout Standard
37213 To get an object exactly at the position where it is inserted, for example
37214 to get one of these positions:
37215 \begin_inset VSpace defskip
37221 \begin_layout Standard
37224 \begin_inset Tabular
37225 <lyxtabular version="3" rows="2" columns="2">
37226 <features rotate="0" tabularvalignment="middle">
37227 <column alignment="center" valignment="top">
37228 <column alignment="center" valignment="top">
37230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37233 \begin_layout Plain Layout
37239 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37242 \begin_layout Plain Layout
37250 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37253 \begin_layout Plain Layout
37254 \begin_inset Graphics
37255 filename ../images/dialog-show-new-inset_graphics.png
37257 scaleBeforeRotation
37266 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37269 \begin_layout Plain Layout
37281 \begin_inset Tabular
37282 <lyxtabular version="3" rows="2" columns="2">
37283 <features rotate="0" tabularvalignment="middle">
37284 <column alignment="center" valignment="top">
37285 <column alignment="center" valignment="top">
37287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37290 \begin_layout Plain Layout
37296 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37299 \begin_layout Plain Layout
37307 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37310 \begin_layout Plain Layout
37316 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37319 \begin_layout Plain Layout
37320 \begin_inset Graphics
37321 filename ../images/dialog-show-new-inset_graphics.png
37323 scaleBeforeRotation
37338 \begin_inset Tabular
37339 <lyxtabular version="3" rows="2" columns="3">
37340 <features rotate="0" tabularvalignment="middle">
37341 <column alignment="center" valignment="top">
37342 <column alignment="center" valignment="top">
37343 <column alignment="center" valignment="top">
37345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37348 \begin_layout Plain Layout
37354 <cell alignment="center" valignment="top" topline="true" usebox="none">
37357 \begin_layout Plain Layout
37358 \begin_inset Graphics
37359 filename ../images/dialog-show-new-inset_graphics.png
37361 scaleBeforeRotation
37370 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37373 \begin_layout Plain Layout
37381 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37384 \begin_layout Plain Layout
37390 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37393 \begin_layout Plain Layout
37399 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37402 \begin_layout Plain Layout
37414 \begin_inset Tabular
37415 <lyxtabular version="3" rows="2" columns="3">
37416 <features rotate="0" tabularvalignment="middle">
37417 <column alignment="center" valignment="top">
37418 <column alignment="center" valignment="top">
37419 <column alignment="center" valignment="top">
37421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37424 \begin_layout Plain Layout
37430 <cell alignment="center" valignment="top" topline="true" usebox="none">
37433 \begin_layout Plain Layout
37439 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37442 \begin_layout Plain Layout
37450 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37453 \begin_layout Plain Layout
37459 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37462 \begin_layout Plain Layout
37463 \begin_inset Graphics
37464 filename ../images/dialog-show-new-inset_graphics.png
37466 scaleBeforeRotation
37475 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37478 \begin_layout Plain Layout
37492 \begin_layout Standard
37495 \begin_inset Tabular
37496 <lyxtabular version="3" rows="3" columns="2">
37497 <features rotate="0" tabularvalignment="middle">
37498 <column alignment="center" valignment="top">
37499 <column alignment="center" valignment="top">
37501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37504 \begin_layout Plain Layout
37510 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37513 \begin_layout Plain Layout
37521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37524 \begin_layout Plain Layout
37525 \begin_inset Graphics
37526 filename ../images/dialog-show-new-inset_graphics.png
37528 scaleBeforeRotation
37537 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37540 \begin_layout Plain Layout
37548 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37551 \begin_layout Plain Layout
37557 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37560 \begin_layout Plain Layout
37572 \begin_inset Tabular
37573 <lyxtabular version="3" rows="3" columns="3">
37574 <features rotate="0" tabularvalignment="middle">
37575 <column alignment="center" valignment="top">
37576 <column alignment="center" valignment="top">
37577 <column alignment="center" valignment="top">
37579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37582 \begin_layout Plain Layout
37588 <cell alignment="center" valignment="top" topline="true" usebox="none">
37591 \begin_layout Plain Layout
37597 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37600 \begin_layout Plain Layout
37608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37611 \begin_layout Plain Layout
37617 <cell alignment="center" valignment="top" usebox="none">
37620 \begin_layout Plain Layout
37621 \begin_inset Graphics
37622 filename ../images/dialog-show-new-inset_graphics.png
37624 scaleBeforeRotation
37633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37636 \begin_layout Plain Layout
37644 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37647 \begin_layout Plain Layout
37653 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37656 \begin_layout Plain Layout
37662 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37665 \begin_layout Plain Layout
37677 \begin_inset Tabular
37678 <lyxtabular version="3" rows="3" columns="2">
37679 <features rotate="0" tabularvalignment="middle">
37680 <column alignment="center" valignment="top">
37681 <column alignment="center" valignment="top">
37683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37686 \begin_layout Plain Layout
37692 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37695 \begin_layout Plain Layout
37703 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37706 \begin_layout Plain Layout
37712 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37715 \begin_layout Plain Layout
37716 \begin_inset Graphics
37717 filename ../images/dialog-show-new-inset_graphics.png
37719 scaleBeforeRotation
37730 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37733 \begin_layout Plain Layout
37739 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37742 \begin_layout Plain Layout
37756 \begin_layout Standard
37758 you can use the LaTeX-package
37763 \begin_inset Index idx
37766 \begin_layout Plain Layout
37767 LaTeX-packages ! picinpar
37773 Here is an example:
37776 \begin_layout Standard
37780 \begin_layout Plain Layout
37790 \begin_inset Note Note
37793 \begin_layout Plain Layout
37794 The following section will only be displayed when the LaTeX-package
37806 \begin_layout Standard
37810 \begin_layout Plain Layout
37814 begin{window}[2,c,{
37820 \begin_inset Graphics
37821 filename clipart/mobius.eps
37824 scaleBeforeRotation
37825 rotateOrigin center
37833 \begin_layout Plain Layout
37838 \begin_layout Plain Layout
37847 It was in the spring of the year 1894 that all London was interested, and
37848 the fashionable world dismayed, by the murder of the Honourable Ronald
37849 Adair under most unusual and inexplicable circumstances.
37850 The public has already learned those particulars of the crime which
37856 \begin_layout Plain Layout
37867 came out in the police investigation, but a good deal was suppressed upon
37868 that occasion, since the case for the prosecution was so overwhelmingly
37869 strong that it was not necessary to bring forward all the facts.
37870 Only now, at the end of nearly ten years, am I allowed to supply those
37871 missing links which make up the whole of that remarkable chain.
37877 \begin_layout Plain Layout
37889 \begin_layout Standard
37893 \begin_layout Plain Layout
37902 Footnote of the paragraph with the fixed object.
37906 \begin_layout Plain Layout
37916 \begin_layout Standard
37917 Surrounded fixed objects are used to let text float around them, at which
37918 the object's position in the paragraph can be determined by the number
37920 In contrary to floats is it not possible to have a numbered caption.
37923 \begin_layout Standard
37924 A fixed object is inserted by adding the command
37927 \begin_layout Standard
37932 begin{window}[2,c,{
37935 \begin_layout Standard
37936 as TeX-Code at the beginning of the paragraph.
37937 The first parameter in the bracket, here '2', defines the number of lines
37938 above the object, the second, here 'c', the position of the object.
37939 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37940 Behind the command you insert the object.
37941 In this example an image with a width of 40
37942 \begin_inset space \thinspace{}
37945 % of the text column width was inserted.
37946 The object can also be a table, a box or an equation.
37947 Behind the object the command
37950 \begin_layout Standard
37953 },description text]
37954 \begin_inset Newline newline
37960 \begin_layout Standard
37963 \begin_inset Quotes eld
37971 \begin_inset Quotes erd
37974 is in the second line.
37975 The description text is optional.
37976 The text surrounding the object must be in the same paragraph as the object,
37977 so it must begin directly after the
37982 At the end of the paragraph insert the command:
37985 \begin_layout Standard
37993 \begin_layout Standard
37994 Within a paragraph with a fixed object, you cannot insert footnotes in the
37996 You have to use instead the command
38002 inside the paragraph and outside the command
38008 as described in sec.
38009 \begin_inset space \thinspace{}
38013 \begin_inset CommandInset ref
38015 reference "sec:Footnotes"
38022 \begin_layout Standard
38026 \begin_layout Plain Layout
38036 \begin_inset Note Note
38039 \begin_layout Plain Layout
38040 The following will be displayed when the LaTeX-package
38052 \begin_layout Standard
38053 You need to install the LaTeX-package
38057 to see the following part of this section in the output.
38060 \begin_layout Standard
38064 \begin_layout Plain Layout
38076 \begin_layout Section
38078 \begin_inset Index idx
38081 \begin_layout Plain Layout
38088 \begin_inset Index idx
38091 \begin_layout Plain Layout
38092 Surrounded by text ! Initials
38100 \begin_layout Standard
38101 To use initials, you must have the LaTeX-package
38106 \begin_inset Index idx
38109 \begin_layout Plain Layout
38110 LaTeX-packages ! lettrine
38115 installed and use the module
38119 in your document (menu
38121 Document\SpecialChar \menuseparator
38122 Settings\SpecialChar \menuseparator
38126 To insert an initial, use the style
38131 This style has a mandatory and two optional arguments.
38132 The arguments are inserted via the
38137 The mandatory argument
38141 contains the letter(s) that is the initial, the argument
38144 \begin_inset space ~
38148 \begin_inset space ~
38153 contains the rest of the word or text of the initial letter(s).
38158 contains parameters to modify the initial.
38159 For more information about the possible parameters see the documentation
38165 \begin_inset CommandInset citation
38172 The style itself contains the text that is surrounding the initial.
38173 The usual style is hereby that the word whose first letter is the initial,
38181 \begin_layout Standard
38182 Here are some examples:
38185 \begin_layout Standard
38189 \begin_layout Plain Layout
38199 \begin_inset Note Note
38202 \begin_layout Plain Layout
38203 The following section will only be displayed when the LaTeX-package
38215 \begin_layout Enumerate
38216 No optional argument, the initial is the letter 'I' in the math font
38217 \begin_inset Formula $\mathfrak{Fraktur}$
38224 \begin_layout Initial
38225 \begin_inset Argument 2
38228 \begin_layout Plain Layout
38229 \begin_inset Formula $\mathfrak{I}$
38238 \begin_inset Argument 3
38241 \begin_layout Plain Layout
38247 was in the spring of the year 1894 that all London was interested, and
38248 the fashionable world dismayed, by the murder of the Honourable Ronald
38249 Adair under most unusual and inexplicable circumstances.
38250 The public has already learned those particulars of the crime which came
38251 out in the police investigation, but a good deal was suppressed upon that
38252 occasion, since the case for the prosecution was so overwhelmingly strong
38253 that it was not necessary to bring forward all the facts.
38254 \begin_inset Newpage newpage
38261 \begin_layout Enumerate
38262 Only one line is surrounding the initial, which is formed by two letters
38263 in standard font and no text is printed in small caps:
38267 \begin_layout Initial
38268 \begin_inset Argument 1
38271 \begin_layout Plain Layout
38278 \begin_inset Argument 2
38281 \begin_layout Plain Layout
38287 was in the spring of the year 1894 that all London was interested, and
38288 the fashionable world dismayed, by the murder of the Honourable Ronald
38289 Adair under most unusual and inexplicable circumstances.
38290 The public has already learned those particulars of the crime which came
38291 out in the police investigation, but a good deal was suppressed upon that
38292 occasion, since the case for the prosecution was so overwhelmingly strong
38293 that it was not necessary to bring forward all the facts.
38297 \begin_layout Enumerate
38298 Magenta, hanging initial over 3
38299 \begin_inset space ~
38302 lines in the math font
38303 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
38307 \begin_inset Quotes eld
38310 t was in the spring
38311 \begin_inset Quotes erd
38318 ; to color the initial, you must insert this command before the initial:
38319 \begin_inset Newline newline
38333 \begin_inset Newline newline
38341 \begin_inset Quotes eld
38345 \begin_inset Quotes erd
38349 \begin_inset Quotes eld
38353 \begin_inset Quotes erd
38357 \begin_inset Quotes eld
38361 \begin_inset Quotes erd
38365 \begin_inset Quotes eld
38369 \begin_inset Quotes erd
38373 \begin_inset Quotes eld
38377 \begin_inset Quotes erd
38381 \begin_inset Quotes eld
38385 \begin_inset Quotes erd
38389 \begin_inset Quotes eld
38393 \begin_inset Quotes erd
38397 \begin_inset Quotes eld
38401 \begin_inset Quotes erd
38404 , and add this command to the document preamble:
38405 \begin_inset Newline newline
38412 @ifundefined{textcolor}
38413 \begin_inset Newline newline
38417 \begin_inset space ~
38422 usepackage{color}}{}
38426 \begin_layout Standard
38430 \begin_layout Plain Layout
38444 \begin_inset Note Note
38447 \begin_layout Plain Layout
38448 makes the initial magenta
38456 \begin_layout Initial
38457 \begin_inset Argument 1
38460 \begin_layout Plain Layout
38461 lines=3, lhang=0.33, loversize=0.25
38467 \begin_inset Argument 2
38470 \begin_layout Plain Layout
38471 \begin_inset Formula $\mathcal{I}$
38480 \begin_inset Argument 3
38483 \begin_layout Plain Layout
38484 t was in the spring
38489 of the year 1894 that all London was interested, and the fashionable world
38490 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38491 and inexplicable circumstances.
38492 The public has already learned those particulars of the crime which came
38493 out in the police investigation, but a good deal was suppressed upon that
38494 occasion, since the case for the prosecution was so overwhelmingly strong
38495 that it was not necessary to bring forward all the facts.
38499 \begin_layout Standard
38503 \begin_layout Plain Layout
38513 \begin_inset Note Note
38516 \begin_layout Plain Layout
38517 The following will be displayed when the LaTeX-package
38529 \begin_layout Standard
38530 You need to install the LaTeX-package
38534 to see the following part of this section in the output.
38537 \begin_layout Standard
38541 \begin_layout Plain Layout
38553 \begin_layout Chapter
38554 External Document Parts
38555 \begin_inset Index idx
38558 \begin_layout Plain Layout
38559 External Document Parts
38567 \begin_layout Standard
38570 Insert\SpecialChar \menuseparator
38573 you can insert external material into your document.
38577 \begin_layout Description
38579 \begin_inset space ~
38582 Document Another LyX document; its content is directly inserted to your
38586 \begin_layout Description
38588 \begin_inset space ~
38591 Text A text document; each line is inserted in your document as a separate
38595 \begin_layout Description
38597 \begin_inset space ~
38601 \begin_inset space ~
38605 \begin_inset space ~
38608 Lines A text document; text lines are inserted in your document continuously
38609 but an empty text line creates a new paragraph.
38612 \begin_layout Description
38614 \begin_inset space ~
38617 Material Files in various formats.
38620 \begin_layout Description
38622 \begin_inset space ~
38625 Document LyX or LaTeX-documents.
38628 \begin_layout Section
38630 \begin_inset Index idx
38633 \begin_layout Plain Layout
38634 External Document Parts ! External Material
38642 \begin_layout Standard
38643 The external material feature allows you to insert files into your document
38644 without converting them to a format that can be read by the document output
38646 LyX takes care of the necessary conversions.
38647 This is similar to images that can be inserted in various image formats
38649 When you have enabled Instant Preview in LyX's preferences under
38652 \begin_inset space ~
38656 \begin_inset space ~
38659 feel\SpecialChar \menuseparator
38662 , the external material types Dia and Xfig are directly shown in LyX.
38665 \begin_layout Standard
38666 External material can be inserted via the
38670 dialog that is accessible with the menu
38672 Insert\SpecialChar \menuseparator
38673 File\SpecialChar \menuseparator
38675 \begin_inset space ~
38681 Currently the following file types (
38688 \begin_layout Description
38689 ChessDiagram This template supports chess position diagrams made with the
38693 \begin_inset CommandInset href
38696 target "http://en.wikipedia.org/wiki/XBoard"
38705 \begin_layout Description
38706 Date This inserts the date in the form
38711 This is a date inserted as external material:
38712 \begin_inset External
38719 \begin_inset space ~
38723 \begin_inset Note Note
38726 \begin_layout Plain Layout
38727 Remove the protected space when bug 4398 is fixed!
38733 \begin_inset Newline newline
38736 The date is not shown within LyX, only in the output.
38737 There are two other methods of inserting a date: Via menu
38739 Insert\SpecialChar \menuseparator
38742 and with the LaTeX command
38749 The different methods are compared in Table
38750 \begin_inset space ~
38754 \begin_inset CommandInset ref
38756 reference "tab:Comparison-of-the"
38763 \begin_layout Description
38764 Dia This template supports diagrams created with the program
38767 \begin_inset CommandInset href
38770 target "http://en.wikipedia.org/wiki/Dia_(software)"
38779 \begin_layout Description
38780 GnumericSpreadsheet With this template you can insert spreadsheets
38781 \begin_inset space \thinspace{}
38785 \begin_inset space \thinspace{}
38788 tables in the format of
38791 \begin_inset CommandInset href
38794 target "http://en.wikipedia.org/wiki/Gnumeric"
38801 \begin_inset CommandInset href
38803 name "OpenDocument"
38804 target "http://en.wikipedia.org/wiki/OpenDocument"
38809 \begin_inset CommandInset href
38811 name "Microsoft Office XML"
38812 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38817 \begin_inset CommandInset href
38819 name "Office Open XML"
38820 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38825 For this feature LyX must have found the program
38829 during its configuration.
38830 This program is part of Gnumeric, so that you must have Gnumeric installed,
38831 also if you don't have tables in the Gnumeric format.
38832 For examples and possible limitations have a look at LyX's example file
38840 \begin_layout Description
38841 LilyPond This template is used for music notation typeset with the program
38842 \begin_inset Newline linebreak
38848 \begin_inset CommandInset href
38851 target "http://en.wikipedia.org/wiki/LilyPond"
38858 For LyX's extended support for LilyPond have a look at LyX's example file
38866 \begin_layout Description
38867 PDFPages With this template you can insert PDF documents to your document.
38868 To specify the range of pages that should be included, use the option
38878 LaTeX and LyX options
38881 The argument of this option is a comma separated list, containing page
38882 numbers (insert as option
38886 ), ranges of page numbers (
38890 ) or any combination.
38891 To insert empty pages use {}.
38893 \begin_inset space \thinspace{}
38897 \begin_inset space ~
38902 pages={3,{},8-11,15}
38904 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38905 Page ranges are specified in the syntax
38914 This selects all pages from
38927 defaults to the first page; omitting
38931 defaults to the last page of the document.
38932 The last page can also be selected with the keyword
38937 (This is only permitted in a page range.) So
38941 will insert all pages of the document and
38945 will insert all pages in reverse order.
38946 If the pages option is not specified, only the first page of the PDF is
38948 \begin_inset Newline newline
38955 inserts the pages with their original size, if this option is not given,
38956 the pages will be resized to fith the width of the page of your document.
38961 you can specify the width and height of the input pages and their rotation.
38962 If another width than 100
38963 \begin_inset space \thinspace{}
38966 Scale% is used, the option
38970 will be overwritten.
38971 For more info and possible options, have a look into the documentation
38972 of the LaTeX-package
38977 \begin_inset CommandInset citation
38984 \begin_inset Index idx
38987 \begin_layout Plain Layout
38988 LaTeX-packages ! pdfpages
38994 \begin_inset Newline newline
38997 To use this template in a
39001 presentation you need to first insert an
39005 environment and in a subsequent paragraph a TeX-Code box containing the
39010 setbeamertemplate{background canvas}{}
39013 Then you can insert as many paragraphs containing the PDFPages template
39015 Behind the included PDF pages you can resume the Beamer presentation by
39016 beginning a new frame or by starting a new section.
39017 To avoid stray blank pages prior to the PDF pages, make sure to use the
39022 alignment for the paragraph containing the template.
39023 \begin_inset Newline newline
39026 Here is an included PDF which is rotated by -5°:
39027 \begin_inset External
39029 filename clipart/Abstract.pdf
39030 extra LaTeX "noautoscale, pages=-"
39032 rotateOrigin bottomleft
39039 \begin_layout Description
39040 RasterImage This can be used for bitmap images.
39041 The image can be treated in the
39045 dialog like the images that are usually included via the
39049 dialog as described in section
39050 \begin_inset space ~
39054 \begin_inset CommandInset ref
39056 reference "sec:Graphics-Dialog"
39061 The difference to the normal image input is that only raster images are
39062 allowed; that means that PDF and EPS-images are not supported.
39063 Here is an inserted raster image:
39064 \begin_inset External
39065 template RasterImage
39066 filename clipart/ToolbarEnvBox.png
39073 \begin_layout Description
39074 XFig This template supports images created with the program
39077 \begin_inset CommandInset href
39080 target "http://en.wikipedia.org/wiki/Xfig"
39089 \begin_layout Standard
39090 \begin_inset Float table
39096 \begin_layout Plain Layout
39097 \begin_inset Caption Standard
39099 \begin_layout Plain Layout
39100 \begin_inset CommandInset label
39102 name "tab:Comparison-of-the"
39106 Comparison of the date input methods.
39114 \begin_layout Plain Layout
39116 \begin_inset Tabular
39117 <lyxtabular version="3" rows="4" columns="4">
39118 <features rotate="0" tabularvalignment="middle">
39119 <column alignment="center" valignment="top">
39120 <column alignment="center" valignment="top">
39121 <column alignment="center" valignment="top">
39122 <column alignment="center" valignment="top">
39124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39127 \begin_layout Plain Layout
39133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39136 \begin_layout Plain Layout
39139 External Material\SpecialChar \menuseparator
39145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39148 \begin_layout Plain Layout
39151 Insert\SpecialChar \menuseparator
39157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39160 \begin_layout Plain Layout
39172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39175 \begin_layout Plain Layout
39181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39184 \begin_layout Plain Layout
39190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39193 \begin_layout Plain Layout
39199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39202 \begin_layout Plain Layout
39203 as TeX-Code inset box
39210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39213 \begin_layout Plain Layout
39219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39222 \begin_layout Plain Layout
39228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39231 \begin_layout Plain Layout
39237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39240 \begin_layout Plain Layout
39248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39251 \begin_layout Plain Layout
39257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39260 \begin_layout Plain Layout
39266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39269 \begin_layout Plain Layout
39275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39278 \begin_layout Plain Layout
39297 \begin_layout Standard
39298 When you use the option
39310 dialog, only the path to the inserted file is shown in the output.
39311 \begin_inset Newline newline
39314 External material is displayed in LyX either as a box like this:
39315 \begin_inset Graphics
39316 filename clipart/ExternalMaterialQt4.png
39318 scaleBeforeRotation
39322 or as image, depending on the option
39328 LaTeX and LyX options
39333 \begin_layout Standard
39340 manual explains how you can define your own templates.
39343 \begin_layout Section
39345 \begin_inset CommandInset label
39347 name "sec:Child-Documents"
39352 \begin_inset Index idx
39355 \begin_layout Plain Layout
39356 External Document Parts ! Child Documents
39362 \begin_inset Index idx
39365 \begin_layout Plain Layout
39374 \begin_layout Standard
39375 Child documents are used if you have a long document consisting of several
39376 larger parts or sections.
39377 For maintenance it is often useful and sometimes even required to split
39378 the document into several files that can be revised separately.
39379 The different documents are then the so called
39380 \begin_inset Quotes eld
39384 \begin_inset Quotes erd
39387 , and a master document connects them to print the full document or parts
39389 A child document inherits elements from its master, for example the LaTeX
39390 preamble, the bibliography, and labels for cross-references.
39393 \begin_layout Standard
39394 To be able to work on child documents without the need to open their master,
39395 specify in the child document the master in the menu
39397 Document\SpecialChar \menuseparator
39398 Settings\SpecialChar \menuseparator
39400 \begin_inset space ~
39406 This master document will then be used in the background by LyX when you
39407 edit the child document.
39410 \begin_layout Standard
39411 Included documents are displayed in LyX as a box like this:
39412 \begin_inset Graphics
39413 filename clipart/ChildDocumentQt4.png
39415 scaleBeforeRotation
39419 To include child documents in a master document use the menu
39421 Insert\SpecialChar \menuseparator
39422 File\SpecialChar \menuseparator
39424 \begin_inset space ~
39430 A dialog pops up where you can choose between four include methods:
39433 \begin_layout Description
39434 Include You can include LyX- and LaTeX-documents.
39443 dialog, the included document will be opened in LyX in a new file tab so
39444 that you can modify it.
39445 \begin_inset Newline newline
39451 \begin_layout Standard
39452 Here is a child document inserted using
39457 \begin_inset CommandInset include
39458 LatexCommand include
39459 filename "DummyDocument1.lyx"
39466 \begin_layout Standard
39467 The section numbering includes the sections of the included files in the
39468 order they are inserted in the master document.
39469 The included example document has for example a subsection that is numbered
39470 as a subsection of this section.
39471 Labels of included documents can be referenced: Subsection
39472 \begin_inset space ~
39476 \begin_inset CommandInset ref
39478 reference "sub:External-Subsection-1"
39485 \begin_layout Standard
39486 The preamble of the child document is ignored; only the preamble of the
39487 master document is used.
39488 Branches in child documents will be ignored by the master document when
39489 the master document does not have a branch with the same name.
39490 Included documents are inserted starting on a new page and ending with
39494 \begin_layout Standard
39495 \begin_inset Note Greyedout
39498 \begin_layout Plain Layout
39503 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39504 the document in case the child document uses another document class than
39505 the master document as this will lead to unexpected outputs.
39513 \begin_layout Description
39514 Input This method is very similar to the Include method.
39515 The differences are:
39519 \begin_layout Itemize
39520 Input files don't start with a new page and don't end with a page break.
39523 \begin_layout Itemize
39524 Input files can be previewed in LyX when
39527 \begin_inset space ~
39532 is enabled in LyX's preferences under
39535 \begin_inset space ~
39539 \begin_inset space ~
39542 feel\SpecialChar \menuseparator
39548 \begin_layout Itemize
39549 You cannot exclude Input files via the menu
39551 Document\SpecialChar \menuseparator
39552 Settings\SpecialChar \menuseparator
39559 \begin_layout Standard
39560 Here is a child document inserted using
39565 \begin_inset CommandInset include
39567 filename "DummyDocument2.lyx"
39574 \begin_layout Description
39575 Verbatim With this method any text file can be included.
39576 The file is shown in the output with its source code; no command used in
39577 the text is invoked.
39578 You can use the option
39580 Mark spaces in output
39582 that displays the character
39583 \begin_inset Quotes eld
39590 \begin_layout Plain Layout
39600 \begin_inset Quotes erd
39603 for every space character in the source code.
39604 The difference from the method via the menu
39606 Insert\SpecialChar \menuseparator
39607 File\SpecialChar \menuseparator
39609 \begin_inset space ~
39614 is that the document content is not shown in LyX.
39617 \begin_layout Standard
39618 Here is a child document inserted as Verbatim:
39619 \begin_inset CommandInset include
39620 LatexCommand verbatiminput
39621 filename "DummyTextDocument.txt"
39626 \begin_inset VSpace bigskip
39629 Here is a child document inserted as Verbatim using the
39631 Mark spaces in output
39634 \begin_inset CommandInset include
39635 LatexCommand verbatiminput*
39636 filename "DummyTextDocument.txt"
39643 \begin_layout Standard
39644 \begin_inset VSpace bigskip
39650 \begin_layout Standard
39651 \begin_inset Note Greyedout
39654 \begin_layout Plain Layout
39659 As you can see in the examples above, the text of the documents included
39664 is not broken at the end of the document lines.
39672 \begin_layout Description
39673 Listings This type is described in chapter
39674 \begin_inset space ~
39678 \begin_inset CommandInset ref
39680 reference "cha:Program-Code-Listings"
39687 \begin_layout Standard
39688 \begin_inset Note Greyedout
39691 \begin_layout Plain Layout
39696 Including the same document twice in a document using different methods
39697 could cause LaTeX-problems.
39705 \begin_layout Standard
39706 If you want to view/export only selected children of your master document,
39707 either because you want to save compiling time or because you want to distribut
39708 e single chapters of the book you are just writing, you can exclude children
39710 This is done via the menu
39712 Document\SpecialChar \menuseparator
39713 Settings\SpecialChar \menuseparator
39717 You can exclude\SpecialChar \slash{}
39718 include children by double-clicking on the
39722 column of the respective child document in the list (note that this only
39723 works for documents embedded via
39724 \begin_inset Quotes eld
39728 \begin_inset Quotes erd
39732 \begin_inset Quotes eld
39736 \begin_inset Quotes erd
39742 Maintain counters and references
39744 is enabled, LyX will assure that all page numbers, references etc.
39745 \begin_inset space ~
39748 are correct as if the whole document was processed.
39749 This is useful if you want the selected sub-documents to look exactly as
39750 in the context of the whole document.
39751 However, LyX needs to process the whole document in the background for
39753 So if you want to save compile time and if counters and references do not
39754 need to be correct, disable this checkbox.
39757 \begin_layout Standard
39758 Alternatively, you can put each included file into a branch.
39762 \begin_layout Plain Layout
39763 Branches are described in section
39776 By enabling\SpecialChar \slash{}
39777 disabling branches you can decide which included files will
39778 appear in the output.
39779 This has the advantage that it also works with Input'ed sub-documents.
39780 However, counters and references will not be maintained with this approach.
39783 \begin_layout Chapter
39784 Program Code Listings
39785 \begin_inset CommandInset label
39787 name "cha:Program-Code-Listings"
39792 \begin_inset Index idx
39795 \begin_layout Plain Layout
39802 \begin_inset Index idx
39805 \begin_layout Plain Layout
39812 \begin_inset Index idx
39815 \begin_layout Plain Layout
39824 \begin_layout Standard
39825 To include and typeset program code you can use the
39829 inset that can be inserted via the menu
39831 Insert\SpecialChar \menuseparator
39840 \begin_inset Index idx
39843 \begin_layout Plain Layout
39844 LaTeX-packages ! listings
39849 provides a powerful and flexible way to insert program source code into
39853 \begin_layout Standard
39854 Right-clicking on a listings inset opens the context menu containing where
39855 you can set the listings format.
39858 \begin_layout Standard
39859 By default, a listing starts a new paragraph in the output.
39860 The placement option
39863 \begin_inset space ~
39868 prints the listing inline like this:
39869 \begin_inset listings
39870 lstparams "language={C++}"
39874 \begin_layout Plain Layout
39882 \begin_inset Newline newline
39889 creates a listings float where you can specify the placement options
39890 \begin_inset Quotes eld
39898 \begin_inset Quotes erd
39902 \begin_inset Quotes eld
39910 \begin_inset Quotes erd
39914 \begin_inset Quotes eld
39922 \begin_inset Quotes erd
39926 \begin_inset Quotes eld
39934 \begin_inset Quotes erd
39937 corresponding to the float placement options described in section
39938 \begin_inset space ~
39942 \begin_inset CommandInset ref
39944 reference "sec:Float-Placement"
39949 The placement options can be mixed and are inserted without any separation,
39951 \begin_inset space \thinspace{}
39955 \begin_inset space \space{}
39959 \begin_inset Quotes eld
39967 \begin_inset Quotes erd
39972 \begin_inset Quotes eld
39976 \begin_inset Quotes erd
39979 has sometimes no effect, but you don't need to use the
39983 option in this case as also non-float listings can have captions and be
39987 \begin_layout Standard
39988 You can add captions to listings with the menu
39990 Insert\SpecialChar \menuseparator
39994 Listings can be referenced like floats: Listing
39995 \begin_inset space ~
39999 \begin_inset CommandInset ref
40001 reference "lst:Example-Listing"
40006 A list of listings which contains all listings with captions can be created
40009 Insert\SpecialChar \menuseparator
40011 \begin_inset space ~
40015 \begin_inset space ~
40018 TOC\SpecialChar \menuseparator
40022 The list entries are the listing caption and the listing number.
40025 \begin_layout Standard
40026 \begin_inset listings
40027 lstparams "language=Python"
40031 \begin_layout Plain Layout
40033 \begin_inset Caption Standard
40035 \begin_layout Plain Layout
40036 \begin_inset CommandInset label
40038 name "lst:Example-Listing"
40042 Example Listing float
40047 # Example listing float
40050 \begin_layout Plain Layout
40055 \begin_layout Plain Layout
40057 'this is a python function'
40060 \begin_layout Plain Layout
40070 \begin_layout Standard
40071 When you have set a programming language in the listings dialog, the keywords
40072 of this language will be recognized and specially typeset in the output.
40073 In the example listings the Python keyword
40074 \begin_inset Quotes eld
40078 \begin_inset Quotes erd
40081 is recognized and printed bold in the output.
40084 \begin_layout Standard
40085 \begin_inset Note Greyedout
40088 \begin_layout Plain Layout
40093 If you don't get bold keywords when using typewriter fonts, your
40097 font probably doesn't provide a bold shape.
40098 In this case select a different one in the menu
40100 Document\SpecialChar \menuseparator
40101 Settings\SpecialChar \menuseparator
40113 provide bold shapes.)
40121 \begin_layout Standard
40125 \begin_inset space ~
40130 of the listings dialog you can specify the line numbering style.
40131 You can insert a number to specify which lines are numbered in the field
40138 \begin_inset space \thinspace{}
40142 \begin_inset space \space{}
40146 \begin_inset Quotes eld
40150 \begin_inset Quotes erd
40153 , only every 3rd line will be numbered.
40156 \begin_layout Standard
40157 You can furthermore specify a range of lines; only these will then appear
40161 Extended character table
40163 should be used when you use national characters like the German umlauts
40165 \begin_inset Newline newline
40168 Here is an example listing with left line numbering, step
40169 \begin_inset Quotes eld
40173 \begin_inset Quotes erd
40177 \begin_inset Quotes eld
40181 \begin_inset Quotes erd
40185 \begin_inset Quotes eld
40188 Extended character table
40189 \begin_inset Quotes erd
40193 \begin_inset Quotes eld
40197 \begin_inset space ~
40201 \begin_inset space ~
40205 \begin_inset Quotes erd
40209 \begin_inset space \thinspace{}
40213 \begin_inset space \thinspace{}
40219 \begin_layout Standard
40220 \begin_inset listings
40221 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
40225 \begin_layout Plain Layout
40230 \begin_layout Plain Layout
40232 'this is a python function'
40235 \begin_layout Plain Layout
40240 \begin_layout Plain Layout
40245 \begin_layout Plain Layout
40247 'This is a German word: Tschüß'
40250 \begin_layout Plain Layout
40255 \begin_layout Plain Layout
40260 \begin_layout Plain Layout
40262 'this is a python function'
40265 \begin_layout Plain Layout
40275 \begin_layout Standard
40276 When you have tabulators in your listing, you can specify the number of
40277 characters that are spanned by a tabulator in the field
40280 \begin_inset space ~
40288 \begin_layout Standard
40289 \begin_inset Note Greyedout
40292 \begin_layout Plain Layout
40297 Due to a bug in the
40301 package the line numbering is shifted by a line by every previous listing.
40302 That's the reason why the lines 2 and 5 are numbered in the above listing
40303 and not the lines 3 and 6.
40311 \begin_layout Standard
40312 \begin_inset VSpace bigskip
40318 \begin_layout Standard
40319 It is also possible to print lines from a file as listing.
40320 To do this, use the menu
40322 Insert\SpecialChar \menuseparator
40323 File\SpecialChar \menuseparator
40326 and choose the type
40334 \begin_layout Plain Layout
40335 The other child document types are described in section
40336 \begin_inset space ~
40340 \begin_inset CommandInset ref
40342 reference "sec:Child-Documents"
40351 In the child document dialog you can specify the listing parameters in
40353 To show a list of all available parameters, type in a question mark
40354 \begin_inset Quotes eld
40358 \begin_inset Quotes erd
40364 \begin_layout Standard
40365 To reference child document listings, write a label text into the corresponding
40366 field of the child document dialog.
40367 The label can then be referenced using the menu
40369 Insert\SpecialChar \menuseparator
40375 \begin_layout Standard
40377 \begin_inset space ~
40381 \begin_inset CommandInset ref
40383 reference "lst:file-listing"
40387 is an example for a listing of a file; there the lines 10
40388 \begin_inset space \thinspace{}
40392 \begin_inset space \thinspace{}
40395 15 of this LyX file are listed.
40398 \begin_layout Standard
40399 \begin_inset CommandInset include
40400 LatexCommand lstinputlisting
40401 filename "EmbeddedObjects.lyx"
40402 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40409 \begin_layout Standard
40410 \begin_inset VSpace bigskip
40416 \begin_layout Standard
40417 Inserting a formula into a listing can be done the following way:
40420 \begin_layout Enumerate
40421 Open the listings dialog and add
40422 \begin_inset Newline newline
40430 \begin_inset Newline newline
40433 to the field of the
40440 \begin_layout Enumerate
40441 Create a formula outside the listing
40444 \begin_layout Enumerate
40445 Copy the content of the formula (not the formula inset) to the clipboard
40455 \begin_layout Enumerate
40456 In the listing write
40457 \begin_inset Quotes eld
40465 \begin_inset Quotes erd
40468 and copy from the clipboard between the dollar-signs (shortcut
40477 \begin_layout Standard
40478 \begin_inset listings
40479 lstparams "language=Python,mathescape=true"
40483 \begin_layout Plain Layout
40485 \begin_inset Caption Standard
40487 \begin_layout Plain Layout
40488 Example Listing float containing a formula
40493 # Example listing float
40496 \begin_layout Plain Layout
40501 \begin_layout Plain Layout
40514 \begin_layout Plain Layout
40524 \begin_layout Standard
40525 \begin_inset VSpace bigskip
40531 \begin_layout Standard
40532 Global listings settings can be set in the
40534 Document\SpecialChar \menuseparator
40535 Settings\SpecialChar \menuseparator
40539 To get there a list of available options, type in a question mark
40540 \begin_inset Quotes eld
40544 \begin_inset Quotes erd
40550 \begin_layout Standard
40551 For more information about the
40555 package, we refer to its documentation
40556 \begin_inset CommandInset citation
40565 \begin_layout Standard
40566 \begin_inset Newpage newpage
40572 \begin_layout Chapter
40574 Units available in LyX
40575 \begin_inset Index idx
40578 \begin_layout Plain Layout
40585 \begin_inset CommandInset label
40587 name "cha:Units-available-in"
40594 \begin_layout Standard
40595 To understand the units described in this documentation, Table
40596 \begin_inset space ~
40600 \begin_inset CommandInset ref
40602 reference "tab:Units"
40606 explains all units available in LyX.
40609 \begin_layout Standard
40610 \begin_inset Float table
40616 \begin_layout Plain Layout
40617 \begin_inset Caption Standard
40619 \begin_layout Plain Layout
40620 \begin_inset CommandInset label
40634 \begin_layout Plain Layout
40635 \begin_inset VSpace medskip
40641 \begin_layout Plain Layout
40643 \begin_inset Tabular
40644 <lyxtabular version="3" rows="20" columns="2">
40645 <features rotate="0" tabularvalignment="middle">
40646 <column alignment="center" valignment="top">
40647 <column alignment="center" valignment="top">
40649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40652 \begin_layout Plain Layout
40658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40661 \begin_layout Plain Layout
40669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40672 \begin_layout Plain Layout
40678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40681 \begin_layout Plain Layout
40689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40692 \begin_layout Plain Layout
40698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40701 \begin_layout Plain Layout
40709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40712 \begin_layout Plain Layout
40718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40721 \begin_layout Plain Layout
40729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40732 \begin_layout Plain Layout
40738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40741 \begin_layout Plain Layout
40743 \begin_inset space \thinspace{}
40747 \begin_inset space \thinspace{}
40757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40760 \begin_layout Plain Layout
40766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40769 \begin_layout Plain Layout
40771 \begin_inset space \thinspace{}
40775 \begin_inset space \thinspace{}
40785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40788 \begin_layout Plain Layout
40794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40797 \begin_layout Plain Layout
40798 scaled point (65536
40799 \begin_inset space \thinspace{}
40803 \begin_inset space \thinspace{}
40813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40816 \begin_layout Plain Layout
40822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40825 \begin_layout Plain Layout
40827 \begin_inset space \thinspace{}
40831 \begin_inset space \thinspace{}
40841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40844 \begin_layout Plain Layout
40850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40853 \begin_layout Plain Layout
40855 \begin_inset space \thinspace{}
40859 \begin_inset Formula $\approx$
40863 \begin_inset space \thinspace{}
40873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40876 \begin_layout Plain Layout
40882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40885 \begin_layout Plain Layout
40887 \begin_inset space \thinspace{}
40891 \begin_inset space \thinspace{}
40901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40904 \begin_layout Plain Layout
40910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40913 \begin_layout Plain Layout
40914 % of original image width
40921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40924 \begin_layout Plain Layout
40930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40933 \begin_layout Plain Layout
40941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40944 \begin_layout Plain Layout
40950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40953 \begin_layout Plain Layout
40961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40964 \begin_layout Plain Layout
40970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40973 \begin_layout Plain Layout
40981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40984 \begin_layout Plain Layout
40990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40993 \begin_layout Plain Layout
41001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41004 \begin_layout Plain Layout
41010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41013 \begin_layout Plain Layout
41021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41024 \begin_layout Plain Layout
41030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41033 \begin_layout Plain Layout
41041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41044 \begin_layout Plain Layout
41050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41053 \begin_layout Plain Layout
41065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41068 \begin_layout Plain Layout
41074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41077 \begin_layout Plain Layout
41089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41092 \begin_layout Plain Layout
41098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41101 \begin_layout Plain Layout
41103 \begin_inset space \thinspace{}
41107 \begin_inset space \thinspace{}
41128 \begin_layout Chapter
41129 Output File Formats with Graphics
41130 \begin_inset CommandInset label
41132 name "cha:Output-File-Formats"
41139 \begin_layout Section
41141 \begin_inset Index idx
41144 \begin_layout Plain Layout
41151 \begin_inset Index idx
41154 \begin_layout Plain Layout
41159 \begin_layout Plain Layout
41170 \begin_layout Plain Layout
41185 \begin_layout Standard
41186 This file type has the extension
41187 \begin_inset Quotes eld
41195 \begin_inset Quotes erd
41200 \begin_inset Quotes eld
41204 \begin_inset Quotes erd
41207 (DVI), because it is completely portable; you can move them from one machine
41208 to another without needing to do any sort of conversion.
41209 At the time when this file-format was developed, this was no matter of
41211 DVIs are used for quick previews and as pre-stage for other output formats,
41215 \begin_layout Standard
41216 \begin_inset Note Greyedout
41219 \begin_layout Plain Layout
41224 DVI-files do not contain images; they will only be a linked.
41229 So don't forget this, if you move your
41233 file to another computer.
41234 This property can also slow down your computer when you view the DVI, because
41235 the DVI-viewer has to convert the image in the background to make it visible
41236 when you scroll in the DVI.
41237 So it is recommended that you use PDF for files with many images.
41240 \begin_layout Standard
41241 You can export your document to DVI by using the menu
41243 File\SpecialChar \menuseparator
41244 Export\SpecialChar \menuseparator
41248 You can view your document as DVI via the
41255 \begin_layout Section
41257 \begin_inset CommandInset label
41259 name "sec:PostScript"
41264 \begin_inset Index idx
41267 \begin_layout Plain Layout
41268 File Formats ! PostScript
41274 \begin_inset Index idx
41277 \begin_layout Plain Layout
41282 \begin_layout Plain Layout
41293 \begin_layout Plain Layout
41308 \begin_layout Standard
41309 This file type has the extension
41310 \begin_inset Quotes eld
41318 \begin_inset Quotes erd
41322 PostScript was developed by the company
41326 as a printer language.
41327 The file therefore contains commands that the printer uses to print the
41329 PostScript can be seen as a
41330 \begin_inset Quotes eld
41333 programming language
41334 \begin_inset Quotes erd
41337 ; you can calculate with it and draw diagrams and images
41341 \begin_layout Plain Layout
41342 If you are interested to learn more about this, have a look at the LaTeX-package
41348 \begin_inset CommandInset citation
41360 Due to this ability, the files are often bigger than PDFs.
41363 \begin_layout Standard
41364 PostScript can only contain images in the format
41365 \begin_inset Quotes eld
41368 Encapsulated PostScript
41369 \begin_inset Quotes erd
41372 (EPS, file extension
41373 \begin_inset Quotes eld
41381 \begin_inset Quotes erd
41385 As LyX allows you to use any known image format in your document, it has
41386 to convert images in the background to EPS.
41388 \begin_inset space ~
41392 \begin_inset space ~
41395 images in your document, LyX has to do 50
41396 \begin_inset space ~
41399 conversions whenever you view or export your document.
41400 This will slow down your work flow with LyX drastically.
41401 So if you plan to use PostScript, you can insert your images directly as
41402 EPS to avoid this problem.
41405 \begin_layout Standard
41406 You can export your document to PostScript using the menu
41408 File\SpecialChar \menuseparator
41409 Export\SpecialChar \menuseparator
41413 You can view your document as PostScript via the
41420 \begin_layout Section
41422 \begin_inset Index idx
41425 \begin_layout Plain Layout
41432 \begin_inset Index idx
41435 \begin_layout Plain Layout
41444 \begin_layout Standard
41445 This file type has the extension
41446 \begin_inset Quotes eld
41454 \begin_inset Quotes erd
41459 \begin_inset Quotes eld
41462 Portable Document Format
41463 \begin_inset Quotes erd
41466 (PDF) was developed by
41470 as a derivative of PostScript.
41471 It is more compressed and it uses fewer commands than PostScript.
41473 \begin_inset Quotes eld
41477 \begin_inset Quotes erd
41480 implies, it can be processed at any computer system and the printed output
41481 looks exactly the same.
41484 \begin_layout Standard
41485 PDF can contain images in its own PDF format, in the format
41486 \begin_inset Quotes eld
41489 Joint Photographic Experts Group
41490 \begin_inset Quotes erd
41493 (JPG, file extension
41494 \begin_inset Quotes eld
41502 \begin_inset Quotes erd
41506 \begin_inset Quotes eld
41514 \begin_inset Quotes erd
41517 ), and in the format
41518 \begin_inset Quotes eld
41521 Portable Network Graphics
41522 \begin_inset Quotes erd
41525 (PNG, file extension
41526 \begin_inset Quotes eld
41534 \begin_inset Quotes erd
41538 Nevertheless you can use any other image format, because LyX converts them
41539 in the background to one of these formats.
41540 But as described in the section about PostScript, the image conversion
41541 will slow down your work flow.
41542 So it is recommended that you use images in one of the three mentioned
41546 \begin_layout Standard
41547 You can export your document to PDF via the menu
41549 File\SpecialChar \menuseparator
41552 in three different ways:
41555 \begin_layout Description
41557 \begin_inset space ~
41560 (ps2pdf) This uses the program
41564 that creates a PDF from a PostScript-version of your file.
41565 The PostScript-version is produced by the program
41569 which uses a DVI-version as intermediate step.
41570 So this export variant consists of three conversions.
41573 \begin_layout Description
41575 \begin_inset space ~
41578 (dvipdfm) This uses the program
41582 that converts your file in the background to DVI and in a second step to
41586 \begin_layout Description
41588 \begin_inset space ~
41591 (pdflatex) This uses the program
41595 that converts your file directly to PDF.
41598 \begin_layout Standard
41599 It is recommended that you use
41602 \begin_inset space ~
41611 supports all features of actual PDF-versions, is quick and works stable.
41616 is not under development and therefore a bit outdated.
41619 \begin_layout Standard
41620 You can view your document as PDF via the
41624 menu or by using a toolbar button.
41627 \begin_layout Chapter
41628 List of dvips color names
41629 \begin_inset CommandInset label
41631 name "chap:List-of-dvips-colornames"
41638 \begin_layout Standard
41639 \begin_inset Tabular
41640 <lyxtabular version="3" rows="17" columns="4">
41641 <features rotate="0" tabularvalignment="middle">
41642 <column alignment="left" valignment="top" width="0pt">
41643 <column alignment="left" valignment="top" width="0pt">
41644 <column alignment="left" valignment="top" width="0pt">
41645 <column alignment="left" valignment="top" width="0pt">
41647 <cell alignment="left" valignment="top" usebox="none">
41650 \begin_layout Plain Layout
41654 \begin_layout Plain Layout
41667 \begin_layout Plain Layout
41678 \begin_layout Plain Layout
41690 <cell alignment="left" valignment="top" usebox="none">
41693 \begin_layout Plain Layout
41697 \begin_layout Plain Layout
41710 \begin_layout Plain Layout
41721 \begin_layout Plain Layout
41733 <cell alignment="left" valignment="top" usebox="none">
41736 \begin_layout Plain Layout
41740 \begin_layout Plain Layout
41753 \begin_layout Plain Layout
41764 \begin_layout Plain Layout
41776 <cell alignment="left" valignment="top" usebox="none">
41779 \begin_layout Plain Layout
41783 \begin_layout Plain Layout
41796 \begin_layout Plain Layout
41807 \begin_layout Plain Layout
41821 <cell alignment="center" valignment="top" usebox="none">
41824 \begin_layout Plain Layout
41828 \begin_layout Plain Layout
41841 \begin_layout Plain Layout
41849 \begin_inset Phantom Phantom
41852 \begin_layout Plain Layout
41862 \begin_layout Plain Layout
41874 <cell alignment="center" valignment="top" usebox="none">
41877 \begin_layout Plain Layout
41881 \begin_layout Plain Layout
41894 \begin_layout Plain Layout
41902 \begin_inset Phantom Phantom
41905 \begin_layout Plain Layout
41915 \begin_layout Plain Layout
41927 <cell alignment="center" valignment="top" usebox="none">
41930 \begin_layout Plain Layout
41934 \begin_layout Plain Layout
41947 \begin_layout Plain Layout
41955 \begin_inset Phantom Phantom
41958 \begin_layout Plain Layout
41968 \begin_layout Plain Layout
41980 <cell alignment="center" valignment="top" usebox="none">
41983 \begin_layout Plain Layout
41987 \begin_layout Plain Layout
42000 \begin_layout Plain Layout
42008 \begin_inset Phantom Phantom
42011 \begin_layout Plain Layout
42021 \begin_layout Plain Layout
42035 <cell alignment="left" valignment="top" usebox="none">
42038 \begin_layout Plain Layout
42042 \begin_layout Plain Layout
42055 \begin_layout Plain Layout
42063 \begin_inset Phantom Phantom
42066 \begin_layout Plain Layout
42076 \begin_layout Plain Layout
42088 <cell alignment="left" valignment="top" usebox="none">
42091 \begin_layout Plain Layout
42095 \begin_layout Plain Layout
42108 \begin_layout Plain Layout
42116 \begin_inset Phantom Phantom
42119 \begin_layout Plain Layout
42129 \begin_layout Plain Layout
42141 <cell alignment="left" valignment="top" usebox="none">
42144 \begin_layout Plain Layout
42148 \begin_layout Plain Layout
42161 \begin_layout Plain Layout
42169 \begin_inset Phantom Phantom
42172 \begin_layout Plain Layout
42182 \begin_layout Plain Layout
42194 <cell alignment="left" valignment="top" usebox="none">
42197 \begin_layout Plain Layout
42201 \begin_layout Plain Layout
42214 \begin_layout Plain Layout
42222 \begin_inset Phantom Phantom
42225 \begin_layout Plain Layout
42235 \begin_layout Plain Layout
42249 <cell alignment="left" valignment="top" usebox="none">
42252 \begin_layout Plain Layout
42256 \begin_layout Plain Layout
42269 \begin_layout Plain Layout
42277 \begin_inset Phantom Phantom
42280 \begin_layout Plain Layout
42290 \begin_layout Plain Layout
42302 <cell alignment="left" valignment="top" usebox="none">
42305 \begin_layout Plain Layout
42309 \begin_layout Plain Layout
42322 \begin_layout Plain Layout
42330 \begin_inset Phantom Phantom
42333 \begin_layout Plain Layout
42343 \begin_layout Plain Layout
42355 <cell alignment="left" valignment="top" usebox="none">
42358 \begin_layout Plain Layout
42362 \begin_layout Plain Layout
42375 \begin_layout Plain Layout
42383 \begin_inset Phantom Phantom
42386 \begin_layout Plain Layout
42396 \begin_layout Plain Layout
42408 <cell alignment="left" valignment="top" usebox="none">
42411 \begin_layout Plain Layout
42415 \begin_layout Plain Layout
42428 \begin_layout Plain Layout
42436 \begin_inset Phantom Phantom
42439 \begin_layout Plain Layout
42449 \begin_layout Plain Layout
42463 <cell alignment="left" valignment="top" usebox="none">
42466 \begin_layout Plain Layout
42470 \begin_layout Plain Layout
42483 \begin_layout Plain Layout
42491 \begin_inset Phantom Phantom
42494 \begin_layout Plain Layout
42504 \begin_layout Plain Layout
42516 <cell alignment="left" valignment="top" usebox="none">
42519 \begin_layout Plain Layout
42523 \begin_layout Plain Layout
42536 \begin_layout Plain Layout
42544 \begin_inset Phantom Phantom
42547 \begin_layout Plain Layout
42557 \begin_layout Plain Layout
42569 <cell alignment="left" valignment="top" usebox="none">
42572 \begin_layout Plain Layout
42576 \begin_layout Plain Layout
42589 \begin_layout Plain Layout
42597 \begin_inset Phantom Phantom
42600 \begin_layout Plain Layout
42610 \begin_layout Plain Layout
42622 <cell alignment="left" valignment="top" usebox="none">
42625 \begin_layout Plain Layout
42629 \begin_layout Plain Layout
42642 \begin_layout Plain Layout
42650 \begin_inset Phantom Phantom
42653 \begin_layout Plain Layout
42663 \begin_layout Plain Layout
42677 <cell alignment="left" valignment="top" usebox="none">
42680 \begin_layout Plain Layout
42684 \begin_layout Plain Layout
42697 \begin_layout Plain Layout
42705 \begin_inset Phantom Phantom
42708 \begin_layout Plain Layout
42718 \begin_layout Plain Layout
42730 <cell alignment="left" valignment="top" usebox="none">
42733 \begin_layout Plain Layout
42737 \begin_layout Plain Layout
42750 \begin_layout Plain Layout
42758 \begin_inset Phantom Phantom
42761 \begin_layout Plain Layout
42771 \begin_layout Plain Layout
42783 <cell alignment="left" valignment="top" usebox="none">
42786 \begin_layout Plain Layout
42790 \begin_layout Plain Layout
42803 \begin_layout Plain Layout
42811 \begin_inset Phantom Phantom
42814 \begin_layout Plain Layout
42824 \begin_layout Plain Layout
42836 <cell alignment="left" valignment="top" usebox="none">
42839 \begin_layout Plain Layout
42843 \begin_layout Plain Layout
42856 \begin_layout Plain Layout
42864 \begin_inset Phantom Phantom
42867 \begin_layout Plain Layout
42877 \begin_layout Plain Layout
42891 <cell alignment="center" valignment="top" usebox="none">
42894 \begin_layout Plain Layout
42898 \begin_layout Plain Layout
42911 \begin_layout Plain Layout
42919 \begin_inset Phantom Phantom
42922 \begin_layout Plain Layout
42932 \begin_layout Plain Layout
42944 <cell alignment="center" valignment="top" usebox="none">
42947 \begin_layout Plain Layout
42951 \begin_layout Plain Layout
42964 \begin_layout Plain Layout
42972 \begin_inset Phantom Phantom
42975 \begin_layout Plain Layout
42985 \begin_layout Plain Layout
42997 <cell alignment="center" valignment="top" usebox="none">
43000 \begin_layout Plain Layout
43004 \begin_layout Plain Layout
43017 \begin_layout Plain Layout
43025 \begin_inset Phantom Phantom
43028 \begin_layout Plain Layout
43038 \begin_layout Plain Layout
43050 <cell alignment="center" valignment="top" usebox="none">
43053 \begin_layout Plain Layout
43057 \begin_layout Plain Layout
43070 \begin_layout Plain Layout
43078 \begin_inset Phantom Phantom
43081 \begin_layout Plain Layout
43091 \begin_layout Plain Layout
43105 <cell alignment="left" valignment="top" usebox="none">
43108 \begin_layout Plain Layout
43112 \begin_layout Plain Layout
43125 \begin_layout Plain Layout
43133 \begin_inset Phantom Phantom
43136 \begin_layout Plain Layout
43146 \begin_layout Plain Layout
43158 <cell alignment="left" valignment="top" usebox="none">
43161 \begin_layout Plain Layout
43165 \begin_layout Plain Layout
43178 \begin_layout Plain Layout
43186 \begin_inset Phantom Phantom
43189 \begin_layout Plain Layout
43199 \begin_layout Plain Layout
43211 <cell alignment="left" valignment="top" usebox="none">
43214 \begin_layout Plain Layout
43218 \begin_layout Plain Layout
43231 \begin_layout Plain Layout
43239 \begin_inset Phantom Phantom
43242 \begin_layout Plain Layout
43252 \begin_layout Plain Layout
43264 <cell alignment="left" valignment="top" usebox="none">
43267 \begin_layout Plain Layout
43271 \begin_layout Plain Layout
43284 \begin_layout Plain Layout
43292 \begin_inset Phantom Phantom
43295 \begin_layout Plain Layout
43305 \begin_layout Plain Layout
43319 <cell alignment="left" valignment="top" usebox="none">
43322 \begin_layout Plain Layout
43326 \begin_layout Plain Layout
43339 \begin_layout Plain Layout
43347 \begin_inset Phantom Phantom
43350 \begin_layout Plain Layout
43360 \begin_layout Plain Layout
43372 <cell alignment="left" valignment="top" usebox="none">
43375 \begin_layout Plain Layout
43379 \begin_layout Plain Layout
43392 \begin_layout Plain Layout
43400 \begin_inset Phantom Phantom
43403 \begin_layout Plain Layout
43413 \begin_layout Plain Layout
43425 <cell alignment="left" valignment="top" usebox="none">
43428 \begin_layout Plain Layout
43432 \begin_layout Plain Layout
43445 \begin_layout Plain Layout
43453 \begin_inset Phantom Phantom
43456 \begin_layout Plain Layout
43466 \begin_layout Plain Layout
43478 <cell alignment="left" valignment="top" usebox="none">
43481 \begin_layout Plain Layout
43485 \begin_layout Plain Layout
43498 \begin_layout Plain Layout
43506 \begin_inset Phantom Phantom
43509 \begin_layout Plain Layout
43519 \begin_layout Plain Layout
43533 <cell alignment="left" valignment="top" usebox="none">
43536 \begin_layout Plain Layout
43540 \begin_layout Plain Layout
43553 \begin_layout Plain Layout
43561 \begin_inset Phantom Phantom
43564 \begin_layout Plain Layout
43574 \begin_layout Plain Layout
43586 <cell alignment="left" valignment="top" usebox="none">
43589 \begin_layout Plain Layout
43593 \begin_layout Plain Layout
43606 \begin_layout Plain Layout
43614 \begin_inset Phantom Phantom
43617 \begin_layout Plain Layout
43627 \begin_layout Plain Layout
43639 <cell alignment="left" valignment="top" usebox="none">
43642 \begin_layout Plain Layout
43646 \begin_layout Plain Layout
43659 \begin_layout Plain Layout
43667 \begin_inset Phantom Phantom
43670 \begin_layout Plain Layout
43680 \begin_layout Plain Layout
43692 <cell alignment="left" valignment="top" usebox="none">
43695 \begin_layout Plain Layout
43699 \begin_layout Plain Layout
43712 \begin_layout Plain Layout
43720 \begin_inset Phantom Phantom
43723 \begin_layout Plain Layout
43733 \begin_layout Plain Layout
43747 <cell alignment="left" valignment="top" usebox="none">
43750 \begin_layout Plain Layout
43754 \begin_layout Plain Layout
43767 \begin_layout Plain Layout
43775 \begin_inset Phantom Phantom
43778 \begin_layout Plain Layout
43788 \begin_layout Plain Layout
43800 <cell alignment="left" valignment="top" usebox="none">
43803 \begin_layout Plain Layout
43807 \begin_layout Plain Layout
43820 \begin_layout Plain Layout
43828 \begin_inset Phantom Phantom
43831 \begin_layout Plain Layout
43841 \begin_layout Plain Layout
43853 <cell alignment="left" valignment="top" usebox="none">
43856 \begin_layout Plain Layout
43860 \begin_layout Plain Layout
43873 \begin_layout Plain Layout
43881 \begin_inset Phantom Phantom
43884 \begin_layout Plain Layout
43894 \begin_layout Plain Layout
43906 <cell alignment="left" valignment="top" usebox="none">
43909 \begin_layout Plain Layout
43913 \begin_layout Plain Layout
43926 \begin_layout Plain Layout
43934 \begin_inset Phantom Phantom
43937 \begin_layout Plain Layout
43947 \begin_layout Plain Layout
43961 <cell alignment="left" valignment="top" usebox="none">
43964 \begin_layout Plain Layout
43968 \begin_layout Plain Layout
43981 \begin_layout Plain Layout
43989 \begin_inset Phantom Phantom
43992 \begin_layout Plain Layout
44002 \begin_layout Plain Layout
44014 <cell alignment="left" valignment="top" usebox="none">
44017 \begin_layout Plain Layout
44021 \begin_layout Plain Layout
44034 \begin_layout Plain Layout
44042 \begin_inset Phantom Phantom
44045 \begin_layout Plain Layout
44055 \begin_layout Plain Layout
44067 <cell alignment="left" valignment="top" usebox="none">
44070 \begin_layout Plain Layout
44074 \begin_layout Plain Layout
44087 \begin_layout Plain Layout
44095 \begin_inset Phantom Phantom
44098 \begin_layout Plain Layout
44108 \begin_layout Plain Layout
44120 <cell alignment="left" valignment="top" usebox="none">
44123 \begin_layout Plain Layout
44127 \begin_layout Plain Layout
44140 \begin_layout Plain Layout
44148 \begin_inset Phantom Phantom
44151 \begin_layout Plain Layout
44161 \begin_layout Plain Layout
44175 <cell alignment="left" valignment="top" usebox="none">
44178 \begin_layout Plain Layout
44182 \begin_layout Plain Layout
44195 \begin_layout Plain Layout
44203 \begin_inset Phantom Phantom
44206 \begin_layout Plain Layout
44216 \begin_layout Plain Layout
44228 <cell alignment="left" valignment="top" usebox="none">
44231 \begin_layout Plain Layout
44235 \begin_layout Plain Layout
44248 \begin_layout Plain Layout
44256 \begin_inset Phantom Phantom
44259 \begin_layout Plain Layout
44269 \begin_layout Plain Layout
44281 <cell alignment="left" valignment="top" usebox="none">
44284 \begin_layout Plain Layout
44288 \begin_layout Plain Layout
44301 \begin_layout Plain Layout
44309 \begin_inset Phantom Phantom
44312 \begin_layout Plain Layout
44322 \begin_layout Plain Layout
44334 <cell alignment="left" valignment="top" usebox="none">
44337 \begin_layout Plain Layout
44341 \begin_layout Plain Layout
44354 \begin_layout Plain Layout
44362 \begin_inset Phantom Phantom
44365 \begin_layout Plain Layout
44375 \begin_layout Plain Layout
44389 <cell alignment="left" valignment="top" usebox="none">
44392 \begin_layout Plain Layout
44396 \begin_layout Plain Layout
44409 \begin_layout Plain Layout
44417 \begin_inset Phantom Phantom
44420 \begin_layout Plain Layout
44430 \begin_layout Plain Layout
44442 <cell alignment="left" valignment="top" usebox="none">
44445 \begin_layout Plain Layout
44449 \begin_layout Plain Layout
44462 \begin_layout Plain Layout
44470 \begin_inset Phantom Phantom
44473 \begin_layout Plain Layout
44483 \begin_layout Plain Layout
44495 <cell alignment="left" valignment="top" usebox="none">
44498 \begin_layout Plain Layout
44502 \begin_layout Plain Layout
44515 \begin_layout Plain Layout
44523 \begin_inset Phantom Phantom
44526 \begin_layout Plain Layout
44536 \begin_layout Plain Layout
44548 <cell alignment="left" valignment="top" usebox="none">
44551 \begin_layout Plain Layout
44555 \begin_layout Plain Layout
44568 \begin_layout Plain Layout
44576 \begin_inset Phantom Phantom
44579 \begin_layout Plain Layout
44589 \begin_layout Plain Layout
44603 <cell alignment="left" valignment="top" usebox="none">
44606 \begin_layout Plain Layout
44610 \begin_layout Plain Layout
44623 \begin_layout Plain Layout
44631 \begin_inset Phantom Phantom
44634 \begin_layout Plain Layout
44644 \begin_layout Plain Layout
44656 <cell alignment="left" valignment="top" usebox="none">
44659 \begin_layout Plain Layout
44663 \begin_layout Plain Layout
44676 \begin_layout Plain Layout
44684 \begin_inset Phantom Phantom
44687 \begin_layout Plain Layout
44697 \begin_layout Plain Layout
44709 <cell alignment="left" valignment="top" usebox="none">
44712 \begin_layout Plain Layout
44716 \begin_layout Plain Layout
44729 \begin_layout Plain Layout
44737 \begin_inset Phantom Phantom
44740 \begin_layout Plain Layout
44750 \begin_layout Plain Layout
44762 <cell alignment="left" valignment="top" usebox="none">
44765 \begin_layout Plain Layout
44769 \begin_layout Plain Layout
44782 \begin_layout Plain Layout
44790 \begin_inset Phantom Phantom
44793 \begin_layout Plain Layout
44803 \begin_layout Plain Layout
44817 <cell alignment="left" valignment="top" usebox="none">
44820 \begin_layout Plain Layout
44824 \begin_layout Plain Layout
44837 \begin_layout Plain Layout
44845 \begin_inset Phantom Phantom
44848 \begin_layout Plain Layout
44858 \begin_layout Plain Layout
44870 <cell alignment="left" valignment="top" usebox="none">
44873 \begin_layout Plain Layout
44877 \begin_layout Plain Layout
44890 \begin_layout Plain Layout
44898 \begin_inset Phantom Phantom
44901 \begin_layout Plain Layout
44911 \begin_layout Plain Layout
44923 <cell alignment="left" valignment="top" usebox="none">
44926 \begin_layout Plain Layout
44930 \begin_layout Plain Layout
44943 \begin_layout Plain Layout
44951 \begin_inset Phantom Phantom
44954 \begin_layout Plain Layout
44964 \begin_layout Plain Layout
44976 <cell alignment="left" valignment="top" usebox="none">
44979 \begin_layout Plain Layout
44983 \begin_layout Plain Layout
44996 \begin_layout Plain Layout
45004 \begin_inset Phantom Phantom
45007 \begin_layout Plain Layout
45017 \begin_layout Plain Layout
45031 <cell alignment="left" valignment="top" usebox="none">
45034 \begin_layout Plain Layout
45038 \begin_layout Plain Layout
45051 \begin_layout Plain Layout
45059 \begin_inset Phantom Phantom
45062 \begin_layout Plain Layout
45072 \begin_layout Plain Layout
45084 <cell alignment="left" valignment="top" usebox="none">
45087 \begin_layout Plain Layout
45093 <cell alignment="left" valignment="top" usebox="none">
45096 \begin_layout Plain Layout
45102 <cell alignment="left" valignment="top" usebox="none">
45105 \begin_layout Plain Layout
45119 \begin_layout Chapter
45120 Explanation of Equation
45121 \begin_inset space ~
45125 \begin_inset CommandInset ref
45132 \begin_inset CommandInset label
45134 name "cha:Explanation-of-Equation"
45141 \begin_layout Standard
45142 We can calculate the total width of
45147 \begin_inset Formula $W_{\mathrm{tot\,n}}$
45151 \begin_inset Formula
45153 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
45159 \begin_inset Formula $W_{g\,n}$
45162 is the given width of all cells,
45168 is the LaTeX-length between the cell text and the cell border (its default
45170 \begin_inset space \thinspace{}
45180 is the thickness of the cell border line, the default is 0.4
45181 \begin_inset space \thinspace{}
45187 \begin_layout Standard
45189 \begin_inset space ~
45193 \begin_inset CommandInset ref
45195 reference "eq:Wtot_n"
45199 , the total width of a multicolumn
45200 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45204 \begin_inset Formula
45206 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45214 \begin_layout Standard
45215 By setting equation
45216 \begin_inset space ~
45220 \begin_inset CommandInset ref
45222 reference "eq:Wtot_n"
45227 \begin_inset CommandInset ref
45229 reference "eq:Wtot_mult"
45233 equal we can calculate the needed given width
45234 \begin_inset Formula $W_{g\,n}$
45241 columns are spanned, so that each column has a total width of
45242 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45246 \begin_inset Formula
45248 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45256 \begin_layout Bibliography
45257 \begin_inset CommandInset bibitem
45258 LatexCommand bibitem
45259 key "latexcompanion"
45263 Frank Mittelbach and Michel Goossens:
45265 The LaTeX Companion Second Edition.
45268 Addison-Wesley, 2004
45271 \begin_layout Bibliography
45272 \begin_inset CommandInset bibitem
45273 LatexCommand bibitem
45278 Helmut Kopka and Patrick W.
45281 A Guide to LaTeX Fourth Edition.
45284 Addison-Wesley, 2003
45287 \begin_layout Bibliography
45288 \begin_inset CommandInset bibitem
45289 LatexCommand bibitem
45296 LaTeX: A Document Preparation System.
45299 Addison-Wesley, second edition, 1994
45302 \begin_layout Bibliography
45303 \begin_inset CommandInset bibitem
45304 LatexCommand bibitem
45309 Documentation of the LaTeX-package
45312 \begin_inset CommandInset href
45315 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45322 \begin_inset Index idx
45325 \begin_layout Plain Layout
45326 LaTeX-packages ! arydshln
45334 \begin_layout Bibliography
45335 \begin_inset CommandInset bibitem
45336 LatexCommand bibitem
45341 Documentation of the LaTeX-package
45344 \begin_inset CommandInset href
45347 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45354 \begin_inset Index idx
45357 \begin_layout Plain Layout
45358 LaTeX-packages ! booktabs
45366 \begin_layout Bibliography
45367 \begin_inset CommandInset bibitem
45368 LatexCommand bibitem
45373 Documentation of the LaTeX-package
45376 \begin_inset CommandInset href
45379 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45386 \begin_inset Index idx
45389 \begin_layout Plain Layout
45390 LaTeX-packages ! caption
45398 \begin_layout Bibliography
45399 \begin_inset CommandInset bibitem
45400 LatexCommand bibitem
45405 Documentation of the LaTeX-package
45408 \begin_inset CommandInset href
45411 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45418 \begin_inset Index idx
45421 \begin_layout Plain Layout
45422 LaTeX-packages ! diagbox
45430 \begin_layout Bibliography
45431 \begin_inset CommandInset bibitem
45432 LatexCommand bibitem
45437 Documentation of the LaTeX-package
45440 \begin_inset CommandInset href
45443 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45450 \begin_inset Index idx
45453 \begin_layout Plain Layout
45454 LaTeX-packages ! endfloat
45462 \begin_layout Bibliography
45463 \begin_inset CommandInset bibitem
45464 LatexCommand bibitem
45469 Documentation of the LaTeX-package
45472 \begin_inset CommandInset href
45475 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45482 \begin_inset Index idx
45485 \begin_layout Plain Layout
45486 LaTeX-packages ! footmisc
45494 \begin_layout Bibliography
45495 \begin_inset CommandInset bibitem
45496 LatexCommand bibitem
45501 Documentation of the LaTeX-package
45504 \begin_inset CommandInset href
45507 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45514 \begin_inset Index idx
45517 \begin_layout Plain Layout
45518 LaTeX-packages ! hyperref
45526 \begin_layout Bibliography
45527 \begin_inset CommandInset bibitem
45528 LatexCommand bibitem
45533 Documentation of the LaTeX-package
45536 \begin_inset CommandInset href
45539 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45546 \begin_inset Index idx
45549 \begin_layout Plain Layout
45550 LaTeX-packages ! hyperref
45558 \begin_layout Bibliography
45559 \begin_inset CommandInset bibitem
45560 LatexCommand bibitem
45565 Documentation of the LaTeX-package
45568 \begin_inset CommandInset href
45571 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45578 \begin_inset Index idx
45581 \begin_layout Plain Layout
45582 LaTeX-packages ! KOMA-Script
45590 \begin_layout Bibliography
45591 \begin_inset CommandInset bibitem
45592 LatexCommand bibitem
45597 Documentation of the LaTeX-package
45600 \begin_inset CommandInset href
45603 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45610 \begin_inset CommandInset href
45613 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45618 \begin_inset Index idx
45621 \begin_layout Plain Layout
45622 LaTeX-packages ! lettrine
45630 \begin_layout Bibliography
45631 \begin_inset CommandInset bibitem
45632 LatexCommand bibitem
45637 Documentation of the LaTeX-package
45640 \begin_inset CommandInset href
45643 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45650 \begin_inset Index idx
45653 \begin_layout Plain Layout
45654 LaTeX-packages ! listings
45662 \begin_layout Bibliography
45663 \begin_inset CommandInset bibitem
45664 LatexCommand bibitem
45669 Documentation of the LaTeX-package
45672 \begin_inset CommandInset href
45675 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45682 \begin_inset Index idx
45685 \begin_layout Plain Layout
45686 LaTeX-packages ! marginnote
45694 \begin_layout Bibliography
45695 \begin_inset CommandInset bibitem
45696 LatexCommand bibitem
45701 Documentation of the LaTeX-package
45704 \begin_inset CommandInset href
45707 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45714 \begin_inset Index idx
45717 \begin_layout Plain Layout
45718 LaTeX-packages ! pdfpages
45726 \begin_layout Bibliography
45727 \begin_inset CommandInset bibitem
45728 LatexCommand bibitem
45733 Documentation of the LaTeX-package
45736 \begin_inset CommandInset href
45739 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45746 \begin_inset Index idx
45749 \begin_layout Plain Layout
45750 LaTeX-packages ! prettyref
45758 \begin_layout Bibliography
45759 \begin_inset CommandInset bibitem
45760 LatexCommand bibitem
45765 Web page of the LaTeX-package
45768 \begin_inset CommandInset href
45771 target "http://tug.org/PSTricks/"
45778 \begin_inset Index idx
45781 \begin_layout Plain Layout
45782 LaTeX-packages ! PSTricks
45790 \begin_layout Bibliography
45791 \begin_inset CommandInset bibitem
45792 LatexCommand bibitem
45797 Documentation of the LaTeX-package
45800 \begin_inset CommandInset href
45803 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45810 \begin_inset Index idx
45813 \begin_layout Plain Layout
45814 LaTeX-packages ! refstyle
45822 \begin_layout Bibliography
45823 \begin_inset CommandInset bibitem
45824 LatexCommand bibitem
45829 Documentation of the LaTeX-package
45832 \begin_inset CommandInset href
45835 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45842 \begin_inset Index idx
45845 \begin_layout Plain Layout
45846 LaTeX-packages ! sidecap
45854 \begin_layout Bibliography
45855 \begin_inset CommandInset bibitem
45856 LatexCommand bibitem
45862 \begin_inset CommandInset href
45865 target "http://wiki.lyx.org/LyX/NewInLyX20"
45869 about new features in
45876 \begin_layout Standard
45877 \begin_inset CommandInset index_print
45878 LatexCommand printindex