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 table dialog.
2014 Here you can adjust the settings of that cell and row/column respectively
2015 where the cursor is currently placed.
2016 Most of the dialog options also work on selections.
2017 This means if you select more cells, columns or rows, the action is done
2018 for the whole selection.
2019 Note that there is a difference between selecting the
2023 of the cell, and the cell itself.
2024 \begin_inset Newline newline
2027 With the dialog option
2030 \begin_inset space ~
2035 every change you make in the dialog is directly applied.
2036 If you move the cursor to another table cell the dialog will then also
2037 be updated with the parameters of the new cell.
2038 If you change length values in the dialog you must press return to get
2040 \begin_inset Newline newline
2043 You can alter tables with the following tabs of the table dialog:
2046 \begin_layout Description
2050 \begin_inset space ~
2055 Here you can set the table width
2056 \begin_inset Index idx
2059 \begin_layout Plain Layout
2065 , and the horizontal alignment and the width of the current column.
2069 \begin_inset space ~
2073 \begin_inset space ~
2078 is described in section
2079 \begin_inset space ~
2083 \begin_inset CommandInset ref
2085 reference "sub:Special-Cell-Alignment"
2090 When you have set a width you can also adjust the vertical alignment of
2092 A given width will allow the cell to have line breaks and multiple paragraphs
2094 \begin_inset space \thinspace{}
2098 \begin_inset CommandInset ref
2100 reference "sub:Multiple-Lines-in"
2105 If you set no width, the column is as wide as the content of its widest
2107 \begin_inset Newline newline
2110 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2112 \begin_inset space \thinspace{}
2116 \begin_inset CommandInset ref
2118 reference "sub:Multicolumns"
2122 or the cells of one column as multirow cell, see sec.
2123 \begin_inset space \thinspace{}
2127 \begin_inset CommandInset ref
2129 reference "sub:Multirows"
2134 \begin_inset Newline newline
2137 The rotate check boxes rotate the current cell, a selection, or the whole
2138 table counter-clockwise by 90
2139 \begin_inset space \thinspace{}
2143 The rotation is not shown within LyX, only in the output.
2144 For more information see sec.
2145 \begin_inset space \thinspace{}
2149 \begin_inset CommandInset ref
2151 reference "sec:Rotated-Table-Cells"
2156 \begin_inset Newline newline
2160 \begin_inset Note Greyedout
2163 \begin_layout Plain Layout
2168 Not all DVI-viewers are able to display rotations.
2174 \begin_inset Newline newline
2177 The table-wide vertical alignment is used for tables within text lines:
2178 \begin_inset Newline newline
2181 A line with tables with different alignments:
2182 \begin_inset Tabular
2183 <lyxtabular version="3" rows="2" columns="2">
2184 <features rotate="0" tabularvalignment="top">
2185 <column alignment="center" valignment="top" width="0pt">
2186 <column alignment="center" valignment="top">
2188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2191 \begin_layout Plain Layout
2197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2200 \begin_layout Plain Layout
2217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2220 \begin_layout Plain Layout
2235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2238 \begin_layout Plain Layout
2250 \begin_inset Tabular
2251 <lyxtabular version="3" rows="2" columns="2">
2252 <features rotate="0" tabularvalignment="middle">
2253 <column alignment="center" valignment="top">
2254 <column alignment="center" valignment="top">
2256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2259 \begin_layout Plain Layout
2265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2268 \begin_layout Plain Layout
2285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2288 \begin_layout Plain Layout
2303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2306 \begin_layout Plain Layout
2318 \begin_inset Tabular
2319 <lyxtabular version="3" rows="2" columns="2">
2320 <features rotate="0" tabularvalignment="bottom">
2321 <column alignment="center" valignment="top" width="0pt">
2322 <column alignment="center" valignment="top">
2324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2327 \begin_layout Plain Layout
2333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2336 \begin_layout Plain Layout
2353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2356 \begin_layout Plain Layout
2371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2374 \begin_layout Plain Layout
2386 \begin_inset Newline newline
2389 It is also possible to enter a LaTeX-argument which is needed for special
2390 table formattings, see sec.
2391 \begin_inset space \thinspace{}
2395 \begin_inset CommandInset ref
2397 reference "sub:Multicolumn-Calculations"
2402 \begin_inset CommandInset ref
2404 reference "sec:Colored-Tables"
2411 \begin_layout Description
2416 In this tab you can add and delete border lines for the current row/column.
2417 \begin_inset Newline newline
2420 Using the style option
2424 will convert the table to a formal table as described in sec.
2425 \begin_inset space \thinspace{}
2429 \begin_inset CommandInset ref
2431 reference "sec:Formal-Tables"
2436 \begin_inset Newline newline
2439 You can also add space here to table rows as described in sec.
2440 \begin_inset space \thinspace{}
2444 \begin_inset CommandInset ref
2446 reference "sub:Row-Spacing"
2453 \begin_layout Description
2458 This tab is to make a table a so called
2459 \begin_inset Quotes eld
2467 \begin_inset Quotes erd
2470 that can run over several pages.
2472 \begin_inset space ~
2476 \begin_inset CommandInset ref
2478 reference "sec:Longtables"
2483 \begin_inset CommandInset ref
2485 reference "sec:Special-Longtable-Issues"
2489 describe the longtable features in detail.
2492 \begin_layout Section
2494 \begin_inset Index idx
2497 \begin_layout Plain Layout
2506 \begin_layout Standard
2507 The table toolbar is an alternative to the table dialog to be able to alter
2509 It should normally appear at the bottom of LyX's main window when the cursor
2511 You can alternatively switch it on to appear always, by right-clicking
2512 in LyX's main menu bar.
2515 \begin_layout Standard
2516 The toolbar has the following icons:
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2523 arg "inset-modify tabular append-row"
2526 adds a row below the current cell or selection
2529 \begin_layout Labeling
2530 \labelwidthstring 00.00.0000
2533 arg "inset-modify tabular append-column"
2536 adds a column right beside the current cell or selection
2539 \begin_layout Labeling
2540 \labelwidthstring 00.00.0000
2543 arg "inset-modify tabular delete-row"
2546 deletes the current row or selection
2549 \begin_layout Labeling
2550 \labelwidthstring 00.00.0000
2553 arg "inset-modify tabular delete-column"
2556 deletes the current column or selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2563 arg "inset-modify tabular toggle-line-top"
2566 adds a line at the top of the current cell / row or of a selection
2569 \begin_layout Labeling
2570 \labelwidthstring 00.00.0000
2573 arg "inset-modify tabular toggle-line-bottom"
2576 adds a line at the bottom of the current cell / row or of a selection
2579 \begin_layout Labeling
2580 \labelwidthstring 00.00.0000
2583 arg "inset-modify tabular toggle-line-left"
2586 adds a line at the left side of the current cell / row or of a selection
2589 \begin_layout Labeling
2590 \labelwidthstring 00.00.0000
2593 arg "inset-modify tabular toggle-line-right"
2596 adds a line at the right side of the current cell / row or of a selection
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "inset-modify tabular set-all-lines"
2606 adds lines around the current or selected cells - if the current cell no
2607 multicolumn cell this also affects the current row and column
2610 \begin_layout Labeling
2611 \labelwidthstring 00.00.0000
2614 arg "inset-modify tabular unset-all-lines"
2617 deletes all lines of the current or selected cells - if the current cell
2618 no multicolumn cell this also affects the current row and column
2621 \begin_layout Labeling
2622 \labelwidthstring 00.00.0000
2625 arg "inset-modify tabular m-align-left"
2628 left-aligns the content of the current cell / column
2631 \begin_layout Labeling
2632 \labelwidthstring 00.00.0000
2635 arg "inset-modify tabular m-align-center"
2638 centers the content of the current cell / column horizontally
2641 \begin_layout Labeling
2642 \labelwidthstring 00.00.0000
2645 arg "inset-modify tabular m-align-right"
2648 right-aligns the content of the current cell / column
2651 \begin_layout Labeling
2652 \labelwidthstring 00.00.0000
2655 arg "inset-modify tabular align-decimal"
2658 aligns the content of the current column at a character
2661 \begin_layout Labeling
2662 \labelwidthstring 00.00.0000
2665 arg "inset-modify tabular m-valign-top"
2668 aligns the content of the current cell vertically to the top
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2675 arg "inset-modify tabular m-valign-middle"
2678 centers the content of the current cell vertically
2681 \begin_layout Labeling
2682 \labelwidthstring 00.00.0000
2685 arg "inset-modify tabular m-valign-bottom"
2688 aligns the content of the current cell vertically to the bottom
2691 \begin_layout Labeling
2692 \labelwidthstring 00.00.0000
2695 arg "inset-modify tabular set-rotate-cell"
2698 rotates the current cell or selection counter-clockwise by 90°
2701 \begin_layout Labeling
2702 \labelwidthstring 00.00.0000
2705 arg "inset-modify tabular set-rotate-tabular"
2708 rotates the whole table counter-clockwise by 90°
2711 \begin_layout Labeling
2712 \labelwidthstring 00.00.0000
2715 arg "inset-modify tabular multicolumn"
2718 sets the current cell or selection as a multicolumn
2721 \begin_layout Labeling
2722 \labelwidthstring 00.00.0000
2725 arg "inset-modify tabular multirow"
2728 sets the current cell or selection as a multirow
2731 \begin_layout Standard
2732 \begin_inset Note Greyedout
2735 \begin_layout Plain Layout
2740 For the output the vertical alignment of the first cell in a row is used
2741 for all following cells in the row.
2749 \begin_layout Section
2751 \begin_inset Index idx
2754 \begin_layout Plain Layout
2763 \begin_layout Standard
2764 In addition to the table dialog and toolbar, the menu
2766 Edit\SpecialChar \menuseparator
2769 allows you to add and delete border lines for the current row/column and
2770 to set the current selection as multicolumn.
2771 The menu is only available when the cursor is inside a table.
2774 \begin_layout Section
2776 \begin_inset CommandInset label
2778 name "sec:Table-Floats"
2783 \begin_inset Index idx
2786 \begin_layout Plain Layout
2793 \begin_inset Index idx
2796 \begin_layout Plain Layout
2805 \begin_layout Standard
2806 For general explanations about floats, have a look at section
2807 \begin_inset space ~
2811 \begin_inset CommandInset ref
2813 reference "sec:FloatIntroduction"
2820 \begin_layout Standard
2821 \begin_inset Float table
2827 \begin_layout Plain Layout
2828 \begin_inset Caption Standard
2830 \begin_layout Plain Layout
2831 \begin_inset CommandInset label
2833 name "tab:a table float"
2845 \begin_layout Plain Layout
2847 \begin_inset Tabular
2848 <lyxtabular version="3" rows="3" columns="3">
2849 <features rotate="0" tabularvalignment="middle">
2850 <column alignment="center" valignment="top" width="0pt">
2851 <column alignment="center" valignment="top" width="0pt">
2852 <column alignment="center" valignment="top" width="0pt">
2854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2857 \begin_layout Plain Layout
2872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2875 \begin_layout Plain Layout
2890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2893 \begin_layout Plain Layout
2910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2913 \begin_layout Plain Layout
2928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2931 \begin_layout Plain Layout
2946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2949 \begin_layout Plain Layout
2966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2969 \begin_layout Plain Layout
2979 \begin_inset Formula $\int x^{2}dx$
2987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2990 \begin_layout Plain Layout
3000 \begin_inset Formula $\left[\begin{array}{cc}
3011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3014 \begin_layout Plain Layout
3024 \begin_inset Formula $1+1=2$
3045 \begin_layout Standard
3046 Table floats can be inserted using the menu
3048 Insert\SpecialChar \menuseparator
3049 Float\SpecialChar \menuseparator
3052 or the toolbar button
3055 arg "float-insert table"
3061 \begin_layout Standard
3062 The float appears as a collapsible box with a caption that has the label
3064 \begin_inset Quotes eld
3068 \begin_inset space ~
3072 \begin_inset Quotes erd
3075 (# is the actual table number).
3076 You can insert tables in the float above or below the caption.
3079 \begin_layout Standard
3081 \begin_inset space ~
3085 \begin_inset CommandInset ref
3087 reference "tab:a table float"
3091 is an example table within a table float.
3094 \begin_layout Standard
3095 Having the caption above the table is the common rule that is unfortunately
3096 not supported in LaTeX's standard classes.
3097 This means that, if you are using the document classes
3113 , there will be no space between the caption and the table.
3114 To insert the needed space, add the following option to the load command
3115 of the LaTeX-package
3120 \begin_inset Index idx
3123 \begin_layout Plain Layout
3124 LaTeX-packages ! caption
3129 in your document preamble
3133 \begin_layout Plain Layout
3134 For more information have a look at section
3135 \begin_inset space ~
3139 \begin_inset CommandInset ref
3141 reference "sec:Caption-Placement"
3153 \begin_layout Standard
3159 \begin_layout Standard
3164 , which is described in section
3165 \begin_inset space ~
3169 \begin_inset CommandInset ref
3171 reference "sec:Caption-Formatting"
3175 , is used to adjust the caption format.
3178 \begin_layout Standard
3179 \begin_inset Index idx
3182 \begin_layout Plain Layout
3183 References ! to Tables
3188 Tables can be cross-referenced in the text by referencing their label.
3189 To do this insert a label in the caption using the menu
3191 Insert\SpecialChar \menuseparator
3194 or the toolbar button
3201 You can now refer to the label using the menu
3203 Insert\SpecialChar \menuseparator
3205 \begin_inset space ~
3210 or the toolbar button
3213 arg "dialog-show-new-inset ref"
3217 \begin_inset Newline newline
3220 Referencing is explained in detail in section
3221 \begin_inset space ~
3225 \begin_inset CommandInset ref
3227 reference "sec:Referencing-Floats"
3234 \begin_layout Section
3236 \begin_inset CommandInset label
3238 name "sec:Longtables"
3243 \begin_inset Index idx
3246 \begin_layout Plain Layout
3253 \begin_inset Index idx
3256 \begin_layout Plain Layout
3265 \begin_layout Standard
3266 If the table is too long to fit on one page, you can use the option
3269 \begin_inset space ~
3273 \begin_inset space ~
3282 of the table dialog to split the table automatically over more pages.
3283 Doing this enables the following options:
3286 \begin_layout Description
3287 Header: The current row is defined to be a header row that appears on all
3288 pages of the longtable; except for the first page, if
3291 \begin_inset space ~
3297 This is therefore called the main header.
3300 \begin_layout Description
3302 \begin_inset space ~
3305 header: The current row is defined to be a header row that appears on the
3306 first page of the longtable.
3309 \begin_layout Description
3310 Footer: The current row is defined to be a footer row that appears on all
3311 pages of the longtable; except for the last page, if
3314 \begin_inset space ~
3322 \begin_layout Description
3324 \begin_inset space ~
3327 footer: The current row is defined to be a footer row that appears on the
3328 last page of the longtable.
3331 \begin_layout Description
3332 Caption: The current row contains the table caption.
3333 The row is reset as single column and a caption is inserted.
3334 More about longtable captions is explained in sec.
3335 \begin_inset space \thinspace{}
3339 \begin_inset CommandInset ref
3341 reference "sub:Longtable-Captions"
3348 \begin_layout Standard
3349 You can also specify a row where the table is split.
3350 See the following longtable to see how it works:
3353 \begin_layout Standard
3355 \begin_inset Tabular
3356 <lyxtabular version="3" rows="69" columns="3">
3357 <features rotate="0" islongtable="true" longtabularalignment="center">
3358 <column alignment="left" valignment="top" width="0cm">
3359 <column alignment="left" valignment="top" width="0pt">
3360 <column alignment="center" valignment="top" width="0pt">
3361 <row endfirsthead="true">
3362 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3365 \begin_layout Plain Layout
3368 Example Phone List (ignore the names)
3373 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3376 \begin_layout Plain Layout
3382 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3385 \begin_layout Plain Layout
3392 <row endfirsthead="true">
3393 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3396 \begin_layout Plain Layout
3404 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3407 \begin_layout Plain Layout
3413 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3416 \begin_layout Plain Layout
3425 <row endhead="true">
3426 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3429 \begin_layout Plain Layout
3437 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3440 \begin_layout Plain Layout
3446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3449 \begin_layout Plain Layout
3456 <row endhead="true">
3457 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3460 \begin_layout Plain Layout
3468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3471 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3480 \begin_layout Plain Layout
3489 <row endfoot="true">
3490 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3493 \begin_layout Plain Layout
3494 continued on next page
3499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3502 \begin_layout Plain Layout
3508 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3522 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" usebox="none">
3533 \begin_layout Plain Layout
3539 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3553 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" usebox="none">
3564 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3584 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" usebox="none">
3595 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3615 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" usebox="none">
3626 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3646 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" usebox="none">
3657 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3677 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" usebox="none">
3688 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3708 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" usebox="none">
3719 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3739 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" usebox="none">
3750 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" usebox="none">
3781 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3801 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" usebox="none">
3812 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3832 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" usebox="none">
3843 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3863 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" usebox="none">
3874 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3925 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" usebox="none">
3967 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3987 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" usebox="none">
3998 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" usebox="none">
4060 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4080 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" usebox="none">
4091 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4111 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" usebox="none">
4122 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4142 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" usebox="none">
4153 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4173 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" usebox="none">
4184 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4204 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" usebox="none">
4215 \begin_layout Plain Layout
4221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4235 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" usebox="none">
4246 \begin_layout Plain Layout
4252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4266 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" usebox="none">
4277 \begin_layout Plain Layout
4283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" usebox="none">
4308 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4328 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" usebox="none">
4339 \begin_layout Plain Layout
4345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4359 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" usebox="none">
4370 \begin_layout Plain Layout
4376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4390 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" usebox="none">
4401 \begin_layout Plain Layout
4407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4421 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" usebox="none">
4432 \begin_layout Plain Layout
4438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4441 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4452 \begin_layout Plain Layout
4460 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4463 \begin_layout Plain Layout
4469 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4483 \begin_layout Plain Layout
4489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4492 \begin_layout Plain Layout
4498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4512 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" usebox="none">
4523 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4543 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" usebox="none">
4554 \begin_layout Plain Layout
4560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4574 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" usebox="none">
4585 \begin_layout Plain Layout
4591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4605 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" usebox="none">
4616 \begin_layout Plain Layout
4622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4636 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" usebox="none">
4647 \begin_layout Plain Layout
4653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" usebox="none">
4678 \begin_layout Plain Layout
4684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4698 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" usebox="none">
4709 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4729 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" usebox="none">
4740 \begin_layout Plain Layout
4746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4760 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" usebox="none">
4771 \begin_layout Plain Layout
4777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4791 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" usebox="none">
4802 \begin_layout Plain Layout
4808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4822 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" usebox="none">
4833 \begin_layout Plain Layout
4839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4853 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" usebox="none">
4864 \begin_layout Plain Layout
4870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4884 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" usebox="none">
4895 \begin_layout Plain Layout
4901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4915 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" usebox="none">
4926 \begin_layout Plain Layout
4932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4946 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" usebox="none">
4957 \begin_layout Plain Layout
4963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4977 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" usebox="none">
4988 \begin_layout Plain Layout
4994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5008 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" usebox="none">
5019 \begin_layout Plain Layout
5025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5039 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" usebox="none">
5050 \begin_layout Plain Layout
5056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5070 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" usebox="none">
5081 \begin_layout Plain Layout
5087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" usebox="none">
5112 \begin_layout Plain Layout
5118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5132 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" usebox="none">
5143 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5163 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" usebox="none">
5174 \begin_layout Plain Layout
5180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5194 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" usebox="none">
5205 \begin_layout Plain Layout
5211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5214 \begin_layout Plain Layout
5222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5225 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" usebox="none">
5236 \begin_layout Plain Layout
5242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5245 \begin_layout Plain Layout
5253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5256 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" usebox="none">
5267 \begin_layout Plain Layout
5273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5276 \begin_layout Plain Layout
5284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5287 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" usebox="none">
5298 \begin_layout Plain Layout
5304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Plain Layout
5315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5318 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" usebox="none">
5329 \begin_layout Plain Layout
5335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Plain Layout
5346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5349 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" usebox="none">
5360 \begin_layout Plain Layout
5366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5369 \begin_layout Plain Layout
5377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5380 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" usebox="none">
5391 \begin_layout Plain Layout
5397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5400 \begin_layout Plain Layout
5408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5411 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" usebox="none">
5422 \begin_layout Plain Layout
5428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5431 \begin_layout Plain Layout
5439 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5442 \begin_layout Plain Layout
5450 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5453 \begin_layout Plain Layout
5459 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5462 \begin_layout Plain Layout
5469 <row endlastfoot="true">
5470 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5473 \begin_layout Plain Layout
5479 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5482 \begin_layout Plain Layout
5488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5491 \begin_layout Plain Layout
5506 \begin_layout Plain Layout
5510 addtocounter{table}{-1}
5516 \begin_inset Note Note
5519 \begin_layout Plain Layout
5520 See the first greyed-out note in section
5521 \begin_inset space ~
5525 \begin_inset CommandInset ref
5527 reference "sub:Longtable-Captions"
5531 for an explanation of this command.
5539 \begin_layout Subsection
5540 Footnotes in Longtables
5541 \begin_inset CommandInset label
5543 name "sub:Footnotes-in-Longtables"
5548 \begin_inset Index idx
5551 \begin_layout Plain Layout
5552 Longtables ! Footnotes
5560 \begin_layout Standard
5561 Footnotes can be inserted to every longtable cell.
5562 They appear at the bottom of the page where the table cell with the footnote
5565 \begin_inset space ~
5569 \begin_inset CommandInset ref
5571 reference "tab:DiffCaptions"
5575 has for example a footnote.
5578 \begin_layout Subsection
5580 \begin_inset Index idx
5583 \begin_layout Plain Layout
5584 Longtables ! Alignment
5592 \begin_layout Standard
5593 The horizontal alignment of longtables can be set in the table settings
5595 For left- and right-alignment the table will be directly at the page border.
5596 To add space between the table and the border one has to set the alignment
5597 to center and change the value of the LaTeX-lengths
5609 by inserting this line as TeX-Code before the longtable:
5612 \begin_layout Standard
5622 \begin_layout Standard
5623 The value can have any of the units listed in Table
5624 \begin_inset space ~
5628 \begin_inset CommandInset ref
5630 reference "tab:Units"
5641 controls the horizontal distance from the left page border to the longtable,
5648 the distance from the right side.
5649 The default value for both lengths is
5655 , which is in this case the same as an horizontal fill in LyX.
5658 \begin_layout Standard
5659 The following longtable was centered and
5675 \begin_layout Plain Layout
5691 \begin_layout Standard
5692 \begin_inset Tabular
5693 <lyxtabular version="3" rows="5" columns="5">
5694 <features rotate="0" islongtable="true" longtabularalignment="center">
5695 <column alignment="center" valignment="top">
5696 <column alignment="center" valignment="top" width="0pt">
5697 <column alignment="center" valignment="top">
5698 <column alignment="center" valignment="top">
5699 <column alignment="center" valignment="top">
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Plain Layout
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Plain Layout
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Plain Layout
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Plain Layout
5737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5740 \begin_layout Plain Layout
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Plain Layout
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Plain Layout
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Plain Layout
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5787 \begin_layout Plain Layout
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Plain Layout
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5834 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Plain Layout
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5881 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5892 \begin_layout Plain Layout
5898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5901 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5928 \begin_layout Plain Layout
5943 \begin_layout Plain Layout
5960 \begin_layout Plain Layout
5964 addtocounter{table}{-1}
5970 \begin_inset Note Note
5973 \begin_layout Plain Layout
5974 See the first greyed-out note in section
5975 \begin_inset space ~
5979 \begin_inset CommandInset ref
5981 reference "sub:Longtable-Captions"
5985 for an explanation of this command.
5993 \begin_layout Subsection
5995 \begin_inset Index idx
5998 \begin_layout Plain Layout
5999 Longtables ! Captions
6005 \begin_inset CommandInset label
6007 name "sub:Longtable-Captions"
6014 \begin_layout Standard
6015 A longtable cannot be put into a table float because floats can only be
6017 But the caption environment of floats can also be used for longtables when
6018 you use the longtable option
6022 as described in sec.
6023 \begin_inset space \thinspace{}
6027 \begin_inset CommandInset ref
6029 reference "sec:Longtables"
6034 Only one table row should contain a caption, either a header or a footer
6038 \begin_layout Standard
6039 Here is a short longtable to see how it works:
6042 \begin_layout Standard
6043 \begin_inset Tabular
6044 <lyxtabular version="3" rows="6" columns="5">
6045 <features rotate="0" islongtable="true" longtabularalignment="center">
6046 <column alignment="center" valignment="top">
6047 <column alignment="center" valignment="top">
6048 <column alignment="center" valignment="top">
6049 <column alignment="center" valignment="top">
6050 <column alignment="center" valignment="top">
6051 <row endfirsthead="true" caption="true">
6052 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6055 \begin_layout Plain Layout
6056 \begin_inset Caption Standard
6058 \begin_layout Plain Layout
6059 Longtable with caption
6060 \begin_inset Argument 1
6063 \begin_layout Plain Layout
6079 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6082 \begin_layout Plain Layout
6088 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6091 \begin_layout Plain Layout
6097 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6100 \begin_layout Plain Layout
6106 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6109 \begin_layout Plain Layout
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Plain Layout
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Plain Layout
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6138 \begin_layout Plain Layout
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Plain Layout
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6156 \begin_layout Plain Layout
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Plain Layout
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Plain Layout
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6185 \begin_layout Plain Layout
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Plain Layout
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6203 \begin_layout Plain Layout
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Plain Layout
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6250 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Plain Layout
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6270 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6297 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6326 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6344 \begin_layout Plain Layout
6358 \begin_layout Standard
6359 \begin_inset VSpace medskip
6363 \begin_inset Note Greyedout
6366 \begin_layout Plain Layout
6370 \begin_inset space ~
6375 The table number is increased for every longtable, even if you did not
6376 set a caption for it.
6377 For this reason you could have the case that e.
6378 \begin_inset space \thinspace{}
6382 \begin_inset space \space{}
6386 \begin_inset space ~
6390 \begin_inset space ~
6393 2.1 in the list of tables if there are two longtables without captions.
6394 To avoid this you can add the following command in TeX-Code after every
6395 longtable without a caption:
6398 \begin_layout Plain Layout
6403 addtocounter{table}{-1}
6406 \begin_layout Plain Layout
6407 This is not needed when none of your longtables has a caption and you add
6408 the following code to the document preamble:
6411 \begin_layout Plain Layout
6421 \begin_inset Newline newline
6432 addtocounter{table}{-1}}
6440 \begin_layout Standard
6441 \begin_inset Note Greyedout
6444 \begin_layout Plain Layout
6448 \begin_inset space ~
6458 \begin_inset Index idx
6461 \begin_layout Plain Layout
6462 LaTeX-packages ! hyperref
6475 dialog to link cross-references, the link to a longtable caption will always
6476 point to the beginning of the document.
6484 \begin_layout Subsubsection
6485 References to Longtables
6486 \begin_inset Index idx
6489 \begin_layout Plain Layout
6490 Longtables ! References
6498 \begin_layout Standard
6499 \begin_inset Tabular
6500 <lyxtabular version="3" rows="6" columns="5">
6501 <features rotate="0" islongtable="true" longtabularalignment="center">
6502 <column alignment="center" valignment="top">
6503 <column alignment="center" valignment="top">
6504 <column alignment="center" valignment="top">
6505 <column alignment="center" valignment="top">
6506 <column alignment="center" valignment="top">
6507 <row endfirsthead="true" caption="true">
6508 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6511 \begin_layout Plain Layout
6512 \begin_inset Caption Standard
6514 \begin_layout Plain Layout
6515 Referenced longtable
6516 \begin_inset CommandInset label
6518 name "tab:RefExample"
6532 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6535 \begin_layout Plain Layout
6541 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6544 \begin_layout Plain Layout
6550 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6553 \begin_layout Plain Layout
6559 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6562 \begin_layout Plain Layout
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6573 \begin_layout Plain Layout
6579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6582 \begin_layout Plain Layout
6588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6591 \begin_layout Plain Layout
6597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6600 \begin_layout Plain Layout
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6609 \begin_layout Plain Layout
6617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6620 \begin_layout Plain Layout
6626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6629 \begin_layout Plain Layout
6635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6638 \begin_layout Plain Layout
6644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6647 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6656 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6676 \begin_layout Plain Layout
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6694 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6703 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6723 \begin_layout Plain Layout
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6741 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6750 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6779 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6788 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Plain Layout
6811 \begin_layout Standard
6812 To reference a longtable, insert a label into the caption.
6815 \begin_layout Standard
6816 This is a reference to Table
6817 \begin_inset space ~
6821 \begin_inset CommandInset ref
6823 reference "tab:RefExample"
6830 \begin_layout Standard
6831 The caption layout can be set together with all other captions of your document
6832 using the LaTeX-package
6837 \begin_inset Index idx
6840 \begin_layout Plain Layout
6841 LaTeX-packages ! caption
6847 \begin_inset space ~
6851 \begin_inset CommandInset ref
6853 reference "sec:Caption-Formatting"
6860 \begin_layout Subsubsection
6862 \begin_inset Index idx
6865 \begin_layout Plain Layout
6866 Longtables ! Caption Width
6874 \begin_layout Standard
6875 The maximal width of caption lines is defined by the length
6882 Its default value is 4
6883 \begin_inset space \thinspace{}
6887 To change it add the following command to your document preamble or as
6888 TeX-Code into your document before the longtable that should be affected
6891 \begin_layout Standard
6901 \begin_layout Standard
6902 where the width could have one of the units listed in appendix
6903 \begin_inset space ~
6907 \begin_inset CommandInset ref
6909 reference "cha:Units-available-in"
6916 \begin_layout Standard
6917 The following tables show the difference:
6920 \begin_layout Standard
6921 \begin_inset Tabular
6922 <lyxtabular version="3" rows="6" columns="5">
6923 <features rotate="0" islongtable="true" longtabularalignment="center">
6924 <column alignment="center" valignment="top">
6925 <column alignment="center" valignment="top">
6926 <column alignment="center" valignment="top">
6927 <column alignment="center" valignment="top">
6928 <column alignment="center" valignment="top">
6929 <row endfirsthead="true" caption="true">
6930 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6933 \begin_layout Plain Layout
6934 \begin_inset Caption Standard
6936 \begin_layout Plain Layout
6937 long full title with default width long full title with default width long
6938 full title with default width
6939 \begin_inset Argument 1
6942 \begin_layout Plain Layout
6943 caption with default width
6958 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6961 \begin_layout Plain Layout
6967 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6970 \begin_layout Plain Layout
6976 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6979 \begin_layout Plain Layout
6985 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6988 \begin_layout Plain Layout
6996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6999 \begin_layout Plain Layout
7005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7008 \begin_layout Plain Layout
7014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7017 \begin_layout Plain Layout
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7026 \begin_layout Plain Layout
7032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7035 \begin_layout Plain Layout
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7046 \begin_layout Plain Layout
7052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7055 \begin_layout Plain Layout
7061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7064 \begin_layout Plain Layout
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Plain Layout
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7082 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7093 \begin_layout Plain Layout
7099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7102 \begin_layout Plain Layout
7108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7111 \begin_layout Plain Layout
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7120 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7129 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7140 \begin_layout Plain Layout
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7149 \begin_layout Plain Layout
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7158 \begin_layout Plain Layout
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7167 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7176 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7187 \begin_layout Plain Layout
7193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7196 \begin_layout Plain Layout
7202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7205 \begin_layout Plain Layout
7211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7214 \begin_layout Plain Layout
7220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7223 \begin_layout Plain Layout
7237 \begin_layout Standard
7241 \begin_layout Plain Layout
7253 \begin_inset Tabular
7254 <lyxtabular version="3" rows="6" columns="5">
7255 <features rotate="0" islongtable="true" longtabularalignment="center">
7256 <column alignment="center" valignment="top">
7257 <column alignment="center" valignment="top">
7258 <column alignment="center" valignment="top">
7259 <column alignment="center" valignment="top">
7260 <column alignment="center" valignment="top">
7261 <row endfirsthead="true" caption="true">
7262 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7265 \begin_layout Plain Layout
7266 \begin_inset Caption Standard
7268 \begin_layout Plain Layout
7269 long full title with width set to 5
7270 \begin_inset space \thinspace{}
7273 cm long full title with width set to 5
7274 \begin_inset space \thinspace{}
7277 cm long full title with width set to 5
7278 \begin_inset space \thinspace{}
7282 \begin_inset Argument 1
7285 \begin_layout Plain Layout
7287 \begin_inset space \thinspace{}
7291 \begin_inset space \thinspace{}
7295 \begin_inset space \thinspace{}
7313 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7316 \begin_layout Plain Layout
7322 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7325 \begin_layout Plain Layout
7331 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7334 \begin_layout Plain Layout
7340 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7343 \begin_layout Plain Layout
7351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7354 \begin_layout Plain Layout
7360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7363 \begin_layout Plain Layout
7369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7372 \begin_layout Plain Layout
7378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7381 \begin_layout Plain Layout
7387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7390 \begin_layout Plain Layout
7398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7401 \begin_layout Plain Layout
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7410 \begin_layout Plain Layout
7416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7419 \begin_layout Plain Layout
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7428 \begin_layout Plain Layout
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7437 \begin_layout Plain Layout
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7448 \begin_layout Plain Layout
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Plain Layout
7463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7475 \begin_layout Plain Layout
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7484 \begin_layout Plain Layout
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7504 \begin_layout Plain Layout
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7513 \begin_layout Plain Layout
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7522 \begin_layout Plain Layout
7528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7531 \begin_layout Plain Layout
7539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7551 \begin_layout Plain Layout
7557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7560 \begin_layout Plain Layout
7566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7569 \begin_layout Plain Layout
7575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7578 \begin_layout Plain Layout
7592 \begin_layout Standard
7596 \begin_layout Plain Layout
7610 \begin_layout Standard
7611 \begin_inset Note Greyedout
7614 \begin_layout Plain Layout
7619 When the LaTeX-package
7624 \begin_inset Index idx
7627 \begin_layout Plain Layout
7628 LaTeX-packages ! caption
7633 is used, as in this document, the full page width is used for the caption
7634 when you use the default value of 4
7635 \begin_inset space \thinspace{}
7645 To get in this case exactly a 4
7646 \begin_inset space \thinspace{}
7649 in wide caption, you can either use a value slightly different from 4.0
7650 \begin_inset space \thinspace{}
7654 \begin_inset space \thinspace{}
7658 \begin_inset space \space{}
7662 \begin_inset space \thinspace{}
7665 in, or the LaTeX-command
7669 captionsetup{width=value}
7671 that is provided by the
7683 \begin_layout Subsubsection
7684 Different Captions for Table Pages
7685 \begin_inset Index idx
7688 \begin_layout Plain Layout
7689 Longtables ! Different Captions for Pages
7697 \begin_layout Standard
7698 When the table captions for the following pages should differ from the one
7699 of the first table page, mark a empty row as header which contains a caption.
7700 Then right-click on the caption and select in the context menu
7703 \begin_inset space ~
7710 \begin_inset space ~
7714 \begin_inset CommandInset ref
7716 reference "tab:DiffCaptions"
7720 is an example of a longtable with different heading where the second caption
7721 does not include the table number.
7724 \begin_layout Standard
7726 \begin_inset Tabular
7727 <lyxtabular version="3" rows="59" columns="3">
7728 <features rotate="0" islongtable="true" longtabularalignment="center">
7729 <column alignment="left" valignment="top" width="0cm">
7730 <column alignment="left" valignment="top" width="0pt">
7731 <column alignment="center" valignment="top" width="0pt">
7732 <row endfirsthead="true" caption="true">
7733 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7736 \begin_layout Plain Layout
7737 \begin_inset Caption Standard
7739 \begin_layout Plain Layout
7741 \begin_inset CommandInset label
7743 name "tab:DiffCaptions"
7748 \begin_inset Argument 1
7751 \begin_layout Plain Layout
7767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Plain Layout
7786 <row endfirsthead="true">
7787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7793 Example Phone List (ignore the names)
7798 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7801 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7817 <row endfirsthead="true">
7818 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7832 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7841 \begin_layout Plain Layout
7850 <row endhead="true" caption="true">
7851 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7855 \begin_inset Caption LongTableNoNumber
7857 \begin_layout Plain Layout
7858 Continued Example Phone List
7868 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7880 \begin_layout Plain Layout
7887 <row endhead="true">
7888 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7902 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7911 \begin_layout Plain Layout
7918 <row endhead="true">
7919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7933 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7942 \begin_layout Plain Layout
7951 <row endfoot="true">
7952 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7955 \begin_layout Plain Layout
7956 continued on next page
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7964 \begin_layout Plain Layout
7970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8108 \begin_layout Plain Layout
8116 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8139 \begin_layout Plain Layout
8147 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8407 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8418 \begin_layout Plain Layout
8427 \begin_layout Plain Layout
8438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8647 \begin_layout Plain Layout
8655 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8954 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9045 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9076 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9107 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9138 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9169 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9200 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9231 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9262 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9265 \begin_layout Plain Layout
9273 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9293 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9296 \begin_layout Plain Layout
9304 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9324 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9327 \begin_layout Plain Layout
9335 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9355 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9358 \begin_layout Plain Layout
9366 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9386 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9389 \begin_layout Plain Layout
9397 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9417 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9420 \begin_layout Plain Layout
9428 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9448 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9451 \begin_layout Plain Layout
9459 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9479 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9482 \begin_layout Plain Layout
9490 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9510 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9513 \begin_layout Plain Layout
9521 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9541 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9544 \begin_layout Plain Layout
9552 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9575 \begin_layout Plain Layout
9583 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9592 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9595 \begin_layout Plain Layout
9609 \begin_layout Section
9610 Special Longtable Issues
9611 \begin_inset CommandInset label
9613 name "sec:Special-Longtable-Issues"
9620 \begin_layout Subsection
9621 Longtable Calculation
9622 \begin_inset Index idx
9625 \begin_layout Plain Layout
9626 Longtables ! Calculation
9634 \begin_layout Standard
9635 LaTeX calculates the height of table pages and their page breaks using so
9637 Chunks are parts of tables that held at the same time in LaTeX's memory.
9638 The default value was historically set to only 20 table rows.
9639 If you are using longtables with many pages this may slow down the creation
9641 You can safely increase the chunk size to values of 100-1000 by adding
9642 this command line to your document preamble:
9645 \begin_layout Standard
9650 setcounter{LTchunksize}{100}
9653 \begin_layout Subsection
9654 Floats and Longtables
9655 \begin_inset Index idx
9658 \begin_layout Plain Layout
9667 \begin_layout Standard
9668 There might be problems when a float appears on the same page where a longtable
9670 To avoid such a situation, insert a
9671 \begin_inset Quotes eld
9675 \begin_inset Quotes erd
9680 Insert\SpecialChar \menuseparator
9681 Formatting\SpecialChar \menuseparator
9683 \begin_inset space ~
9688 ) before your longtable.
9691 \begin_layout Subsection
9693 \begin_inset Index idx
9696 \begin_layout Plain Layout
9697 Longtables ! Forced Page Breaks
9705 \begin_layout Standard
9706 By default tables are only broken between rows.
9707 If you have a cell with multiples lines and want to have a page break within
9708 the cell, insert the new line command
9709 \begin_inset Quotes eld
9721 \begin_inset Quotes erd
9724 as TeX-Code at the point of the cell where it can be broken.
9733 command you have to insert in TeX-Code as many
9734 \begin_inset Quotes eld
9742 \begin_inset Quotes erd
9745 characters as the number of the following table columns.
9750 is the character to separate table cells.
9751 Write in TeX-Code after each
9755 the content of the corresponding following cell and delete the content
9757 \begin_inset Newline newline
9768 command, insert as many
9772 characters as the number of table columns before the current column.
9774 \begin_inset space ~
9778 \begin_inset CommandInset ref
9780 reference "tab:ForcedPagebreak"
9784 the cell that should be broken is in the second column followed by another
9786 Therefore the following command was inserted in the cell as TeX-Code after
9788 \begin_inset Quotes eld
9796 \begin_inset Quotes erd
9802 \begin_layout Standard
9812 \begin_inset Newline newline
9818 \begin_layout Standard
9820 \begin_inset Quotes eld
9824 \begin_inset Quotes erd
9827 in the third column of the row was deleted.
9834 is only needed when a page break should definitely occur at this position,
9835 otherwise it would be a conditional break.
9836 If your footer row of the longtable has for a certain reason no upper line
9837 but you would have a horizontal line where the cell is broken, use this
9841 \begin_layout Standard
9849 \begin_inset Newline newline
9857 \begin_layout Standard
9858 When the cell to be broken is in the last column, the command
9861 \begin_layout Standard
9871 \begin_layout Standard
9872 must be inserted as TeX-Code at the beginning of the cell.
9873 This ensures that the part of the cell that will be displayed on the new
9874 page appears with the full width.
9877 \begin_layout Standard
9879 \begin_inset Tabular
9880 <lyxtabular version="3" rows="38" columns="3">
9881 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9882 <column alignment="left" valignment="top" width="0cm">
9883 <column alignment="left" valignment="top" width="3cm">
9884 <column alignment="center" valignment="top" width="0pt">
9885 <row endfirsthead="true" caption="true">
9886 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9889 \begin_layout Plain Layout
9890 \begin_inset Caption Standard
9892 \begin_layout Plain Layout
9893 Table with forced page break in table cell
9894 \begin_inset CommandInset label
9896 name "tab:ForcedPagebreak"
9901 \begin_inset Argument 1
9904 \begin_layout Plain Layout
9905 Table with forced page break in table cell
9920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9923 \begin_layout Plain Layout
9929 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9932 \begin_layout Plain Layout
9939 <row endfirsthead="true">
9940 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9946 Example Phone List (ignore the names)
9951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9963 \begin_layout Plain Layout
9970 <row endfirsthead="true">
9971 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9974 \begin_layout Plain Layout
9982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9985 \begin_layout Plain Layout
9991 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9994 \begin_layout Plain Layout
10003 <row endhead="true">
10004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10007 \begin_layout Plain Layout
10011 \begin_layout Plain Layout
10015 caption*{Continued Example Phone List}
10029 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10032 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10041 \begin_layout Plain Layout
10048 <row endhead="true">
10049 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10060 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10063 \begin_layout Plain Layout
10069 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10079 <row endhead="true">
10080 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10083 \begin_layout Plain Layout
10091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10094 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10103 \begin_layout Plain Layout
10112 <row endfoot="true">
10113 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10116 \begin_layout Plain Layout
10117 continued on next page
10122 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10125 \begin_layout Plain Layout
10131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10134 \begin_layout Plain Layout
10142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10162 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10537 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10548 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10559 \begin_layout Plain Layout
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10785 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10827 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10840 Fürst von Montecompatri, 11.
10841 Fürst von Sulmona und Vivaro, 10.
10842 Fürst von Rossano, 5.
10843 Herzog von Canemorte, 11.
10844 Herzog von Palombara, 5.
10845 Herzog von Castelchiodato,
10849 \begin_layout Plain Layout
10860 \begin_layout Plain Layout
10868 Herzog von Poggionativo, 11.
10869 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10870 Graf von Valinfreda, 11.
10871 Baron von Cropalati, 11.
10872 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10877 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10880 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10902 \begin_layout Plain Layout
10908 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10911 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10922 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10933 \begin_layout Plain Layout
10939 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10942 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10953 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10964 \begin_layout Plain Layout
10970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10973 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11004 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11015 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11026 \begin_layout Plain Layout
11032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11035 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11046 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11057 \begin_layout Plain Layout
11063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11066 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11088 \begin_layout Plain Layout
11094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11097 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11108 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11119 \begin_layout Plain Layout
11125 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11128 \begin_layout Plain Layout
11142 \begin_layout Section
11143 Multiple Lines, Columns and Rows
11146 \begin_layout Subsection
11147 Multiple Lines in Table Cells
11148 \begin_inset CommandInset label
11150 name "sub:Multiple-Lines-in"
11155 \begin_inset Index idx
11158 \begin_layout Plain Layout
11159 Multiple Lines in Table Cells
11165 \begin_inset Index idx
11168 \begin_layout Plain Layout
11177 \begin_layout Standard
11179 \begin_inset Float table
11185 \begin_layout Plain Layout
11186 \begin_inset Caption Standard
11188 \begin_layout Plain Layout
11189 \begin_inset CommandInset label
11191 name "tab:Table-with-multiple"
11195 Table with multiple lines in cells
11203 \begin_layout Plain Layout
11205 \begin_inset Tabular
11206 <lyxtabular version="3" rows="3" columns="3">
11207 <features rotate="0" tabularvalignment="middle">
11208 <column alignment="center" valignment="middle" width="2.5cm">
11209 <column alignment="center" valignment="middle">
11210 <column alignment="center" valignment="middle">
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11215 \begin_layout Plain Layout
11217 \begin_inset Newline linebreak
11225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11228 \begin_layout Plain Layout
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11237 \begin_layout Plain Layout
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11248 \begin_layout Plain Layout
11254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11257 \begin_layout Plain Layout
11263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11266 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11277 \begin_layout Plain Layout
11283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11286 \begin_layout Plain Layout
11292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11295 \begin_layout Plain Layout
11314 \begin_layout Standard
11315 Setting a fixed width for a column enables you to enter text as a paragraph
11316 with multiple lines and hyphenation.
11319 \begin_layout Standard
11321 \begin_inset space ~
11325 \begin_inset CommandInset ref
11327 reference "tab:Table-with-multiple"
11331 , create a 3×3 table, mark the first cell and right-click on it.
11332 In the appearing table dialog we set a cell width of 2.5
11333 \begin_inset space \thinspace{}
11336 cm and choose centered for the vertical and horizontal alignment.
11337 The vertical alignment is used for all cells of the row.
11338 As our text is smaller than 2.5
11339 \begin_inset space \thinspace{}
11342 cm, only one line will appear.
11343 To get two lines, a justified line break (shortcut
11346 arg "newline-insert linebreak"
11350 If the text is wider than the set cell width, it will automatically be
11351 broken to several lines.
11354 \begin_layout Standard
11355 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11356 by LaTeX if it is the first entry.
11357 Therefore you need to insert something to prevent the word not being the
11359 So add a horizontal space of 0
11360 \begin_inset space \thinspace{}
11363 pt before the word.
11364 As the space is zero, it doesn't change the output.
11366 \begin_inset space ~
11370 \begin_inset CommandInset ref
11372 reference "tab:Table-with-and"
11379 \begin_layout Standard
11380 \begin_inset Float table
11386 \begin_layout Plain Layout
11387 \begin_inset Caption Standard
11389 \begin_layout Plain Layout
11390 \begin_inset CommandInset label
11392 name "tab:Table-with-and"
11396 Table with and without hyphenation
11404 \begin_layout Plain Layout
11405 \begin_inset space \hfill{}
11409 \begin_inset Tabular
11410 <lyxtabular version="3" rows="3" columns="3">
11411 <features rotate="0" tabularvalignment="middle">
11412 <column alignment="center" valignment="middle" width="2.5cm">
11413 <column alignment="center" valignment="middle">
11414 <column alignment="center" valignment="middle">
11416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11419 \begin_layout Plain Layout
11420 verylongtablecellword
11425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11428 \begin_layout Plain Layout
11434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11437 \begin_layout Plain Layout
11445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11448 \begin_layout Plain Layout
11454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11457 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11466 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11486 \begin_layout Plain Layout
11492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11495 \begin_layout Plain Layout
11507 \begin_inset space \hfill{}
11511 \begin_inset Tabular
11512 <lyxtabular version="3" rows="3" columns="3">
11513 <features rotate="0" tabularvalignment="middle">
11514 <column alignment="center" valignment="middle" width="2.5cm">
11515 <column alignment="center" valignment="middle">
11516 <column alignment="center" valignment="middle">
11518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11521 \begin_layout Plain Layout
11522 \begin_inset space \hspace{}
11526 verylongtablecellword
11531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11534 \begin_layout Plain Layout
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11543 \begin_layout Plain Layout
11551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11554 \begin_layout Plain Layout
11560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11563 \begin_layout Plain Layout
11569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11572 \begin_layout Plain Layout
11580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11583 \begin_layout Plain Layout
11589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11592 \begin_layout Plain Layout
11598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11601 \begin_layout Plain Layout
11613 \begin_inset space \hfill{}
11624 \begin_layout Subsection
11626 \begin_inset CommandInset label
11628 name "sub:Multicolumns"
11633 \begin_inset Index idx
11636 \begin_layout Plain Layout
11643 \begin_inset Index idx
11646 \begin_layout Plain Layout
11647 Table ! Multicolumns
11655 \begin_layout Subsubsection
11659 \begin_layout Standard
11660 To merge cells over multiple columns, select as many cells within a row
11661 as you want to merge and use either the table-toolbar button
11664 arg "inset-modify tabular multicolumn"
11669 Edit\SpecialChar \menuseparator
11670 Table\SpecialChar \menuseparator
11673 , or right click on the marked cells and choose
11677 in the context menu.
11680 \begin_layout Standard
11681 Multicolumns have there own cell settings.
11682 That means changing cell borders, cell alignment, and the width only affects
11684 Here is an example table with a multicolumn cell in the first row and one
11685 in the last row without the upper border:
11688 \begin_layout Standard
11690 \begin_inset Tabular
11691 <lyxtabular version="3" rows="3" columns="4">
11692 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11693 <column alignment="center" valignment="top" width="0pt">
11694 <column alignment="center" valignment="middle">
11695 <column alignment="center" valignment="top" width="0in">
11696 <column alignment="center" valignment="top" width="0pt">
11698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11701 \begin_layout Plain Layout
11707 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11710 \begin_layout Plain Layout
11716 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11719 \begin_layout Plain Layout
11725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11728 \begin_layout Plain Layout
11736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11739 \begin_layout Plain Layout
11754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11757 \begin_layout Plain Layout
11763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11766 \begin_layout Plain Layout
11772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11775 \begin_layout Plain Layout
11783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11786 \begin_layout Plain Layout
11792 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11795 \begin_layout Plain Layout
11801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11804 \begin_layout Plain Layout
11810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11813 \begin_layout Plain Layout
11827 \begin_layout Subsubsection
11828 Multicolumn Calculations
11829 \begin_inset CommandInset label
11831 name "sub:Multicolumn-Calculations"
11836 \begin_inset Index idx
11839 \begin_layout Plain Layout
11840 Multicolumns ! Calculations
11848 \begin_layout Standard
11849 LyX supports multicolumns directly, but we have to take account of the cell
11850 width of the columns spanned by the multicolumn cell.
11853 \begin_layout Standard
11854 \begin_inset Float table
11860 \begin_layout Plain Layout
11861 \begin_inset Caption Standard
11863 \begin_layout Plain Layout
11864 \begin_inset CommandInset label
11866 name "tab:Table-with-centered"
11870 Table with centered multicolumn text above two columns that have exactly
11871 half the width of the multicolumn cell
11872 \begin_inset Argument 1
11875 \begin_layout Plain Layout
11876 Perfect multicolumn table
11889 \begin_layout Plain Layout
11891 \begin_inset Tabular
11892 <lyxtabular version="3" rows="3" columns="3">
11893 <features rotate="0" tabularvalignment="middle">
11894 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11895 <column alignment="center" valignment="middle">
11896 <column alignment="center" valignment="top">
11898 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11901 \begin_layout Plain Layout
11902 multiple lines multicolumn
11907 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11910 \begin_layout Plain Layout
11916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11919 \begin_layout Plain Layout
11927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11930 \begin_layout Plain Layout
11936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11939 \begin_layout Plain Layout
11945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11948 \begin_layout Plain Layout
11956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11959 \begin_layout Plain Layout
11965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11968 \begin_layout Plain Layout
11974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11977 \begin_layout Plain Layout
11996 \begin_layout Standard
11997 To create for example Table
11998 \begin_inset space ~
12002 \begin_inset CommandInset ref
12004 reference "tab:Table-with-centered"
12008 , mark the first two cells in the first row of a 3×3 table and right-click
12010 Now choose for this cell
12019 \begin_inset space \thinspace{}
12022 cm in the table dialog.
12023 The merged columns should have exactly half the width of the multicolumn
12024 cell, so that you would set a width of 1.25
12025 \begin_inset space \thinspace{}
12028 cm for the first column.
12029 The second column has then automatically a width of 1.25
12030 \begin_inset space \thinspace{}
12033 cm (multicolumn width - width of first column).
12034 This was done for Table
12035 \begin_inset space ~
12039 \begin_inset CommandInset ref
12041 reference "tab:Table-without-half"
12048 \begin_layout Standard
12049 \begin_inset Float table
12054 \begin_layout Plain Layout
12055 \begin_inset Caption Standard
12057 \begin_layout Plain Layout
12058 \begin_inset CommandInset label
12060 name "tab:Table-without-half"
12064 Table where the spanned table columns are not exactly half the width of
12065 the multicolumn cell
12066 \begin_inset Argument 1
12069 \begin_layout Plain Layout
12070 Imperfect multicolumn table
12083 \begin_layout Plain Layout
12085 \begin_inset Tabular
12086 <lyxtabular version="3" rows="3" columns="3">
12087 <features rotate="0" tabularvalignment="middle">
12088 <column alignment="center" valignment="top" width="1.25cm">
12089 <column alignment="center" valignment="top">
12090 <column alignment="center" valignment="top">
12092 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12095 \begin_layout Plain Layout
12096 multiple lines multicolumn
12101 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12104 \begin_layout Plain Layout
12110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12113 \begin_layout Plain Layout
12121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12124 \begin_layout Plain Layout
12130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12133 \begin_layout Plain Layout
12139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12142 \begin_layout Plain Layout
12150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12153 \begin_layout Plain Layout
12159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12162 \begin_layout Plain Layout
12168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12171 \begin_layout Plain Layout
12190 \begin_layout Standard
12191 You can see that the first column is not half the width of the multicolumn
12192 cell, it is a bit bigger.
12193 The reason is that the specified width of a cell
12194 \begin_inset Formula $W_{g}$
12197 is not its total width
12198 \begin_inset Formula $W_{\mathrm{tot}}$
12201 because a cell is always a bit larger than specified.
12203 \begin_inset space ~
12207 \begin_inset CommandInset ref
12209 reference "cha:Explanation-of-Equation"
12213 explains this in detail.
12216 \begin_layout Standard
12218 \begin_inset Formula $W_{g\, n}$
12221 which the user needs to set when
12225 columns are spanned can be calculated, so that each column has a total
12227 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12231 \begin_inset Formula
12233 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12241 \begin_layout Standard
12242 In our case we have
12243 \begin_inset Formula $n=2$
12247 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12250 cm and the default values for the lengths, so that equation
12251 \begin_inset CommandInset ref
12258 \begin_inset Formula
12260 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12268 \begin_layout Standard
12269 To enable calculations in LaTeX, the LaTeX-package
12273 must be loaded with the document preamble line
12274 \begin_inset Index idx
12277 \begin_layout Plain Layout
12278 LaTeX-packages ! calc
12286 \begin_layout Standard
12294 \begin_layout Standard
12295 LyX does not allow you to calculate lengths in the
12299 field of the table dialog.
12300 Therefore you have to format the column by inserting a LaTeX-argument in
12302 Here is an overview about the arguments:
12305 \begin_layout Itemize
12310 creates cell with a fixed width, its text is vertically top-aligned
12313 \begin_layout Itemize
12318 creates cell with a fixed width, its text is vertically centered
12321 \begin_layout Itemize
12326 creates cell with a fixed width, its text is vertically bottom-aligned
12329 \begin_layout Standard
12330 By entering a LaTeX-argument, all cell settings set in the table dialog
12334 \begin_layout Standard
12335 \begin_inset Note Greyedout
12338 \begin_layout Plain Layout
12343 Due to a bug, LyX shows the overwritten settings anyway.
12351 \begin_layout Standard
12352 As the text should be horizontally centered, the command
12359 You can now enter the following LaTeX-argument for the first spanned column:
12362 \begin_layout Standard
12367 centering}m{1.25cm-6.2pt}
12370 \begin_layout Standard
12375 means, that the commands inside the braces are applied before the cell
12379 \begin_layout Standard
12380 Although we have chosen centered alignment for the text of the multicolumn
12381 cell, it is still left aligned.
12382 This is because LyX only applies the alignment to single columns.
12383 So for the multicolumn cell we have to use the LaTeX-argument
12386 \begin_layout Standard
12394 \begin_layout Subsection
12396 \begin_inset CommandInset label
12398 name "sub:Multirows"
12403 \begin_inset Index idx
12406 \begin_layout Plain Layout
12413 \begin_inset Index idx
12416 \begin_layout Plain Layout
12425 \begin_layout Standard
12426 To merge cells over multiple rows, select as many cells within a column
12427 as you want to merge and use either the table-toolbar button
12430 arg "inset-modify tabular multirow"
12435 Edit\SpecialChar \menuseparator
12436 Table\SpecialChar \menuseparator
12439 , or right click on the marked cells and choose
12443 in the context menu.
12446 \begin_layout Standard
12447 Here is an example table with a multirow in the first column:
12450 \begin_layout Standard
12452 \begin_inset Tabular
12453 <lyxtabular version="3" rows="3" columns="3">
12454 <features rotate="0" tabularvalignment="middle">
12455 <column alignment="center" valignment="top" width="0pt">
12456 <column alignment="center" valignment="top">
12457 <column alignment="center" valignment="top">
12459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12462 \begin_layout Plain Layout
12468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12471 \begin_layout Plain Layout
12477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12480 \begin_layout Plain Layout
12488 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12491 \begin_layout Plain Layout
12497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12500 \begin_layout Plain Layout
12506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12509 \begin_layout Plain Layout
12517 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12529 \begin_layout Plain Layout
12535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12538 \begin_layout Plain Layout
12552 \begin_layout Standard
12553 The width of multirow cells is set by setting the width and alignment for
12559 shifts the content of the multirow up/down if the offset is positive/negative.
12562 \begin_layout Standard
12563 If the column of a multirow cell has no explicit width, the multirow cell
12564 inherits the alignment of the column.
12565 Otherwise it is by default left-aligned.
12566 To override the default, renew the command
12575 \begin_layout Standard
12587 \begin_layout Standard
12588 in the document preamble.
12589 Then all entries of multirow cells in the document are centered.
12590 If centering is only needed for several tables, you can renew the command
12591 in a TeX-Code box just before the table instead of the preamble.
12592 If the text should be right-aligned, replace
12605 To return to left-alignment
12614 \begin_layout Standard
12615 This is an example table with a right-aligned multirow cell that has a vertical
12617 \begin_inset space \thinspace{}
12621 \begin_inset space \thinspace{}
12627 \begin_layout Standard
12633 \begin_layout Plain Layout
12647 \begin_inset Tabular
12648 <lyxtabular version="3" rows="4" columns="3">
12649 <features rotate="0" tabularvalignment="middle">
12650 <column alignment="center" valignment="top" width="3cm">
12651 <column alignment="center" valignment="top">
12652 <column alignment="center" valignment="top">
12654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12657 \begin_layout Plain Layout
12663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12666 \begin_layout Plain Layout
12672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12675 \begin_layout Plain Layout
12683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12686 \begin_layout Plain Layout
12692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12695 \begin_layout Plain Layout
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12704 \begin_layout Plain Layout
12712 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12715 \begin_layout Plain Layout
12721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12724 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12741 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12744 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12753 \begin_layout Plain Layout
12759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12762 \begin_layout Plain Layout
12777 \begin_layout Plain Layout
12793 \begin_layout Standard
12794 To start a new line in a multirow you can use a forced line break (shortcut
12798 arg "newline-insert newline"
12801 ) but this will not respect the cell lines as demonstrated in this table:
12804 \begin_layout Standard
12807 \begin_inset Tabular
12808 <lyxtabular version="3" rows="3" columns="2">
12809 <features rotate="0" tabularvalignment="middle">
12810 <column alignment="left" valignment="middle" width="2cm">
12811 <column alignment="center" valignment="top">
12813 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12816 \begin_layout Plain Layout
12818 \begin_inset Newline newline
12822 \begin_inset Newline newline
12830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12833 \begin_layout Plain Layout
12841 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12844 \begin_layout Plain Layout
12850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12853 \begin_layout Plain Layout
12861 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12864 \begin_layout Plain Layout
12870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Plain Layout
12887 \begin_layout Standard
12888 Therefore be careful with forced line breaks.
12891 \begin_layout Subsection
12892 Cells with diagonal line(s)
12895 \begin_layout Standard
12896 To tell the reader what is meant by column and row headings in a table,
12897 it is helpful to split the first cell of the table by one or two diagonal
12899 This can be achieved by loading the LaTeX-package
12904 \begin_inset Index idx
12907 \begin_layout Plain Layout
12908 LaTeX-packages ! picinpar
12913 in the document preamble.
12914 The package provides the command
12920 that is inserted as TeX-Code and that can take 2 or 3
12921 \begin_inset space ~
12927 \begin_layout Standard
12932 diagbox[options]{lower left}{upper right}
12935 \begin_layout Standard
12940 diagbox[options]{lower left}{upper left}{upper right}
12943 \begin_layout Standard
12944 The first scheme divides the cell by a single diagonal line and the arguments
12945 are placed below and above this line.
12946 The second scheme divides the cell by 2
12947 \begin_inset space ~
12953 \begin_layout Standard
12957 \begin_layout Plain Layout
12967 \begin_inset Note Note
12970 \begin_layout Plain Layout
12971 The following section will only be displayed when the LaTeX-package
12983 \begin_layout Standard
12984 Here is an example table where
12990 is used in the 2-argument scheme in the first cell:
12991 \begin_inset VSpace medskip
12997 \begin_layout Standard
12999 \begin_inset Tabular
13000 <lyxtabular version="3" rows="4" columns="4">
13001 <features rotate="0" tabularvalignment="middle">
13002 <column alignment="center" valignment="top">
13003 <column alignment="center" valignment="top">
13004 <column alignment="center" valignment="top">
13005 <column alignment="center" valignment="top">
13007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13010 \begin_layout Plain Layout
13014 \begin_layout Plain Layout
13027 \begin_layout Plain Layout
13038 \begin_layout Plain Layout
13050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13053 \begin_layout Plain Layout
13059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13062 \begin_layout Plain Layout
13068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13071 \begin_layout Plain Layout
13079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13082 \begin_layout Plain Layout
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13091 \begin_layout Plain Layout
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Plain Layout
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13109 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13120 \begin_layout Plain Layout
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Plain Layout
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Plain Layout
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13158 \begin_layout Plain Layout
13164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13167 \begin_layout Plain Layout
13173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13176 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13185 \begin_layout Plain Layout
13197 \begin_inset VSpace medskip
13203 \begin_layout Standard
13204 The 3-argument scheme is for example useful for cross-tables of sports leagues
13208 \begin_layout Standard
13211 \begin_inset Tabular
13212 <lyxtabular version="3" rows="4" columns="4">
13213 <features rotate="0" tabularvalignment="middle">
13214 <column alignment="center" valignment="top" width="0pt">
13215 <column alignment="center" valignment="top">
13216 <column alignment="center" valignment="top">
13217 <column alignment="center" valignment="top">
13219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13222 \begin_layout Plain Layout
13226 \begin_layout Plain Layout
13239 \begin_layout Plain Layout
13250 \begin_layout Plain Layout
13261 \begin_layout Plain Layout
13273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13285 \begin_layout Plain Layout
13291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13294 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13305 \begin_layout Plain Layout
13311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13314 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13332 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13361 \begin_layout Plain Layout
13367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13370 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13381 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13408 \begin_layout Plain Layout
13422 \begin_layout Standard
13423 For larger cross-tables one might use split cells in 2 or every corner of
13424 the table like in this example:
13427 \begin_layout Standard
13430 \begin_inset Tabular
13431 <lyxtabular version="3" rows="5" columns="5">
13432 <features rotate="0" tabularvalignment="middle">
13433 <column alignment="center" valignment="top" width="0pt">
13434 <column alignment="center" valignment="top">
13435 <column alignment="center" valignment="top">
13436 <column alignment="center" valignment="top">
13437 <column alignment="center" valignment="top">
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13446 \begin_layout Plain Layout
13459 \begin_layout Plain Layout
13470 \begin_layout Plain Layout
13481 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13514 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13523 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13540 \begin_layout Plain Layout
13551 \begin_layout Plain Layout
13562 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13579 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13588 \begin_layout Plain Layout
13594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13606 \begin_layout Plain Layout
13612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13615 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13626 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13673 \begin_layout Plain Layout
13679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13682 \begin_layout Plain Layout
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13724 \begin_layout Plain Layout
13737 \begin_layout Plain Layout
13748 \begin_layout Plain Layout
13759 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13774 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13783 \begin_layout Plain Layout
13789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13792 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13801 \begin_layout Plain Layout
13805 \begin_layout Plain Layout
13818 \begin_layout Plain Layout
13829 \begin_layout Plain Layout
13840 \begin_layout Plain Layout
13860 \begin_layout Standard
13861 To rotate the diagonal lines, the command option
13886 and represent a point of a compass.
13891 is for example the south-west corner.
13892 Thus in the lower left cell of the above table the command
13895 \begin_layout Standard
13900 diagbox[dir=SW]{Team home}{Result}{Team away}
13903 \begin_layout Standard
13905 If no direction is given, it will be NW.
13908 \begin_layout Standard
13909 The necessary width of split cells is automatically calculated.
13910 Thus if you set a fixed column width smaller than the calculated one, the
13911 cell's content will protrude the cell borders:
13914 \begin_layout Standard
13917 \begin_inset Tabular
13918 <lyxtabular version="3" rows="2" columns="2">
13919 <features rotate="0" tabularvalignment="middle">
13920 <column alignment="center" valignment="top" width="3cm">
13921 <column alignment="center" valignment="top">
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13930 \begin_layout Plain Layout
13943 \begin_layout Plain Layout
13954 \begin_layout Plain Layout
13966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13969 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13980 \begin_layout Plain Layout
13986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13989 \begin_layout Plain Layout
14003 \begin_layout Standard
14004 If you need a certain width for columns with a split cell, use the command
14009 (replace '3cm' by the width you need).
14010 In the following table the width of the first column is set to 4
14011 \begin_inset space \thinspace{}
14022 \begin_inset space \thinspace{}
14026 \begin_inset space \thinspace{}
14031 tabcolsep is necessary because the overall width is the width for the text
14032 (in this case the 4
14033 \begin_inset space \thinspace{}
14036 cm) plus two times the separation of the text and the cell border.
14037 The calculation of the width cannot be done in the command option of
14043 so one needs to create a new length which can be used later.
14044 This is done with the TeX-Code commands
14047 \begin_layout Standard
14055 \begin_inset Newline newline
14067 \begin_layout Standard
14071 \begin_layout Plain Layout
14080 \begin_layout Plain Layout
14096 \begin_layout Standard
14097 To enable calculations in LaTeX one needs to load the package
14102 \begin_inset Index idx
14105 \begin_layout Plain Layout
14106 LaTeX-packages ! calc
14111 in the document preamble.
14114 \begin_layout Standard
14115 In this table you can now use the command
14118 \begin_layout Standard
14128 \begin_layout Standard
14132 \begin_layout Standard
14135 \begin_inset Tabular
14136 <lyxtabular version="3" rows="2" columns="2">
14137 <features rotate="0" tabularvalignment="middle">
14138 <column alignment="center" valignment="top" width="4cm">
14139 <column alignment="center" valignment="top">
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14144 \begin_layout Plain Layout
14148 \begin_layout Plain Layout
14163 \begin_layout Plain Layout
14174 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14189 \begin_layout Plain Layout
14197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14209 \begin_layout Plain Layout
14223 \begin_layout Standard
14224 Note that the split cell needs to be the widest one in the column.
14225 Otherwise the length of the diagonal line cannot be calculated correctly
14226 like in this table:
14229 \begin_layout Standard
14232 \begin_inset Tabular
14233 <lyxtabular version="3" rows="2" columns="2">
14234 <features rotate="0" tabularvalignment="middle">
14235 <column alignment="center" valignment="top" width="0pt">
14236 <column alignment="center" valignment="top">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Plain Layout
14245 \begin_layout Plain Layout
14258 \begin_layout Plain Layout
14269 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14284 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14295 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14304 \begin_layout Plain Layout
14318 \begin_layout Standard
14319 In this case use the
14330 It is then not necessary to add 2
14332 tabcolsep because the cell width is now the width of the column.
14333 In this table a width of 3
14334 \begin_inset space \thinspace{}
14340 \begin_layout Standard
14343 \begin_inset Tabular
14344 <lyxtabular version="3" rows="2" columns="2">
14345 <features rotate="0" tabularvalignment="middle">
14346 <column alignment="center" valignment="top" width="0pt">
14347 <column alignment="center" valignment="top">
14349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14352 \begin_layout Plain Layout
14356 \begin_layout Plain Layout
14360 diagbox[width=3cm]{
14369 \begin_layout Plain Layout
14380 \begin_layout Plain Layout
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14395 \begin_layout Plain Layout
14403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14406 \begin_layout Plain Layout
14412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14415 \begin_layout Plain Layout
14429 \begin_layout Standard
14430 For multiple text lines in split cells one needs some extra height to fit
14431 the text to the cell.
14432 This can be achieved with the
14442 (replace '3cm' by the height you need).
14443 In the following table the command
14446 \begin_layout Standard
14451 diagbox[width=3cm,height=1.4cm]{A
14462 \begin_layout Standard
14463 is used in the first cell.
14472 creates hereby the line break.
14476 \begin_layout Plain Layout
14477 Breaking lines with
14481 is only possible when the column has a fixed width.
14489 \begin_layout Standard
14492 \begin_inset Tabular
14493 <lyxtabular version="3" rows="2" columns="2">
14494 <features rotate="0" tabularvalignment="middle">
14495 <column alignment="center" valignment="top">
14496 <column alignment="center" valignment="top">
14498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14501 \begin_layout Plain Layout
14505 \begin_layout Plain Layout
14509 diagbox[width=3cm,height=1.4cm]{
14518 \begin_layout Plain Layout
14533 \begin_layout Plain Layout
14544 \begin_layout Plain Layout
14559 \begin_layout Plain Layout
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14574 \begin_layout Plain Layout
14582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14585 \begin_layout Plain Layout
14591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14594 \begin_layout Plain Layout
14608 \begin_layout Standard
14612 \begin_layout Plain Layout
14622 \begin_inset Note Note
14625 \begin_layout Plain Layout
14626 The following will be displayed when the LaTeX-package
14638 \begin_layout Standard
14639 You need to install the LaTeX-package
14643 to see the following part of this section in the output.
14646 \begin_layout Standard
14650 \begin_layout Plain Layout
14662 \begin_layout Standard
14663 For more info about the LaTeX-package
14667 , see its documentation,
14668 \begin_inset CommandInset citation
14677 \begin_layout Section
14679 \begin_inset CommandInset label
14681 name "sec:Formal-Tables"
14686 \begin_inset Index idx
14689 \begin_layout Plain Layout
14698 \begin_layout Standard
14699 Tables are often typeset in books similar to Table
14700 \begin_inset space ~
14704 \begin_inset CommandInset ref
14706 reference "tab:Example-booktabs-table"
14711 This kind of tables is called
14712 \begin_inset Quotes eld
14720 \begin_inset Quotes erd
14724 To make a table a formal table use the option
14732 tab of the table dialog.
14735 \begin_layout Standard
14736 \begin_inset Float table
14742 \begin_layout Plain Layout
14743 \begin_inset Caption Standard
14745 \begin_layout Plain Layout
14746 \begin_inset CommandInset label
14748 name "tab:Example-booktabs-table"
14752 Example booktabs-table
14760 \begin_layout Plain Layout
14762 \begin_inset Tabular
14763 <lyxtabular version="3" rows="8" columns="4">
14764 <features rotate="0" booktabs="true" tabularvalignment="middle">
14765 <column alignment="center" valignment="top">
14766 <column alignment="center" valignment="top">
14767 <column alignment="center" valignment="top">
14768 <column alignment="center" valignment="top">
14770 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14773 \begin_layout Plain Layout
14779 <cell alignment="center" valignment="top" topline="true" usebox="none">
14782 \begin_layout Plain Layout
14784 \begin_inset space \thinspace{}
14792 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14795 \begin_layout Plain Layout
14797 \begin_inset space \thinspace{}
14805 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14808 \begin_layout Plain Layout
14816 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14819 \begin_layout Plain Layout
14823 \begin_layout Plain Layout
14836 \begin_layout Plain Layout
14845 Detector thickness in µm
14850 <cell alignment="center" valignment="top" usebox="none">
14853 \begin_layout Plain Layout
14859 <cell alignment="center" valignment="top" usebox="none">
14862 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" usebox="none">
14871 \begin_layout Plain Layout
14879 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14882 \begin_layout Plain Layout
14888 <cell alignment="center" valignment="top" topline="true" usebox="none">
14891 \begin_layout Plain Layout
14897 <cell alignment="center" valignment="top" topline="true" usebox="none">
14900 \begin_layout Plain Layout
14906 <cell alignment="center" valignment="top" topline="true" usebox="none">
14909 \begin_layout Plain Layout
14916 <row topspace="default">
14917 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14920 \begin_layout Plain Layout
14921 Spatial resolution in µm
14926 <cell alignment="center" valignment="top" usebox="none">
14929 \begin_layout Plain Layout
14935 <cell alignment="center" valignment="top" usebox="none">
14938 \begin_layout Plain Layout
14944 <cell alignment="center" valignment="top" usebox="none">
14947 \begin_layout Plain Layout
14954 <row topspace="default">
14955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14958 \begin_layout Plain Layout
14960 \begin_inset Formula $f_{\mathrm{max}}$
14968 <cell alignment="center" valignment="top" usebox="none">
14971 \begin_layout Plain Layout
14977 <cell alignment="center" valignment="top" usebox="none">
14980 \begin_layout Plain Layout
14986 <cell alignment="center" valignment="top" usebox="none">
14989 \begin_layout Plain Layout
14996 <row topspace="default">
14997 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15000 \begin_layout Plain Layout
15004 \begin_layout Plain Layout
15008 cmidrule(l{10pt}){1-1}
15013 LSF-spatial resolution
15018 <cell alignment="center" valignment="top" usebox="none">
15021 \begin_layout Plain Layout
15027 <cell alignment="center" valignment="top" usebox="none">
15030 \begin_layout Plain Layout
15036 <cell alignment="center" valignment="top" usebox="none">
15039 \begin_layout Plain Layout
15047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15050 \begin_layout Plain Layout
15056 <cell alignment="center" valignment="top" usebox="none">
15059 \begin_layout Plain Layout
15065 <cell alignment="center" valignment="top" usebox="none">
15068 \begin_layout Plain Layout
15074 <cell alignment="center" valignment="top" usebox="none">
15077 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15088 \begin_layout Plain Layout
15094 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15097 \begin_layout Plain Layout
15103 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15106 \begin_layout Plain Layout
15112 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15115 \begin_layout Plain Layout
15134 \begin_layout Standard
15135 Spaces to table rows can be added using the
15139 tab of the table dialog as described in section
15140 \begin_inset space ~
15144 \begin_inset CommandInset ref
15146 reference "sub:Row-Spacing"
15153 \begin_layout Standard
15154 Unlike normal tables, formal tables have no vertical table lines.
15155 The horizontal table lines can be set as for normal tables but they appear
15156 with different widths in the output:
15157 \begin_inset Newline newline
15160 The first and the last table line have a default width of 0.08
15161 \begin_inset space \thinspace{}
15164 em while the other lines have a default width of 0.05
15165 \begin_inset space \thinspace{}
15171 \begin_layout Standard
15172 The default widths can be changed with the following preamble lines
15175 \begin_layout Standard
15185 \begin_inset Newline newline
15197 \begin_layout Standard
15198 This example is for the first line, the so called
15203 If you want to change the width for the last line, replace
15212 To change the width for the other lines replace
15221 You can use all units listed in appendix
15222 \begin_inset space ~
15226 \begin_inset CommandInset ref
15228 reference "cha:Units-available-in"
15235 \begin_layout Standard
15236 Lines that do not span all table columns can be created by setting a table
15237 line for multicolumn cells.
15238 LyX will then internally use the command
15244 to create this line.
15248 \begin_layout Standard
15253 cmidrule[width](trim){startcol-endcol}
15256 \begin_layout Standard
15263 are currently not supported by LyX so you have to use TeX-Code to be able
15271 s can manually be created by inserting the command as TeX-Code as the first
15272 cell entry of the first cell of a row.
15273 The line is then drawn in the output above the current row.
15276 \begin_layout Standard
15277 The default for the width is 0.03
15278 \begin_inset space \thinspace{}
15282 Startcol is the number of the column where the line starts and endcol the
15283 column number where the line ends.
15284 The endcol always needs to be specified, also when the line should span
15286 The optional parameter trim could be either
15294 where the trimwidth is also optional.
15295 Using for example the parameter
15299 means that the line is trimmed from its left end by 2
15300 \begin_inset space \thinspace{}
15304 If you don't specify the trimwidth the lines are trimmed by the default
15306 \begin_inset space \thinspace{}
15312 \begin_layout Standard
15313 \begin_inset VSpace bigskip
15317 \begin_inset space ~
15321 \begin_inset CommandInset ref
15323 reference "tab:Example-booktabs-table"
15327 was created using the commands
15330 \begin_layout Standard
15340 \begin_layout Standard
15341 at the beginning of the second row and
15344 \begin_layout Standard
15349 cmidrule(l{10pt}){1-1}
15352 \begin_layout Standard
15356 \begin_layout Standard
15357 \begin_inset VSpace bigskip
15363 \begin_layout Standard
15364 You might want to have overlapping
15371 \begin_inset space ~
15375 \begin_inset CommandInset ref
15377 reference "tab:Special-booktabs-table"
15382 This can be achieved with the TeX-Code command
15385 \begin_layout Standard
15393 \begin_layout Standard
15394 The command that was used for the second row of Table
15395 \begin_inset space ~
15399 \begin_inset CommandInset ref
15401 reference "tab:Special-booktabs-table"
15408 \begin_layout Standard
15422 \begin_layout Standard
15423 The command for the sixth row is
15426 \begin_layout Standard
15438 \begin_layout Standard
15439 \begin_inset VSpace bigskip
15445 \begin_layout Standard
15446 If you are in any way not satisfied with the border line spacing, you can
15447 use the following command to produce lines that span over all table columns
15452 \begin_layout Standard
15457 specialrule{width}{space above}{space below}
15460 \begin_layout Standard
15461 For more information about these features, refer to the manual of the LaTeX-pack
15467 \begin_inset CommandInset citation
15474 \begin_inset Index idx
15477 \begin_layout Plain Layout
15478 LaTeX-packages ! booktabs
15486 \begin_layout Standard
15487 \begin_inset Float table
15493 \begin_layout Plain Layout
15494 \begin_inset Caption Standard
15496 \begin_layout Plain Layout
15497 \begin_inset CommandInset label
15499 name "tab:Special-booktabs-table"
15503 Special booktabs-table
15511 \begin_layout Plain Layout
15513 \begin_inset Tabular
15514 <lyxtabular version="3" rows="8" columns="4">
15515 <features rotate="0" booktabs="true" tabularvalignment="middle">
15516 <column alignment="center" valignment="top">
15517 <column alignment="center" valignment="top">
15518 <column alignment="center" valignment="top">
15519 <column alignment="center" valignment="top">
15521 <cell alignment="center" valignment="top" topline="true" usebox="none">
15524 \begin_layout Plain Layout
15530 <cell alignment="center" valignment="top" topline="true" usebox="none">
15533 \begin_layout Plain Layout
15535 \begin_inset space \thinspace{}
15543 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15546 \begin_layout Plain Layout
15548 \begin_inset space \thinspace{}
15556 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15559 \begin_layout Plain Layout
15567 <cell alignment="center" valignment="top" usebox="none">
15570 \begin_layout Plain Layout
15574 \begin_layout Plain Layout
15587 \begin_layout Plain Layout
15600 \begin_layout Plain Layout
15613 \begin_layout Plain Layout
15622 Detector thickness in µm
15627 <cell alignment="center" valignment="top" usebox="none">
15630 \begin_layout Plain Layout
15636 <cell alignment="center" valignment="top" usebox="none">
15639 \begin_layout Plain Layout
15645 <cell alignment="center" valignment="top" usebox="none">
15648 \begin_layout Plain Layout
15656 <cell alignment="center" valignment="top" topline="true" usebox="none">
15659 \begin_layout Plain Layout
15665 <cell alignment="center" valignment="top" topline="true" usebox="none">
15668 \begin_layout Plain Layout
15674 <cell alignment="center" valignment="top" topline="true" usebox="none">
15677 \begin_layout Plain Layout
15683 <cell alignment="center" valignment="top" topline="true" usebox="none">
15686 \begin_layout Plain Layout
15693 <row topspace="default">
15694 <cell alignment="center" valignment="top" usebox="none">
15697 \begin_layout Plain Layout
15698 Spatial resolution in µm
15703 <cell alignment="center" valignment="top" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" usebox="none">
15715 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" usebox="none">
15724 \begin_layout Plain Layout
15731 <row topspace="default">
15732 <cell alignment="center" valignment="top" usebox="none">
15735 \begin_layout Plain Layout
15737 \begin_inset Formula $f_{\mathrm{max}}$
15745 <cell alignment="center" valignment="top" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" usebox="none">
15757 \begin_layout Plain Layout
15763 <cell alignment="center" valignment="top" usebox="none">
15766 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" topline="true" usebox="none">
15777 \begin_layout Plain Layout
15781 \begin_layout Plain Layout
15794 \begin_layout Plain Layout
15803 LSF-spatial resolution
15808 <cell alignment="center" valignment="top" topline="true" usebox="none">
15811 \begin_layout Plain Layout
15817 <cell alignment="center" valignment="top" topline="true" usebox="none">
15820 \begin_layout Plain Layout
15826 <cell alignment="center" valignment="top" topline="true" usebox="none">
15829 \begin_layout Plain Layout
15837 <cell alignment="center" valignment="top" usebox="none">
15840 \begin_layout Plain Layout
15846 <cell alignment="center" valignment="top" usebox="none">
15849 \begin_layout Plain Layout
15855 <cell alignment="center" valignment="top" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" usebox="none">
15867 \begin_layout Plain Layout
15875 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15878 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15887 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15896 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15905 \begin_layout Plain Layout
15924 \begin_layout Section
15925 Vertical Table Alignment
15926 \begin_inset Index idx
15929 \begin_layout Plain Layout
15938 \begin_layout Standard
15939 To align tables vertically in a text line, the table must be inside a box.
15940 The box can then be vertically aligned as described in section
15941 \begin_inset space ~
15945 \begin_inset CommandInset ref
15947 reference "sec:Box-Dialog"
15954 \begin_layout Standard
15955 In the following example the tables are inside a minipage
15959 \begin_layout Plain Layout
15960 Minipages are described in section
15961 \begin_inset space ~
15965 \begin_inset CommandInset ref
15967 reference "sec:Minipages"
15976 box that has a width of 15
15977 \begin_inset space \thinspace{}
15983 \begin_layout Itemize
15985 \begin_inset Box Frameless
15995 height_special "totalheight"
15998 \begin_layout Plain Layout
15999 \begin_inset Tabular
16000 <lyxtabular version="3" rows="3" columns="3">
16001 <features rotate="0" tabularvalignment="middle">
16002 <column alignment="center" valignment="top">
16003 <column alignment="center" valignment="top">
16004 <column alignment="center" valignment="top">
16006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16009 \begin_layout Plain Layout
16015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16018 \begin_layout Plain Layout
16024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16027 \begin_layout Plain Layout
16035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16038 \begin_layout Plain Layout
16044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16047 \begin_layout Plain Layout
16053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16056 \begin_layout Plain Layout
16064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16067 \begin_layout Plain Layout
16073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16076 \begin_layout Plain Layout
16082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16085 \begin_layout Plain Layout
16105 \begin_layout Plain Layout
16117 \begin_inset Box Frameless
16127 height_special "totalheight"
16130 \begin_layout Plain Layout
16131 \begin_inset Tabular
16132 <lyxtabular version="3" rows="3" columns="3">
16133 <features rotate="0" tabularvalignment="middle">
16134 <column alignment="center" valignment="top">
16135 <column alignment="center" valignment="top">
16136 <column alignment="center" valignment="top">
16138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16141 \begin_layout Plain Layout
16147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16150 \begin_layout Plain Layout
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Plain Layout
16167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16170 \begin_layout Plain Layout
16176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16179 \begin_layout Plain Layout
16185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16188 \begin_layout Plain Layout
16196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16199 \begin_layout Plain Layout
16205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16208 \begin_layout Plain Layout
16214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16217 \begin_layout Plain Layout
16237 \begin_layout Plain Layout
16247 \begin_layout Itemize
16249 \begin_inset Box Frameless
16259 height_special "totalheight"
16262 \begin_layout Plain Layout
16263 \begin_inset Tabular
16264 <lyxtabular version="3" rows="3" columns="3">
16265 <features rotate="0" tabularvalignment="middle">
16266 <column alignment="center" valignment="top">
16267 <column alignment="center" valignment="top">
16268 <column alignment="center" valignment="top">
16270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16273 \begin_layout Plain Layout
16279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16282 \begin_layout Plain Layout
16288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16291 \begin_layout Plain Layout
16299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16302 \begin_layout Plain Layout
16308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16311 \begin_layout Plain Layout
16317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16320 \begin_layout Plain Layout
16328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16331 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16340 \begin_layout Plain Layout
16346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16349 \begin_layout Plain Layout
16368 \begin_layout Itemize
16370 \begin_inset Box Frameless
16380 height_special "totalheight"
16383 \begin_layout Plain Layout
16384 \begin_inset Tabular
16385 <lyxtabular version="3" rows="3" columns="3">
16386 <features rotate="0" tabularvalignment="middle">
16387 <column alignment="center" valignment="top">
16388 <column alignment="center" valignment="top">
16389 <column alignment="center" valignment="top">
16391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16394 \begin_layout Plain Layout
16400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16403 \begin_layout Plain Layout
16409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16412 \begin_layout Plain Layout
16420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16423 \begin_layout Plain Layout
16429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16432 \begin_layout Plain Layout
16438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16441 \begin_layout Plain Layout
16449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16452 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16461 \begin_layout Plain Layout
16467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16470 \begin_layout Plain Layout
16490 \begin_layout Plain Layout
16502 \begin_inset Box Frameless
16512 height_special "totalheight"
16515 \begin_layout Plain Layout
16516 \begin_inset Tabular
16517 <lyxtabular version="3" rows="3" columns="3">
16518 <features rotate="0" tabularvalignment="middle">
16519 <column alignment="center" valignment="top">
16520 <column alignment="center" valignment="top">
16521 <column alignment="center" valignment="top">
16523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16526 \begin_layout Plain Layout
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16535 \begin_layout Plain Layout
16541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Plain Layout
16552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16555 \begin_layout Plain Layout
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16564 \begin_layout Plain Layout
16570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Plain Layout
16581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16593 \begin_layout Plain Layout
16599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16602 \begin_layout Plain Layout
16622 \begin_layout Plain Layout
16632 \begin_layout Standard
16633 As you will see, the content of the first and last table row is not correctly
16635 To get this alignment, the minipage box must be set into a raisebox
16639 \begin_layout Plain Layout
16640 Raiseboxes are described in section
16641 \begin_inset space ~
16645 \begin_inset CommandInset ref
16647 reference "sub:Vertical-Alignment"
16657 In the example above the second table in the first item is aligned using
16658 the TeX-Code-command
16661 \begin_layout Standard
16671 \begin_layout Standard
16673 After the box the closing brace
16677 is inserted as TeX-Code.
16678 For the second table in the last item the command
16681 \begin_layout Standard
16691 \begin_layout Standard
16695 \begin_layout Standard
16696 \begin_inset Note Greyedout
16699 \begin_layout Plain Layout
16704 The alignment of the table row content to the surrounding text line is
16706 The required value for the
16712 command for this alignment depends on the document font, the font size,
16713 and the table line thickness.
16721 \begin_layout Section
16723 \begin_inset CommandInset label
16725 name "sec:Colored-Tables"
16730 \begin_inset Index idx
16733 \begin_layout Plain Layout
16742 \begin_layout Subsection
16744 \begin_inset Index idx
16747 \begin_layout Plain Layout
16748 Table Color ! for Cells
16754 \begin_inset Index idx
16757 \begin_layout Plain Layout
16758 Color ! for Table Cells
16766 \begin_layout Standard
16767 \begin_inset Float table
16773 \begin_layout Plain Layout
16774 \begin_inset Caption Standard
16776 \begin_layout Plain Layout
16777 \begin_inset CommandInset label
16779 name "tab:Table-colored-without"
16783 Table colored without using the package
16788 \begin_inset Argument 1
16791 \begin_layout Plain Layout
16792 Table without colortbl
16805 \begin_layout Plain Layout
16807 \begin_inset Tabular
16808 <lyxtabular version="3" rows="3" columns="3">
16809 <features rotate="0" tabularvalignment="middle">
16810 <column alignment="center" valignment="top">
16811 <column alignment="center" valignment="top">
16812 <column alignment="center" valignment="top">
16814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16817 \begin_layout Plain Layout
16825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16828 \begin_layout Plain Layout
16836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16839 \begin_layout Plain Layout
16849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16852 \begin_layout Plain Layout
16860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16863 \begin_layout Plain Layout
16871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16874 \begin_layout Plain Layout
16884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16887 \begin_layout Plain Layout
16895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16898 \begin_layout Plain Layout
16906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16909 \begin_layout Plain Layout
16930 \begin_layout Standard
16931 If you only need colored text, mark the cells and choose a color in the
16935 \begin_inset space ~
16940 dialog (toolbar button
16943 arg "dialog-show character"
16947 This was used to create Table
16948 \begin_inset space ~
16952 \begin_inset CommandInset ref
16954 reference "tab:Table-colored-without"
16959 In any other case you have to use the LaTeX-package
16964 \begin_inset Index idx
16967 \begin_layout Plain Layout
16968 LaTeX-packages ! colortbl
16976 \begin_layout Standard
16980 \begin_layout Plain Layout
16990 \begin_inset Note Note
16993 \begin_layout Plain Layout
16994 The following section part will only be displayed when the LaTeX-package
17007 \begin_layout Standard
17008 To create colored tables,
17012 must be loaded in the preamble with the line
17015 \begin_layout Standard
17020 usepackage{colortbl}
17023 \begin_layout Standard
17024 The color of a column is adjusted with the command
17027 \begin_layout Standard
17032 columncolor{name of color}
17035 \begin_layout Standard
17041 More about the command
17045 is contained in section
17046 \begin_inset space ~
17050 \begin_inset CommandInset ref
17052 reference "sub:Multicolumn-Calculations"
17059 \begin_layout Standard
17060 The following color names are predefined:
17063 \begin_layout Standard
17097 \begin_layout Standard
17098 \begin_inset VSpace medskip
17104 \begin_layout Standard
17105 If you add the options
17108 \begin_layout Standard
17111 usenames,dvipsnames
17114 \begin_layout Standard
17115 to the document class options in the document settings, you can additionally
17117 \begin_inset space ~
17121 These colors are listed in appendix
17122 \begin_inset space ~
17126 \begin_inset CommandInset ref
17128 reference "chap:List-of-dvips-colornames"
17133 One of these colors,
17137 , is used as example in Table
17138 \begin_inset space ~
17142 \begin_inset CommandInset ref
17144 reference "tab:Table-colored-using"
17151 \begin_layout Standard
17152 \begin_inset VSpace medskip
17158 \begin_layout Standard
17159 You can also define your own color with the command
17162 \begin_layout Standard
17167 definecolor{color name}{color model}{color values}
17170 \begin_layout Standard
17171 The color model can be
17174 \begin_layout Labeling
17175 \labelwidthstring 00.00.0000
17176 cmyk: cyan, magenta, yellow, black
17179 \begin_layout Labeling
17180 \labelwidthstring 00.00.0000
17181 rgb: red, green blue
17184 \begin_layout Labeling
17185 \labelwidthstring 00.00.0000
17189 \begin_layout Standard
17190 and the color values are comma separated numbers between 0 and 1 describing
17191 the factor for the corresponding color of the color model.
17194 \begin_layout Standard
17196 \begin_inset space \thinspace{}
17200 \begin_inset space \space{}
17207 " in the preamble with
17210 \begin_layout Standard
17215 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17218 \begin_layout Standard
17226 \begin_layout Standard
17231 definecolor{lightgray}{gray}{0.8}
17234 \begin_layout Standard
17235 \begin_inset VSpace medskip
17241 \begin_layout Standard
17242 Lines are colored with the command
17245 \begin_layout Standard
17250 rowcolor{name of color}
17253 \begin_layout Standard
17254 and cells are colored with the command
17257 \begin_layout Standard
17262 cellcolor{name of color}
17265 \begin_layout Standard
17266 Both commands are inserted at the beginning of a cell as TeX-Code.
17269 \begin_layout Standard
17270 To color characters in the table, mark the cells and use the
17273 \begin_inset space ~
17279 If a cell contains TeX-Code mark only the characters, otherwise the colored
17280 TeX-Code will cause LaTeX-errors.
17283 \begin_layout Standard
17284 \begin_inset Note Greyedout
17287 \begin_layout Plain Layout
17292 Not all DVI-viewers are able to display self-defined colors.
17300 \begin_layout Standard
17301 \begin_inset VSpace bigskip
17307 \begin_layout Standard
17309 \begin_inset space ~
17313 \begin_inset CommandInset ref
17315 reference "tab:Table-colored-using"
17319 do the following: The color of the first column should be
17327 \begin_layout Standard
17332 columncolor{darkgreen}
17337 \begin_layout Standard
17338 as LaTeX-argument for this column.
17339 The first row should be light blue, therefore the TeX-Code command
17342 \begin_layout Standard
17350 \begin_layout Standard
17351 is inserted to the first cell of this row.
17352 Note that this overwrites the column color for the first cell.
17353 The last cell of the last row is colored maroon by inserting the TeX-Code
17357 \begin_layout Standard
17365 \begin_layout Standard
17366 The characters could now be colored using the menu
17368 Edit\SpecialChar \menuseparator
17370 \begin_inset space ~
17378 \begin_layout Standard
17379 \begin_inset Float table
17385 \begin_layout Plain Layout
17386 \begin_inset Caption Standard
17388 \begin_layout Plain Layout
17389 \begin_inset CommandInset label
17391 name "tab:Table-colored-using"
17395 Table colored using the package
17400 \begin_inset Argument 1
17403 \begin_layout Plain Layout
17404 Table with colortbl
17417 \begin_layout Plain Layout
17419 \begin_inset Tabular
17420 <lyxtabular version="3" rows="3" columns="3">
17421 <features rotate="0" tabularvalignment="middle">
17422 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17423 <column alignment="center" valignment="top">
17424 <column alignment="center" valignment="top">
17426 <cell alignment="center" valignment="top" usebox="none">
17429 \begin_layout Plain Layout
17433 \begin_layout Plain Layout
17449 <cell alignment="center" valignment="top" usebox="none">
17452 \begin_layout Plain Layout
17460 <cell alignment="center" valignment="top" usebox="none">
17463 \begin_layout Plain Layout
17473 <cell alignment="center" valignment="top" usebox="none">
17476 \begin_layout Plain Layout
17484 <cell alignment="center" valignment="top" usebox="none">
17487 \begin_layout Plain Layout
17495 <cell alignment="center" valignment="top" usebox="none">
17498 \begin_layout Plain Layout
17508 <cell alignment="center" valignment="top" usebox="none">
17511 \begin_layout Plain Layout
17519 <cell alignment="center" valignment="top" usebox="none">
17522 \begin_layout Plain Layout
17530 <cell alignment="center" valignment="top" usebox="none">
17533 \begin_layout Plain Layout
17537 \begin_layout Plain Layout
17566 \begin_layout Standard
17570 \begin_layout Plain Layout
17580 \begin_inset Note Note
17583 \begin_layout Plain Layout
17584 The following will be displayed when the LaTeX-package
17596 \begin_layout Standard
17597 You need to install the package
17601 to see the content of this section in the output.
17604 \begin_layout Standard
17608 \begin_layout Plain Layout
17620 \begin_layout Subsection
17622 \begin_inset Index idx
17625 \begin_layout Plain Layout
17626 Table Color ! for Rows
17632 \begin_inset Index idx
17635 \begin_layout Plain Layout
17636 Color ! for Table Rows
17644 \begin_layout Standard
17645 In case every second table row needs to be colored there is an alternative
17646 to the method described in the previous section: One loads the package
17652 \begin_inset Index idx
17655 \begin_layout Plain Layout
17656 LaTeX-packages ! xcolor
17660 \begin_layout Plain Layout
17674 in the document preamble with the command
17677 \begin_layout Standard
17682 usepackage[table]{xcolor}
17685 \begin_layout Standard
17690 automatically loads also the package
17695 \begin_inset Index idx
17698 \begin_layout Plain Layout
17699 LaTeX-packages ! colortbl
17708 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17711 \begin_layout Standard
17715 \begin_layout Plain Layout
17725 \begin_inset Note Note
17728 \begin_layout Plain Layout
17729 The following section part will only be displayed when the LaTeX-package
17742 \begin_layout Standard
17743 The table rows are colored with the command
17746 \begin_layout Standard
17751 rowcolors[commands]{row number}{odd row color}{even row color}
17754 \begin_layout Standard
17755 that is either inserted in the document preamble or as TeX-Code before the
17756 first table to be colored.
17758 \begin_inset space ~
17761 number is the number of the first row which should be colored according
17762 to the odd row color.
17763 commands can be additional commands that are executed before every table
17765 So for example the command
17768 \begin_layout Standard
17773 rowcolors{1}{white}{lightgray}
17776 \begin_layout Standard
17777 leads to the coloring scheme of Table
17778 \begin_inset space ~
17782 \begin_inset CommandInset ref
17784 reference "tab:Table-rowcolors"
17792 \begin_layout Standard
17799 hline]{1}{lightgray}{cyan}
17802 \begin_layout Standard
17803 leads to the coloring scheme of Table
17804 \begin_inset space ~
17808 \begin_inset CommandInset ref
17810 reference "tab:Table-rowcolors-2"
17816 \begin_inset space ~
17820 \begin_inset space ~
17824 \begin_inset space ~
17828 \begin_inset space ~
17831 color are left empty, no color will be used so that the command
17834 \begin_layout Standard
17842 \begin_layout Standard
17843 deletes all colors.
17850 affects all tables following that command.
17853 \begin_layout Standard
17857 \begin_layout Plain Layout
17861 rowcolors{1}{white}{lightgray}
17869 \begin_layout Standard
17870 \begin_inset Float table
17876 \begin_layout Plain Layout
17877 \begin_inset Caption Standard
17879 \begin_layout Plain Layout
17880 \begin_inset CommandInset label
17882 name "tab:Table-rowcolors"
17886 Table where every second row is colored light gray.
17894 \begin_layout Plain Layout
17896 \begin_inset Tabular
17897 <lyxtabular version="3" rows="4" columns="3">
17898 <features rotate="0" tabularvalignment="middle">
17899 <column alignment="center" valignment="top">
17900 <column alignment="center" valignment="top" width="0pt">
17901 <column alignment="center" valignment="top" width="0pt">
17903 <cell alignment="center" valignment="top" usebox="none">
17906 \begin_layout Plain Layout
17912 <cell alignment="center" valignment="top" usebox="none">
17915 \begin_layout Plain Layout
17921 <cell alignment="center" valignment="top" usebox="none">
17924 \begin_layout Plain Layout
17932 <cell alignment="center" valignment="top" usebox="none">
17935 \begin_layout Plain Layout
17941 <cell alignment="center" valignment="top" usebox="none">
17944 \begin_layout Plain Layout
17950 <cell alignment="center" valignment="top" usebox="none">
17953 \begin_layout Plain Layout
17961 <cell alignment="center" valignment="top" usebox="none">
17964 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" usebox="none">
17973 \begin_layout Plain Layout
17979 <cell alignment="center" valignment="top" usebox="none">
17982 \begin_layout Plain Layout
17990 <cell alignment="center" valignment="top" usebox="none">
17993 \begin_layout Plain Layout
17999 <cell alignment="center" valignment="top" usebox="none">
18002 \begin_layout Plain Layout
18008 <cell alignment="center" valignment="top" usebox="none">
18011 \begin_layout Plain Layout
18030 \begin_layout Standard
18034 \begin_layout Plain Layout
18040 hline]{1}{lightgray}{cyan}
18048 \begin_layout Standard
18049 \begin_inset Float table
18055 \begin_layout Plain Layout
18056 \begin_inset Caption Standard
18058 \begin_layout Plain Layout
18059 \begin_inset CommandInset label
18061 name "tab:Table-rowcolors-2"
18065 Table where every second row is colored cyan and at which there is a line
18074 \begin_layout Plain Layout
18076 \begin_inset Tabular
18077 <lyxtabular version="3" rows="4" columns="3">
18078 <features rotate="0" tabularvalignment="middle">
18079 <column alignment="center" valignment="top">
18080 <column alignment="center" valignment="top">
18081 <column alignment="center" valignment="top" width="0pt">
18083 <cell alignment="center" valignment="top" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" usebox="none">
18095 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" usebox="none">
18104 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" usebox="none">
18133 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" usebox="none">
18162 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" usebox="none">
18182 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" usebox="none">
18191 \begin_layout Plain Layout
18210 \begin_layout Standard
18214 \begin_layout Plain Layout
18224 \begin_inset Note Note
18227 \begin_layout Plain Layout
18228 turns off the row coloring
18236 \begin_layout Standard
18240 \begin_layout Plain Layout
18250 \begin_inset Note Note
18253 \begin_layout Plain Layout
18254 The following will be displayed when the LaTeX-package
18266 \begin_layout Standard
18267 You need to install the package
18271 to see the content of this section in the output.
18274 \begin_layout Standard
18278 \begin_layout Plain Layout
18290 \begin_layout Subsection
18292 \begin_inset Index idx
18295 \begin_layout Plain Layout
18296 Table Color ! for Lines
18302 \begin_inset Index idx
18305 \begin_layout Plain Layout
18306 Color ! for Table Lines
18314 \begin_layout Standard
18315 As described in section
18316 \begin_inset space ~
18320 \begin_inset CommandInset ref
18322 reference "sub:Line-Thickness"
18326 , the line thickness for all lines in a table can be adjusted with the length
18335 \begin_inset space \thinspace{}
18338 pt for all tables of this section.
18342 \begin_layout Plain Layout
18348 arrayrulewidth}{1.5pt}
18356 \begin_layout Standard
18357 To color vertical lines for example with green, create the following column
18358 format in the document preamble, according to the description in section
18359 \begin_inset space ~
18363 \begin_inset CommandInset ref
18365 reference "sub:Customized-Format"
18372 \begin_layout Standard
18377 newcolumntype{W}{!{
18384 \begin_layout Standard
18386 \begin_inset space ~
18390 \begin_inset CommandInset ref
18392 reference "tab:Table-with-vertical-colored"
18400 was used for the last column and
18404 for the other columns.
18407 \begin_layout Standard
18408 If you want to have several colors, define more column formats.
18411 \begin_layout Standard
18412 \begin_inset Float table
18418 \begin_layout Plain Layout
18419 \begin_inset Caption Standard
18421 \begin_layout Plain Layout
18422 \begin_inset CommandInset label
18424 name "tab:Table-with-vertical-colored"
18428 Table with colored vertical lines
18436 \begin_layout Plain Layout
18438 \begin_inset Tabular
18439 <lyxtabular version="3" rows="3" columns="3">
18440 <features rotate="0" tabularvalignment="middle">
18441 <column alignment="center" valignment="top" special="Wc">
18442 <column alignment="center" valignment="top" special="Wc">
18443 <column alignment="center" valignment="top" special="WcW">
18445 <cell alignment="center" valignment="top" topline="true" usebox="none">
18448 \begin_layout Plain Layout
18454 <cell alignment="center" valignment="top" topline="true" usebox="none">
18457 \begin_layout Plain Layout
18463 <cell alignment="center" valignment="top" topline="true" usebox="none">
18466 \begin_layout Plain Layout
18474 <cell alignment="center" valignment="top" topline="true" usebox="none">
18477 \begin_layout Plain Layout
18483 <cell alignment="center" valignment="top" topline="true" usebox="none">
18486 \begin_layout Plain Layout
18492 <cell alignment="center" valignment="top" topline="true" usebox="none">
18495 \begin_layout Plain Layout
18503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18506 \begin_layout Plain Layout
18512 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18515 \begin_layout Plain Layout
18521 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18524 \begin_layout Plain Layout
18543 \begin_layout Standard
18544 \begin_inset VSpace bigskip
18547 To color horizontal lines for example with red, as in Table
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "tab:Table-with-horizontal-colored"
18558 , insert these commands in TeX-Code before the table or table float:
18561 \begin_layout Standard
18571 \begin_inset Newline newline
18579 \begin_inset Newline newline
18583 \begin_inset Phantom HPhantom
18586 \begin_layout Plain Layout
18589 \begin_inset space ~
18599 arrayrulecolor{red}
18603 arrayrulecolor{black}}
18606 \begin_layout Standard
18610 \begin_layout Plain Layout
18621 \begin_layout Plain Layout
18630 \begin_layout Plain Layout
18634 arrayrulecolor{red}
18638 arrayrulecolor{black}}
18644 \begin_inset Float table
18650 \begin_layout Plain Layout
18651 \begin_inset Caption Standard
18653 \begin_layout Plain Layout
18654 \begin_inset CommandInset label
18656 name "tab:Table-with-horizontal-colored"
18660 Table with colored horizontal lines
18668 \begin_layout Plain Layout
18670 \begin_inset Tabular
18671 <lyxtabular version="3" rows="3" columns="3">
18672 <features rotate="0" tabularvalignment="middle">
18673 <column alignment="center" valignment="top">
18674 <column alignment="center" valignment="top">
18675 <column alignment="center" valignment="top">
18677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18680 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18689 \begin_layout Plain Layout
18695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18698 \begin_layout Plain Layout
18706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18709 \begin_layout Plain Layout
18715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18718 \begin_layout Plain Layout
18724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18727 \begin_layout Plain Layout
18735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18738 \begin_layout Plain Layout
18744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18747 \begin_layout Plain Layout
18753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18756 \begin_layout Plain Layout
18775 \begin_layout Standard
18776 To return to the default line color black, insert this command in TeX-Code
18777 after the table or table float:
18780 \begin_layout Standard
18792 \begin_layout Standard
18794 \begin_inset space ~
18798 \begin_inset CommandInset ref
18800 reference "tab:Table-with-colored"
18804 is an example with colored vertical and horizontal lines.
18807 \begin_layout Standard
18808 \begin_inset Float table
18814 \begin_layout Plain Layout
18815 \begin_inset Caption Standard
18817 \begin_layout Plain Layout
18818 \begin_inset CommandInset label
18820 name "tab:Table-with-colored"
18824 Table with colored lines
18832 \begin_layout Plain Layout
18834 \begin_inset Tabular
18835 <lyxtabular version="3" rows="3" columns="3">
18836 <features rotate="0" tabularvalignment="middle">
18837 <column alignment="center" valignment="top" special="Wc">
18838 <column alignment="center" valignment="top" special="Wc">
18839 <column alignment="center" valignment="top" special="WcW">
18841 <cell alignment="center" valignment="top" topline="true" usebox="none">
18844 \begin_layout Plain Layout
18850 <cell alignment="center" valignment="top" topline="true" usebox="none">
18853 \begin_layout Plain Layout
18859 <cell alignment="center" valignment="top" topline="true" usebox="none">
18862 \begin_layout Plain Layout
18870 <cell alignment="center" valignment="top" topline="true" usebox="none">
18873 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" usebox="none">
18882 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" usebox="none">
18891 \begin_layout Plain Layout
18898 <row topspace="default">
18899 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18902 \begin_layout Plain Layout
18908 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18911 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18920 \begin_layout Plain Layout
18939 \begin_layout Standard
18943 \begin_layout Plain Layout
18959 \begin_layout Standard
18963 \begin_layout Plain Layout
18969 arrayrulewidth}{0.4pt}
18977 \begin_layout Section
18978 Rotated Table Cells
18979 \begin_inset CommandInset label
18981 name "sec:Rotated-Table-Cells"
18986 \begin_inset Index idx
18989 \begin_layout Plain Layout
18990 Table ! Rotated Cells
18996 \begin_inset Index idx
18999 \begin_layout Plain Layout
19008 \begin_layout Standard
19009 \begin_inset Note Greyedout
19012 \begin_layout Plain Layout
19017 Not all DVI-viewers are able to display rotations.
19025 \begin_layout Standard
19026 Currently LyX only offers to rotate table cells by 90
19027 \begin_inset space \thinspace{}
19030 ° counter-clockwise.
19031 To rotate cells by an angle of your choice, you have to add this to the
19035 \begin_layout Standard
19040 @ifundefined{turnbox}{
19042 usepackage{rotating}}{}
19045 \begin_layout Standard
19046 In the table cell that should be rotated, add at the beginning this command
19050 \begin_layout Standard
19058 \begin_layout Standard
19059 where angle is the rotation angle in °.
19060 At the end of the cell the command
19063 \begin_layout Standard
19071 \begin_layout Standard
19072 is inserted as TeX-code.
19075 \begin_layout Standard
19077 \begin_inset space ~
19081 \begin_inset CommandInset ref
19083 reference "tab:Table-with-rotated-multi"
19087 is an example where 3
19088 \begin_inset space ~
19091 cells were rotated by 45
19092 \begin_inset space \thinspace{}
19098 \begin_layout Standard
19099 \begin_inset Float table
19104 \begin_layout Plain Layout
19105 \begin_inset Caption Standard
19107 \begin_layout Plain Layout
19108 \begin_inset CommandInset label
19110 name "tab:Table-with-rotated"
19114 Table with rotated cells in the first row.
19122 \begin_layout Plain Layout
19125 \begin_inset Tabular
19126 <lyxtabular version="3" rows="2" columns="3">
19127 <features rotate="0" tabularvalignment="middle">
19128 <column alignment="center" valignment="top">
19129 <column alignment="center" valignment="top" width="0pt">
19130 <column alignment="center" valignment="top">
19132 <cell alignment="center" valignment="top" usebox="none">
19135 \begin_layout Plain Layout
19139 \begin_layout Plain Layout
19152 \begin_layout Plain Layout
19166 <cell alignment="center" valignment="top" usebox="none">
19169 \begin_layout Plain Layout
19173 \begin_layout Plain Layout
19186 \begin_layout Plain Layout
19200 <cell alignment="center" valignment="top" usebox="none">
19203 \begin_layout Plain Layout
19207 \begin_layout Plain Layout
19220 \begin_layout Plain Layout
19236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19239 \begin_layout Plain Layout
19245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19248 \begin_layout Plain Layout
19254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19257 \begin_layout Plain Layout
19276 \begin_layout Standard
19277 \begin_inset Note Greyedout
19280 \begin_layout Plain Layout
19285 Line breaks (shortcut
19288 arg "newline-insert newline"
19291 ) are not allowed in rotated cells.
19299 \begin_layout Standard
19300 If you want to rotate table cells containing line breaks, you have to put
19301 the cell content into a minipage or a parbox.
19305 \begin_layout Plain Layout
19306 For more about these boxes see sec.
19307 \begin_inset space \thinspace{}
19311 \begin_inset CommandInset ref
19313 reference "sec:Minipages"
19318 \begin_inset CommandInset ref
19320 reference "sec:Parboxes"
19329 If you rotate this cell by 90
19330 \begin_inset space \thinspace{}
19333 ° the width of the box is the height of the cell.
19335 \begin_inset space ~
19339 \begin_inset CommandInset ref
19341 reference "tab:Table-with-rotated-multi"
19345 is an example for a rotated multiline cell where the box width was set
19347 \begin_inset space \thinspace{}
19353 \begin_layout Standard
19354 \begin_inset Float table
19359 \begin_layout Plain Layout
19360 \begin_inset Caption Standard
19362 \begin_layout Plain Layout
19363 \begin_inset CommandInset label
19365 name "tab:Table-with-rotated-multi"
19369 Table with rotated multiline cell.
19377 \begin_layout Plain Layout
19380 \begin_inset Tabular
19381 <lyxtabular version="3" rows="2" columns="3">
19382 <features rotate="0" tabularvalignment="middle">
19383 <column alignment="center" valignment="top">
19384 <column alignment="center" valignment="top" width="0pt">
19385 <column alignment="center" valignment="top">
19387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19390 \begin_layout Plain Layout
19396 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19399 \begin_layout Plain Layout
19400 \begin_inset Box Frameless
19410 height_special "totalheight"
19413 \begin_layout Plain Layout
19415 \begin_inset Newline newline
19428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19431 \begin_layout Plain Layout
19439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19442 \begin_layout Plain Layout
19448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19451 \begin_layout Plain Layout
19457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19460 \begin_layout Plain Layout
19479 \begin_layout Section
19480 Table Width Calculation
19481 \begin_inset CommandInset label
19483 name "sec:Table-Width-Calculation"
19490 \begin_layout Standard
19491 For wide tables it is sometimes difficult to assure that the table does
19492 not protrude over the page margin.
19493 Setting a fixed width for every column of the table is the solution, but
19494 what amount of space is needed for each column?
19497 \begin_layout Standard
19499 \begin_inset Formula $W_{\mathrm{table}}$
19502 can be calculated: Every column has the width of the specified column width
19504 \begin_inset Formula $W_{\mathrm{column}}$
19507 (that the content of the column can consume) plus two times the separation
19508 between the column content and the column border (LaTeX length
19515 \begin_inset space \thinspace{}
19518 pt) plus the width of a border line (LaTeX length
19525 \begin_inset space \thinspace{}
19529 \begin_inset Formula $n$
19533 \begin_inset space ~
19536 columns have the same width, the table width is
19537 \begin_inset Formula
19539 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19547 \begin_layout Standard
19548 The available width for a table is the space between the page margins or
19549 the width of a text column (for a two-column document) (LaTeX length
19556 If all table columns should have the same width and
19557 \begin_inset Formula $W_{\mathrm{table}}$
19561 \begin_inset space \thinspace{}
19567 \begin_inset Formula $W_{\mathrm{column}}$
19570 can easily be calculated.
19573 \begin_layout Standard
19574 To be able to perform calculations you need to load the LaTeX-package
19579 \begin_inset Index idx
19582 \begin_layout Plain Layout
19583 LaTeX-packages ! calc
19588 in the document preamble.
19589 To set the width in the table dialog you have to use the field
19594 The command scheme for this field is the same that is explained in section
19595 \begin_inset space ~
19599 \begin_inset CommandInset ref
19601 reference "sub:Multicolumn-Calculations"
19607 \begin_inset space \thinspace{}
19610 columns with an uniform width and centered text, enter there for each column
19614 \begin_layout Standard
19621 columnwidth-62.4pt)/5}
19624 \begin_layout Standard
19626 \begin_inset space \thinspace{}
19629 columns where 2 should have 0.75
19630 \begin_inset space ~
19633 times the width than the 3 others, the calculation is
19634 \begin_inset Formula
19636 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19637 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19638 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19639 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19647 \begin_layout Standard
19648 In the table therefore the command
19651 \begin_layout Standard
19658 columnwidth-62.4pt)/
19663 \begin_layout Standard
19664 is used for the wider columns and
19667 \begin_layout Standard
19674 columnwidth-62.4pt)/
19681 \begin_layout Standard
19682 for the smaller ones:
19685 \begin_layout Standard
19686 \begin_inset Tabular
19687 <lyxtabular version="3" rows="2" columns="5">
19688 <features rotate="0" tabularvalignment="middle">
19689 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19690 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19691 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19692 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19693 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19698 \begin_layout Plain Layout
19704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19707 \begin_layout Plain Layout
19713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19716 \begin_layout Plain Layout
19722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19725 \begin_layout Plain Layout
19731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19734 \begin_layout Plain Layout
19742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19745 \begin_layout Plain Layout
19746 111111 1111111 111111 111111111 11111 11111 1111
19751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19754 \begin_layout Plain Layout
19760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19763 \begin_layout Plain Layout
19764 2222 22222 222222 222222222 2222222 22 22222
19769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19772 \begin_layout Plain Layout
19778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19781 \begin_layout Plain Layout
19782 333333 333333 333333 33333 3333333 333
19795 \begin_layout Section
19796 Table Customization
19797 \begin_inset Index idx
19800 \begin_layout Plain Layout
19801 Table Customization
19807 \begin_inset Index idx
19810 \begin_layout Plain Layout
19811 Table ! Customization
19819 \begin_layout Subsection
19821 \begin_inset CommandInset label
19823 name "sub:Row-Spacing"
19828 \begin_inset Index idx
19831 \begin_layout Plain Layout
19832 Table Customization ! Row Spacing
19840 \begin_layout Standard
19841 You can add vertical space to table rows in the
19845 tab of the table dialog.
19846 You find there three possibilities:
19849 \begin_layout Description
19851 \begin_inset space ~
19855 \begin_inset space ~
19858 row will add space above the characters of the table row.
19859 If the table is a formal table
19863 \begin_layout Plain Layout
19864 Formal tables are explained in section
19865 \begin_inset space ~
19869 \begin_inset CommandInset ref
19871 reference "sec:Formal-Tables"
19880 LyX will insert as default 0.5
19881 \begin_inset space \thinspace{}
19885 For normal tables the inserted space will unfortunately destroy the vertical
19886 table lines as in the following table:
19887 \begin_inset VSpace medskip
19891 \begin_inset Newline newline
19895 \begin_inset space \hspace*{}
19900 \begin_inset space \hfill{}
19904 \begin_inset Tabular
19905 <lyxtabular version="3" rows="3" columns="1">
19906 <features rotate="0" tabularvalignment="middle">
19907 <column alignment="center" valignment="top">
19909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19912 \begin_layout Plain Layout
19919 <row topspace="3mm">
19920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19923 \begin_layout Plain Layout
19925 \begin_inset space \thinspace{}
19928 mm space top of row
19935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19938 \begin_layout Plain Layout
19950 \begin_inset space \hfill{}
19954 \begin_inset space \hspace*{}
19959 \begin_inset VSpace medskip
19963 \begin_inset Newline newline
19966 So inserting space in the top of row for normal tables is only useful when
19967 you don't have vertical lines.
19970 \begin_layout Description
19972 \begin_inset space ~
19976 \begin_inset space ~
19979 row will add space below the characters of the table row.
19980 If the table is a formal table LyX will insert as default 0.5
19981 \begin_inset space \thinspace{}
19984 em space, for normal tables the default size is 2
19985 \begin_inset space \thinspace{}
19991 \begin_layout Description
19993 \begin_inset space ~
19996 rows adds space between the current and the following row.
19997 If the table is a formal table LyX will insert as default 0.5
19998 \begin_inset space \thinspace{}
20002 For normal tables the inserted space will unfortunately destroy the vertical
20003 table lines as in the following table:
20004 \begin_inset VSpace medskip
20008 \begin_inset Newline newline
20012 \begin_inset space \hspace*{}
20017 \begin_inset space \hfill{}
20021 \begin_inset Tabular
20022 <lyxtabular version="3" rows="3" columns="1">
20023 <features rotate="0" tabularvalignment="middle">
20024 <column alignment="center" valignment="top">
20026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20029 \begin_layout Plain Layout
20036 <row interlinespace="3mm">
20037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20040 \begin_layout Plain Layout
20041 \begin_inset Formula $\downarrow$
20045 \begin_inset space \thinspace{}
20048 mm space between row
20049 \begin_inset Formula $\downarrow$
20059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20062 \begin_layout Plain Layout
20063 \begin_inset Formula $\uparrow$
20067 \begin_inset space \thinspace{}
20070 mm space between row
20071 \begin_inset Formula $\uparrow$
20085 \begin_inset space \hfill{}
20089 \begin_inset space \hspace*{}
20094 \begin_inset VSpace medskip
20098 \begin_inset Newline newline
20101 So inserting space between rows for normal tables is only useful when you
20102 don't have vertical lines.
20105 \begin_layout Standard
20106 \begin_inset VSpace bigskip
20109 When you want to add extra height to all cells of all tables, you can do
20110 this with the following preamble lines:
20113 \begin_layout Standard
20118 @ifundefined{extrarowheight}
20119 \begin_inset Newline newline
20123 \begin_inset Phantom HPhantom
20126 \begin_layout Plain Layout
20129 \begin_inset space ~
20139 usepackage{array}}{}
20140 \begin_inset Newline newline
20147 extrarowheight}{height}
20150 \begin_layout Standard
20151 But this has the disadvantage that the cell texts are no longer exactly
20152 vertically centered.
20157 will be loaded automatically by LyX when you use self defined table formats.
20158 To avoid that it being loaded twice the command
20164 is used in the above command.)
20167 \begin_layout Standard
20168 If you are using font sizes larger than the normal size, the table borders
20169 are often too close to the letters.
20170 This can be corrected by inserting the command
20176 in TeX-Code at the beginning of a table row.
20178 \begin_inset space ~
20182 \begin_inset CommandInset ref
20184 reference "tab:Vertical-alignment-of"
20188 illustrates the effect.
20191 \begin_layout Standard
20193 \begin_inset Float table
20199 \begin_layout Plain Layout
20200 \begin_inset Caption Standard
20202 \begin_layout Plain Layout
20203 \begin_inset CommandInset label
20205 name "tab:Vertical-alignment-of"
20209 Vertical alignment of text with large font sizes.
20217 \begin_layout Plain Layout
20218 \begin_inset space \hfill{}
20222 \begin_inset Float table
20227 \begin_layout Plain Layout
20228 \begin_inset Caption Standard
20230 \begin_layout Plain Layout
20239 \begin_layout Plain Layout
20242 \begin_inset Tabular
20243 <lyxtabular version="3" rows="6" columns="1">
20244 <features rotate="0" tabularvalignment="middle">
20245 <column alignment="left" valignment="top">
20247 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20250 \begin_layout Plain Layout
20258 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20261 \begin_layout Plain Layout
20271 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20274 \begin_layout Plain Layout
20284 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20287 \begin_layout Plain Layout
20297 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20300 \begin_layout Plain Layout
20310 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20313 \begin_layout Plain Layout
20332 \begin_inset space \hfill{}
20336 \begin_inset Float table
20341 \begin_layout Plain Layout
20342 \begin_inset Caption Standard
20344 \begin_layout Plain Layout
20345 Table using the command
20359 \begin_layout Plain Layout
20362 \begin_inset Tabular
20363 <lyxtabular version="3" rows="6" columns="1">
20364 <features rotate="0" tabularvalignment="middle">
20365 <column alignment="left" valignment="top">
20367 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20370 \begin_layout Plain Layout
20378 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20381 \begin_layout Plain Layout
20387 \begin_layout Plain Layout
20403 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20406 \begin_layout Plain Layout
20412 \begin_layout Plain Layout
20428 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20431 \begin_layout Plain Layout
20437 \begin_layout Plain Layout
20453 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20456 \begin_layout Plain Layout
20462 \begin_layout Plain Layout
20478 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20481 \begin_layout Plain Layout
20487 \begin_layout Plain Layout
20514 \begin_inset space \hfill{}
20525 \begin_layout Subsection
20526 Special Cell Alignment
20527 \begin_inset CommandInset label
20529 name "sub:Special-Cell-Alignment"
20534 \begin_inset Index idx
20537 \begin_layout Plain Layout
20538 Table Customization ! Special Cell Alignment
20546 \begin_layout Standard
20547 Sometimes it looks better when the cell entries of a column are aligned
20548 with a special character, e.
20549 \begin_inset space \thinspace{}
20553 \begin_inset space \space{}
20556 with the decimal separator as in Table
20557 \begin_inset space ~
20561 \begin_inset CommandInset ref
20563 reference "tab:Table-cells-align"
20568 This alignment is achieved by setting the cursor into the column and then
20569 either pressing the toolbar button
20572 arg "inset-modify tabular align-decimal"
20575 or setting the alignment in the table settings to
20578 \begin_inset space ~
20582 \begin_inset space ~
20588 The alignment character can be a character of your choice and is specified
20589 in the table settings.
20592 \begin_layout Standard
20593 \begin_inset Float table
20599 \begin_layout Plain Layout
20600 \begin_inset Caption Standard
20602 \begin_layout Plain Layout
20603 \begin_inset CommandInset label
20605 name "tab:Table-cells-align"
20609 Table cells of a column aligned with the decimal separator.
20617 \begin_layout Plain Layout
20619 \begin_inset Tabular
20620 <lyxtabular version="3" rows="4" columns="1">
20621 <features rotate="0" booktabs="true" tabularvalignment="middle">
20622 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20627 \begin_layout Plain Layout
20635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20638 \begin_layout Plain Layout
20646 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20649 \begin_layout Plain Layout
20657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20660 \begin_layout Plain Layout
20679 \begin_layout Standard
20680 \begin_inset Float table
20686 \begin_layout Plain Layout
20687 \begin_inset Caption Standard
20689 \begin_layout Plain Layout
20690 \begin_inset CommandInset label
20692 name "tab:Table-align-operator"
20696 Table cells of a column aligned with the operators.
20704 \begin_layout Plain Layout
20706 \begin_inset Tabular
20707 <lyxtabular version="3" rows="4" columns="2">
20708 <features rotate="0" booktabs="true" tabularvalignment="middle">
20709 <column alignment="right" valignment="top" width="0pt">
20710 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20712 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20715 \begin_layout Plain Layout
20721 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20724 \begin_layout Plain Layout
20732 <cell alignment="center" valignment="top" usebox="none">
20735 \begin_layout Plain Layout
20736 \begin_inset Formula $12\,+$
20744 <cell alignment="center" valignment="top" usebox="none">
20747 \begin_layout Plain Layout
20748 \begin_inset Formula $\,6$
20758 <cell alignment="center" valignment="top" usebox="none">
20761 \begin_layout Plain Layout
20762 \begin_inset Formula $0\,-$
20770 <cell alignment="center" valignment="top" usebox="none">
20773 \begin_layout Plain Layout
20774 \begin_inset Formula $\,68$
20784 <cell alignment="center" valignment="top" usebox="none">
20787 \begin_layout Plain Layout
20788 \begin_inset Formula $-123\,/$
20796 <cell alignment="center" valignment="top" usebox="none">
20799 \begin_layout Plain Layout
20800 \begin_inset Formula $\,0$
20821 \begin_layout Standard
20822 For alignments at characters in formulas this method does not work because
20823 the field to specify the alignment character does not allow formulas.
20824 In this case one need to use the method from Table
20825 \begin_inset space ~
20829 \begin_inset CommandInset ref
20831 reference "tab:Table-align-operator"
20836 This table was created with a 4×2 table.
20837 The heading is a centered multicolumn.
20838 The first column is right-aligned and contains the first part including
20840 The second column is left aligned and contains the rest.
20841 A small space was added at the beginning of each cell of the second column
20842 to get the space that is usually around operators.
20843 To omit the space that is normally between two table columns, the following
20844 LaTeX-argument was used for the second column:
20847 \begin_layout Standard
20853 \begin_layout Standard
20855 \begin_inset space ~
20859 \begin_inset CommandInset ref
20861 reference "tab:Several-table-cell"
20865 shows some example alignments.
20866 For the alignment with the relation sign, a small space was added like
20867 for the second column of Table
20868 \begin_inset space ~
20872 \begin_inset CommandInset ref
20874 reference "tab:Table-align-operator"
20881 \begin_layout Standard
20882 \begin_inset Float table
20888 \begin_layout Plain Layout
20889 \begin_inset Caption Standard
20891 \begin_layout Plain Layout
20892 \begin_inset CommandInset label
20894 name "tab:Several-table-cell"
20898 Several table cell alignments.
20906 \begin_layout Plain Layout
20908 \begin_inset Tabular
20909 <lyxtabular version="3" rows="4" columns="6">
20910 <features rotate="0" tabularvalignment="middle">
20911 <column alignment="right" valignment="top">
20912 <column alignment="left" valignment="top" special="@{}l">
20913 <column alignment="right" valignment="top">
20914 <column alignment="left" valignment="top" special="@{}l">
20915 <column alignment="right" valignment="top">
20916 <column alignment="left" valignment="top" special="@{}l">
20918 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20921 \begin_layout Plain Layout
20927 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20930 \begin_layout Plain Layout
20936 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20939 \begin_layout Plain Layout
20945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20948 \begin_layout Plain Layout
20954 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20957 \begin_layout Plain Layout
20963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20966 \begin_layout Plain Layout
20974 <cell alignment="center" valignment="top" usebox="none">
20977 \begin_layout Plain Layout
20983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20986 \begin_layout Plain Layout
20988 \begin_inset space \thinspace{}
20996 <cell alignment="center" valignment="top" usebox="none">
20999 \begin_layout Plain Layout
21000 \begin_inset Formula $10\cdot$
21008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21011 \begin_layout Plain Layout
21012 \begin_inset Formula $10^{\mbox{-}17}$
21020 <cell alignment="center" valignment="top" usebox="none">
21023 \begin_layout Plain Layout
21024 \begin_inset Formula $\Gamma(t)\propto$
21032 <cell alignment="center" valignment="top" usebox="none">
21035 \begin_layout Plain Layout
21036 \begin_inset Formula $\:\Upsilon(t)$
21046 <cell alignment="center" valignment="top" usebox="none">
21049 \begin_layout Plain Layout
21055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21058 \begin_layout Plain Layout
21060 \begin_inset space \thinspace{}
21068 <cell alignment="center" valignment="top" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $5.78\cdot$
21080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $10^{7}$
21092 <cell alignment="center" valignment="top" usebox="none">
21095 \begin_layout Plain Layout
21096 \begin_inset Formula $A\ne$
21104 <cell alignment="center" valignment="top" usebox="none">
21107 \begin_layout Plain Layout
21108 \begin_inset Formula $\: B_{\mathrm{red}}$
21118 <cell alignment="center" valignment="top" usebox="none">
21121 \begin_layout Plain Layout
21127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21130 \begin_layout Plain Layout
21132 \begin_inset space \thinspace{}
21140 <cell alignment="center" valignment="top" usebox="none">
21143 \begin_layout Plain Layout
21145 \begin_inset Formula $33.5\cdot$
21153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21156 \begin_layout Plain Layout
21157 \begin_inset Formula $10^{4}$
21165 <cell alignment="center" valignment="top" usebox="none">
21168 \begin_layout Plain Layout
21169 \begin_inset Formula $\sin(\alpha)\ge$
21177 <cell alignment="center" valignment="top" usebox="none">
21180 \begin_layout Plain Layout
21181 \begin_inset Formula $\:\sin(\beta)$
21202 \begin_layout Subsection
21203 Customized Cell/Column Format
21204 \begin_inset CommandInset label
21206 name "sub:Customized-Format"
21211 \begin_inset Index idx
21214 \begin_layout Plain Layout
21215 Table Customization ! Cell/Column Format
21223 \begin_layout Standard
21224 Calculating the required width for normal columns as described in section
21225 \begin_inset space ~
21229 \begin_inset CommandInset ref
21231 reference "sec:Table-Width-Calculation"
21235 or for spanned columns as described in section
21236 \begin_inset space ~
21240 \begin_inset CommandInset ref
21242 reference "sub:Multicolumn-Calculations"
21246 is very annoying if you have several tables where a calculation is necessary.
21247 To make life easier, you can define a cell/column format in the preamble,
21248 that can be used in all tables of the document.
21249 The format is defined with the command
21252 \begin_layout Standard
21257 newcolumntype{name of format}[number of arguments]{commands}
21260 \begin_layout Standard
21261 The format name may only consist of one letter.
21286 are predefined and cannot be used.
21287 But all letters are allowed as capitals.
21290 \begin_layout Standard
21291 \begin_inset VSpace medskip
21297 \begin_layout Standard
21298 For vertically and horizontally centered multicolumn cells with a fixed
21299 width you can define the cell format
21302 \begin_layout Standard
21307 newcolumntype{M}[1]{>{
21314 \begin_layout Standard
21321 avoids the problem of hyphenating the first word, as described in section
21322 \begin_inset space ~
21326 \begin_inset CommandInset ref
21328 reference "sub:Multiple-Lines-in"
21333 Now you can simply enter
21336 \begin_layout Standard
21342 \begin_layout Standard
21347 in the table dialog to create a multicolumn.
21350 \begin_layout Standard
21351 \begin_inset VSpace bigskip
21357 \begin_layout Standard
21358 For cells spanned by a multicolumn cell, you can define the format
21361 \begin_layout Standard
21366 newcolumntype{S}[2]{>{
21371 \begin_inset Newline newline
21375 \begin_inset Phantom HPhantom
21378 \begin_layout Plain Layout
21392 arrayrulewidth)*(1-#2))/#2}}
21395 \begin_layout Standard
21396 This format uses equation
21397 \begin_inset CommandInset ref
21403 to calculate the required width so that each spanned cell has the same
21407 \begin_layout Standard
21411 \begin_layout Standard
21414 S{width of multicolumn cell}{number of spanned columns}
21417 \begin_layout Standard
21418 as LaTeX-argument of the column.
21421 \begin_layout Standard
21422 \begin_inset VSpace bigskip
21428 \begin_layout Standard
21429 For colored columns, you can define
21432 \begin_layout Standard
21437 newcolumntype{K}[1]{>{
21444 \begin_layout Standard
21446 \begin_inset Quotes eld
21450 \begin_inset Quotes erd
21453 at the end creates a column with a flexible width whose text is horizontally
21458 \begin_layout Standard
21464 \begin_layout Standard
21468 \begin_layout Standard
21469 \begin_inset VSpace bigskip
21475 \begin_layout Standard
21477 \begin_inset space ~
21481 \begin_inset CommandInset ref
21483 reference "tab:Table-using-user-defined"
21487 use the LaTeX-arguments
21490 \begin_layout Standard
21496 \begin_layout Standard
21497 for the first column and the multicolumn,
21500 \begin_layout Standard
21506 \begin_layout Standard
21507 for the last column, and
21510 \begin_layout Standard
21516 \begin_layout Standard
21517 for the cells in the second column.
21520 \begin_layout Standard
21521 \begin_inset Float table
21527 \begin_layout Plain Layout
21528 \begin_inset Caption Standard
21530 \begin_layout Plain Layout
21531 \begin_inset CommandInset label
21533 name "tab:Table-using-user-defined"
21537 Table using user-defined table formats
21545 \begin_layout Plain Layout
21547 \begin_inset Tabular
21548 <lyxtabular version="3" rows="3" columns="4">
21549 <features rotate="0" tabularvalignment="middle">
21550 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21551 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21552 <column alignment="center" valignment="middle">
21553 <column alignment="center" valignment="middle" special="K{red}">
21555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21558 \begin_layout Plain Layout
21559 verylongtablecellword
21564 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21567 \begin_layout Plain Layout
21568 multiple lines multicolumn
21573 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21576 \begin_layout Plain Layout
21582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21585 \begin_layout Plain Layout
21593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21596 \begin_layout Plain Layout
21602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21605 \begin_layout Plain Layout
21611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21614 \begin_layout Plain Layout
21620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21623 \begin_layout Plain Layout
21631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21634 \begin_layout Plain Layout
21640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21643 \begin_layout Plain Layout
21649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21652 \begin_layout Plain Layout
21658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21661 \begin_layout Plain Layout
21680 \begin_layout Subsection
21682 \begin_inset CommandInset label
21684 name "sub:Line-Thickness"
21689 \begin_inset Index idx
21692 \begin_layout Plain Layout
21693 Table Customization ! Line Thickness
21701 \begin_layout Standard
21702 The line thickness for all lines in a table can be adjusted with the length
21710 To set for example a line thickness of 1.5
21711 \begin_inset space \thinspace{}
21715 \begin_inset space ~
21719 \begin_inset CommandInset ref
21721 reference "tab:Table-with-1.5"
21725 , insert the command
21728 \begin_layout Standard
21735 arrayrulewidth}{1.5pt}
21738 \begin_layout Standard
21739 in TeX-Code before the table or table float.
21740 The changed thickness is valid for all subsequent tables.
21741 To use the default value again, set
21748 \begin_inset space \thinspace{}
21751 pt in TeX-Code after the table or table float.
21754 \begin_layout Standard
21758 \begin_layout Plain Layout
21764 arrayrulewidth}{1.5pt}
21770 \begin_inset Float table
21775 \begin_layout Plain Layout
21776 \begin_inset Caption Standard
21778 \begin_layout Plain Layout
21779 \begin_inset CommandInset label
21781 name "tab:Table-with-1.5"
21786 \begin_inset space \thinspace{}
21797 \begin_layout Plain Layout
21799 \begin_inset Tabular
21800 <lyxtabular version="3" rows="3" columns="3">
21801 <features rotate="0" tabularvalignment="middle">
21802 <column alignment="center" valignment="top">
21803 <column alignment="center" valignment="top">
21804 <column alignment="center" valignment="top">
21806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21809 \begin_layout Plain Layout
21815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21818 \begin_layout Plain Layout
21824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21827 \begin_layout Plain Layout
21835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21838 \begin_layout Plain Layout
21844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21847 \begin_layout Plain Layout
21853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21856 \begin_layout Plain Layout
21864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21867 \begin_layout Plain Layout
21873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21876 \begin_layout Plain Layout
21882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21885 \begin_layout Plain Layout
21905 \begin_layout Plain Layout
21911 arrayrulewidth}{0.4pt}
21919 \begin_layout Standard
21920 \begin_inset VSpace bigskip
21923 To set the line thickness to 1.5
21924 \begin_inset space \thinspace{}
21927 pt only for horizontal lines, as in Table
21928 \begin_inset space ~
21932 \begin_inset CommandInset ref
21934 reference "tab:Table-with-horizontal"
21938 , insert these commands in TeX-Code before the table or table float:
21941 \begin_layout Standard
21951 \begin_inset Newline newline
21959 \begin_inset Newline newline
21968 arrayrulewidth 1.5pt}
21969 \begin_inset Newline newline
21980 arrayrulewidth 0.4pt}}
21983 \begin_layout Standard
21984 To return to the default line thickness, insert this command in TeX-Code
21985 after the table or table float:
21988 \begin_layout Standard
22000 \begin_layout Standard
22004 \begin_layout Plain Layout
22015 \begin_layout Plain Layout
22024 \begin_layout Plain Layout
22032 arrayrulewidth 1.5pt}
22035 \begin_layout Plain Layout
22045 arrayrulewidth 0.4pt}}
22051 \begin_inset Float table
22056 \begin_layout Plain Layout
22057 \begin_inset Caption Standard
22059 \begin_layout Plain Layout
22060 \begin_inset CommandInset label
22062 name "tab:Table-with-horizontal"
22067 \begin_inset space \thinspace{}
22070 pt thick horizontal lines
22078 \begin_layout Plain Layout
22080 \begin_inset Tabular
22081 <lyxtabular version="3" rows="3" columns="3">
22082 <features rotate="0" tabularvalignment="middle">
22083 <column alignment="center" valignment="top">
22084 <column alignment="center" valignment="top">
22085 <column alignment="center" valignment="top">
22087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22090 \begin_layout Plain Layout
22096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22099 \begin_layout Plain Layout
22105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22108 \begin_layout Plain Layout
22116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22119 \begin_layout Plain Layout
22125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22128 \begin_layout Plain Layout
22134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22137 \begin_layout Plain Layout
22145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22148 \begin_layout Plain Layout
22154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22157 \begin_layout Plain Layout
22163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22166 \begin_layout Plain Layout
22186 \begin_layout Plain Layout
22202 \begin_layout Standard
22203 \begin_inset VSpace bigskip
22206 To set the line thickness to 1.5
22207 \begin_inset space \thinspace{}
22210 pt only for vertical lines, create the following column format in the document
22211 preamble, according to the description in section
22212 \begin_inset space ~
22216 \begin_inset CommandInset ref
22218 reference "sub:Customized-Format"
22225 \begin_layout Standard
22230 newcolumntype{V}{!{
22232 vrule width 1.5pt}}
22235 \begin_layout Standard
22237 \begin_inset space ~
22241 \begin_inset CommandInset ref
22243 reference "tab:Table-with-vertical"
22250 \begin_layout Standard
22256 \begin_layout Standard
22257 was used for the last column and
22260 \begin_layout Standard
22266 \begin_layout Standard
22267 for the other columns.
22270 \begin_layout Standard
22271 \begin_inset Float table
22276 \begin_layout Plain Layout
22277 \begin_inset Caption Standard
22279 \begin_layout Plain Layout
22280 \begin_inset CommandInset label
22282 name "tab:Table-with-vertical"
22287 \begin_inset space \thinspace{}
22290 pt thick vertical lines
22298 \begin_layout Plain Layout
22300 \begin_inset Tabular
22301 <lyxtabular version="3" rows="3" columns="3">
22302 <features rotate="0" tabularvalignment="middle">
22303 <column alignment="center" valignment="top" special="Vc">
22304 <column alignment="center" valignment="top" special="Vc">
22305 <column alignment="center" valignment="top" special="VcV">
22307 <cell alignment="center" valignment="top" topline="true" usebox="none">
22310 \begin_layout Plain Layout
22316 <cell alignment="center" valignment="top" topline="true" usebox="none">
22319 \begin_layout Plain Layout
22325 <cell alignment="center" valignment="top" topline="true" usebox="none">
22328 \begin_layout Plain Layout
22336 <cell alignment="center" valignment="top" topline="true" usebox="none">
22339 \begin_layout Plain Layout
22345 <cell alignment="center" valignment="top" topline="true" usebox="none">
22348 \begin_layout Plain Layout
22354 <cell alignment="center" valignment="top" topline="true" usebox="none">
22357 \begin_layout Plain Layout
22365 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22368 \begin_layout Plain Layout
22374 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22377 \begin_layout Plain Layout
22383 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22386 \begin_layout Plain Layout
22405 \begin_layout Subsection
22407 \begin_inset Index idx
22410 \begin_layout Plain Layout
22411 Table Customization ! Dashed Lines
22419 \begin_layout Standard
22423 \begin_layout Plain Layout
22433 \begin_inset Note Note
22436 \begin_layout Plain Layout
22437 The following section will only be displayed when the LaTeX-package
22449 \begin_layout Standard
22450 \begin_inset Float table
22456 \begin_layout Plain Layout
22457 \begin_inset Caption Standard
22459 \begin_layout Plain Layout
22460 \begin_inset CommandInset label
22462 name "tab:Table-with-dashed"
22466 Table with dashed lines
22474 \begin_layout Plain Layout
22476 \begin_inset Tabular
22477 <lyxtabular version="3" rows="5" columns="5">
22478 <features rotate="0" tabularvalignment="middle">
22479 <column alignment="center" valignment="top">
22480 <column alignment="center" valignment="top">
22481 <column alignment="center" valignment="top" special=":c">
22482 <column alignment="center" valignment="top">
22483 <column alignment="center" valignment="top">
22485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22488 \begin_layout Plain Layout
22494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22497 \begin_layout Plain Layout
22503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22506 \begin_layout Plain Layout
22512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22515 \begin_layout Plain Layout
22521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22524 \begin_layout Plain Layout
22532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22535 \begin_layout Plain Layout
22541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22544 \begin_layout Plain Layout
22550 <cell alignment="center" valignment="top" topline="true" usebox="none">
22553 \begin_layout Plain Layout
22559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22562 \begin_layout Plain Layout
22568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22571 \begin_layout Plain Layout
22579 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22582 \begin_layout Plain Layout
22586 \begin_layout Plain Layout
22600 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22603 \begin_layout Plain Layout
22609 <cell alignment="center" valignment="top" usebox="none">
22612 \begin_layout Plain Layout
22618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22621 \begin_layout Plain Layout
22627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22630 \begin_layout Plain Layout
22638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22641 \begin_layout Plain Layout
22645 \begin_layout Plain Layout
22659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22662 \begin_layout Plain Layout
22668 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22671 \begin_layout Plain Layout
22677 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22680 \begin_layout Plain Layout
22686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22689 \begin_layout Plain Layout
22697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22700 \begin_layout Plain Layout
22706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22709 \begin_layout Plain Layout
22715 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22718 \begin_layout Plain Layout
22724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22727 \begin_layout Plain Layout
22733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22736 \begin_layout Plain Layout
22755 \begin_layout Standard
22756 LyX does not natively support dashed lines, so you have to use TeX-Code.
22757 As a prerequisite the LaTeX-package
22762 \begin_inset Index idx
22765 \begin_layout Plain Layout
22766 LaTeX-packages ! arydshln
22771 must be loaded in the document preamble with the command
22774 \begin_layout Standard
22779 usepackage{arydshln}
22782 \begin_layout Standard
22783 To make a vertical line dashed, enter the colon
22784 \begin_inset Quotes eld
22788 \begin_inset Quotes erd
22791 together with the character for the horizontal alignment as LaTeX-argument
22792 in the table cell dialog.
22795 \begin_layout Standard
22796 For a horizontal dashed line add the command
22799 \begin_layout Standard
22807 \begin_layout Standard
22808 in TeX-Code as first element of the first cell in the table row.
22811 \begin_layout Standard
22812 For dashed multicolumn lines use the command
22815 \begin_layout Standard
22820 cdashline{line number
22825 \begin_layout Standard
22826 in TeX-Code as the first element of the first cell in the table row.
22827 If you have for example a multicolumn spanning columns 2 to 4 and you want
22828 to have a dashed line above, add the command
22831 \begin_layout Standard
22839 \begin_layout Standard
22840 as the first element of the first cell in the row of the multicolumn.
22843 \begin_layout Standard
22844 \begin_inset VSpace bigskip
22850 \begin_layout Standard
22852 \begin_inset space ~
22856 \begin_inset CommandInset ref
22858 reference "tab:Table-with-dashed"
22863 \begin_inset Quotes eld
22871 \begin_inset Quotes erd
22874 as LaTeX-argument of the third column.
22875 The TeX-Code command
22881 was inserted in the first cell of the third row and the TeX-Code command
22882 \begin_inset Newline newline
22891 was inserted in the first cell of the fourth row.
22894 \begin_layout Standard
22895 \begin_inset VSpace bigskip
22901 \begin_layout Standard
22902 Tables with dashed lines can also be colored as shown by Table
22903 \begin_inset space ~
22907 \begin_inset CommandInset ref
22909 reference "tab:Colored-table-with"
22916 \begin_layout Standard
22920 \begin_layout Plain Layout
22926 arrayrulewidth}{1pt}
22932 \begin_inset Note Note
22935 \begin_layout Plain Layout
22936 thicker lines for better visualization of the line color
22944 \begin_layout Standard
22948 \begin_layout Plain Layout
22952 dashgapcolor{green}
22958 \begin_inset Note Note
22961 \begin_layout Plain Layout
22962 color gaps between dashes green
22970 \begin_layout Standard
22974 \begin_layout Plain Layout
22985 \begin_layout Plain Layout
22994 \begin_layout Plain Layout
22998 arrayrulecolor{red}
23002 arrayrulecolor{black}}
23008 \begin_inset Note Note
23011 \begin_layout Plain Layout
23012 color horizontal, dashed lines red
23020 \begin_layout Standard
23024 \begin_layout Plain Layout
23035 \begin_layout Plain Layout
23044 \begin_layout Plain Layout
23048 arrayrulecolor{yellow}
23052 arrayrulecolor{black}}
23058 \begin_inset Note Note
23061 \begin_layout Plain Layout
23062 color partial horizontal, dashed lines yellow
23070 \begin_layout Standard
23071 \begin_inset Float table
23077 \begin_layout Plain Layout
23078 \begin_inset Caption Standard
23080 \begin_layout Plain Layout
23081 \begin_inset CommandInset label
23083 name "tab:Colored-table-with"
23087 Colored table with dashed lines
23095 \begin_layout Plain Layout
23097 \begin_inset Tabular
23098 <lyxtabular version="3" rows="5" columns="5">
23099 <features rotate="0" tabularvalignment="middle">
23100 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23101 <column alignment="center" valignment="top" width="0pt">
23102 <column alignment="center" valignment="top" width="0pt" special=":c">
23103 <column alignment="center" valignment="top">
23104 <column alignment="center" valignment="top">
23106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23109 \begin_layout Plain Layout
23115 <cell alignment="center" valignment="top" topline="true" usebox="none">
23118 \begin_layout Plain Layout
23124 <cell alignment="center" valignment="top" topline="true" usebox="none">
23127 \begin_layout Plain Layout
23133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23136 \begin_layout Plain Layout
23142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23145 \begin_layout Plain Layout
23153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23156 \begin_layout Plain Layout
23162 <cell alignment="center" valignment="top" topline="true" usebox="none">
23165 \begin_layout Plain Layout
23171 <cell alignment="center" valignment="top" topline="true" usebox="none">
23174 \begin_layout Plain Layout
23180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23183 \begin_layout Plain Layout
23189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23192 \begin_layout Plain Layout
23200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23203 \begin_layout Plain Layout
23207 \begin_layout Plain Layout
23220 \begin_layout Plain Layout
23234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23237 \begin_layout Plain Layout
23243 <cell alignment="center" valignment="top" usebox="none">
23246 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23255 \begin_layout Plain Layout
23261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23264 \begin_layout Plain Layout
23272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23275 \begin_layout Plain Layout
23279 \begin_layout Plain Layout
23293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23296 \begin_layout Plain Layout
23302 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23305 \begin_layout Plain Layout
23311 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23314 \begin_layout Plain Layout
23320 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23323 \begin_layout Plain Layout
23331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23334 \begin_layout Plain Layout
23340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23343 \begin_layout Plain Layout
23349 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23352 \begin_layout Plain Layout
23358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23361 \begin_layout Plain Layout
23367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23370 \begin_layout Plain Layout
23374 \begin_layout Plain Layout
23401 \begin_layout Standard
23405 \begin_layout Plain Layout
23419 \begin_inset Note Note
23422 \begin_layout Plain Layout
23431 \begin_layout Standard
23435 \begin_layout Plain Layout
23449 \begin_inset Note Note
23452 \begin_layout Plain Layout
23461 \begin_layout Standard
23465 \begin_layout Plain Layout
23475 \begin_inset Note Note
23478 \begin_layout Plain Layout
23487 \begin_layout Standard
23491 \begin_layout Plain Layout
23497 arrayrulewidth}{0.4pt}
23503 \begin_inset Note Note
23506 \begin_layout Plain Layout
23515 \begin_layout Standard
23516 The coloring of lines, columns and lines works as decribed in section
23517 \begin_inset space ~
23521 \begin_inset CommandInset ref
23523 reference "sec:Colored-Tables"
23528 Coloring horizontal lines works analogically as described there as well,
23529 one only needs to replace in the commands
23553 ; so one uses the command
23556 \begin_layout Standard
23566 \begin_inset Newline newline
23574 \begin_inset Newline newline
23578 \begin_inset Phantom HPhantom
23581 \begin_layout Plain Layout
23582 \begin_inset space ~
23592 arrayrulecolor{red}
23596 arrayrulecolor{black}}
23599 \begin_layout Standard
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
23653 To get back the black line color, one needs to insert the following commands
23654 as TeX-Code behind the table:
23657 \begin_layout Standard
23665 \begin_layout Standard
23677 \begin_layout Standard
23685 \begin_layout Standard
23697 \begin_layout Standard
23698 To color the gaps between the dashes the command
23701 \begin_layout Standard
23706 dashgapcolor{color}
23709 \begin_layout Standard
23710 can be used in front of a table as TeX-Code.
23711 color is hereby the name of a defined color.
23715 \begin_layout Standard
23723 \begin_layout Standard
23724 unsets the changes made by
23733 \begin_layout Standard
23734 \begin_inset Note Greyedout
23737 \begin_layout Plain Layout
23743 : If there are multiple commands in a cell, the command of
23747 needs to be the first one in the cell.
23753 \begin_inset space ~
23757 \begin_inset CommandInset ref
23759 reference "tab:Colored-table-with"
23783 \begin_layout Standard
23784 \begin_inset Note Greyedout
23787 \begin_layout Plain Layout
23797 must be loaded in the document preamble before the LaTeX-package
23802 \begin_inset Index idx
23805 \begin_layout Plain Layout
23806 LaTeX-packages ! colortbl
23819 \begin_layout Standard
23823 \begin_layout Plain Layout
23833 \begin_inset Note Note
23836 \begin_layout Plain Layout
23837 The following will be displayed when the LaTeX-package
23849 \begin_layout Standard
23850 You need to install the package
23854 to see the content of this section in the output.
23857 \begin_layout Standard
23861 \begin_layout Plain Layout
23873 \begin_layout Standard
23874 For more information about dashed lines see the documentation of
23879 \begin_inset CommandInset citation
23888 \begin_layout Chapter
23890 \begin_inset CommandInset label
23897 \begin_inset Index idx
23900 \begin_layout Plain Layout
23909 \begin_layout Section
23911 \begin_inset CommandInset label
23913 name "sec:FloatIntroduction"
23918 \begin_inset Index idx
23921 \begin_layout Plain Layout
23922 Floats ! Introduction
23930 \begin_layout Standard
23931 A float is a block of text associated with some sort of label, which doesn't
23932 have a fixed location.
23934 \begin_inset Quotes eld
23938 \begin_inset Quotes erd
23941 forward or backward a page or two, to wherever it fits best.
23949 \begin_inset space ~
23954 are also floats because they can float to the next page when there are
23955 too many notes on the page.
23958 \begin_layout Standard
23959 Floats allow a high quality layout.
23960 Images and tables can be spread evenly among the pages to avoid white space
23961 and pages without text.
23962 As the floating often destroys the context between the text and the image/table
23963 , every float can be referenced in the text.
23964 Floats are therefore numbered.
23965 Referencing is described in section
23966 \begin_inset space ~
23970 \begin_inset CommandInset ref
23972 reference "sec:Referencing-Floats"
23979 \begin_layout Standard
23980 To insert a float, use the menu
23982 Insert\SpecialChar \menuseparator
23988 arg "float-insert figure"
23994 arg "float-insert table"
24002 inset, a box with a label.
24003 The label will automatically be translated to the document language in
24005 After the label you can insert the caption text.
24006 The image or table is inserted above or below the caption in a separate
24007 paragraph within the float.
24008 More about the caption placement is contained in section
24009 \begin_inset space ~
24013 \begin_inset CommandInset ref
24015 reference "sec:Caption-Placement"
24020 To keep your LyX-document readable, you can open and close the float box
24021 by left-clicking on the box label.
24022 A closed float box looks like this:
24023 \begin_inset Graphics
24024 filename clipart/floatQt4.png
24026 scaleBeforeRotation
24030 – a gray button with a red label.
24033 \begin_layout Standard
24034 It is recommended that you insert floats as separate standard paragraphs
24035 to avoid possible LaTeX-errors that can occur when the surrounding text
24036 is specially formatted.
24039 \begin_layout Standard
24040 Existing figures or tables can be put into a float by highlighting them
24041 and then pressing the corresponding toolbar button for a new float.
24044 \begin_layout Section
24048 \begin_layout Standard
24049 Besides figure and table floats that are described in sections
24050 \begin_inset space ~
24054 \begin_inset CommandInset ref
24056 reference "sec:Figure-Floats"
24061 \begin_inset CommandInset ref
24063 reference "sec:Table-Floats"
24067 respectively, LyX offers the float types
24076 The latter are explained in sec.
24077 \begin_inset space \thinspace{}
24081 \begin_inset CommandInset ref
24083 reference "sec:Wrap-Floats"
24090 \begin_layout Subsection
24092 \begin_inset Index idx
24095 \begin_layout Plain Layout
24096 Floats ! Algorithms
24104 \begin_layout Standard
24105 \begin_inset Float algorithm
24111 \begin_layout Plain Layout
24112 \begin_inset Caption Standard
24114 \begin_layout Plain Layout
24115 \begin_inset CommandInset label
24117 name "alg:Example-Algorithm-float"
24121 Example Algorithm float
24129 \begin_layout LyX-Code
24131 \begin_inset Newline newline
24134 Sum:= Sum + A(I); /*comment*/
24135 \begin_inset Newline newline
24139 \begin_inset VSpace -4mm
24150 \begin_layout Standard
24151 This float type is inserted with the menu
24153 Insert\SpecialChar \menuseparator
24154 Float\SpecialChar \menuseparator
24158 It is used for program codes and descriptions of algorithms and can be
24159 seen as an alternative to program code listings that are explained in chapter
24160 \begin_inset space ~
24164 \begin_inset CommandInset ref
24166 reference "cha:Program-Code-Listings"
24171 A possible environment for algorithms is the
24175 , described in LyX's
24181 \begin_inset space ~
24185 \begin_inset CommandInset ref
24187 reference "alg:Example-Algorithm-float"
24191 is an example of an algorithm float where -4
24192 \begin_inset space \thinspace{}
24195 mm vertical space was added at the end of the float to have the bottom rule
24196 exactly below the last text line.
24199 \begin_layout Standard
24200 The float label is not automatically translated into the document language.
24201 If your document is not in English, you have to do this manually by adding
24202 the following line to the document preamble
24207 \begin_layout Standard
24212 floatname{algorithm}{your
24213 \begin_inset space ~
24219 \begin_layout Standard
24223 \begin_inset space ~
24229 \begin_inset Quotes eld
24237 \begin_inset Quotes erd
24243 \begin_layout Standard
24244 To insert the list of algorithms you can use the menu
24246 Insert\SpecialChar \menuseparator
24248 \begin_inset space \thinspace{}
24252 \begin_inset space \thinspace{}
24255 TOC\SpecialChar \menuseparator
24258 when your document has the same language as LyX's menu names.
24259 In other cases use this command in TeX-Code instead:
24262 \begin_layout Standard
24267 listof{algorithm}{your
24268 \begin_inset space ~
24274 \begin_layout Standard
24278 \begin_inset space ~
24284 \begin_inset Quotes eld
24292 \begin_inset Quotes erd
24298 \begin_layout Standard
24299 Algorithm floats are not by default numbered in the scheme
24300 \begin_inset Quotes eld
24304 \begin_inset Quotes erd
24307 as is the case for table and figure floats in many document-classes.
24308 To number algorithm floats in the same scheme, add this command to your
24312 \begin_layout Standard
24317 numberwithin{algorithm}{chapter}
24320 \begin_layout Standard
24321 To be able to use the command
24330 \begin_inset space ~
24335 in the document settings the option
24338 \begin_inset space ~
24342 \begin_inset space ~
24346 \begin_inset space ~
24354 \begin_layout Section
24356 \begin_inset Index idx
24359 \begin_layout Plain Layout
24368 \begin_layout Standard
24369 Floats are usually numbered either independently from the sections the floats
24370 are in, or in the scheme
24371 \begin_inset Quotes eld
24375 \begin_inset Quotes erd
24379 \begin_inset Quotes eld
24383 \begin_inset Quotes erd
24387 This depends on the document class used.
24390 \begin_layout Standard
24391 To change section-independent numbering, you can use this command in the
24395 \begin_layout Standard
24407 \begin_layout Standard
24414 is the command that prints the table number.
24415 For figure floats, the command would be
24428 in the command above prints the table number as a small roman number.
24431 \begin_layout Standard
24432 To change the numbering scheme for example to
24433 \begin_inset Quotes eld
24437 \begin_inset Quotes erd
24440 , use this command in the preamble:
24443 \begin_layout Standard
24448 numberwithin{table}{subsection}
24451 \begin_layout Standard
24452 To be able to use the command
24461 \begin_inset space ~
24466 in the document settings the option
24469 \begin_inset space ~
24473 \begin_inset space ~
24477 \begin_inset space ~
24485 \begin_layout Standard
24486 Please also have a look at section
24487 \begin_inset space ~
24491 \begin_inset CommandInset ref
24493 reference "sub:Footnote-Numbering"
24497 for the details and important notes about the numbering commands.
24500 \begin_layout Section
24502 \begin_inset CommandInset label
24504 name "sec:Referencing-Floats"
24509 \begin_inset Index idx
24512 \begin_layout Plain Layout
24513 Floats ! References
24519 \begin_inset Index idx
24522 \begin_layout Plain Layout
24523 References ! to Floats
24531 \begin_layout Standard
24532 To reference a float, insert a label into its caption using the menu
24534 Insert\SpecialChar \menuseparator
24537 or the toolbar button
24544 A grey label box like this one:
24545 \begin_inset Graphics
24546 filename clipart/labelQt4.png
24548 scaleBeforeRotation
24552 will be inserted and the label window pops up asking for the label text.
24553 LyX offers as text the first words of the caption with a prefix.
24554 The prefix depends on the float type, e.
24555 \begin_inset space \thinspace{}
24559 \begin_inset space \space{}
24562 for figure floats the prefix will be "
24569 \begin_layout Standard
24570 The label is used as anchor and name for the reference.
24571 You can refer to the label using the menu
24573 Insert\SpecialChar \menuseparator
24576 or the toolbar button
24579 arg "dialog-show-new-inset ref"
24583 The cross-reference window appears showing all labels of the document.
24584 If you have multiple LyX-documents opened, choose the one you are working
24585 on from the drop-list at the top of the dialog.
24586 You can now sort the labels alphabetically and then choose one.
24587 A grey cross-reference box like this one:
24588 \begin_inset Graphics
24589 filename clipart/referenceQt4.png
24591 scaleBeforeRotation
24596 At the position of the cross-reference box the float number will appear
24600 \begin_layout Standard
24601 It is recommended that you use a protected space between the cross-reference
24602 name and its number to avoid line breaks between them.
24603 If a cross-reference refers to a non-existing label, you will see two question
24604 marks in the output instead of the reference.
24607 \begin_layout Standard
24608 You can change labels at any time by clicking on the label box.
24609 References to the changed label will automatically update their links to
24610 the new label text.
24613 \begin_layout Standard
24617 \begin_inset space ~
24621 \begin_inset space ~
24626 in the cross-reference window sets the cursor before the referred label.
24627 The button text changes then to Go
24628 \begin_inset space ~
24631 Back and you can use it to set the cursor back to the cross-reference.
24634 \begin_layout Subsection
24635 Cross-Reference Formats
24636 \begin_inset CommandInset label
24638 name "sub:Cross-Reference-Formats"
24643 \begin_inset Index idx
24646 \begin_layout Plain Layout
24647 References ! Formats
24655 \begin_layout Standard
24656 There are six varieties of cross-references:
24659 \begin_layout Description
24660 <reference>: prints the float number, this is the default:
24661 \begin_inset CommandInset ref
24663 reference "fig:Two-distorted-images"
24670 \begin_layout Description
24671 (<reference>): prints the float number within two parentheses, this is the
24672 style normally used to reference formulas, especially when the reference
24674 \begin_inset Quotes eld
24678 \begin_inset Quotes erd
24682 \begin_inset CommandInset ref
24691 \begin_layout Description
24692 <page>: prints the page number: Page
24693 \begin_inset space ~
24697 \begin_inset CommandInset ref
24698 LatexCommand pageref
24699 reference "fig:Two-distorted-images"
24706 \begin_layout Description
24708 \begin_inset space ~
24712 \begin_inset space ~
24715 <page>: prints the text "on page" and the page number:
24716 \begin_inset CommandInset ref
24717 LatexCommand vpageref
24718 reference "fig:Two-distorted-images"
24725 \begin_layout Description
24727 \begin_inset space ~
24731 \begin_inset space ~
24735 \begin_inset space ~
24738 <page>: prints the float number, the text "on page", and the page number:
24740 \begin_inset CommandInset ref
24742 reference "fig:Two-distorted-images"
24749 \begin_layout Description
24751 \begin_inset space ~
24754 reference: prints a self-defined cross-reference format.
24755 \begin_inset Newline newline
24759 \begin_inset Note Greyedout
24762 \begin_layout Plain Layout
24767 This feature is only available when you have the LaTeX-package
24776 \begin_inset Index idx
24779 \begin_layout Plain Layout
24780 LaTeX-packages ! prettyref
24786 \begin_inset Index idx
24789 \begin_layout Plain Layout
24790 LaTeX-packages ! refstyle
24801 \begin_inset Newline newline
24804 You can select which LaTeX-package should be used for this feature by setting
24807 Use refstyle (not prettyref) for cross-references
24811 Document\SpecialChar \menuseparator
24812 Settings\SpecialChar \menuseparator
24816 The format is specified by adding the command
24828 (refstyle) to the preamble of the document.
24829 For example redefining all references to figures (which have the label
24831 \begin_inset Quotes eld
24839 \begin_inset Quotes erd
24842 ) can be done with this command
24843 \begin_inset Newline newline
24850 newref{fig}{refcmd={Image on page
24855 \begin_inset Newline newline
24858 For more information about the format, have a look at the package documentations
24860 \begin_inset CommandInset citation
24862 key "prettyref,refstyle"
24869 \begin_layout Description
24871 \begin_inset space ~
24874 reference: prints the caption of the reference:
24875 \begin_inset CommandInset ref
24876 LatexCommand nameref
24877 reference "fig:Two-distorted-images"
24884 \begin_layout Standard
24889 will not print the page number if the label is on the previous, the same,
24892 \begin_inset space \thinspace{}
24896 \begin_inset space \space{}
24900 \begin_inset Quotes eld
24908 \begin_inset Quotes erd
24914 <reference> on page <page>
24916 will not print anything about the page if the label is on the same page.
24919 \begin_layout Standard
24920 The number and current page of the part of the document referred to in the
24921 output is automatically calculated by LaTeX.
24922 The varieties are adjusted in the field
24926 of the cross-reference window that appears when you click on the cross-referenc
24930 \begin_layout Standard
24931 \begin_inset Note Greyedout
24934 \begin_layout Plain Layout
24939 It is recommended to use the LaTeX-package
24944 \begin_inset Index idx
24947 \begin_layout Plain Layout
24948 LaTeX-packages ! refstyle
24958 \begin_inset Index idx
24961 \begin_layout Plain Layout
24962 LaTeX-packages ! prettyref
24967 does not know all of LyX's possible label shortcuts
24971 \begin_layout Plain Layout
24972 \begin_inset Quotes eld
24976 \begin_inset Quotes erd
24979 is for example LyX's shortcut for labels in figure captions.
24984 and is not internationalized.
24992 \begin_layout Standard
24993 \begin_inset Note Greyedout
24996 \begin_layout Plain Layout
25001 Due to a bug in the LaTeX-package
25005 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25006 languages that make the period character active (like French).
25007 For a workaround, see
25008 \begin_inset Newline newline
25012 \begin_inset CommandInset href
25014 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25026 \begin_layout Subsection
25027 Automatic Reference Naming
25028 \begin_inset Index idx
25031 \begin_layout Plain Layout
25032 References ! Automatic Reference Naming
25040 \begin_layout Standard
25046 \begin_inset Index idx
25049 \begin_layout Plain Layout
25050 LaTeX-packages ! hyperref
25055 , that is enabled in the
25063 dialog, provides a very useful feature that cross-references automatically
25064 include the name of the referenced floats (or text parts like
25069 So you will save having to write e.
25070 \begin_inset space \thinspace{}
25074 \begin_inset space \space{}
25078 \begin_inset Quotes eld
25082 \begin_inset Quotes erd
25085 before every reference to a figure.
25086 To use this feature, enable
25090 and insert this line to the LaTeX preamble:
25093 \begin_layout Standard
25109 \begin_layout Standard
25110 When you prefer other reference names than the default ones, for example
25111 you want instead of
25112 \begin_inset Quotes eld
25116 \begin_inset Quotes erd
25120 \begin_inset Quotes eld
25124 \begin_inset space \thinspace{}
25128 \begin_inset Quotes eld
25131 , you can redefine the name by inserting this in the preamble:
25134 \begin_layout Standard
25145 sectionautorefname}
25146 \begin_inset Newline newline
25150 \begin_inset Phantom HPhantom
25153 \begin_layout Plain Layout
25156 \begin_inset space ~
25169 \begin_layout Standard
25170 When you are using another document language than English, replace
25171 \begin_inset Newline newline
25186 , where *** is the name of the language used.
25189 \begin_layout Standard
25190 To get automatic names, but not for certain reference types, for example
25191 not for equations, use this preamble code:
25194 \begin_layout Standard
25205 equationautorefname}[1]{}}
25208 \begin_layout Standard
25209 More about this topic can be found in
25214 \begin_inset CommandInset citation
25223 \begin_layout Standard
25224 \begin_inset Note Greyedout
25227 \begin_layout Plain Layout
25232 Automatic reference naming cannot be used when you use cross-references
25236 \begin_inset space ~
25241 style, as described in section
25242 \begin_inset space ~
25246 \begin_inset CommandInset ref
25248 reference "sub:Cross-Reference-Formats"
25260 \begin_layout Standard
25265 manual is an example where automatic reference naming is used.
25268 \begin_layout Subsection
25270 \begin_inset CommandInset label
25272 name "sub:Reference-Position"
25277 \begin_inset Index idx
25280 \begin_layout Plain Layout
25281 References ! Reference Position
25289 \begin_layout Standard
25295 \begin_inset Index idx
25298 \begin_layout Plain Layout
25299 LaTeX-packages ! hyperref
25312 dialog to link cross-references in the output, you will see that clicking
25313 on an image float reference jumps to the image label.
25314 The caption will be the first text part on the screen, so that you cannot
25315 see the image without scrolling.
25316 This is because the reference link anchor is placed at the position of
25318 With the use of the package
25323 \begin_inset Index idx
25326 \begin_layout Plain Layout
25327 LaTeX-packages ! hypcap
25332 , which is part of the LaTeX-package
25337 \begin_inset Index idx
25340 \begin_layout Plain Layout
25341 LaTeX-packages ! oberdiek
25346 , the link anchor is placed at the beginning of a float.
25347 To use this feature for figure floats, load
25351 in the document preamble with the line
25354 \begin_layout Standard
25359 usepackage[figure]{hypcap}
25362 \begin_layout Standard
25367 for all float types but this is not recommended for stability reasons.
25368 For more information, have a look at
25373 \begin_inset CommandInset citation
25382 \begin_layout Standard
25383 \begin_inset Note Greyedout
25386 \begin_layout Plain Layout
25395 has no effect on references to subfigures.
25403 \begin_layout Section
25405 \begin_inset CommandInset label
25407 name "sec:Float-Placement"
25412 \begin_inset Index idx
25415 \begin_layout Plain Layout
25424 \begin_layout Standard
25425 Right-clicking on a float-box and clicking on
25429 opens a dialog where you can alter the placement options that LaTeX uses
25430 for positioning the float.
25431 \begin_inset Newline newline
25437 \begin_inset space ~
25442 is only useful for two-column documents: If you select it, the float will
25443 span both columns on the page instead of being confined to just one.
25444 \begin_inset Newline newline
25450 \begin_inset space ~
25455 is used to rotate floats, see section
25456 \begin_inset CommandInset ref
25458 reference "sec:Rotated-Floats"
25465 \begin_layout Standard
25466 You can use one or more of the following options in the float dialog to
25467 set the placement for a particular float when you uncheck the option
25470 \begin_inset space ~
25474 \begin_inset space ~
25482 \begin_layout Description
25484 \begin_inset space ~
25488 \begin_inset space ~
25491 possible try to place the float on the position where it has been inserted
25494 \begin_layout Description
25496 \begin_inset space ~
25500 \begin_inset space ~
25503 page try to place the float at the top of the current page
25506 \begin_layout Description
25508 \begin_inset space ~
25512 \begin_inset space ~
25515 page try to place the float at the bottom of the current page
25518 \begin_layout Description
25520 \begin_inset space ~
25524 \begin_inset space ~
25527 floats try to place the float on its own page
25530 \begin_layout Standard
25531 The order of the above option is
25536 That means, if you use the default placement, LaTeX will first try out
25540 \begin_inset space ~
25544 \begin_inset space ~
25552 \begin_inset space ~
25556 \begin_inset space ~
25561 , and then the others.
25562 If you do not use the default, LaTeX will try only the checked options
25563 but in the same order.
25565 \begin_inset space ~
25568 placements is possible the procedure is internally repeated trying to put
25569 the float on the following page.
25572 \begin_layout Standard
25573 By default, each option has its own rules:
25576 \begin_layout Labeling
25577 \labelwidthstring 00.00.0000
25581 \begin_inset space ~
25585 \begin_inset space ~
25590 only floats occupying less than 70
25591 \begin_inset space \thinspace{}
25594 % of the page can be placed at the top of a page (
25603 \begin_layout Labeling
25604 \labelwidthstring 00.00.0000
25608 \begin_inset space ~
25612 \begin_inset space ~
25617 : only floats occupying less than 30
25618 \begin_inset space \thinspace{}
25621 % of the page can be placed at the bottom of a page.
25631 \begin_layout Labeling
25632 \labelwidthstring 00.00.0000
25636 \begin_inset space ~
25640 \begin_inset space ~
25645 : only if more than 50
25646 \begin_inset space \thinspace{}
25649 % of the page is occupied by floats, several floats can be set together
25660 \begin_layout Standard
25661 If you don't like these rules, you can ignore them by using the additional
25665 \begin_inset space ~
25669 \begin_inset space ~
25675 \begin_inset Newline newline
25678 You can also redefine the rules with LaTeX-commands that are given in parenthese
25679 s after the rules description above.
25680 To increase for example the often too small default of the bottom-rule
25682 \begin_inset space \thinspace{}
25685 % of the page, add this line to your document preamble:
25688 \begin_layout Standard
25695 bottomfraction}{0.5}
25698 \begin_layout Standard
25699 Sometimes you might need, under all circumstances, a float to be placed
25700 exactly at the position where it is inserted.
25701 For this case you can use the option
25704 \begin_inset space ~
25710 Use this option very rarely and only if the document is almost ready to
25711 be printed, because the float is then no longer able to
25712 \begin_inset Quotes eld
25716 \begin_inset Quotes erd
25719 when you change your document and this will often destroy the page layout.
25722 \begin_layout Standard
25723 There are no placement options for text wrap floats, because they are always
25724 surrounded by the text of a certain paragraph.
25725 \begin_inset VSpace bigskip
25731 \begin_layout Standard
25732 Sometimes you have the problem that a float is placed at the top of a page
25733 while its corresponding section starts at the middle of the page, so that
25734 the reader could think the float is part of the previous section.
25735 To avoid this the LaTeX-command
25742 It suppresses a given float placement for the page where it is inserted
25743 and can therefore be used to avoid floats being set before a section starts.
25744 To get this, add these commands to your document preamble:
25747 \begin_layout Standard
25757 \begin_inset Newline newline
25771 \begin_layout Standard
25772 You can define the same for all section headings, like chapters and subsections.
25773 This definition is not recommended to be used for small text parts like
25774 subsubsections because LaTeX may then have problems finding a suitable
25778 \begin_layout Standard
25779 \begin_inset VSpace bigskip
25782 In some cases it is required to have all figures/tables at the end of the
25784 For this purpose the LaTeX-package
25789 \begin_inset Index idx
25792 \begin_layout Plain Layout
25793 LaTeX-packages ! endfloat
25799 It puts all figure and table floats at the end of the document into their
25801 At the original float position a text hint like
25802 \begin_inset Quotes eld
25808 \begin_inset space ~
25814 \begin_inset Quotes erd
25818 The endfloat-package is loaded in the preamble with the line
25821 \begin_layout Standard
25826 usepackage[options]{endfloat}
25829 \begin_layout Standard
25830 There are various package options to format the created figure/table sections.
25831 For more information we refer you to the
25836 \begin_inset CommandInset citation
25843 \begin_inset Newline newline
25847 \begin_inset Note Greyedout
25850 \begin_layout Plain Layout
25855 doesn't provide an automatic translation for the text hint, you have to
25856 do this manually, see section
25857 \begin_inset space ~
25861 \begin_inset CommandInset citation
25873 \begin_inset Newline newline
25877 \begin_inset Note Greyedout
25880 \begin_layout Plain Layout
25885 There is currently a bug in
25889 when the caption contains a German
25890 \begin_inset Quotes eld
25894 \begin_inset Quotes erd
25898 Use in this case the command
25899 \begin_inset Quotes eld
25909 \begin_inset Quotes erd
25912 in TeX-Code instead of
25913 \begin_inset Quotes eld
25917 \begin_inset Quotes erd
25928 \begin_layout Standard
25929 \begin_inset VSpace bigskip
25932 For more details about float placements, have a look at LaTeX books,
25933 \begin_inset CommandInset citation
25935 key "latexcompanion,latexguide,latexbook"
25942 \begin_layout Section
25944 \begin_inset CommandInset label
25946 name "sec:Rotated-Floats"
25951 \begin_inset Index idx
25954 \begin_layout Plain Layout
25963 \begin_layout Standard
25964 Especially for wide tables you might have floats rotated.
25965 To rotate a whole float including the caption, right-click on the float-box
25969 \begin_inset space ~
25977 \begin_layout Standard
25978 Rotated floats are always placed on a page of their own (or column of their
25979 own; in case you have a multi-column document).
25980 You can let them span several columns using the float settings option
25983 \begin_inset space ~
25989 Floats are rotated so that you can read them from the outside margin.
25990 To force a certain rotation direction for all pages, you can add either
25999 to the document class options.
26002 \begin_layout Standard
26003 Referencing rotated floats is the same as for normal floats, the caption
26004 format is also the same: Table
26005 \begin_inset space ~
26009 \begin_inset CommandInset ref
26011 reference "tab:Rotated-table"
26015 is an example of a rotated table float.
26018 \begin_layout Standard
26019 \begin_inset Note Greyedout
26022 \begin_layout Plain Layout
26027 Not all DVI-viewers are able to display rotated floats.
26035 \begin_layout Standard
26036 \begin_inset Float table
26041 \begin_layout Plain Layout
26042 \begin_inset Caption Standard
26044 \begin_layout Plain Layout
26045 \begin_inset CommandInset label
26047 name "tab:Rotated-table"
26059 \begin_layout Plain Layout
26061 \begin_inset Tabular
26062 <lyxtabular version="3" rows="1" columns="5">
26063 <features rotate="0" tabularvalignment="middle">
26064 <column alignment="center" valignment="top">
26065 <column alignment="center" valignment="top">
26066 <column alignment="center" valignment="top">
26067 <column alignment="center" valignment="top">
26068 <column alignment="center" valignment="top">
26070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26073 \begin_layout Plain Layout
26079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26082 \begin_layout Plain Layout
26088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26091 \begin_layout Plain Layout
26097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26100 \begin_layout Plain Layout
26106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26109 \begin_layout Plain Layout
26128 \begin_layout Section
26130 \begin_inset Index idx
26133 \begin_layout Plain Layout
26142 \begin_layout Standard
26143 Subfloats are for example used when a figure consists of several images.
26144 They are created by inserting a float into an existing float.
26145 The placement of the subfloats can be controlled in the same way as for
26146 paragraphs as shown in table
26147 \begin_inset space ~
26151 \begin_inset CommandInset ref
26153 reference "tab:Two-subtables-side"
26158 \begin_inset CommandInset ref
26160 reference "tab:Two-subtables-upon"
26167 \begin_layout Standard
26168 Referencing subfloats works as for normal floats: Table
26169 \begin_inset space ~
26173 \begin_inset CommandInset ref
26175 reference "tab:This-is-subtable-a"
26180 \begin_inset CommandInset ref
26182 reference "tab:This-is-subtable-b"
26186 are subtables of table
26187 \begin_inset space ~
26191 \begin_inset CommandInset ref
26193 reference "tab:Two-subtables-side"
26200 \begin_layout Standard
26201 \begin_inset Float table
26206 \begin_layout Plain Layout
26207 \begin_inset Caption Standard
26209 \begin_layout Plain Layout
26210 \begin_inset CommandInset label
26212 name "tab:Two-subtables-side"
26216 Two subtables placed side by side.
26224 \begin_layout Plain Layout
26226 \begin_inset space \hfill{}
26230 \begin_inset Float table
26235 \begin_layout Plain Layout
26236 \begin_inset Caption Standard
26238 \begin_layout Plain Layout
26239 \begin_inset CommandInset label
26241 name "tab:This-is-subtable-a"
26245 This is subtable a.
26253 \begin_layout Plain Layout
26255 \begin_inset Tabular
26256 <lyxtabular version="3" rows="1" columns="5">
26257 <features rotate="0" tabularvalignment="middle">
26258 <column alignment="center" valignment="top">
26259 <column alignment="center" valignment="top">
26260 <column alignment="center" valignment="top">
26261 <column alignment="center" valignment="top">
26262 <column alignment="center" valignment="top">
26264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26267 \begin_layout Plain Layout
26273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26276 \begin_layout Plain Layout
26282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26285 \begin_layout Plain Layout
26291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26294 \begin_layout Plain Layout
26300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26303 \begin_layout Plain Layout
26320 \begin_inset space \hfill{}
26324 \begin_inset Float table
26329 \begin_layout Plain Layout
26330 \begin_inset Caption Standard
26332 \begin_layout Plain Layout
26333 \begin_inset CommandInset label
26335 name "tab:This-is-subtable-b"
26339 This is subtable b.
26347 \begin_layout Plain Layout
26349 \begin_inset Tabular
26350 <lyxtabular version="3" rows="1" columns="5">
26351 <features rotate="0" tabularvalignment="middle">
26352 <column alignment="center" valignment="top">
26353 <column alignment="center" valignment="top">
26354 <column alignment="center" valignment="top">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_layout Plain Layout
26367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26370 \begin_layout Plain Layout
26376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26379 \begin_layout Plain Layout
26385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26388 \begin_layout Plain Layout
26394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26397 \begin_layout Plain Layout
26414 \begin_inset space \hfill{}
26425 \begin_layout Standard
26426 \begin_inset Float table
26431 \begin_layout Plain Layout
26432 \begin_inset Caption Standard
26434 \begin_layout Plain Layout
26435 \begin_inset CommandInset label
26437 name "tab:Two-subtables-upon"
26441 Two subtables placed one above the other.
26442 (a) table with 4 cells, (b) table with 5 cells.
26450 \begin_layout Plain Layout
26452 \begin_inset Float table
26457 \begin_layout Plain Layout
26458 \begin_inset Caption Standard
26460 \begin_layout Plain Layout
26469 \begin_layout Plain Layout
26471 \begin_inset Tabular
26472 <lyxtabular version="3" rows="1" columns="4">
26473 <features rotate="0" tabularvalignment="middle">
26474 <column alignment="center" valignment="top">
26475 <column alignment="center" valignment="top">
26476 <column alignment="center" valignment="top">
26477 <column alignment="center" valignment="top">
26479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26482 \begin_layout Plain Layout
26488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26491 \begin_layout Plain Layout
26497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26500 \begin_layout Plain Layout
26506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26509 \begin_layout Plain Layout
26528 \begin_layout Plain Layout
26530 \begin_inset Float table
26535 \begin_layout Plain Layout
26536 \begin_inset Caption Standard
26538 \begin_layout Plain Layout
26547 \begin_layout Plain Layout
26549 \begin_inset Tabular
26550 <lyxtabular version="3" rows="1" columns="5">
26551 <features rotate="0" tabularvalignment="middle">
26552 <column alignment="center" valignment="top">
26553 <column alignment="center" valignment="top">
26554 <column alignment="center" valignment="top">
26555 <column alignment="center" valignment="top">
26556 <column alignment="center" valignment="top">
26558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26561 \begin_layout Plain Layout
26567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26570 \begin_layout Plain Layout
26576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26579 \begin_layout Plain Layout
26585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26588 \begin_layout Plain Layout
26594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26597 \begin_layout Plain Layout
26621 \begin_layout Section
26622 Floats Side by Side
26623 \begin_inset Index idx
26626 \begin_layout Plain Layout
26627 Floats ! Side by side
26635 \begin_layout Standard
26636 To place floats side by side, as in Figures
26637 \begin_inset space ~
26641 \begin_inset CommandInset ref
26643 reference "fig:Float-left"
26648 \begin_inset CommandInset ref
26650 reference "fig:Float-right"
26659 In it two minipage boxes are inserted.
26663 \begin_layout Plain Layout
26664 Minipages are explained in section
26665 \begin_inset space ~
26669 \begin_inset CommandInset ref
26671 reference "sec:Minipages"
26680 The width is set to 45
26681 \begin_inset space \thinspace{}
26685 \begin_inset space \thinspace{}
26688 column% and the box alignment to
26693 The minipage boxes contain the image and the caption in the same way as
26694 they are in a float.
26695 The only difference is that the image unit
26698 \begin_inset space ~
26702 \begin_inset space ~
26707 is now calculated according to the width of the minipage boxes.
26710 \begin_layout Standard
26711 \begin_inset Float figure
26716 \begin_layout Plain Layout
26717 \begin_inset Box Frameless
26727 height_special "totalheight"
26730 \begin_layout Plain Layout
26732 \begin_inset Graphics
26733 filename clipart/mobius.eps
26736 scaleBeforeRotation
26743 \begin_layout Plain Layout
26744 \begin_inset Caption Standard
26746 \begin_layout Plain Layout
26747 \begin_inset CommandInset label
26749 name "fig:Float-left"
26753 Float on the left side.
26764 \begin_inset space \hfill{}
26768 \begin_inset Box Frameless
26778 height_special "totalheight"
26781 \begin_layout Plain Layout
26783 \begin_inset Graphics
26784 filename clipart/platypus.eps
26787 scaleBeforeRotation
26794 \begin_layout Plain Layout
26795 \begin_inset Caption Standard
26797 \begin_layout Plain Layout
26798 \begin_inset CommandInset label
26800 name "fig:Float-right"
26804 Float on the right side.
26817 \begin_layout Plain Layout
26826 \begin_layout Section
26828 \begin_inset Index idx
26831 \begin_layout Plain Layout
26832 Caption ! Formatting
26838 \begin_inset Index idx
26841 \begin_layout Plain Layout
26842 Floats ! Caption Formatting
26848 \begin_inset CommandInset label
26850 name "sec:Caption-Formatting"
26857 \begin_layout Standard
26862 environment is the default paragraph environment for
26867 On the LyX screen captions appear as a label, e.
26868 \begin_inset space \thinspace{}
26872 \begin_inset space \space{}
26876 \begin_inset Quotes eld
26884 \begin_inset Quotes erd
26887 followed by the caption text.
26889 \begin_inset Quotes eld
26893 \begin_inset Quotes erd
26896 is the actual reference number.
26897 By default the label and the number are in the same font as the caption
26898 text and a colon follows the number to divide the label from the text.
26899 This caption format is suitable for many but not all documents.
26903 \begin_layout Standard
26904 To change the default caption format, load the LaTeX-package
26909 \begin_inset Index idx
26912 \begin_layout Plain Layout
26913 LaTeX-packages ! caption
26918 in the document preamble with this line:
26921 \begin_layout Standard
26926 usepackage[format definition]{caption}
26929 \begin_layout Standard
26930 To have for example the label and the number in sans-serif, bold font and
26931 the table captions always above the table as in this document, use the
26935 \begin_layout Standard
26940 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26943 \begin_layout Standard
26944 You can also define different caption formats for the different float types.
26945 In this case load the
26949 package without format specific options and define the different formats
26950 with the help of the command
26953 \begin_layout Standard
26958 captionsetup[float type]{format definition}
26961 \begin_layout Standard
26962 in the document preamble.
26963 For example the caption formats of Figure
26964 \begin_inset space ~
26968 \begin_inset CommandInset ref
26970 reference "fig:This-is-an-fig"
26975 \begin_inset space ~
26979 \begin_inset CommandInset ref
26981 reference "tab:This-is-an-tab"
26985 can be created using these commands in the document preamble:
26988 \begin_layout Standard
26993 usepackage[tableposition=top]{caption}
26996 \begin_inset Newline newline
27003 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27004 \begin_inset Newline newline
27008 \begin_inset Phantom HPhantom
27011 \begin_layout Plain Layout
27016 captionsetup[figure]{
27022 \begin_inset Newline newline
27027 captionsetup[table]{labelfont={bf,sf}}
27030 \begin_layout Standard
27031 \begin_inset Note Greyedout
27034 \begin_layout Plain Layout
27043 has no effect when a
27048 \begin_inset Index idx
27051 \begin_layout Plain Layout
27052 LaTeX-packages ! KOMA-Script
27057 document class is used.
27058 In this case the document class option
27060 captions=tableheading
27070 \begin_layout Standard
27071 For more information about the package
27075 we refer to its documentation
27076 \begin_inset CommandInset citation
27085 \begin_layout Standard
27086 To change the label name from e.
27087 \begin_inset space \thinspace{}
27091 \begin_inset space \space{}
27095 \begin_inset Quotes eld
27099 \begin_inset Quotes erd
27103 \begin_inset Quotes eld
27107 \begin_inset Quotes erd
27110 use this preamble command:
27113 \begin_layout Standard
27120 fnum@figure}{Image~
27125 \begin_layout Standard
27132 inserts the figure number and
27135 \begin_inset Quotes eld
27141 \begin_inset Quotes erd
27144 creates a protected space.
27147 \begin_layout Standard
27148 \begin_inset VSpace bigskip
27156 \begin_inset Index idx
27159 \begin_layout Plain Layout
27160 LaTeX-packages ! KOMA-Script
27167 article (KOMA-Script)
27175 letter (KOMA-Script)
27179 report (KOMA-Script)
27182 \begin_inset space \thinspace{}
27185 ), you can alternatively to the
27193 's built-in command
27200 For example, to have the caption label in bold, add this command to your
27204 \begin_layout Standard
27209 setkomafont{captionlabel}{
27214 \begin_layout Standard
27215 For more information about
27226 \begin_inset CommandInset citation
27235 \begin_layout Standard
27239 \begin_layout Plain Layout
27243 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27250 \begin_inset Note Note
27253 \begin_layout Plain Layout
27254 The caption format is changed only for this example.
27262 \begin_layout Standard
27263 \begin_inset Float figure
27269 \begin_layout Plain Layout
27271 \begin_inset Graphics
27272 filename clipart/mobius.eps
27275 scaleBeforeRotation
27282 \begin_layout Plain Layout
27283 \begin_inset Caption Standard
27285 \begin_layout Plain Layout
27286 \begin_inset CommandInset label
27288 name "fig:This-is-an-fig"
27292 This is an example figure caption that is longer than one line to show the
27293 different caption format.
27294 Here a self-defined caption format is used.
27307 \begin_layout Standard
27311 \begin_layout Plain Layout
27315 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27324 \begin_layout Standard
27325 \begin_inset Float table
27331 \begin_layout Plain Layout
27332 \begin_inset Caption Standard
27334 \begin_layout Plain Layout
27335 \begin_inset CommandInset label
27337 name "tab:This-is-an-tab"
27341 This is an example table caption that is longer than one line to show the
27342 different caption format.
27343 Here the standard caption format for tables in this document is used.
27351 \begin_layout Plain Layout
27353 \begin_inset Tabular
27354 <lyxtabular version="3" rows="1" columns="5">
27355 <features rotate="0" tabularvalignment="middle">
27356 <column alignment="center" valignment="top">
27357 <column alignment="center" valignment="top">
27358 <column alignment="center" valignment="top">
27359 <column alignment="center" valignment="top">
27360 <column alignment="center" valignment="top">
27362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27365 \begin_layout Plain Layout
27371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27374 \begin_layout Plain Layout
27380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27383 \begin_layout Plain Layout
27389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27392 \begin_layout Plain Layout
27398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27401 \begin_layout Plain Layout
27420 \begin_layout Section
27422 \begin_inset Index idx
27425 \begin_layout Plain Layout
27426 Caption ! Placement
27432 \begin_inset Index idx
27435 \begin_layout Plain Layout
27436 Floats ! Caption Placement
27442 \begin_inset CommandInset label
27444 name "sec:Caption-Placement"
27451 \begin_layout Standard
27452 The common caption placement rule is:
27455 \begin_layout Description
27456 Figure: Caption is set below the figure
27459 \begin_layout Description
27460 Table: Caption is set above the table
27463 \begin_layout Standard
27464 Having the caption above the table is unfortunately not supported in LaTeX's
27466 That means if you are using the document classes
27482 there will be no space between the caption and the table.
27483 To insert the necessary space, load the LaTeX-package
27488 \begin_inset Index idx
27491 \begin_layout Plain Layout
27492 LaTeX-packages ! caption
27497 in your document preamble with the option
27501 \begin_layout Plain Layout
27503 \begin_inset space ~
27507 \begin_inset CommandInset ref
27509 reference "sec:Caption-Formatting"
27513 for more information of the package
27525 \begin_layout Standard
27531 \begin_layout Standard
27537 \begin_inset Index idx
27540 \begin_layout Plain Layout
27541 LaTeX-packages ! KOMA-Script
27548 article (KOMA-Script)
27556 letter (KOMA-Script)
27560 report (KOMA-Script)
27563 \begin_inset space \thinspace{}
27566 ), you can alternatively to the
27570 package set the document class option
27574 \begin_layout Plain Layout
27575 That option is used in this document.
27583 \begin_layout Standard
27586 captions=tableheading
27589 \begin_layout Standard
27590 In documents with a KOMA-Script document class you can also right-click
27591 on a caption and mark in the context menu if this should be a caption above
27592 or below the table/figure.
27593 This way you can override the document-wide caption placement for certain
27596 \begin_inset space ~
27600 \begin_inset CommandInset ref
27602 reference "tab:A-caption-marked"
27606 is an example where the caption is marked a being below the table while
27608 For comparison the caption in Table
27609 \begin_inset space ~
27613 \begin_inset CommandInset ref
27615 reference "tab:A-standard-table"
27622 \begin_layout Standard
27623 \begin_inset Float table
27628 \begin_layout Plain Layout
27629 \begin_inset Caption Below
27631 \begin_layout Plain Layout
27632 \begin_inset CommandInset label
27634 name "tab:A-caption-marked"
27638 A caption marked as being below the table.
27646 \begin_layout Plain Layout
27648 \begin_inset Tabular
27649 <lyxtabular version="3" rows="3" columns="3">
27650 <features rotate="0" tabularvalignment="middle">
27651 <column alignment="center" valignment="top" width="0pt">
27652 <column alignment="center" valignment="top" width="0pt">
27653 <column alignment="center" valignment="top" width="0pt">
27655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27658 \begin_layout Plain Layout
27664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27667 \begin_layout Plain Layout
27673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27676 \begin_layout Plain Layout
27684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27687 \begin_layout Plain Layout
27693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27696 \begin_layout Plain Layout
27702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27705 \begin_layout Plain Layout
27713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27716 \begin_layout Plain Layout
27717 \begin_inset Formula $\int x^{2}dx$
27725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27728 \begin_layout Plain Layout
27729 \begin_inset Formula $\left[\begin{array}{cc}
27732 \end{array}\right]$
27740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27743 \begin_layout Plain Layout
27744 \begin_inset Formula $1+1=2$
27765 \begin_layout Standard
27766 \begin_inset Float table
27771 \begin_layout Plain Layout
27772 \begin_inset Caption Standard
27774 \begin_layout Plain Layout
27775 \begin_inset CommandInset label
27777 name "tab:A-standard-table"
27781 A standard table caption.
27789 \begin_layout Plain Layout
27791 \begin_inset Tabular
27792 <lyxtabular version="3" rows="3" columns="3">
27793 <features rotate="0" tabularvalignment="middle">
27794 <column alignment="center" valignment="top" width="0pt">
27795 <column alignment="center" valignment="top" width="0pt">
27796 <column alignment="center" valignment="top" width="0pt">
27798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27801 \begin_layout Plain Layout
27807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27810 \begin_layout Plain Layout
27816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27819 \begin_layout Plain Layout
27827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27830 \begin_layout Plain Layout
27836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27839 \begin_layout Plain Layout
27845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27848 \begin_layout Plain Layout
27856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27859 \begin_layout Plain Layout
27860 \begin_inset Formula $\int x^{2}dx$
27868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27871 \begin_layout Plain Layout
27872 \begin_inset Formula $\left[\begin{array}{cc}
27875 \end{array}\right]$
27883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27886 \begin_layout Plain Layout
27887 \begin_inset Formula $1+1=2$
27908 \begin_layout Standard
27909 \begin_inset VSpace bigskip
27912 It is also possible to set the caption beside a figure or table.
27913 To get this the LaTeX-package
27918 \begin_inset Index idx
27921 \begin_layout Plain Layout
27922 LaTeX-packages ! sidecap
27927 has to be loaded in the document preamble with the line
27930 \begin_layout Standard
27935 usepackage[option]{sidecap}
27938 \begin_layout Standard
27939 If you set no option, the caption is placed on the side of the outer page
27940 margin – to the right on odd pages, to the left on even pages.
27941 You can change the placement to inner margin with the option
27946 To force the placement always to the right or left, use the option
27957 \begin_layout Standard
27961 \begin_layout Plain Layout
27971 \begin_inset Note Note
27974 \begin_layout Plain Layout
27975 The following section will only be displayed when the LaTeX-package
27987 \begin_layout Standard
27988 To place in LyX the caption of a float on the side, it is necessary to add
27989 these commands to the document preamble:
27992 \begin_layout Standard
27994 \begin_inset CommandInset line
28005 \begin_layout Standard
28012 TabBesBeg}[1][1.0]{%
28013 \begin_inset Newline newline
28017 \begin_inset Phantom HPhantom
28020 \begin_layout Plain Layout
28021 \begin_inset space ~
28036 \begin_inset Newline newline
28040 \begin_inset Phantom HPhantom
28043 \begin_layout Plain Layout
28046 \begin_inset space ~
28061 \begin_inset Newline newline
28065 \begin_inset Phantom HPhantom
28068 \begin_layout Plain Layout
28071 \begin_inset space ~
28081 renewenvironment{table}[1]{
28083 begin{SCtable}[#1]##1}{
28088 \begin_layout Standard
28096 \begin_inset Newline newline
28100 \begin_inset Phantom HPhantom
28103 \begin_layout Plain Layout
28104 \begin_inset space ~
28119 \begin_inset Newline newline
28123 \begin_inset Phantom HPhantom
28126 \begin_layout Plain Layout
28127 \begin_inset space ~
28144 \begin_layout Standard
28151 FigBesBeg}[1][1.0]{%
28152 \begin_inset Newline newline
28156 \begin_inset Phantom HPhantom
28159 \begin_layout Plain Layout
28160 \begin_inset space ~
28175 \begin_inset Newline newline
28179 \begin_inset Phantom HPhantom
28182 \begin_layout Plain Layout
28183 \begin_inset space ~
28198 \begin_inset Newline newline
28202 \begin_inset Phantom HPhantom
28205 \begin_layout Plain Layout
28206 \begin_inset space ~
28216 renewenvironment{figure}[1]{
28218 begin{SCfigure}[#1]##1}{
28223 \begin_layout Standard
28231 \begin_inset Newline newline
28235 \begin_inset Phantom HPhantom
28238 \begin_layout Plain Layout
28239 \begin_inset space ~
28254 \begin_inset Newline newline
28258 \begin_inset Phantom HPhantom
28261 \begin_layout Plain Layout
28262 \begin_inset space ~
28279 \begin_layout Standard
28281 \begin_inset CommandInset line
28292 \begin_layout Standard
28293 The commands allow you to redefine the floats so that the caption is set
28295 For figure floats use the command
28298 \begin_layout Standard
28306 \begin_layout Standard
28307 in TeX-Code before the float.
28308 And insert the command
28311 \begin_layout Standard
28319 \begin_layout Standard
28320 in TeX-Code at the point where you want to get back to the original float
28324 \begin_layout Standard
28325 For table floats use the corresponding commands
28328 \begin_layout Standard
28342 \begin_layout Standard
28344 \begin_inset space ~
28348 \begin_inset CommandInset ref
28350 reference "fig:cap-beside-fig"
28355 \begin_inset space ~
28359 \begin_inset CommandInset ref
28361 reference "tab:cap-beside-tab"
28365 are examples where the caption is set beside.
28368 \begin_layout Standard
28369 You can see in the examples that the caption text appears at the top of
28370 the floats for table floats and at the bottom for figure floats.
28371 To change this, you can use the command
28374 \begin_layout Standard
28379 sidecaptionvpos{float type}{placement}
28382 \begin_layout Standard
28383 in the document preamble or in TeX-Code before the float.
28384 The float type is either
28392 , the placement can be
28393 \begin_inset Quotes eld
28401 \begin_inset Quotes erd
28405 \begin_inset Quotes eld
28413 \begin_inset Quotes erd
28417 \begin_inset Quotes eld
28425 \begin_inset Quotes erd
28429 To have for example the caption of figure floats vertically centered, use
28433 \begin_layout Standard
28438 sidecaptionvpos{figure}{c}
28441 \begin_layout Standard
28442 This was used for Figure
28443 \begin_inset space ~
28447 \begin_inset CommandInset ref
28449 reference "fig:cap-beside-fig-2"
28456 \begin_layout Standard
28457 \begin_inset VSpace medskip
28463 \begin_layout Standard
28464 The default caption width is the width of the image/table.
28465 For thin image/tables, like in Table
28466 \begin_inset space ~
28470 \begin_inset CommandInset ref
28472 reference "tab:cap-beside-tab"
28476 , this leads to captions that are too thin.
28477 You can increase the width by specifying a factor that will be multiplied
28478 with the image/table width to get the caption width.
28479 The caption width will automatically be recalculated in case it would protrude
28480 over the page or column margin due to the specified width.
28485 can either be given as optional argument for
28494 \begin_layout Standard
28502 \begin_layout Standard
28503 or in the definition of
28513 with another value.
28514 If you do the latter, your factor will be the default if
28520 is used without an argument.
28522 \begin_inset space ~
28526 \begin_inset CommandInset ref
28528 reference "tab:cap-beside-tab-wider"
28532 the factor 5 was used.
28535 \begin_layout Standard
28536 \begin_inset Note Greyedout
28539 \begin_layout Plain Layout
28544 For floats with captions set beside, you cannot use the float placement
28548 \begin_inset space ~
28553 because it is not supported by
28565 \begin_layout Standard
28566 \begin_inset VSpace medskip
28569 For more information about the package
28573 we refer to its documentation
28574 \begin_inset CommandInset citation
28583 \begin_layout Standard
28584 \begin_inset Note Greyedout
28587 \begin_layout Plain Layout
28597 \begin_inset Index idx
28600 \begin_layout Plain Layout
28601 LaTeX-packages ! hypcap
28606 , described in section
28607 \begin_inset space ~
28611 \begin_inset CommandInset ref
28613 reference "sub:Reference-Position"
28617 , has no effect on floats with the caption set beside.
28625 \begin_layout Standard
28629 \begin_layout Plain Layout
28641 \begin_layout Standard
28642 \begin_inset Float figure
28647 \begin_layout Plain Layout
28648 \begin_inset Graphics
28649 filename clipart/escher-lsd.eps
28651 scaleBeforeRotation
28658 \begin_layout Plain Layout
28659 \begin_inset Caption Standard
28661 \begin_layout Plain Layout
28662 \begin_inset CommandInset label
28664 name "fig:cap-beside-fig"
28668 This is a caption beside a figure.
28681 \begin_layout Standard
28685 \begin_layout Plain Layout
28697 \begin_layout Standard
28701 \begin_layout Plain Layout
28713 \begin_layout Standard
28714 \begin_inset Float table
28719 \begin_layout Plain Layout
28720 \begin_inset Caption Standard
28722 \begin_layout Plain Layout
28723 \begin_inset CommandInset label
28725 name "tab:cap-beside-tab"
28729 This is a caption beside a table.
28737 \begin_layout Plain Layout
28738 \begin_inset Tabular
28739 <lyxtabular version="3" rows="4" columns="5">
28740 <features rotate="0" tabularvalignment="middle">
28741 <column alignment="center" valignment="top">
28742 <column alignment="center" valignment="top">
28743 <column alignment="center" valignment="top">
28744 <column alignment="center" valignment="top">
28745 <column alignment="center" valignment="top">
28747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28750 \begin_layout Plain Layout
28756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28759 \begin_layout Plain Layout
28765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28768 \begin_layout Plain Layout
28774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28777 \begin_layout Plain Layout
28783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28786 \begin_layout Plain Layout
28794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28797 \begin_layout Plain Layout
28803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28806 \begin_layout Plain Layout
28812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28815 \begin_layout Plain Layout
28821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28824 \begin_layout Plain Layout
28830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28833 \begin_layout Plain Layout
28841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28844 \begin_layout Plain Layout
28850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28853 \begin_layout Plain Layout
28859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28862 \begin_layout Plain Layout
28868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28871 \begin_layout Plain Layout
28877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28880 \begin_layout Plain Layout
28888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28891 \begin_layout Plain Layout
28897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28900 \begin_layout Plain Layout
28906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28909 \begin_layout Plain Layout
28915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28918 \begin_layout Plain Layout
28924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28927 \begin_layout Plain Layout
28946 \begin_layout Standard
28950 \begin_layout Plain Layout
28962 \begin_layout Standard
28966 \begin_layout Plain Layout
28979 \begin_layout Plain Layout
28983 sidecaptionvpos{figure}{c}
28989 \begin_inset Float figure
28994 \begin_layout Plain Layout
28995 \begin_inset Graphics
28996 filename clipart/escher-lsd.eps
28998 scaleBeforeRotation
29005 \begin_layout Plain Layout
29006 \begin_inset Caption Standard
29008 \begin_layout Plain Layout
29009 \begin_inset CommandInset label
29011 name "fig:cap-beside-fig-2"
29015 This is a vertically centered caption beside a figure.
29028 \begin_layout Standard
29032 \begin_layout Plain Layout
29044 \begin_layout Standard
29048 \begin_layout Plain Layout
29060 \begin_layout Standard
29061 \begin_inset Float table
29066 \begin_layout Plain Layout
29067 \begin_inset Caption Standard
29069 \begin_layout Plain Layout
29070 \begin_inset CommandInset label
29072 name "tab:cap-beside-tab-wider"
29076 This caption is wider than the one in Table
29077 \begin_inset space ~
29081 \begin_inset CommandInset ref
29083 reference "tab:cap-beside-tab"
29095 \begin_layout Plain Layout
29096 \begin_inset Tabular
29097 <lyxtabular version="3" rows="4" columns="5">
29098 <features rotate="0" tabularvalignment="middle">
29099 <column alignment="center" valignment="top">
29100 <column alignment="center" valignment="top">
29101 <column alignment="center" valignment="top">
29102 <column alignment="center" valignment="top">
29103 <column alignment="center" valignment="top">
29105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29108 \begin_layout Plain Layout
29114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29117 \begin_layout Plain Layout
29123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29126 \begin_layout Plain Layout
29132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29135 \begin_layout Plain Layout
29141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29144 \begin_layout Plain Layout
29152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29155 \begin_layout Plain Layout
29161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29164 \begin_layout Plain Layout
29170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29173 \begin_layout Plain Layout
29179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29182 \begin_layout Plain Layout
29188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29191 \begin_layout Plain Layout
29199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29202 \begin_layout Plain Layout
29208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29211 \begin_layout Plain Layout
29217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29220 \begin_layout Plain Layout
29226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29229 \begin_layout Plain Layout
29235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29238 \begin_layout Plain Layout
29246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29249 \begin_layout Plain Layout
29255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29258 \begin_layout Plain Layout
29264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29267 \begin_layout Plain Layout
29273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29276 \begin_layout Plain Layout
29282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29285 \begin_layout Plain Layout
29304 \begin_layout Standard
29308 \begin_layout Plain Layout
29320 \begin_layout Standard
29324 \begin_layout Plain Layout
29334 \begin_inset Note Note
29337 \begin_layout Plain Layout
29338 The following will be displayed when the LaTeX-package
29350 \begin_layout Standard
29351 You need to install the LaTeX-package
29355 to see the following part of this section in the output.
29358 \begin_layout Standard
29362 \begin_layout Plain Layout
29374 \begin_layout Section
29376 \begin_inset Index idx
29379 \begin_layout Plain Layout
29380 Floats ! Float Lists
29388 \begin_layout Standard
29389 Similar to the table of contents where the sections of the document are
29390 listed, there are listings for all float types, like the figures of the
29392 You can insert them via the
29394 Insert\SpecialChar \menuseparator
29396 \begin_inset space ~
29400 \begin_inset space ~
29408 \begin_layout Standard
29409 The list entries are the float captions or its short title, the float number,
29410 and the page number where they appear in the document.
29413 \begin_layout Standard
29414 You can find the list of figures and tables at the end of this document.
29417 \begin_layout Chapter
29421 \begin_layout Section
29423 \begin_inset Index idx
29426 \begin_layout Plain Layout
29435 \begin_layout Standard
29436 Notes are inserted with the toolbar button
29444 Insert\SpecialChar \menuseparator
29448 There are three types of notes:
29451 \begin_layout Description
29453 \begin_inset space ~
29456 Note This note type is for internal notes that won't appear in the output.
29457 Its note-box looks like this:
29458 \begin_inset Newline newline
29462 \begin_inset Newline newline
29466 \begin_inset Graphics
29467 filename clipart/LyXNoteImageQt4.png
29470 scaleBeforeRotation
29475 \begin_inset Note Note
29478 \begin_layout Plain Layout
29479 This is text in a note box that doesn't appear in the output.
29487 \begin_layout Description
29488 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29489 ent, when you export the document to LaTeX via the menu
29491 File\SpecialChar \menuseparator
29492 Export\SpecialChar \menuseparator
29493 LaTeX (pdflatex) / (plain)
29496 Its note-box looks like this:
29497 \begin_inset Newline newline
29501 \begin_inset Newline newline
29505 \begin_inset Graphics
29506 filename clipart/CommentNoteImageQt4.png
29509 scaleBeforeRotation
29514 \begin_inset Note Comment
29517 \begin_layout Plain Layout
29518 This is text in a note box that only appears as comment in LaTeX-files.
29526 \begin_layout Description
29528 \begin_inset space ~
29531 Out This note will appear in the output as grey text.
29532 Its note-box looks like this:
29533 \begin_inset Newline newline
29537 \begin_inset Newline newline
29541 \begin_inset Graphics
29542 filename clipart/GreyedOutNoteImageQt4.png
29545 scaleBeforeRotation
29550 \begin_inset Newline newline
29557 \begin_layout Plain Layout
29561 renewenvironment{lyxgreyedout}
29564 \begin_layout Plain Layout
29568 textcolor[gray]{0.8}
29578 \begin_inset Note Greyedout
29581 \begin_layout Plain Layout
29586 \begin_layout Plain Layout
29587 This is an example footnote within a greyed out note.
29592 of a comment that appears in the output as grey text.
29601 \begin_layout Plain Layout
29605 renewenvironment{lyxgreyedout}
29608 \begin_layout Plain Layout
29622 \begin_inset Note Note
29625 \begin_layout Plain Layout
29626 The greyed out note is here redefined to show it with the original LyX definitio
29627 n because greyed out notes are redefined in the preamble of this document,
29628 as described below, to have blue text.
29634 \begin_inset Newline newline
29638 \begin_inset Newline newline
29641 As you can see in the example, the first line of greyed out notes is a bit
29642 indented and greyed out notes can have footnotes.
29645 \begin_layout Standard
29646 \begin_inset VSpace bigskip
29649 When you use the toolbar button
29658 \begin_inset space ~
29664 You can switch between the three note types by right-clicking on the note-box.
29669 If you want to turn existing text into a note, mark it and click on the
29683 To change a note to text, press the backspace key when the cursor is in
29684 the first position of a note, or press the delete key when the cursor is
29685 in the very last position of the note, respectively.
29688 \begin_layout Standard
29689 \begin_inset VSpace bigskip
29692 You can change the text color of the greyed out notes in the menu
29694 Document\SpecialChar \menuseparator
29695 Settings\SpecialChar \menuseparator
29701 \begin_layout Section
29703 \begin_inset CommandInset label
29705 name "sec:Footnotes"
29710 \begin_inset Index idx
29713 \begin_layout Plain Layout
29720 \begin_inset Index idx
29723 \begin_layout Plain Layout
29732 \begin_layout Standard
29733 Footnotes can be inserted using the toolbar button
29736 arg "footnote-insert"
29741 Insert\SpecialChar \menuseparator
29745 You will then see the following footnote-box:
29746 \begin_inset Graphics
29747 filename clipart/footnoteQt4.png
29749 scaleBeforeRotation
29757 where you can enter the footnote text.
29758 If you want to turn existing text into a footnote, mark it and click on
29784 key when the cursor is in the first position of a
29796 key when the cursor is in the very last position of the
29807 \begin_layout Standard
29808 Here is an example footnote:
29816 \begin_layout Plain Layout
29817 \begin_inset CommandInset label
29819 name "foot:This-is-an"
29823 This is an example footnote.
29836 \begin_layout Plain Layout
29840 newcounter{MyRepeatFoot}
29843 \begin_layout Plain Layout
29847 setcounter{MyRepeatFoot}{
29857 \begin_layout Standard
29858 The footnote will appear in the output as a superscript number at the text
29859 position where the footnote box is placed.
29860 The footnote text is placed at the bottom of the current page.
29861 The footnote number is calculated by LaTeX; the numbers are consecutive.
29862 Whether the footnote number is reset for every chapter depends on your
29866 \begin_layout Standard
29867 Footnotes can be referenced like floats: Insert a label into the footnote
29868 and cross-reference this label in the text as described in section
29869 \begin_inset space ~
29873 \begin_inset CommandInset ref
29875 reference "sec:Referencing-Floats"
29880 \begin_inset Newline newline
29883 This is a cross-reference of Footnote
29884 \begin_inset space ~
29888 \begin_inset CommandInset ref
29890 reference "foot:This-is-an"
29897 \begin_layout Standard
29898 \begin_inset VSpace defskip
29901 Footnotes in tables are not printed by LaTeX due to technical reasons.
29902 However there exists another method to print them: Instead of the footnote
29909 is inserted as TeX-code.
29910 The text of the footnote is entered as an argument of the TeX-code command
29918 \begin_inset Newline newline
29921 This was done for the following table with the command
29924 \begin_layout Standard
29931 Printed table footnote.
29936 \begin_layout Standard
29937 \begin_inset Tabular
29938 <lyxtabular version="3" rows="2" columns="1">
29939 <features rotate="0" tabularvalignment="middle">
29940 <column alignment="center" valignment="top">
29942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29945 \begin_layout Plain Layout
29946 This an example text.
29950 \begin_layout Plain Layout
29951 This footnote will not be printed!
29963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29966 \begin_layout Plain Layout
29967 This an example text.
29971 \begin_layout Plain Layout
29994 \begin_layout Plain Layout
30003 Printed table footnote.
30007 \begin_layout Plain Layout
30017 \begin_layout Standard
30018 Footnotes in longtables are described in section
30019 \begin_inset space ~
30023 \begin_inset CommandInset ref
30025 reference "sub:Footnotes-in-Longtables"
30032 \begin_layout Standard
30033 Footnotes in minipage boxes are printed, but inside the box and with a different
30034 numbering because a minipage box is like a page inside a page.
30035 (For more about minipages, see section
30036 \begin_inset space ~
30040 \begin_inset CommandInset ref
30042 reference "sec:Minipages"
30046 .) To get a footnote in the minipage that is output at the bottom of the
30047 page like normal footnotes, also use the method of
30062 \begin_layout Standard
30063 \begin_inset Box Frameless
30073 height_special "totalheight"
30076 \begin_layout Plain Layout
30077 This an example text in a minipage.
30081 \begin_layout Plain Layout
30082 Footnote in the minipage.
30090 \begin_layout Plain Layout
30091 This an example text in a minipage.
30095 \begin_layout Plain Layout
30112 \begin_layout Standard
30116 \begin_layout Plain Layout
30125 Footnote outside the minipage.
30129 \begin_layout Plain Layout
30139 \begin_layout Standard
30140 \begin_inset VSpace defskip
30146 \begin_layout Standard
30147 To refer to the same footnote several times without printing the footnote
30148 text every time, use the command
30152 footnotemark[number]
30155 \begin_inset Newline newline
30158 As you do not know the number of the repeating footnote while you are writing
30159 the text, you have to store its number.
30160 For the following footnote mark example, these commands were inserted in
30161 TeX-code after Footnote
30162 \begin_inset space ~
30166 \begin_inset CommandInset ref
30168 reference "foot:This-is-an"
30172 to store the footnote number:
30175 \begin_layout Standard
30180 newcounter{MyRepeatFoot}
30181 \begin_inset Newline newline
30186 setcounter{MyRepeatFoot}{
30191 \begin_layout Standard
30192 The footnote mark was then created with this command:
30195 \begin_layout Standard
30205 \begin_layout Standard
30206 Here is a repeated footnote:
30214 \begin_layout Plain Layout
30228 \begin_layout Standard
30229 If you want to repeat the previous footnote, you can omit the storage of
30230 the footnote number and just use this command instead:
30233 \begin_layout Standard
30243 \begin_layout Standard
30244 Here is another repeated footnote:
30252 \begin_layout Plain Layout
30266 \begin_layout Subsection
30268 \begin_inset CommandInset label
30270 name "sub:Footnote-Numbering"
30275 \begin_inset Index idx
30278 \begin_layout Plain Layout
30279 Footnotes ! Numbering
30287 \begin_layout Standard
30288 To reset the footnote number back to 1 after each section
30290 , add this command to your document preamble:
30293 \begin_layout Standard
30298 @addtoreset{footnote}{section}
30301 \begin_layout Standard
30302 \begin_inset VSpace bigskip
30305 The following preamble command changes the footnote numbering style to small
30309 \begin_layout Standard
30321 \begin_layout Standard
30325 \begin_layout Plain Layout
30338 This is a footnote with roman numbering:
30342 \begin_layout Plain Layout
30343 This is an example footnote with roman numbering.
30351 \begin_layout Standard
30352 To change the numbering style to capital roman numerals replace in the command
30367 \begin_inset Quotes eld
30371 \begin_inset Quotes erd
30374 footnotes with capital or small Latin letters use
30388 \begin_inset Quotes eld
30392 \begin_inset Quotes erd
30395 footnotes with symbols use
30404 \begin_layout Standard
30405 \begin_inset Note Greyedout
30408 \begin_layout Plain Layout
30413 You can only number 26 footnotes with Latin letters, because this numbering
30414 is limited to single letters.
30420 \begin_inset Newline newline
30424 \begin_inset Note Greyedout
30427 \begin_layout Plain Layout
30432 You can only number 9 footnotes with symbols.
30440 \begin_layout Standard
30441 To return to the default numbering style after you have changed to another
30454 in the command above.
30458 \begin_layout Plain Layout
30474 \begin_layout Standard
30475 \begin_inset VSpace bigskip
30481 \begin_layout Standard
30482 If you want to have footnotes numbered in the scheme
30483 \begin_inset Quotes eld
30487 \begin_inset Quotes erd
30490 , add the following command to your document preamble:
30493 \begin_layout Standard
30498 numberwithin{footnote}{chapter}
30501 \begin_layout Standard
30502 To be able to use the command
30511 \begin_inset space ~
30516 in the document settings the option
30519 \begin_inset space ~
30523 \begin_inset space ~
30527 \begin_inset space ~
30535 \begin_layout Standard
30539 \begin_layout Plain Layout
30543 numberwithin{footnote}{chapter}
30548 This is another example footnote:
30554 \begin_layout Plain Layout
30555 This is a footnote numbered in the scheme
30556 \begin_inset Quotes eld
30560 \begin_inset Quotes erd
30574 \begin_layout Plain Layout
30590 \begin_layout Standard
30591 \begin_inset Note Greyedout
30594 \begin_layout Plain Layout
30605 always prints out the footnote number as arabic number; previous redefinitions
30606 to get non-arabic numbers are overwritten.
30614 \begin_layout Standard
30615 So to get for example the scheme
30616 \begin_inset Quotes eld
30622 \begin_inset Quotes erd
30625 , use this command instead of
30634 \begin_layout Standard
30648 \begin_layout Subsection
30650 \begin_inset Index idx
30653 \begin_layout Plain Layout
30654 Footnotes ! Placement
30662 \begin_layout Standard
30663 If you have several footnotes in one page, they appear without vertical
30664 space between them at the bottom of the page.
30665 To make them more readable you can e.
30666 \begin_inset space \thinspace{}
30670 \begin_inset space \space{}
30674 \begin_inset space \thinspace{}
30677 mm space with the following preamble command:
30680 \begin_layout Standard
30690 \begin_inset Newline newline
30704 \begin_layout Standard
30705 \begin_inset VSpace bigskip
30708 In a two-column document the footnotes appear at the bottom of every column,
30710 \begin_inset space ~
30714 \begin_inset CommandInset ref
30716 reference "fig:Standard-footnote-placement"
30721 If the footnotes should only appear at the bottom of the right column,
30723 \begin_inset space ~
30727 \begin_inset CommandInset ref
30729 reference "fig:Footnote-placement-in"
30733 , use the LaTeX-package
30738 \begin_inset Index idx
30741 \begin_layout Plain Layout
30742 LaTeX-packages ! ftnright
30747 with this command in the document preamble:
30750 \begin_layout Standard
30755 usepackage{ftnright}
30758 \begin_layout Standard
30759 \begin_inset Float figure
30765 \begin_layout Plain Layout
30769 \begin_layout Plain Layout
30779 \begin_inset Graphics
30780 filename clipart/without_fntright.pdf
30782 scaleBeforeRotation
30790 \begin_layout Plain Layout
30800 \begin_layout Plain Layout
30801 \begin_inset Caption Standard
30803 \begin_layout Plain Layout
30804 \begin_inset CommandInset label
30806 name "fig:Standard-footnote-placement"
30810 Standard footnote placement in two-column documents.
30823 \begin_layout Standard
30824 \begin_inset Float figure
30830 \begin_layout Plain Layout
30834 \begin_layout Plain Layout
30844 \begin_inset Graphics
30845 filename clipart/with_fntright.pdf
30847 scaleBeforeRotation
30855 \begin_layout Plain Layout
30865 \begin_layout Plain Layout
30866 \begin_inset Caption Standard
30868 \begin_layout Plain Layout
30869 \begin_inset CommandInset label
30871 name "fig:Footnote-placement-in"
30875 Footnote placement in two-column documents when the LaTeX-package
30892 \begin_layout Standard
30893 \begin_inset VSpace bigskip
30896 In some scientific literature it is usual to collect the footnotes and print
30897 them in a separate paragraph at the end of a section, as in Figure
30898 \begin_inset space ~
30902 \begin_inset CommandInset ref
30904 reference "fig:Endnotes"
30909 They are then called
30910 \begin_inset Quotes eld
30914 \begin_inset Quotes erd
30918 \begin_inset Index idx
30921 \begin_layout Plain Layout
30927 To use endnotes instead of footnotes in your document, load in the menu
30930 Document\SpecialChar \menuseparator
30931 Settings\SpecialChar \menuseparator
30937 \begin_inset space ~
30941 \begin_inset space ~
30947 To insert the collected footnotes, insert the command
30950 \begin_layout Standard
30958 \begin_layout Standard
30959 in TeX-Code at the end of a section or chapter.
30962 \begin_layout Standard
30963 \begin_inset Float figure
30968 \begin_layout Plain Layout
30973 \begin_layout Plain Layout
30983 \begin_inset Graphics
30984 filename clipart/endnotes.pdf
30985 scaleBeforeRotation
30993 \begin_layout Plain Layout
31003 \begin_layout Plain Layout
31004 \begin_inset Caption Standard
31006 \begin_layout Plain Layout
31007 \begin_inset CommandInset label
31009 name "fig:Endnotes"
31013 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31027 \begin_layout Standard
31028 \begin_inset VSpace medskip
31031 The paragraph heading for the endnotes isn't automatically translated into
31032 the document language, this must be done manually.
31033 The following preamble command translates the default English
31034 \begin_inset Quotes eld
31038 \begin_inset Quotes erd
31042 \begin_inset Quotes eld
31046 \begin_inset Quotes erd
31052 \begin_layout Standard
31059 notesname}{Anmerkungen}
31062 \begin_layout Standard
31063 \begin_inset VSpace medskip
31066 The numbering of endnotes can be changed like the footnote numbering as
31067 described in section
31068 \begin_inset space ~
31072 \begin_inset CommandInset ref
31074 reference "sub:Footnote-Numbering"
31078 ; just replace the command
31091 To reset the endnote number use the command
31097 as described in section
31098 \begin_inset space ~
31102 \begin_inset CommandInset ref
31104 reference "sub:Footnote-Numbering"
31108 and replace the command parameter
31119 \begin_layout Standard
31120 For endnotes there is the command
31124 endnotemark[number]
31126 similar to the command
31132 , that is described in section
31133 \begin_inset space ~
31137 \begin_inset CommandInset ref
31139 reference "sec:Footnotes"
31146 \begin_layout Standard
31147 \begin_inset VSpace bigskip
31150 Footnotes can also be placed in the page margin and the footnote text alignment
31151 can be changed, see the LaTeX-package
31156 \begin_inset Index idx
31159 \begin_layout Plain Layout
31160 LaTeX-packages ! footmisc
31166 \begin_inset CommandInset citation
31172 for more information about this.
31175 \begin_layout Standard
31176 For various further footnote formatting issues have a look at LaTeX-books,
31178 \begin_inset CommandInset citation
31180 key "latexcompanion,latexguide,latexbook"
31190 \begin_inset Index idx
31193 \begin_layout Plain Layout
31194 LaTeX-packages ! KOMA-Script
31199 document class, you can adjust all footnote settings using class-specific
31201 \begin_inset CommandInset citation
31210 \begin_layout Section
31212 \begin_inset Index idx
31215 \begin_layout Plain Layout
31216 Notes ! Margin Notes
31224 \begin_layout Standard
31225 Margin notes look and behave in LyX like footnotes.
31226 They are inserted via the menu
31228 Insert\SpecialChar \menuseparator
31230 \begin_inset space ~
31235 or the toolbar button
31238 arg "marginalnote-insert"
31252 \begin_inset Quotes eld
31256 \begin_inset Quotes erd
31259 appears where you can enter the text of the margin note.
31262 \begin_layout Standard
31263 At the side is an example margin note.
31268 \begin_inset Marginal
31271 \begin_layout Plain Layout
31272 This is a margin note.
31280 \begin_layout Standard
31281 Margin notes appear at the right side in single-sided documents.
31282 In double-sided documents they appear in the outer margin – left on even
31283 pages, right on odd pages.
31284 The text of margin notes is aligned opposite to the outer margin – right-aligne
31285 d when the note appears in the left margin.
31286 The first line of the margin note is placed at the position of the text
31287 line where it is inserted in the document.
31290 \begin_layout Standard
31291 \begin_inset VSpace bigskip
31294 To place the margin note in the inner margin, add the command
31297 \begin_layout Standard
31305 \begin_layout Standard
31306 in TeX-Code before a margin note.
31307 The new placement is valid for all subsequent margin notes.
31312 \begin_layout Plain Layout
31322 \begin_inset Marginal
31325 \begin_layout Plain Layout
31326 This is a margin note in the inner margin.
31334 \begin_inset Newline newline
31340 \begin_inset Note Greyedout
31343 \begin_layout Plain Layout
31348 There is often not enough space in the inner margin so that the notes are
31349 not correctly displayed in the output.
31357 \begin_layout Standard
31358 To return to the default placement insert the command
31361 \begin_layout Standard
31369 \begin_layout Standard
31374 \begin_layout Plain Layout
31384 \begin_inset Note Greyedout
31387 \begin_layout Plain Layout
31392 The command is ignored when it is within a paragraph where also the command
31407 \begin_layout Standard
31408 \begin_inset VSpace bigskip
31415 \begin_inset Marginal
31418 \begin_layout Plain Layout
31419 AVeryLongMarginParWord that isn't hyphenated.
31427 Similar to the case described in section
31428 \begin_inset space ~
31432 \begin_inset CommandInset ref
31434 reference "sub:Multiple-Lines-in"
31438 , long words cannot be hyphenated when they are the first word in a margin
31440 To avoid this, insert 0
31441 \begin_inset space \thinspace{}
31444 pt horizontal space before the word
31449 \begin_inset Marginal
31452 \begin_layout Plain Layout
31453 \begin_inset space \hspace*{}
31457 AVeryLongMarginParWord that is hyphenated.
31465 \begin_layout Standard
31466 \begin_inset VSpace bigskip
31472 \begin_layout Standard
31473 \begin_inset Note Greyedout
31476 \begin_layout Plain Layout
31481 Margin notes can normally not be used inside tables, floats, and footnotes.
31489 \begin_layout Standard
31490 \begin_inset VSpace bigskip
31496 \begin_layout Standard
31500 \begin_layout Plain Layout
31510 \begin_inset Note Note
31513 \begin_layout Plain Layout
31514 The following section will only be displayed when the LaTeX-package
31526 \begin_layout Standard
31527 This restriction can be evaded by using the LaTeX-package
31532 \begin_inset Index idx
31535 \begin_layout Plain Layout
31536 LaTeX-packages ! marginnote
31542 By adding these two lines to your document preamble, the command used by
31543 LyX for margin notes is redefined to use the command provided by the
31550 \begin_layout Standard
31555 usepackage{marginnote}
31556 \begin_inset Newline newline
31568 \begin_layout Standard
31569 This is also used in this document because
31573 has another useful feature: You can set a vertical offset for the note.
31574 This is often needed when too many margin notes are too close together
31575 or for a better page layout.
31576 The offset is set in LyX as TeX-Code directly after the margin note in
31580 \begin_layout Standard
31586 \begin_layout Standard
31587 where the offset is a length with one of the units listed in Table
31588 \begin_inset space ~
31592 \begin_inset CommandInset ref
31594 reference "tab:Units"
31599 A negative value shifts the note up, a positive value shifts it down.
31603 For example the margin note beside this text line is shifted up 1.5
31604 \begin_inset space \thinspace{}
31607 cm with the TeX-Code-command
31608 \begin_inset Quotes eld
31618 \begin_inset Quotes erd
31622 \begin_inset Marginal
31625 \begin_layout Plain Layout
31626 This margin note is shifted up 1.5
31627 \begin_inset space \thinspace{}
31630 cm from its original position.
31642 \begin_layout Plain Layout
31652 \begin_layout Standard
31653 \begin_inset VSpace medskip
31660 you can also change the alignment of the text in the margin note.
31661 For example the commands
31664 \begin_layout Standard
31671 raggedleftmarginnote}{
31674 \begin_inset Newline newline
31681 raggedrightmarginnote}{
31686 \begin_layout Standard
31687 set the alignment to centered.
31692 raggedleftmarginnote
31694 denotes margin notes that appear at the left side.
31701 \begin_layout Plain Layout
31707 raggedleftmarginnote}{
31712 \begin_layout Plain Layout
31718 raggedrightmarginnote}{
31726 \begin_inset Marginal
31729 \begin_layout Plain Layout
31730 The text of this margin note is centered.
31741 \begin_layout Standard
31748 raggedleftmarginnote}{
31751 \begin_inset Newline newline
31758 raggedrightmarginnote}{
31767 \begin_layout Plain Layout
31773 raggedleftmarginnote}{
31778 \begin_layout Plain Layout
31784 raggedrightmarginnote}{
31794 \begin_layout Standard
31795 \begin_inset VSpace medskip
31798 For the other features of
31802 refer to its documentation
31803 \begin_inset CommandInset citation
31812 \begin_layout Standard
31813 \begin_inset VSpace bigskip
31816 You can adjust the layout of margin notes by changing its definition.
31817 To create for example a header for all margin notes with the underlined,
31818 sans-serif, and bold header text
31819 \begin_inset Quotes eld
31831 \begin_inset Quotes erd
31834 , add this to your document preamble:
31837 \begin_layout Standard
31847 \begin_inset Newline newline
31857 \begin_inset Newline newline
31861 \begin_inset Phantom HPhantom
31864 \begin_layout Plain Layout
31867 \begin_inset space ~
31883 underbar{Attention!}}}%
31884 \begin_inset Newline newline
31888 \begin_inset Phantom HPhantom
31891 \begin_layout Plain Layout
31894 \begin_inset space ~
31911 \begin_layout Standard
31918 \begin_layout Plain Layout
31929 \begin_layout Plain Layout
31940 \begin_layout Plain Layout
31948 underbar{Attention!}}}%
31951 \begin_layout Plain Layout
31965 \begin_inset Marginal
31968 \begin_layout Plain Layout
31969 This is a margin note with a defined heading.
31981 \begin_layout Plain Layout
31995 \begin_layout Plain Layout
32012 \begin_inset Note Note
32015 \begin_layout Plain Layout
32016 The margin note format is changed only for this example.
32024 \begin_layout Standard
32028 \begin_layout Plain Layout
32038 \begin_inset Note Note
32041 \begin_layout Plain Layout
32042 The following will be displayed when the LaTeX-package
32054 \begin_layout Standard
32055 You need to install the LaTeX-package
32059 to see the following part of this section in the output.
32062 \begin_layout Standard
32066 \begin_layout Plain Layout
32078 \begin_layout Chapter
32082 \begin_layout Section
32084 \begin_inset Index idx
32087 \begin_layout Plain Layout
32088 Boxes ! Introduction
32096 \begin_layout Standard
32097 Boxes are used to format a block of text.
32098 Boxes can be used to write documents with multiple languages, see section
32099 \begin_inset space ~
32103 \begin_inset CommandInset ref
32105 reference "sec:Minipages"
32109 , to frame texts, see section
32110 \begin_inset space ~
32114 \begin_inset CommandInset ref
32116 reference "sec:Decoration"
32120 , to prevent words from being hyphenated, see section
32121 \begin_inset space ~
32125 \begin_inset CommandInset ref
32127 reference "sec:Prevent-Hyphenation"
32131 , to align text, see section
32132 \begin_inset space ~
32136 \begin_inset CommandInset ref
32138 reference "sub:Vertical-Alignment"
32142 , or to set the background color of texts, see section
32143 \begin_inset space ~
32147 \begin_inset CommandInset ref
32149 reference "sec:Colored-Boxes"
32156 \begin_layout Standard
32157 Boxes can be inserted with the menu
32159 Insert\SpecialChar \menuseparator
32162 or the toolbar button
32165 arg "box-insert Frameless"
32169 A grey box with the label
32174 \begin_inset Graphics
32175 filename clipart/BoxInsetDefaultQt4.png
32177 scaleBeforeRotation
32182 The box type can be specified by right-clicking on the box and selecting
32188 The box dialog offers the
32191 \begin_inset space ~
32213 is the default for new boxes and is explained in section
32214 \begin_inset space ~
32218 \begin_inset CommandInset ref
32220 reference "sec:Minipages"
32228 is described in section
32229 \begin_inset space ~
32233 \begin_inset CommandInset ref
32235 reference "sec:Parboxes"
32244 \begin_inset CommandInset ref
32246 reference "sec:Prevent-Hyphenation"
32253 \begin_layout Standard
32254 Boxes are not numbered and can therefore not be referenced like floats or
32258 \begin_layout Standard
32259 \begin_inset Note Greyedout
32262 \begin_layout Plain Layout
32267 Boxes must not be the item in an
32283 \begin_layout Standard
32284 \begin_inset Note Greyedout
32287 \begin_layout Plain Layout
32292 For an unknown reason you can only set the
32295 \begin_inset space ~
32304 when you use a framed box.
32308 \begin_inset space ~
32313 type and without frames are explained in section
32314 \begin_inset space ~
32318 \begin_inset CommandInset ref
32320 reference "sec:Prevent-Hyphenation"
32332 \begin_layout Section
32334 \begin_inset CommandInset label
32336 name "sec:Box-Dialog"
32341 \begin_inset Index idx
32344 \begin_layout Plain Layout
32353 \begin_layout Subsection
32355 \begin_inset Index idx
32358 \begin_layout Plain Layout
32367 \begin_layout Standard
32368 In the box dialog you can adjust the box geometry in the fields
32377 The available units for the geometry are explained in Table
32378 \begin_inset space ~
32382 \begin_inset CommandInset ref
32384 reference "tab:Units"
32393 offers the following additional sizes:
32396 \begin_layout Description
32397 Depth This is the plain text
32398 \begin_inset Quotes eld
32402 \begin_inset Quotes erd
32406 It ignores the total depth when there are multiple text lines in the box:
32407 \begin_inset Newline newline
32411 \begin_inset Newline newline
32415 \begin_inset Newline newline
32419 \begin_inset Box Boxed
32429 height_special "depth"
32432 \begin_layout Plain Layout
32434 Box height set to 1
32435 \begin_inset space \thinspace{}
32444 \begin_inset Newline newline
32448 \begin_inset Newline newline
32454 \begin_layout Description
32455 Height This is the height of the text that is inside the box.
32457 \begin_inset space \thinspace{}
32461 \begin_inset space \space{}
32464 2 for this size will set the box height to 2
32465 \begin_inset space ~
32468 times the text height:
32469 \begin_inset Box Boxed
32479 height_special "height"
32482 \begin_layout Plain Layout
32484 Box height set to 2
32485 \begin_inset space \thinspace{}
32496 \begin_layout Description
32498 \begin_inset space ~
32501 Height This is the Height
32502 \begin_inset space \thinspace{}
32506 \begin_inset space \thinspace{}
32510 \begin_inset Box Boxed
32520 height_special "totalheight"
32523 \begin_layout Plain Layout
32525 Box height set to 1
32526 \begin_inset space \thinspace{}
32530 \begin_inset space ~
32541 \begin_layout Description
32542 Width This sets the width of the box as height:
32543 \begin_inset Box Boxed
32553 height_special "width"
32556 \begin_layout Plain Layout
32558 Box height set to 1
32559 \begin_inset space \thinspace{}
32570 \begin_layout Subsection
32572 \begin_inset Index idx
32575 \begin_layout Plain Layout
32584 \begin_layout Standard
32585 When you have chosen an
32588 \begin_inset space ~
32593 , the vertical box alignment can be:
32596 \begin_layout Description
32597 Top This is an example text line.
32599 \begin_inset Box Boxed
32609 height_special "totalheight"
32612 \begin_layout Plain Layout
32614 This box is top-aligned.
32619 This is an example text line.
32622 \begin_layout Description
32623 Middle This is an example text line.
32625 \begin_inset Box Boxed
32635 height_special "totalheight"
32638 \begin_layout Plain Layout
32640 This box is middle-aligned.
32645 This is an example text line.
32648 \begin_layout Description
32649 Bottom This is an example text line.
32651 \begin_inset Box Boxed
32661 height_special "totalheight"
32664 \begin_layout Plain Layout
32666 This box is bottom-aligned.
32671 This is an example text line.
32674 \begin_layout Standard
32675 \begin_inset Note Greyedout
32678 \begin_layout Plain Layout
32683 The vertical box alignment can be lost in the output when you have two
32684 boxes in a line and one has e.
32685 \begin_inset space \thinspace{}
32689 \begin_inset space \space{}
32692 a shadow and the other one not.
32700 \begin_layout Standard
32701 The horizontal box alignment can be set via LyX's paragraph dialog when
32702 you set the box into its own paragraph.
32705 \begin_layout Standard
32706 \begin_inset VSpace bigskip
32709 When you have chosen an
32712 \begin_inset space ~
32717 , the box content can be aligned vertically to:
32720 \begin_layout Description
32721 top This is an example text line.
32723 \begin_inset Box Boxed
32733 height_special "totalheight"
32736 \begin_layout Plain Layout
32738 This box text is top-aligned.
32743 This is an example text line.
32746 \begin_layout Description
32747 middle This is an example text line.
32749 \begin_inset Box Boxed
32759 height_special "totalheight"
32762 \begin_layout Plain Layout
32764 This box text is middle-aligned.
32769 This is an example text line.
32772 \begin_layout Description
32773 bottom This is an example text line.
32775 \begin_inset Box Boxed
32785 height_special "totalheight"
32788 \begin_layout Plain Layout
32790 This box text is bottom-aligned.
32795 This is an example text line.
32798 \begin_layout Description
32799 stretch This is an example text line.
32801 \begin_inset Box Boxed
32811 height_special "totalheight"
32814 \begin_layout Plain Layout
32819 \begin_layout Plain Layout
32824 \begin_layout Plain Layout
32831 This is an example text line.
32834 \begin_layout Standard
32835 To stretch the box content, it must consist of more than one paragraph.
32836 In the example above every text line is in an own paragraph.
32839 \begin_layout Standard
32840 \begin_inset VSpace bigskip
32843 To align the box content horizontally you can use LyX's paragraph dialog
32844 when you have chosen an
32847 \begin_inset space ~
32855 \begin_layout Standard
32857 \begin_inset Box Boxed
32867 height_special "totalheight"
32870 \begin_layout Plain Layout
32875 \begin_layout Plain Layout
32880 \begin_layout Plain Layout
32890 \begin_layout Standard
32891 If you have not set an
32894 \begin_inset space ~
32899 , you can align the box content horizontally in the box dialog.
32902 \begin_layout Standard
32904 \begin_inset Box Boxed
32914 height_special "totalheight"
32917 \begin_layout Plain Layout
32918 This box text is horizontally stretched.
32926 \begin_layout Subsection
32928 \begin_inset CommandInset label
32930 name "sec:Decoration"
32935 \begin_inset Index idx
32938 \begin_layout Plain Layout
32947 \begin_layout Standard
32948 The type of the box can be specified in the box dialog in the drop-down
32954 The following types are possible:
32957 \begin_layout Description
32959 \begin_inset space ~
32962 frame Nothing is drawn.
32965 \begin_layout Description
32967 \begin_inset space ~
32971 \begin_inset space ~
32974 frame This draws a rectangular frame around the box.
32975 The frame line thickness has the size of
32983 \begin_inset Box Boxed
32993 height_special "totalheight"
32996 \begin_layout Plain Layout
33006 \begin_layout Description
33008 \begin_inset space ~
33012 \begin_inset space ~
33015 thin This draws an oval frame around the box.
33016 The frame line thickness has the size 0.4
33017 \begin_inset space \thinspace{}
33022 \begin_inset Box ovalbox
33032 height_special "totalheight"
33035 \begin_layout Plain Layout
33045 \begin_layout Description
33047 \begin_inset space ~
33051 \begin_inset space ~
33054 thick This draws an oval frame around the box.
33055 The frame line thickness has the size 0.8
33056 \begin_inset space \thinspace{}
33061 \begin_inset Box Ovalbox
33071 height_special "totalheight"
33074 \begin_layout Plain Layout
33084 \begin_layout Description
33086 \begin_inset space ~
33089 shadow This draws a rectangular frame with a shadow around the box.
33090 The frame line thickness has the size of
33096 , the shadow has a width of 4
33097 \begin_inset space \thinspace{}
33102 \begin_inset Box Shadowbox
33112 height_special "totalheight"
33115 \begin_layout Plain Layout
33125 \begin_layout Description
33127 \begin_inset space ~
33130 background This draws a box with a red background.
33131 Unlike colored boxes
33135 \begin_layout Plain Layout
33137 \begin_inset space \thinspace{}
33141 \begin_inset CommandInset ref
33143 reference "sec:Colored-Boxes"
33152 , it always uses the whole column width and the box is set as its own paragraph.
33154 \begin_inset Box Shaded
33164 height_special "totalheight"
33167 \begin_layout Plain Layout
33168 Shaded background box
33176 \begin_layout Description
33178 \begin_inset space ~
33182 \begin_inset space ~
33185 frame This draws a double-line rectangular frame around the box.
33186 The line thickness of the inner frame is 0.75
33187 \begin_inset space \thinspace{}
33196 , the thickness of the outer frame is 1.5
33197 \begin_inset space \thinspace{}
33207 The distance between the lines is 1.5
33208 \begin_inset space \thinspace{}
33218 \begin_inset space \thinspace{}
33222 \begin_inset space \thinspace{}
33226 \begin_inset space \thinspace{}
33231 \begin_inset Box Doublebox
33241 height_special "totalheight"
33244 \begin_layout Plain Layout
33246 Double rectangular box
33254 \begin_layout Standard
33255 \begin_inset VSpace bigskip
33258 LyX's box label will reflect the different frame types.
33259 To be able to use all types, the LaTeX-package
33264 \begin_inset Index idx
33267 \begin_layout Plain Layout
33268 LaTeX-packages ! fancybox
33276 \begin_layout Standard
33277 \begin_inset VSpace bigskip
33280 When you use the decoration
33282 simple rectangular frame
33284 and no inner box, you can allow page breaks within a box.
33285 Note that then, unlike other framed boxes, the frame always uses the whole
33286 column width, the box is set as its own paragraph, and
33298 have no effect on this box type.
33299 The frame line thickness has the size of
33307 \begin_inset Box Framed
33317 height_special "totalheight"
33320 \begin_layout Plain Layout
33321 Allow page break box
33329 \begin_layout Section
33331 \begin_inset Index idx
33334 \begin_layout Plain Layout
33335 Boxes ! Customization
33343 \begin_layout Standard
33344 The default value for the size
33351 \begin_inset space \thinspace{}
33355 It can be changed with the following command in TeX-code to e.
33356 \begin_inset space \thinspace{}
33360 \begin_inset space \space{}
33364 \begin_inset space \thinspace{}
33370 \begin_layout Standard
33380 \begin_layout Standard
33384 \begin_layout Plain Layout
33396 \begin_inset Box Boxed
33406 height_special "totalheight"
33409 \begin_layout Plain Layout
33411 Rectangular box with
33418 \begin_inset space \thinspace{}
33422 \begin_inset space \thinspace{}
33426 \begin_inset space \thinspace{}
33438 \begin_layout Plain Layout
33452 \begin_layout Standard
33453 \begin_inset VSpace bigskip
33456 The space between the frame and the box content is for all frame styles
33458 \begin_inset space \thinspace{}
33462 You can change it by setting the length
33469 For example the command
33472 \begin_layout Standard
33482 \begin_layout Standard
33483 sets the value to 10
33484 \begin_inset space \thinspace{}
33487 pt, as with the following box:
33490 \begin_layout Standard
33494 \begin_layout Plain Layout
33506 \begin_inset Box Boxed
33516 height_special "totalheight"
33519 \begin_layout Plain Layout
33521 Rectangular box with
33528 \begin_inset space \thinspace{}
33532 \begin_inset space \thinspace{}
33536 \begin_inset space \thinspace{}
33548 \begin_layout Plain Layout
33562 \begin_layout Standard
33563 \begin_inset VSpace bigskip
33566 The diameter of the round corners of the oval boxes can be set with the
33577 \begin_layout Standard
33585 \begin_layout Standard
33586 sets the diameter to 1
33587 \begin_inset space \thinspace{}
33594 \begin_layout Standard
33602 \begin_layout Standard
33603 sets the diameter to
33606 \begin_inset space \thinspace{}
33610 \begin_inset space \thinspace{}
33613 minimum(width and height of box)
33625 \begin_layout Standard
33629 \begin_layout Plain Layout
33639 \begin_inset Box Ovalbox
33649 height_special "totalheight"
33652 \begin_layout Plain Layout
33661 \begin_inset space \thinspace{}
33665 \begin_inset space \thinspace{}
33669 \begin_inset space \thinspace{}
33681 \begin_layout Plain Layout
33693 \begin_layout Standard
33694 \begin_inset VSpace bigskip
33697 The size of the shadow can be adjusted by changing the length
33705 \begin_inset space \thinspace{}
33708 pt for the following box by this command:
33711 \begin_layout Standard
33721 \begin_layout Standard
33725 \begin_layout Plain Layout
33737 \begin_inset Box Shadowbox
33747 height_special "totalheight"
33750 \begin_layout Plain Layout
33759 \begin_inset space \thinspace{}
33763 \begin_inset space \thinspace{}
33767 \begin_inset space \thinspace{}
33779 \begin_layout Plain Layout
33793 \begin_layout Standard
33794 \begin_inset VSpace bigskip
33800 \begin_layout Standard
33801 The default value for the size
33808 \begin_inset space \thinspace{}
33812 The default space between the note content and the frame is 9
33813 \begin_inset space \thinspace{}
33816 pt and can be changed with the value of
33823 For example the frame appearance of the following
33827 is set with the TeX-Code commands
33830 \begin_layout Standard
33838 \begin_inset Newline newline
33848 \begin_layout Standard
33852 \begin_layout Plain Layout
33861 \begin_layout Plain Layout
33873 \begin_inset Box Framed
33883 height_special "totalheight"
33886 \begin_layout Plain Layout
33900 \begin_layout Plain Layout
33909 \begin_layout Plain Layout
33923 \begin_layout Standard
33924 \begin_inset VSpace bigskip
33930 \begin_layout Standard
33935 boxes the default space between the box content and the box border is 3
33936 \begin_inset space \thinspace{}
33939 pt and can be changed with the value of
33946 The default background color red can either be changed locally with the
33951 definecolor{shadecolor}
33953 or globally with the menu
33955 Tools\SpecialChar \menuseparator
33956 Preferences\SpecialChar \menuseparator
33957 Colors\SpecialChar \menuseparator
33959 \begin_inset space ~
33971 command is explained in section
33972 \begin_inset space ~
33976 \begin_inset CommandInset ref
33978 reference "sec:Colored-Tables"
33986 \begin_layout Plain Layout
33993 requires the LaTeX-package
33997 in the preamble, see section
33998 \begin_inset space ~
34002 \begin_inset CommandInset ref
34004 reference "sec:Colored-Boxes"
34013 For example the appearance of the following shaded background box is set
34014 with the TeX-Code commands
34017 \begin_layout Standard
34027 \begin_inset Newline newline
34034 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34037 \begin_layout Standard
34041 \begin_layout Plain Layout
34050 \begin_layout Plain Layout
34054 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
34060 \begin_inset Box Shaded
34070 height_special "totalheight"
34073 \begin_layout Plain Layout
34076 This is yellow text in a
34086 box with dark green background.
34095 \begin_layout Plain Layout
34104 \begin_layout Plain Layout
34108 definecolor{shadecolor}{rgb}{1,0,0}
34116 \begin_layout Standard
34117 \begin_inset VSpace bigskip
34120 Changed lengths and widths are valid for all boxes following the commands
34124 \begin_layout Section
34126 \begin_inset CommandInset label
34128 name "sec:Minipages"
34133 \begin_inset Index idx
34136 \begin_layout Plain Layout
34145 \begin_layout Standard
34146 Minipages are treated by LaTeX as pages within pages and can therefore for
34147 example have their own footnotes.
34150 \begin_layout Standard
34151 Minipages are useful when you write documents with different languages.
34154 \begin_layout Standard
34155 Below are two example minipages side by side.
34156 Their width is set to 45
34157 \begin_inset space \thinspace{}
34160 col% and they are separated by a horizontal fill, that was inserted via
34163 Insert\SpecialChar \menuseparator
34165 \begin_inset space ~
34168 Formatting\SpecialChar \menuseparator
34170 \begin_inset space ~
34176 \begin_inset Newpage newpage
34182 \begin_layout Standard
34183 \begin_inset Box Frameless
34193 height_special "totalheight"
34196 \begin_layout Plain Layout
34199 Dies ist ein deutscher Text.
34200 Dies ist ein deutscher Text.
34201 Dies ist ein deutscher Text.
34202 Dies ist ein deutscher Text.
34203 Dies ist ein deutscher Text.
34204 Dies ist ein deutscher Text.
34205 Dies ist ein deutscher Text.
34206 Dies ist ein deutscher Text.
34207 Dies ist ein deutscher Text.
34208 Dies ist ein deutscher Text.
34209 Dies ist ein deutscher Text.
34210 Dies ist ein deutscher Text.
34211 Dies ist ein deutscher Text
34215 \begin_layout Plain Layout
34218 Dies ist eine deutsche Fußnote.
34224 Dies ist ein deutscher Text.
34225 Dies ist ein deutscher Text.
34231 \begin_inset space \hfill{}
34235 \begin_inset Box Frameless
34245 height_special "totalheight"
34248 \begin_layout Plain Layout
34249 This is an English Text.
34250 This is an English Text.
34251 This is an English Text.
34252 This is an English Text.
34253 This is an English Text.
34254 This is an English Text.
34255 This is an English Text.
34256 This is an English Text.
34257 This is an English Text.
34258 This is an English Text.
34259 This is an English Text.
34260 This is an English Text.
34261 This is an English Text.
34262 This is an English Text.
34263 This is an English Text.
34264 This is an English Text.
34268 \begin_layout Plain Layout
34269 This is an English footnote.
34274 This is an English Text.
34282 \begin_layout Standard
34283 \begin_inset VSpace bigskip
34286 The document-wide paragraph settings are ignored within minipages.
34287 That means that there will be no space between paragraphs in minipages
34288 although you set it to e.
34289 \begin_inset space \thinspace{}
34293 \begin_inset space \space{}
34300 in the document settings.
34303 \begin_layout Standard
34304 Minipages can also be used to set a background color for text parts, see
34306 \begin_inset space ~
34310 \begin_inset CommandInset ref
34312 reference "sub:Color-for-Paragraphs"
34319 \begin_layout Standard
34320 \begin_inset Note Greyedout
34323 \begin_layout Plain Layout
34328 You cannot have floats or margin notes inside minipages but minipages can
34329 be used inside tables, floats, and other boxes.
34337 \begin_layout Section
34339 \begin_inset CommandInset label
34341 name "sec:Parboxes"
34346 \begin_inset Index idx
34349 \begin_layout Plain Layout
34358 \begin_layout Standard
34359 Parboxes are very similar to minipages with the difference that they cannot
34363 \begin_layout Standard
34365 \begin_inset Box Frameless
34375 height_special "totalheight"
34378 \begin_layout Plain Layout
34379 This a text within a parbox.
34380 This a text within a parbox.
34383 \begin_layout Plain Layout
34384 This footnote won't appear:
34388 \begin_layout Plain Layout
34389 This footnote is inside a parbox and will therefore not appear.
34402 \begin_layout Section
34403 Boxes for Words and Characters
34404 \begin_inset Index idx
34407 \begin_layout Plain Layout
34408 Boxes ! for Characters
34416 \begin_layout Subsection
34417 Prevent Hyphenation
34418 \begin_inset CommandInset label
34420 name "sec:Prevent-Hyphenation"
34425 \begin_inset Index idx
34428 \begin_layout Plain Layout
34429 Boxes ! to Prevent Hyphenation
34437 \begin_layout Standard
34438 You can use the box type
34442 to prevent words or text from being hyphenated.
34443 \begin_inset Newline newline
34446 Here is an example text:
34449 \begin_layout Standard
34450 This line is an example to show how you can prevent the hyphenation of
34451 \begin_inset Quotes eld
34455 \begin_inset Quotes erd
34461 \begin_layout Standard
34462 To prevent the hyphenation of the word
34463 \begin_inset Quotes eld
34467 \begin_inset Quotes erd
34470 , put the word into a box, set the
34473 \begin_inset space ~
34482 and use no explicit width.
34485 \begin_layout Standard
34486 This is the result:
34489 \begin_layout Standard
34490 This line is an example to show how you can prevent the hyphenation of
34491 \begin_inset Box Frameless
34501 height_special "totalheight"
34504 \begin_layout Plain Layout
34505 \begin_inset Quotes eld
34509 \begin_inset Quotes erd
34520 \begin_layout Standard
34521 You can alternatively set the command
34522 \begin_inset Quotes eld
34532 \begin_inset Quotes grd
34535 as TeX-Code directly before the word:
34538 \begin_layout Standard
34539 This line is an example to show how you can prevent the hyphenation of
34540 \begin_inset Quotes eld
34547 \begin_layout Plain Layout
34557 \begin_inset Quotes erd
34563 \begin_layout Standard
34564 Of course the word now protrudes over the side margin.
34565 To avoid this, add via the menu
34567 Insert\SpecialChar \menuseparator
34568 Formatting\SpecialChar \menuseparator
34570 \begin_inset space ~
34574 \begin_inset space ~
34582 arg "newline-insert newline"
34585 ) a line break before the word:
34588 \begin_layout Standard
34589 This line is an example to show how you can prevent the hyphenation of
34590 \begin_inset Newline newline
34594 \begin_inset Box Frameless
34604 height_special "totalheight"
34607 \begin_layout Plain Layout
34608 \begin_inset Quotes eld
34612 \begin_inset Quotes erd
34623 \begin_layout Subsection
34625 \begin_inset CommandInset label
34627 name "sub:Vertical-Alignment"
34632 \begin_inset Index idx
34635 \begin_layout Plain Layout
34636 Boxes ! for Vertical Alignment
34642 \begin_inset Index idx
34645 \begin_layout Plain Layout
34654 \begin_layout Standard
34655 With the help of the command
34661 you can align words, characters or other boxes vertically relative to the
34669 is used with the following scheme:
34672 \begin_layout Standard
34677 raisebox{lift}[height][depth]{box content}
34680 \begin_layout Standard
34681 The lift can be a positive value to raise the box or a negative value to
34685 \begin_layout Standard
34686 To align for example the word
34687 \begin_inset Quotes eld
34691 \begin_inset Quotes erd
34694 so that the bottom of the
34695 \begin_inset Quotes eld
34699 \begin_inset Quotes erd
34703 \begin_inset Quotes eld
34707 \begin_inset Quotes erd
34710 is at the baseline, insert the command
34713 \begin_layout Standard
34723 \begin_layout Standard
34724 in TeX-Code before the word.
34725 After the word insert a closing brace
34726 \begin_inset Quotes eld
34734 \begin_inset Quotes erd
34738 \begin_inset Newline newline
34741 This is the result:
34744 \begin_layout Standard
34745 This is a text line with the word
34749 \begin_layout Plain Layout
34761 \begin_inset Quotes eld
34765 \begin_inset Quotes erd
34772 \begin_layout Plain Layout
34782 \begin_layout Standard
34783 \begin_inset VSpace bigskip
34786 When you raise or lower characters in a line, the line distance will be
34790 \begin_layout Standard
34791 This is a text line with the word
34795 \begin_layout Plain Layout
34807 \begin_inset Quotes eld
34811 \begin_inset Quotes erd
34818 \begin_layout Plain Layout
34826 \begin_inset Newline newline
34829 This is a text line with the word
34833 \begin_layout Plain Layout
34843 \begin_inset Quotes eld
34847 \begin_inset Quotes erd
34854 \begin_layout Plain Layout
34864 \begin_layout Standard
34865 If you want to prevent this for a certain reason, set the box height to
34870 \begin_layout Standard
34880 \begin_layout Standard
34881 This is a text line with the word
34885 \begin_layout Plain Layout
34897 \begin_inset Quotes eld
34901 \begin_inset Quotes erd
34908 \begin_layout Plain Layout
34916 \begin_inset Newline newline
34919 This is a text line with the word
34923 \begin_layout Plain Layout
34927 raisebox{0.5cm}[0pt]{
34933 \begin_inset Quotes eld
34937 \begin_inset Quotes erd
34944 \begin_layout Plain Layout
34954 \begin_layout Section
34956 \begin_inset CommandInset label
34958 name "sec:Colored-Boxes"
34963 \begin_inset Index idx
34966 \begin_layout Plain Layout
34975 \begin_layout Subsection
34977 \begin_inset Index idx
34980 \begin_layout Plain Layout
34989 \begin_layout Standard
34990 To color the background of text the text must be put into a so called
34991 \begin_inset Quotes eld
34995 \begin_inset Quotes erd
34999 This requires that the LaTeX-package
35004 \begin_inset Index idx
35007 \begin_layout Plain Layout
35008 LaTeX-packages ! color
35013 is loaded in the document preamble with the command
35016 \begin_layout Standard
35021 @ifundefined{textcolor}
35022 \begin_inset Newline newline
35026 \begin_inset Phantom HPhantom
35029 \begin_layout Plain Layout
35032 \begin_inset space ~
35042 usepackage{color}}{}
35045 \begin_layout Standard
35050 will be loaded automatically by LyX when you color text.
35054 \begin_layout Plain Layout
35055 To avoid it being loaded twice the command
35069 \begin_layout Standard
35070 \begin_inset VSpace medskip
35073 Colorboxes are created with the command
35080 This will be used with the following scheme:
35083 \begin_layout Standard
35088 colorbox{color}{box content}
35091 \begin_layout Standard
35092 The box content can also be a box and colorboxes can also be within other
35096 \begin_layout Standard
35097 The following colors are predefined:
35098 \begin_inset Newline newline
35137 \begin_inset Newline newline
35140 You can also define your own color as described in section
35141 \begin_inset space ~
35145 \begin_inset CommandInset ref
35147 reference "sec:Colored-Tables"
35154 \begin_layout Standard
35156 \begin_inset space \thinspace{}
35160 \begin_inset space \space{}
35163 a red background for a word, insert the command
35166 \begin_layout Standard
35174 \begin_layout Standard
35175 before the word in TeX-Code.
35176 After the word insert a closing brace
35177 \begin_inset Quotes eld
35185 \begin_inset Quotes erd
35189 \begin_inset Newline newline
35192 This is the result:
35195 \begin_layout Standard
35196 This is a line where the word
35200 \begin_layout Plain Layout
35210 \begin_inset Quotes eld
35214 \begin_inset Quotes erd
35221 \begin_layout Plain Layout
35228 has a red background.
35231 \begin_layout Standard
35232 \begin_inset VSpace bigskip
35235 If you would like the box frame in a different color, you can use the command
35242 with the following scheme:
35245 \begin_layout Standard
35250 fcolorbox{frame color}{box color}{box content}
35253 \begin_layout Standard
35267 The frame thickness and the space between the frame and the box content
35268 can be adjusted with the lengths
35280 , respectively, as described in section
35281 \begin_inset space ~
35285 \begin_inset CommandInset ref
35287 reference "sec:Decoration"
35294 \begin_layout Standard
35295 For the following example the command
35298 \begin_layout Standard
35303 fcolorbox{cyan}{magenta}{
35306 \begin_layout Standard
35310 \begin_layout Standard
35311 Here is an example where the frame line thickness was set to 1
35312 \begin_inset space \thinspace{}
35316 \begin_inset Newline newline
35323 \begin_layout Plain Layout
35338 \begin_layout Plain Layout
35342 fcolorbox{cyan}{magenta}{
35347 This is text within a colored, framed box.
35351 \begin_layout Plain Layout
35361 \begin_layout Standard
35362 \begin_inset VSpace bigskip
35365 Of course you can also have colored text inside a colorbox:
35366 \begin_inset Newline newline
35373 \begin_layout Plain Layout
35377 fcolorbox{cyan}{magenta}{
35384 This is colored text within a colored, framed box.
35390 \begin_layout Plain Layout
35401 \begin_layout Plain Layout
35415 \begin_layout Standard
35416 \begin_inset VSpace medskip
35422 \begin_layout Standard
35423 \begin_inset Note Greyedout
35426 \begin_layout Plain Layout
35431 Text in colorboxes cannot have line breaks.
35432 To color multiple text lines or paragraphs, use a box inside a colorbox
35433 as described in the following.
35441 \begin_layout Subsection
35442 Color for Paragraphs
35443 \begin_inset CommandInset label
35445 name "sub:Color-for-Paragraphs"
35450 \begin_inset Index idx
35453 \begin_layout Plain Layout
35454 Color ! for Paragraphs
35462 \begin_layout Standard
35463 To set the background color for more than one text line, put the text into
35465 Before the minipage insert the
35474 \begin_layout Standard
35482 \begin_layout Standard
35484 After the minipage insert a closing brace
35485 \begin_inset Quotes eld
35493 \begin_inset Quotes erd
35499 \begin_layout Standard
35503 \begin_layout Plain Layout
35507 colorbox{lightgrey}{
35513 \begin_inset Box Frameless
35523 height_special "totalheight"
35526 \begin_layout Plain Layout
35527 This is text with background color.
35528 This is text with background color.
35531 \begin_layout Plain Layout
35532 \begin_inset VSpace defskip
35535 The text can have footnotes
35539 \begin_layout Plain Layout
35540 Another example footnote
35545 and can include tables and figures.
35548 \begin_layout Plain Layout
35550 \begin_inset Tabular
35551 <lyxtabular version="3" rows="3" columns="3">
35552 <features rotate="0" tabularvalignment="middle">
35553 <column alignment="center" valignment="top">
35554 <column alignment="center" valignment="top">
35555 <column alignment="center" valignment="top">
35557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35560 \begin_layout Plain Layout
35566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35569 \begin_layout Plain Layout
35575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35578 \begin_layout Plain Layout
35586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35589 \begin_layout Plain Layout
35595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35598 \begin_layout Plain Layout
35600 \begin_inset Quotes erd
35608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35611 \begin_layout Plain Layout
35619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35622 \begin_layout Plain Layout
35628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35631 \begin_layout Plain Layout
35637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35640 \begin_layout Plain Layout
35660 \begin_layout Plain Layout
35670 \begin_layout Section
35671 Rotated and Scaled Boxes
35674 \begin_layout Standard
35675 To use the commands described in this section, the LaTeX-package
35680 \begin_inset Index idx
35683 \begin_layout Plain Layout
35684 LaTeX-packages ! graphicx
35689 needs to be loaded in the document preamble with the command
35692 \begin_layout Standard
35697 @ifundefined{rotatebox}
35698 \begin_inset Newline newline
35702 \begin_inset Phantom HPhantom
35705 \begin_layout Plain Layout
35708 \begin_inset space ~
35718 usepackage{graphicx}}{}
35721 \begin_layout Standard
35722 \begin_inset Note Greyedout
35725 \begin_layout Plain Layout
35730 Not all DVI-viewers are able to display rotated or scaled material.
35738 \begin_layout Standard
35739 \begin_inset Note Greyedout
35742 \begin_layout Plain Layout
35747 Floats are not allowed inside a rotated or scaled box.
35755 \begin_layout Subsection
35757 \begin_inset Index idx
35760 \begin_layout Plain Layout
35767 \begin_inset Index idx
35770 \begin_layout Plain Layout
35779 \begin_layout Standard
35780 To rotate material, you can put it into a rotated box.
35781 Such a box is created using the command
35787 in TeX-Code with the following scheme:
35790 \begin_layout Standard
35795 rotatebox[rotation origin]{rotation angle}{box content}
35798 \begin_layout Standard
35799 The rotation origin is specified in the form
35804 The following positions are possible:
35824 (top), along with meaningful combinations of the four base positions.
35829 means that the rotation origin is at the top left corner of the box.
35830 When no rotation origin is specified, the position
35835 The rotation angle is a number that can be negative that specifies the
35837 The rotation direction is counterclockwise.
35840 \begin_layout Standard
35841 In the following example the command
35845 rotatebox[origin=c]{60}{
35847 was inserted as TeX-Code before the text
35848 \begin_inset Quotes eld
35852 \begin_inset Quotes erd
35855 ; after the text the box was closed by a closing brace
35862 \begin_layout Standard
35867 \begin_layout Plain Layout
35871 rotatebox[origin=c]{60}{
35880 \begin_layout Plain Layout
35890 \begin_layout Standard
35891 The box content can also be another box or an inline formula:
35894 \begin_layout Standard
35899 \begin_layout Plain Layout
35903 rotatebox[origin=r]{-60}{
35909 \begin_inset Box Doublebox
35919 height_special "totalheight"
35922 \begin_layout Plain Layout
35932 \begin_layout Plain Layout
35943 \begin_layout Plain Layout
35947 rotatebox[origin=lb]{60}{
35953 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35960 \begin_layout Plain Layout
35970 \begin_layout Standard
35971 or an image or table:
35974 \begin_layout Standard
35979 \begin_layout Plain Layout
35983 rotatebox[origin=lb]{90}{
35989 \begin_inset Graphics
35990 filename clipart/platypus.eps
36000 \begin_layout Plain Layout
36007 with a rotated image
36011 \begin_layout Plain Layout
36015 rotatebox[origin=l]{-90}{
36021 \begin_inset Tabular
36022 <lyxtabular version="3" rows="2" columns="2">
36023 <features rotate="0" tabularvalignment="middle">
36024 <column alignment="center" valignment="top">
36025 <column alignment="center" valignment="top">
36027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36030 \begin_layout Plain Layout
36036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36039 \begin_layout Plain Layout
36047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36050 \begin_layout Plain Layout
36056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36059 \begin_layout Plain Layout
36074 \begin_layout Plain Layout
36082 \begin_inset Index idx
36085 \begin_layout Plain Layout
36092 \begin_inset Index idx
36095 \begin_layout Plain Layout
36096 Table Customization ! Rotating
36104 \begin_layout Subsection
36106 \begin_inset Index idx
36109 \begin_layout Plain Layout
36116 \begin_inset Index idx
36119 \begin_layout Plain Layout
36128 \begin_layout Standard
36129 To scale material the commands
36141 can be used as TeX-Code.
36144 \begin_layout Standard
36151 is used with the following scheme:
36154 \begin_layout Standard
36159 scalebox{horizontal}[vertical]{box content}
36162 \begin_layout Standard
36163 Horizontal and vertical are the corresponding scaling factors.
36164 If no vertical scaling factor is given, the horizontal factor will also
36165 be used as the vertical one.
36168 \begin_layout Standard
36175 creates for example a double size
36179 \begin_layout Plain Layout
36192 \begin_layout Plain Layout
36199 , compared with the document text size.
36202 \begin_layout Standard
36207 scalebox{2}[1]{Hello}
36209 on the other hand distorts the
36213 \begin_layout Plain Layout
36226 \begin_layout Plain Layout
36236 \begin_layout Standard
36237 If the scaling factor is negative, the box content will be mirrored.
36238 Therefore the command
36242 scalebox{-1}[1]{Hello}
36244 can be used to create mirror writing:
36248 \begin_layout Plain Layout
36261 \begin_layout Plain Layout
36271 \begin_layout Standard
36276 scalebox{1}[-1]{Hello}
36282 \begin_layout Plain Layout
36295 \begin_layout Plain Layout
36305 \begin_layout Standard
36310 scalebox{-1}[1]{box content}
36312 there exists the command
36313 \begin_inset Newline newline
36320 reflectbox{box content}
36325 \begin_layout Standard
36326 \begin_inset VSpace bigskip
36335 is used to scale the box to a defined width and height.
36336 The command scheme is:
36339 \begin_layout Standard
36344 resizebox{width}{height}{box content}
36347 \begin_layout Standard
36348 If one of the two command arguments given is an exclamation mark
36352 , the size is set so that the aspect ratio of the box content is kept.
36355 \begin_layout Standard
36360 resizebox{2cm}{1cm}{Hello}
36366 \begin_layout Plain Layout
36370 resizebox{2cm}{1cm}{
36379 \begin_layout Plain Layout
36387 \begin_inset Newline newline
36394 resizebox{2cm}{!}{Hello}
36400 \begin_layout Plain Layout
36413 \begin_layout Plain Layout
36423 \begin_layout Standard
36424 \begin_inset VSpace bigskip
36428 \begin_inset Note Greyedout
36431 \begin_layout Plain Layout
36448 are set to zero, no LaTeX-errors occur when exporting the document but
36449 the exported files can not or only partly be displayed.
36457 \begin_layout Standard
36458 \begin_inset VSpace bigskip
36464 \begin_layout Standard
36465 The boxes can be combined in any order.
36467 \begin_inset space \thinspace{}
36471 \begin_inset space \space{}
36475 \begin_inset Newline newline
36482 rotatebox[origin=c]{-45}{
36486 reflectbox{Hello}}}
36487 \begin_inset Newline newline
36495 \begin_layout Standard
36500 \begin_layout Plain Layout
36504 rotatebox[origin=c]{-45}{
36517 \begin_layout Plain Layout
36527 \begin_layout Standard
36529 Images, tables, and inline formulas are allowed as box content:
36532 \begin_layout Standard
36537 \begin_layout Plain Layout
36541 rotatebox[origin=c]{-30}{
36551 \begin_inset Graphics
36552 filename clipart/platypus.eps
36562 \begin_layout Plain Layout
36573 \begin_layout Plain Layout
36577 rotatebox[origin=c]{-45}{
36587 \begin_inset Tabular
36588 <lyxtabular version="3" rows="2" columns="2">
36589 <features rotate="0" tabularvalignment="middle">
36590 <column alignment="center" valignment="top">
36591 <column alignment="center" valignment="top">
36593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36596 \begin_layout Plain Layout
36602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36605 \begin_layout Plain Layout
36613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36616 \begin_layout Plain Layout
36622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36625 \begin_layout Plain Layout
36640 \begin_layout Plain Layout
36651 \begin_layout Plain Layout
36655 rotatebox[origin=c]{-45}{
36665 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36672 \begin_layout Plain Layout
36680 \begin_inset Index idx
36683 \begin_layout Plain Layout
36690 \begin_inset Index idx
36693 \begin_layout Plain Layout
36694 Table Customization ! Scaling
36702 \begin_layout Standard
36703 When the global formula style
36707 is used in the document
36711 \begin_layout Plain Layout
36713 \begin_inset Quotes eld
36717 \begin_inset Quotes erd
36720 is added to the document class options.
36725 , display style formulas can also be scaled.
36728 \begin_layout Chapter
36729 Objects Surrounded by Text
36730 \begin_inset Index idx
36733 \begin_layout Plain Layout
36742 \begin_layout Section
36744 \begin_inset CommandInset label
36746 name "sec:Wrap-Floats"
36751 \begin_inset Index idx
36754 \begin_layout Plain Layout
36755 Floats ! Wrap Floats
36761 \begin_inset Index idx
36764 \begin_layout Plain Layout
36765 Surrounded by text ! Wrap Floats
36773 \begin_layout Standard
36774 \begin_inset Wrap figure
36781 \begin_layout Plain Layout
36782 \begin_inset Graphics
36783 filename clipart/mobius.eps
36785 scaleBeforeRotation
36786 rotateOrigin center
36793 \begin_layout Plain Layout
36794 \begin_inset Caption Standard
36796 \begin_layout Plain Layout
36797 \begin_inset CommandInset label
36799 name "fig:This-is-a"
36803 This is a figure wrap float.
36813 This float type is used if you want to wrap text around a figure or table
36814 so that it only occupies some fraction of the column width.
36815 It can be inserted using the menu
36817 Insert\SpecialChar \menuseparator
36818 Floats\SpecialChar \menuseparator
36820 \begin_inset space ~
36824 \begin_inset space ~
36832 \begin_inset space ~
36836 \begin_inset space ~
36841 if the LaTeX-package
36846 \begin_inset Index idx
36849 \begin_layout Plain Layout
36850 LaTeX-packages ! wrapfig
36859 \begin_layout Plain Layout
36860 Installing a LaTeX-package is explained it in the
36863 \begin_inset space ~
36873 The settings of the float can be modified by right-clicking on the float
36875 The mandatory settings are the float
36888 that specifies how much the float is set into the paragraph
36889 \begin_inset space \thinspace{}
36893 \begin_inset space \thinspace{}
36896 page margin, and the
36899 \begin_inset space ~
36904 that specifies how many text lines the float will approximately need.
36905 The line span is often hard to approximate; so it is better only to use
36906 it when you encounter float placement problems.
36907 You can furthermore decide if LaTeX is allowed to let the float float within
36908 the paragraph or to surrounding paragraphs.
36910 \begin_inset space ~
36914 \begin_inset CommandInset ref
36916 reference "fig:This-is-a"
36920 is an example text wrap float with a width of 40
36921 \begin_inset space \thinspace{}
36925 \begin_inset space \thinspace{}
36928 cm overhang, set to the left.
36931 \begin_layout Standard
36932 \begin_inset Note Greyedout
36935 \begin_layout Plain Layout
36941 \begin_inset space ~
36944 wrap float floats are fragile! E.
36945 \begin_inset space \thinspace{}
36949 \begin_inset space \space{}
36952 having a figure too close to the bottom of the page can mess things up in
36953 such a way that the float does not appear in the output or that it is placed
36954 over some other text.
36962 \begin_layout Standard
36963 In general, the following applies for wrap floats:
36966 \begin_layout Itemize
36967 They should not be placed in paragraphs that run over a page break.
36968 That means that wrap floats are better inserted in their exact place when
36969 the document is almost finished and you are able to estimate where page
36970 breaks will appear.
36973 \begin_layout Itemize
36974 They should either be placed in their own paragraph before the paragraph
36975 where they should wrap into or within a paragraph.
36978 \begin_layout Itemize
36979 In consecutive paragraphs they may cause troubles, so ensure that there
36980 is a text paragraph between them as separator.
36983 \begin_layout Itemize
36984 They are not allowed in section headings or tables.
36987 \begin_layout Itemize
36988 Their numbering and referencing works as described in chap.
36989 \begin_inset space \thinspace{}
36993 \begin_inset CommandInset ref
36995 reference "chap:Floats"
37002 \begin_layout Section
37003 Surrounded Fixed Objects
37004 \begin_inset Index idx
37007 \begin_layout Plain Layout
37008 Surrounded by text ! Fixed objects
37016 \begin_layout Standard
37017 The wrap floats described in sec.
37018 \begin_inset space \thinspace{}
37022 \begin_inset CommandInset ref
37024 reference "sec:Wrap-Floats"
37028 have these positions in the paragraph:
37031 \begin_layout Standard
37034 \begin_inset Tabular
37035 <lyxtabular version="3" rows="2" columns="2">
37036 <features rotate="0" tabularvalignment="middle">
37037 <column alignment="center" valignment="top">
37038 <column alignment="center" valignment="top">
37040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37043 \begin_layout Plain Layout
37044 \begin_inset Graphics
37045 filename ../images/dialog-show-new-inset_graphics.png
37047 scaleBeforeRotation
37056 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37059 \begin_layout Plain Layout
37067 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37070 \begin_layout Plain Layout
37076 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37079 \begin_layout Plain Layout
37091 \begin_inset Tabular
37092 <lyxtabular version="3" rows="2" columns="2">
37093 <features rotate="0" tabularvalignment="middle">
37094 <column alignment="center" valignment="top">
37095 <column alignment="center" valignment="top">
37097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37100 \begin_layout Plain Layout
37106 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37109 \begin_layout Plain Layout
37110 \begin_inset Graphics
37111 filename ../images/dialog-show-new-inset_graphics.png
37113 scaleBeforeRotation
37124 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37127 \begin_layout Plain Layout
37133 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37136 \begin_layout Plain Layout
37150 \begin_layout Standard
37151 To get an object exactly at the position where it is inserted, for example
37152 to get one of these positions:
37153 \begin_inset VSpace defskip
37159 \begin_layout Standard
37162 \begin_inset Tabular
37163 <lyxtabular version="3" rows="2" columns="2">
37164 <features rotate="0" tabularvalignment="middle">
37165 <column alignment="center" valignment="top">
37166 <column alignment="center" valignment="top">
37168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37171 \begin_layout Plain Layout
37177 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37180 \begin_layout Plain Layout
37188 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37191 \begin_layout Plain Layout
37192 \begin_inset Graphics
37193 filename ../images/dialog-show-new-inset_graphics.png
37195 scaleBeforeRotation
37204 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37207 \begin_layout Plain Layout
37219 \begin_inset Tabular
37220 <lyxtabular version="3" rows="2" columns="2">
37221 <features rotate="0" tabularvalignment="middle">
37222 <column alignment="center" valignment="top">
37223 <column alignment="center" valignment="top">
37225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37228 \begin_layout Plain Layout
37234 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37237 \begin_layout Plain Layout
37245 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37248 \begin_layout Plain Layout
37254 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37257 \begin_layout Plain Layout
37258 \begin_inset Graphics
37259 filename ../images/dialog-show-new-inset_graphics.png
37261 scaleBeforeRotation
37276 \begin_inset Tabular
37277 <lyxtabular version="3" rows="2" columns="3">
37278 <features rotate="0" tabularvalignment="middle">
37279 <column alignment="center" valignment="top">
37280 <column alignment="center" valignment="top">
37281 <column alignment="center" valignment="top">
37283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37286 \begin_layout Plain Layout
37292 <cell alignment="center" valignment="top" topline="true" usebox="none">
37295 \begin_layout Plain Layout
37296 \begin_inset Graphics
37297 filename ../images/dialog-show-new-inset_graphics.png
37299 scaleBeforeRotation
37308 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37311 \begin_layout Plain Layout
37319 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37322 \begin_layout Plain Layout
37328 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37331 \begin_layout Plain Layout
37337 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37340 \begin_layout Plain Layout
37352 \begin_inset Tabular
37353 <lyxtabular version="3" rows="2" columns="3">
37354 <features rotate="0" tabularvalignment="middle">
37355 <column alignment="center" valignment="top">
37356 <column alignment="center" valignment="top">
37357 <column alignment="center" valignment="top">
37359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37362 \begin_layout Plain Layout
37368 <cell alignment="center" valignment="top" topline="true" usebox="none">
37371 \begin_layout Plain Layout
37377 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37380 \begin_layout Plain Layout
37388 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37391 \begin_layout Plain Layout
37397 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37400 \begin_layout Plain Layout
37401 \begin_inset Graphics
37402 filename ../images/dialog-show-new-inset_graphics.png
37404 scaleBeforeRotation
37413 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37416 \begin_layout Plain Layout
37430 \begin_layout Standard
37433 \begin_inset Tabular
37434 <lyxtabular version="3" rows="3" columns="2">
37435 <features rotate="0" tabularvalignment="middle">
37436 <column alignment="center" valignment="top">
37437 <column alignment="center" valignment="top">
37439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37442 \begin_layout Plain Layout
37448 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37451 \begin_layout Plain Layout
37459 <cell alignment="center" valignment="top" leftline="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" rightline="true" usebox="none">
37478 \begin_layout Plain Layout
37486 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37489 \begin_layout Plain Layout
37495 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37498 \begin_layout Plain Layout
37510 \begin_inset Tabular
37511 <lyxtabular version="3" rows="3" columns="3">
37512 <features rotate="0" tabularvalignment="middle">
37513 <column alignment="center" valignment="top">
37514 <column alignment="center" valignment="top">
37515 <column alignment="center" valignment="top">
37517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37520 \begin_layout Plain Layout
37526 <cell alignment="center" valignment="top" topline="true" usebox="none">
37529 \begin_layout Plain Layout
37535 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37538 \begin_layout Plain Layout
37546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37549 \begin_layout Plain Layout
37555 <cell alignment="center" valignment="top" usebox="none">
37558 \begin_layout Plain Layout
37559 \begin_inset Graphics
37560 filename ../images/dialog-show-new-inset_graphics.png
37562 scaleBeforeRotation
37571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37574 \begin_layout Plain Layout
37582 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37585 \begin_layout Plain Layout
37591 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37594 \begin_layout Plain Layout
37600 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37603 \begin_layout Plain Layout
37615 \begin_inset Tabular
37616 <lyxtabular version="3" rows="3" columns="2">
37617 <features rotate="0" tabularvalignment="middle">
37618 <column alignment="center" valignment="top">
37619 <column alignment="center" valignment="top">
37621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37624 \begin_layout Plain Layout
37630 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37633 \begin_layout Plain Layout
37641 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37644 \begin_layout Plain Layout
37650 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37653 \begin_layout Plain Layout
37654 \begin_inset Graphics
37655 filename ../images/dialog-show-new-inset_graphics.png
37657 scaleBeforeRotation
37668 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37671 \begin_layout Plain Layout
37677 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37680 \begin_layout Plain Layout
37694 \begin_layout Standard
37696 you can use the LaTeX-package
37701 \begin_inset Index idx
37704 \begin_layout Plain Layout
37705 LaTeX-packages ! picinpar
37711 Here is an example:
37714 \begin_layout Standard
37718 \begin_layout Plain Layout
37728 \begin_inset Note Note
37731 \begin_layout Plain Layout
37732 The following section will only be displayed when the LaTeX-package
37744 \begin_layout Standard
37748 \begin_layout Plain Layout
37752 begin{window}[2,c,{
37758 \begin_inset Graphics
37759 filename clipart/mobius.eps
37762 scaleBeforeRotation
37763 rotateOrigin center
37771 \begin_layout Plain Layout
37776 \begin_layout Plain Layout
37785 It was in the spring of the year 1894 that all London was interested, and
37786 the fashionable world dismayed, by the murder of the Honourable Ronald
37787 Adair under most unusual and inexplicable circumstances.
37788 The public has already learned those particulars of the crime which
37794 \begin_layout Plain Layout
37805 came out in the police investigation, but a good deal was suppressed upon
37806 that occasion, since the case for the prosecution was so overwhelmingly
37807 strong that it was not necessary to bring forward all the facts.
37808 Only now, at the end of nearly ten years, am I allowed to supply those
37809 missing links which make up the whole of that remarkable chain.
37815 \begin_layout Plain Layout
37827 \begin_layout Standard
37831 \begin_layout Plain Layout
37840 Footnote of the paragraph with the fixed object.
37844 \begin_layout Plain Layout
37854 \begin_layout Standard
37855 Surrounded fixed objects are used to let text float around them, at which
37856 the object's position in the paragraph can be determined by the number
37858 In contrary to floats is it not possible to have a numbered caption.
37861 \begin_layout Standard
37862 A fixed object is inserted by adding the command
37865 \begin_layout Standard
37870 begin{window}[2,c,{
37873 \begin_layout Standard
37874 as TeX-Code at the beginning of the paragraph.
37875 The first parameter in the bracket, here '2', defines the number of lines
37876 above the object, the second, here 'c', the position of the object.
37877 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37878 Behind the command you insert the object.
37879 In this example an image with a width of 40
37880 \begin_inset space \thinspace{}
37883 % of the text column width was inserted.
37884 The object can also be a table, a box or an equation.
37885 Behind the object the command
37888 \begin_layout Standard
37891 },description text]
37892 \begin_inset Newline newline
37898 \begin_layout Standard
37901 \begin_inset Quotes eld
37909 \begin_inset Quotes erd
37912 is in the second line.
37913 The description text is optional.
37914 The text surrounding the object must be in the same paragraph as the object,
37915 so it must begin directly after the
37920 At the end of the paragraph insert the command:
37923 \begin_layout Standard
37931 \begin_layout Standard
37932 Within a paragraph with a fixed object, you cannot insert footnotes in the
37934 You have to use instead the command
37940 inside the paragraph and outside the command
37946 as described in sec.
37947 \begin_inset space \thinspace{}
37951 \begin_inset CommandInset ref
37953 reference "sec:Footnotes"
37960 \begin_layout Standard
37964 \begin_layout Plain Layout
37974 \begin_inset Note Note
37977 \begin_layout Plain Layout
37978 The following will be displayed when the LaTeX-package
37990 \begin_layout Standard
37991 You need to install the LaTeX-package
37995 to see the following part of this section in the output.
37998 \begin_layout Standard
38002 \begin_layout Plain Layout
38014 \begin_layout Section
38016 \begin_inset Index idx
38019 \begin_layout Plain Layout
38026 \begin_inset Index idx
38029 \begin_layout Plain Layout
38030 Surrounded by text ! Initials
38038 \begin_layout Standard
38039 To use initials, you must have the LaTeX-package
38044 \begin_inset Index idx
38047 \begin_layout Plain Layout
38048 LaTeX-packages ! lettrine
38053 installed and use the module
38057 in your document (menu
38059 Document\SpecialChar \menuseparator
38060 Settings\SpecialChar \menuseparator
38064 To insert an initial, use the style
38069 This style has a mandatory and two optional arguments.
38070 The arguments are inserted via the
38075 The mandatory argument
38079 contains the letter(s) that is the initial, the argument
38082 \begin_inset space ~
38086 \begin_inset space ~
38091 contains the rest of the word or text of the initial letter(s).
38096 contains parameters to modify the initial.
38097 For more information about the possible parameters see the documentation
38103 \begin_inset CommandInset citation
38110 The style itself contains the text that is surrounding the initial.
38111 The usual style is hereby that the word whose first letter is the initial,
38119 \begin_layout Standard
38120 Here are some examples:
38123 \begin_layout Standard
38127 \begin_layout Plain Layout
38137 \begin_inset Note Note
38140 \begin_layout Plain Layout
38141 The following section will only be displayed when the LaTeX-package
38153 \begin_layout Enumerate
38154 No optional argument, the initial is the letter 'I' in the math font
38155 \begin_inset Formula $\mathfrak{Fraktur}$
38162 \begin_layout Initial
38163 \begin_inset Argument 2
38166 \begin_layout Plain Layout
38167 \begin_inset Formula $\mathfrak{I}$
38176 \begin_inset Argument 3
38179 \begin_layout Plain Layout
38185 was in the spring of the year 1894 that all London was interested, and
38186 the fashionable world dismayed, by the murder of the Honourable Ronald
38187 Adair under most unusual and inexplicable circumstances.
38188 The public has already learned those particulars of the crime which came
38189 out in the police investigation, but a good deal was suppressed upon that
38190 occasion, since the case for the prosecution was so overwhelmingly strong
38191 that it was not necessary to bring forward all the facts.
38192 \begin_inset Newpage newpage
38199 \begin_layout Enumerate
38200 Only one line is surrounding the initial, which is formed by two letters
38201 in standard font and no text is printed in small caps:
38205 \begin_layout Initial
38206 \begin_inset Argument 1
38209 \begin_layout Plain Layout
38216 \begin_inset Argument 2
38219 \begin_layout Plain Layout
38225 was in the spring of the year 1894 that all London was interested, and
38226 the fashionable world dismayed, by the murder of the Honourable Ronald
38227 Adair under most unusual and inexplicable circumstances.
38228 The public has already learned those particulars of the crime which came
38229 out in the police investigation, but a good deal was suppressed upon that
38230 occasion, since the case for the prosecution was so overwhelmingly strong
38231 that it was not necessary to bring forward all the facts.
38235 \begin_layout Enumerate
38236 Magenta, hanging initial over 3
38237 \begin_inset space ~
38240 lines in the math font
38241 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
38245 \begin_inset Quotes eld
38248 t was in the spring
38249 \begin_inset Quotes erd
38256 ; to color the initial, you must insert this command before the initial:
38257 \begin_inset Newline newline
38271 \begin_inset Newline newline
38279 \begin_inset Quotes eld
38283 \begin_inset Quotes erd
38287 \begin_inset Quotes eld
38291 \begin_inset Quotes erd
38295 \begin_inset Quotes eld
38299 \begin_inset Quotes erd
38303 \begin_inset Quotes eld
38307 \begin_inset Quotes erd
38311 \begin_inset Quotes eld
38315 \begin_inset Quotes erd
38319 \begin_inset Quotes eld
38323 \begin_inset Quotes erd
38327 \begin_inset Quotes eld
38331 \begin_inset Quotes erd
38335 \begin_inset Quotes eld
38339 \begin_inset Quotes erd
38342 , and add this command to the document preamble:
38343 \begin_inset Newline newline
38350 @ifundefined{textcolor}
38351 \begin_inset Newline newline
38355 \begin_inset space ~
38360 usepackage{color}}{}
38364 \begin_layout Standard
38368 \begin_layout Plain Layout
38382 \begin_inset Note Note
38385 \begin_layout Plain Layout
38386 makes the initial magenta
38394 \begin_layout Initial
38395 \begin_inset Argument 1
38398 \begin_layout Plain Layout
38399 lines=3, lhang=0.33, loversize=0.25
38405 \begin_inset Argument 2
38408 \begin_layout Plain Layout
38409 \begin_inset Formula $\mathcal{I}$
38418 \begin_inset Argument 3
38421 \begin_layout Plain Layout
38422 t was in the spring
38427 of the year 1894 that all London was interested, and the fashionable world
38428 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38429 and inexplicable circumstances.
38430 The public has already learned those particulars of the crime which came
38431 out in the police investigation, but a good deal was suppressed upon that
38432 occasion, since the case for the prosecution was so overwhelmingly strong
38433 that it was not necessary to bring forward all the facts.
38437 \begin_layout Standard
38441 \begin_layout Plain Layout
38451 \begin_inset Note Note
38454 \begin_layout Plain Layout
38455 The following will be displayed when the LaTeX-package
38467 \begin_layout Standard
38468 You need to install the LaTeX-package
38472 to see the following part of this section in the output.
38475 \begin_layout Standard
38479 \begin_layout Plain Layout
38491 \begin_layout Chapter
38492 External Document Parts
38493 \begin_inset Index idx
38496 \begin_layout Plain Layout
38497 External Document Parts
38505 \begin_layout Standard
38508 Insert\SpecialChar \menuseparator
38511 you can insert external material into your document.
38515 \begin_layout Description
38517 \begin_inset space ~
38520 Document Another LyX document; its content is directly inserted to your
38524 \begin_layout Description
38526 \begin_inset space ~
38529 Text A text document; each line is inserted in your document as a separate
38533 \begin_layout Description
38535 \begin_inset space ~
38539 \begin_inset space ~
38543 \begin_inset space ~
38546 Lines A text document; text lines are inserted in your document continuously
38547 but an empty text line creates a new paragraph.
38550 \begin_layout Description
38552 \begin_inset space ~
38555 Material Files in various formats.
38558 \begin_layout Description
38560 \begin_inset space ~
38563 Document LyX or LaTeX-documents.
38566 \begin_layout Section
38568 \begin_inset Index idx
38571 \begin_layout Plain Layout
38572 External Document Parts ! External Material
38580 \begin_layout Standard
38581 The external material feature allows you to insert files into your document
38582 without converting them to a format that can be read by the document output
38584 LyX takes care of the necessary conversions.
38585 This is similar to images that can be inserted in various image formats
38587 When you have enabled Instant Preview in LyX's preferences under
38590 \begin_inset space ~
38594 \begin_inset space ~
38597 feel\SpecialChar \menuseparator
38600 , the external material types Dia and Xfig are directly shown in LyX.
38603 \begin_layout Standard
38604 External material can be inserted via the
38608 dialog that is accessible with the menu
38610 Insert\SpecialChar \menuseparator
38611 File\SpecialChar \menuseparator
38613 \begin_inset space ~
38619 Currently the following file types (
38626 \begin_layout Description
38627 ChessDiagram This template supports chess position diagrams made with the
38631 \begin_inset CommandInset href
38634 target "http://en.wikipedia.org/wiki/XBoard"
38643 \begin_layout Description
38644 Date This inserts the date in the form
38649 This is a date inserted as external material:
38650 \begin_inset External
38657 \begin_inset space ~
38661 \begin_inset Note Note
38664 \begin_layout Plain Layout
38665 Remove the protected space when bug 4398 is fixed!
38671 \begin_inset Newline newline
38674 The date is not shown within LyX, only in the output.
38675 There are two other methods of inserting a date: Via menu
38677 Insert\SpecialChar \menuseparator
38680 and with the LaTeX command
38687 The different methods are compared in Table
38688 \begin_inset space ~
38692 \begin_inset CommandInset ref
38694 reference "tab:Comparison-of-the"
38701 \begin_layout Description
38702 Dia This template supports diagrams created with the program
38705 \begin_inset CommandInset href
38708 target "http://en.wikipedia.org/wiki/Dia_(software)"
38717 \begin_layout Description
38718 GnumericSpreadsheet With this template you can insert spreadsheets
38719 \begin_inset space \thinspace{}
38723 \begin_inset space \thinspace{}
38726 tables in the format of
38729 \begin_inset CommandInset href
38732 target "http://en.wikipedia.org/wiki/Gnumeric"
38739 \begin_inset CommandInset href
38741 name "OpenDocument"
38742 target "http://en.wikipedia.org/wiki/OpenDocument"
38747 \begin_inset CommandInset href
38749 name "Microsoft Office XML"
38750 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38755 \begin_inset CommandInset href
38757 name "Office Open XML"
38758 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38763 For this feature LyX must have found the program
38767 during its configuration.
38768 This program is part of Gnumeric, so that you must have Gnumeric installed,
38769 also if you don't have tables in the Gnumeric format.
38770 For examples and possible limitations have a look at LyX's example file
38778 \begin_layout Description
38779 LilyPond This template is used for music notation typeset with the program
38780 \begin_inset Newline linebreak
38786 \begin_inset CommandInset href
38789 target "http://en.wikipedia.org/wiki/LilyPond"
38796 For LyX's extended support for LilyPond have a look at LyX's example file
38804 \begin_layout Description
38805 PDFPages With this template you can insert PDF documents to your document.
38806 To specify the range of pages that should be included, use the option
38816 LaTeX and LyX options
38819 The argument of this option is a comma separated list, containing page
38820 numbers (insert as option
38824 ), ranges of page numbers (
38828 ) or any combination.
38829 To insert empty pages use {}.
38831 \begin_inset space \thinspace{}
38835 \begin_inset space ~
38840 pages={3,{},8-11,15}
38842 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38843 Page ranges are specified in the syntax
38852 This selects all pages from
38865 defaults to the first page; omitting
38869 defaults to the last page of the document.
38870 The last page can also be selected with the keyword
38875 (This is only permitted in a page range.) So
38879 will insert all pages of the document and
38883 will insert all pages in reverse order.
38884 If the pages option is not specified, only the first page of the PDF is
38886 \begin_inset Newline newline
38893 inserts the pages with their original size, if this option is not given,
38894 the pages will be resized to fith the width of the page of your document.
38899 you can specify the width and height of the input pages and their rotation.
38900 If another width than 100
38901 \begin_inset space \thinspace{}
38904 Scale% is used, the option
38908 will be overwritten.
38909 For more info and possible options, have a look into the documentation
38910 of the LaTeX-package
38915 \begin_inset CommandInset citation
38922 \begin_inset Index idx
38925 \begin_layout Plain Layout
38926 LaTeX-packages ! pdfpages
38932 \begin_inset Newline newline
38935 To use this template in a
38939 presentation you need to first insert an
38943 environment and in a subsequent paragraph a TeX-Code box containing the
38948 setbeamertemplate{background canvas}{}
38951 Then you can insert as many paragraphs containing the PDFPages template
38953 Behind the included PDF pages you can resume the Beamer presentation by
38954 beginning a new frame or by starting a new section.
38955 To avoid stray blank pages prior to the PDF pages, make sure to use the
38960 alignment for the paragraph containing the template.
38961 \begin_inset Newline newline
38964 Here is an included PDF which is rotated by -5°:
38965 \begin_inset External
38967 filename clipart/Abstract.pdf
38968 extra LaTeX "noautoscale, pages=-"
38970 rotateOrigin bottomleft
38977 \begin_layout Description
38978 RasterImage This can be used for bitmap images.
38979 The image can be treated in the
38983 dialog like the images that are usually included via the
38987 dialog as described in section
38988 \begin_inset space ~
38992 \begin_inset CommandInset ref
38994 reference "sec:Graphics-Dialog"
38999 The difference to the normal image input is that only raster images are
39000 allowed; that means that PDF and EPS-images are not supported.
39001 Here is an inserted raster image:
39002 \begin_inset External
39003 template RasterImage
39004 filename clipart/ToolbarEnvBox.png
39011 \begin_layout Description
39012 XFig This template supports images created with the program
39015 \begin_inset CommandInset href
39018 target "http://en.wikipedia.org/wiki/Xfig"
39027 \begin_layout Standard
39028 \begin_inset Float table
39034 \begin_layout Plain Layout
39035 \begin_inset Caption Standard
39037 \begin_layout Plain Layout
39038 \begin_inset CommandInset label
39040 name "tab:Comparison-of-the"
39044 Comparison of the date input methods.
39052 \begin_layout Plain Layout
39054 \begin_inset Tabular
39055 <lyxtabular version="3" rows="4" columns="4">
39056 <features rotate="0" tabularvalignment="middle">
39057 <column alignment="center" valignment="top">
39058 <column alignment="center" valignment="top">
39059 <column alignment="center" valignment="top">
39060 <column alignment="center" valignment="top">
39062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39065 \begin_layout Plain Layout
39071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39074 \begin_layout Plain Layout
39077 External Material\SpecialChar \menuseparator
39083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39086 \begin_layout Plain Layout
39089 Insert\SpecialChar \menuseparator
39095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39098 \begin_layout Plain Layout
39110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39113 \begin_layout Plain Layout
39119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39122 \begin_layout Plain Layout
39128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39131 \begin_layout Plain Layout
39137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39140 \begin_layout Plain Layout
39141 as TeX-Code inset box
39148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39151 \begin_layout Plain Layout
39157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39160 \begin_layout Plain Layout
39166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39169 \begin_layout Plain Layout
39175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39178 \begin_layout Plain Layout
39186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39189 \begin_layout Plain Layout
39195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39198 \begin_layout Plain Layout
39204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39207 \begin_layout Plain Layout
39213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39216 \begin_layout Plain Layout
39235 \begin_layout Standard
39236 When you use the option
39248 dialog, only the path to the inserted file is shown in the output.
39249 \begin_inset Newline newline
39252 External material is displayed in LyX either as a box like this:
39253 \begin_inset Graphics
39254 filename clipart/ExternalMaterialQt4.png
39256 scaleBeforeRotation
39260 or as image, depending on the option
39266 LaTeX and LyX options
39271 \begin_layout Standard
39278 manual explains how you can define your own templates.
39281 \begin_layout Section
39283 \begin_inset CommandInset label
39285 name "sec:Child-Documents"
39290 \begin_inset Index idx
39293 \begin_layout Plain Layout
39294 External Document Parts ! Child Documents
39300 \begin_inset Index idx
39303 \begin_layout Plain Layout
39312 \begin_layout Standard
39313 Child documents are used if you have a long document consisting of several
39314 larger parts or sections.
39315 For maintenance it is often useful and sometimes even required to split
39316 the document into several files that can be revised separately.
39317 The different documents are then the so called
39318 \begin_inset Quotes eld
39322 \begin_inset Quotes erd
39325 , and a master document connects them to print the full document or parts
39327 A child document inherits elements from its master, for example the LaTeX
39328 preamble, the bibliography, and labels for cross-references.
39331 \begin_layout Standard
39332 To be able to work on child documents without the need to open their master,
39333 specify in the child document the master in the menu
39335 Document\SpecialChar \menuseparator
39336 Settings\SpecialChar \menuseparator
39338 \begin_inset space ~
39344 This master document will then be used in the background by LyX when you
39345 edit the child document.
39348 \begin_layout Standard
39349 Included documents are displayed in LyX as a box like this:
39350 \begin_inset Graphics
39351 filename clipart/ChildDocumentQt4.png
39353 scaleBeforeRotation
39357 To include child documents in a master document use the menu
39359 Insert\SpecialChar \menuseparator
39360 File\SpecialChar \menuseparator
39362 \begin_inset space ~
39368 A dialog pops up where you can choose between four include methods:
39371 \begin_layout Description
39372 Include You can include LyX- and LaTeX-documents.
39381 dialog, the included document will be opened in LyX in a new file tab so
39382 that you can modify it.
39383 \begin_inset Newline newline
39389 \begin_layout Standard
39390 Here is a child document inserted using
39395 \begin_inset CommandInset include
39396 LatexCommand include
39397 filename "DummyDocument1.lyx"
39404 \begin_layout Standard
39405 The section numbering includes the sections of the included files in the
39406 order they are inserted in the master document.
39407 The included example document has for example a subsection that is numbered
39408 as a subsection of this section.
39409 Labels of included documents can be referenced: Subsection
39410 \begin_inset space ~
39414 \begin_inset CommandInset ref
39416 reference "sub:External-Subsection-1"
39423 \begin_layout Standard
39424 The preamble of the child document is ignored; only the preamble of the
39425 master document is used.
39426 Branches in child documents will be ignored by the master document when
39427 the master document does not have a branch with the same name.
39428 Included documents are inserted starting on a new page and ending with
39432 \begin_layout Standard
39433 \begin_inset Note Greyedout
39436 \begin_layout Plain Layout
39441 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39442 the document in case the child document uses another document class than
39443 the master document as this will lead to unexpected outputs.
39451 \begin_layout Description
39452 Input This method is very similar to the Include method.
39453 The differences are:
39457 \begin_layout Itemize
39458 Input files don't start with a new page and don't end with a page break.
39461 \begin_layout Itemize
39462 Input files can be previewed in LyX when
39465 \begin_inset space ~
39470 is enabled in LyX's preferences under
39473 \begin_inset space ~
39477 \begin_inset space ~
39480 feel\SpecialChar \menuseparator
39486 \begin_layout Itemize
39487 You cannot exclude Input files via the menu
39489 Document\SpecialChar \menuseparator
39490 Settings\SpecialChar \menuseparator
39497 \begin_layout Standard
39498 Here is a child document inserted using
39503 \begin_inset CommandInset include
39505 filename "DummyDocument2.lyx"
39512 \begin_layout Description
39513 Verbatim With this method any text file can be included.
39514 The file is shown in the output with its source code; no command used in
39515 the text is invoked.
39516 You can use the option
39518 Mark spaces in output
39520 that displays the character
39521 \begin_inset Quotes eld
39528 \begin_layout Plain Layout
39538 \begin_inset Quotes erd
39541 for every space character in the source code.
39542 The difference from the method via the menu
39544 Insert\SpecialChar \menuseparator
39545 File\SpecialChar \menuseparator
39547 \begin_inset space ~
39552 is that the document content is not shown in LyX.
39555 \begin_layout Standard
39556 Here is a child document inserted as Verbatim:
39557 \begin_inset CommandInset include
39558 LatexCommand verbatiminput
39559 filename "DummyTextDocument.txt"
39564 \begin_inset VSpace bigskip
39567 Here is a child document inserted as Verbatim using the
39569 Mark spaces in output
39572 \begin_inset CommandInset include
39573 LatexCommand verbatiminput*
39574 filename "DummyTextDocument.txt"
39581 \begin_layout Standard
39582 \begin_inset VSpace bigskip
39588 \begin_layout Standard
39589 \begin_inset Note Greyedout
39592 \begin_layout Plain Layout
39597 As you can see in the examples above, the text of the documents included
39602 is not broken at the end of the document lines.
39610 \begin_layout Description
39611 Listings This type is described in chapter
39612 \begin_inset space ~
39616 \begin_inset CommandInset ref
39618 reference "cha:Program-Code-Listings"
39625 \begin_layout Standard
39626 \begin_inset Note Greyedout
39629 \begin_layout Plain Layout
39634 Including the same document twice in a document using different methods
39635 could cause LaTeX-problems.
39643 \begin_layout Standard
39644 If you want to view/export only selected children of your master document,
39645 either because you want to save compiling time or because you want to distribut
39646 e single chapters of the book you are just writing, you can exclude children
39648 This is done via the menu
39650 Document\SpecialChar \menuseparator
39651 Settings\SpecialChar \menuseparator
39655 You can exclude\SpecialChar \slash{}
39656 include children by double-clicking on the
39660 column of the respective child document in the list (note that this only
39661 works for documents embedded via
39662 \begin_inset Quotes eld
39666 \begin_inset Quotes erd
39670 \begin_inset Quotes eld
39674 \begin_inset Quotes erd
39680 Maintain counters and references
39682 is enabled, LyX will assure that all page numbers, references etc.
39683 \begin_inset space ~
39686 are correct as if the whole document was processed.
39687 This is useful if you want the selected sub-documents to look exactly as
39688 in the context of the whole document.
39689 However, LyX needs to process the whole document in the background for
39691 So if you want to save compile time and if counters and references do not
39692 need to be correct, disable this checkbox.
39695 \begin_layout Standard
39696 Alternatively, you can put each included file into a branch.
39700 \begin_layout Plain Layout
39701 Branches are described in section
39714 By enabling\SpecialChar \slash{}
39715 disabling branches you can decide which included files will
39716 appear in the output.
39717 This has the advantage that it also works with Input'ed sub-documents.
39718 However, counters and references will not be maintained with this approach.
39721 \begin_layout Chapter
39722 Program Code Listings
39723 \begin_inset CommandInset label
39725 name "cha:Program-Code-Listings"
39730 \begin_inset Index idx
39733 \begin_layout Plain Layout
39740 \begin_inset Index idx
39743 \begin_layout Plain Layout
39750 \begin_inset Index idx
39753 \begin_layout Plain Layout
39762 \begin_layout Standard
39763 To include and typeset program code you can use the
39767 inset that can be inserted via the menu
39769 Insert\SpecialChar \menuseparator
39778 \begin_inset Index idx
39781 \begin_layout Plain Layout
39782 LaTeX-packages ! listings
39787 provides a powerful and flexible way to insert program source code into
39791 \begin_layout Standard
39792 Right-clicking on a listings inset opens the context menu containing where
39793 you can set the listings format.
39796 \begin_layout Standard
39797 By default, a listing starts a new paragraph in the output.
39798 The placement option
39801 \begin_inset space ~
39806 prints the listing inline like this:
39807 \begin_inset listings
39808 lstparams "language={C++}"
39812 \begin_layout Plain Layout
39820 \begin_inset Newline newline
39827 creates a listings float where you can specify the placement options
39828 \begin_inset Quotes eld
39836 \begin_inset Quotes erd
39840 \begin_inset Quotes eld
39848 \begin_inset Quotes erd
39852 \begin_inset Quotes eld
39860 \begin_inset Quotes erd
39864 \begin_inset Quotes eld
39872 \begin_inset Quotes erd
39875 corresponding to the float placement options described in section
39876 \begin_inset space ~
39880 \begin_inset CommandInset ref
39882 reference "sec:Float-Placement"
39887 The placement options can be mixed and are inserted without any separation,
39889 \begin_inset space \thinspace{}
39893 \begin_inset space \space{}
39897 \begin_inset Quotes eld
39905 \begin_inset Quotes erd
39910 \begin_inset Quotes eld
39914 \begin_inset Quotes erd
39917 has sometimes no effect, but you don't need to use the
39921 option in this case as also non-float listings can have captions and be
39925 \begin_layout Standard
39926 You can add captions to listings with the menu
39928 Insert\SpecialChar \menuseparator
39932 Listings can be referenced like floats: Listing
39933 \begin_inset space ~
39937 \begin_inset CommandInset ref
39939 reference "lst:Example-Listing"
39944 A list of listings which contains all listings with captions can be created
39947 Insert\SpecialChar \menuseparator
39949 \begin_inset space ~
39953 \begin_inset space ~
39956 TOC\SpecialChar \menuseparator
39960 The list entries are the listing caption and the listing number.
39963 \begin_layout Standard
39964 \begin_inset listings
39965 lstparams "language=Python"
39969 \begin_layout Plain Layout
39971 \begin_inset Caption Standard
39973 \begin_layout Plain Layout
39974 \begin_inset CommandInset label
39976 name "lst:Example-Listing"
39980 Example Listing float
39985 # Example listing float
39988 \begin_layout Plain Layout
39993 \begin_layout Plain Layout
39995 'this is a python function'
39998 \begin_layout Plain Layout
40008 \begin_layout Standard
40009 When you have set a programming language in the listings dialog, the keywords
40010 of this language will be recognized and specially typeset in the output.
40011 In the example listings the Python keyword
40012 \begin_inset Quotes eld
40016 \begin_inset Quotes erd
40019 is recognized and printed bold in the output.
40022 \begin_layout Standard
40023 \begin_inset Note Greyedout
40026 \begin_layout Plain Layout
40031 If you don't get bold keywords when using typewriter fonts, your
40035 font probably doesn't provide a bold shape.
40036 In this case select a different one in the menu
40038 Document\SpecialChar \menuseparator
40039 Settings\SpecialChar \menuseparator
40051 provide bold shapes.)
40059 \begin_layout Standard
40063 \begin_inset space ~
40068 of the listings dialog you can specify the line numbering style.
40069 You can insert a number to specify which lines are numbered in the field
40076 \begin_inset space \thinspace{}
40080 \begin_inset space \space{}
40084 \begin_inset Quotes eld
40088 \begin_inset Quotes erd
40091 , only every 3rd line will be numbered.
40094 \begin_layout Standard
40095 You can furthermore specify a range of lines; only these will then appear
40099 Extended character table
40101 should be used when you use national characters like the German umlauts
40103 \begin_inset Newline newline
40106 Here is an example listing with left line numbering, step
40107 \begin_inset Quotes eld
40111 \begin_inset Quotes erd
40115 \begin_inset Quotes eld
40119 \begin_inset Quotes erd
40123 \begin_inset Quotes eld
40126 Extended character table
40127 \begin_inset Quotes erd
40131 \begin_inset Quotes eld
40135 \begin_inset space ~
40139 \begin_inset space ~
40143 \begin_inset Quotes erd
40147 \begin_inset space \thinspace{}
40151 \begin_inset space \thinspace{}
40157 \begin_layout Standard
40158 \begin_inset listings
40159 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
40163 \begin_layout Plain Layout
40168 \begin_layout Plain Layout
40170 'this is a python function'
40173 \begin_layout Plain Layout
40178 \begin_layout Plain Layout
40183 \begin_layout Plain Layout
40185 'This is a German word: Tschüß'
40188 \begin_layout Plain Layout
40193 \begin_layout Plain Layout
40198 \begin_layout Plain Layout
40200 'this is a python function'
40203 \begin_layout Plain Layout
40213 \begin_layout Standard
40214 When you have tabulators in your listing, you can specify the number of
40215 characters that are spanned by a tabulator in the field
40218 \begin_inset space ~
40226 \begin_layout Standard
40227 \begin_inset Note Greyedout
40230 \begin_layout Plain Layout
40235 Due to a bug in the
40239 package the line numbering is shifted by a line by every previous listing.
40240 That's the reason why the lines 2 and 5 are numbered in the above listing
40241 and not the lines 3 and 6.
40249 \begin_layout Standard
40250 \begin_inset VSpace bigskip
40256 \begin_layout Standard
40257 It is also possible to print lines from a file as listing.
40258 To do this, use the menu
40260 Insert\SpecialChar \menuseparator
40261 File\SpecialChar \menuseparator
40264 and choose the type
40272 \begin_layout Plain Layout
40273 The other child document types are described in section
40274 \begin_inset space ~
40278 \begin_inset CommandInset ref
40280 reference "sec:Child-Documents"
40289 In the child document dialog you can specify the listing parameters in
40291 To show a list of all available parameters, type in a question mark
40292 \begin_inset Quotes eld
40296 \begin_inset Quotes erd
40302 \begin_layout Standard
40303 To reference child document listings, write a label text into the corresponding
40304 field of the child document dialog.
40305 The label can then be referenced using the menu
40307 Insert\SpecialChar \menuseparator
40313 \begin_layout Standard
40315 \begin_inset space ~
40319 \begin_inset CommandInset ref
40321 reference "lst:file-listing"
40325 is an example for a listing of a file; there the lines 10
40326 \begin_inset space \thinspace{}
40330 \begin_inset space \thinspace{}
40333 15 of this LyX file are listed.
40336 \begin_layout Standard
40337 \begin_inset CommandInset include
40338 LatexCommand lstinputlisting
40339 filename "EmbeddedObjects.lyx"
40340 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40347 \begin_layout Standard
40348 \begin_inset VSpace bigskip
40354 \begin_layout Standard
40355 Inserting a formula into a listing can be done the following way:
40358 \begin_layout Enumerate
40359 Open the listings dialog and add
40360 \begin_inset Newline newline
40368 \begin_inset Newline newline
40371 to the field of the
40378 \begin_layout Enumerate
40379 Create a formula outside the listing
40382 \begin_layout Enumerate
40383 Copy the content of the formula (not the formula inset) to the clipboard
40393 \begin_layout Enumerate
40394 In the listing write
40395 \begin_inset Quotes eld
40403 \begin_inset Quotes erd
40406 and copy from the clipboard between the dollar-signs (shortcut
40415 \begin_layout Standard
40416 \begin_inset listings
40417 lstparams "language=Python,mathescape=true"
40421 \begin_layout Plain Layout
40423 \begin_inset Caption Standard
40425 \begin_layout Plain Layout
40426 Example Listing float containing a formula
40431 # Example listing float
40434 \begin_layout Plain Layout
40439 \begin_layout Plain Layout
40452 \begin_layout Plain Layout
40462 \begin_layout Standard
40463 \begin_inset VSpace bigskip
40469 \begin_layout Standard
40470 Global listings settings can be set in the
40472 Document\SpecialChar \menuseparator
40473 Settings\SpecialChar \menuseparator
40477 To get there a list of available options, type in a question mark
40478 \begin_inset Quotes eld
40482 \begin_inset Quotes erd
40488 \begin_layout Standard
40489 For more information about the
40493 package, we refer to its documentation
40494 \begin_inset CommandInset citation
40503 \begin_layout Standard
40504 \begin_inset Newpage newpage
40510 \begin_layout Chapter
40512 Units available in LyX
40513 \begin_inset Index idx
40516 \begin_layout Plain Layout
40523 \begin_inset CommandInset label
40525 name "cha:Units-available-in"
40532 \begin_layout Standard
40533 To understand the units described in this documentation, Table
40534 \begin_inset space ~
40538 \begin_inset CommandInset ref
40540 reference "tab:Units"
40544 explains all units available in LyX.
40547 \begin_layout Standard
40548 \begin_inset Float table
40554 \begin_layout Plain Layout
40555 \begin_inset Caption Standard
40557 \begin_layout Plain Layout
40558 \begin_inset CommandInset label
40572 \begin_layout Plain Layout
40573 \begin_inset VSpace medskip
40579 \begin_layout Plain Layout
40581 \begin_inset Tabular
40582 <lyxtabular version="3" rows="20" columns="2">
40583 <features rotate="0" tabularvalignment="middle">
40584 <column alignment="center" valignment="top">
40585 <column alignment="center" valignment="top">
40587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40590 \begin_layout Plain Layout
40596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40599 \begin_layout Plain Layout
40607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40610 \begin_layout Plain Layout
40616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40619 \begin_layout Plain Layout
40627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40630 \begin_layout Plain Layout
40636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40639 \begin_layout Plain Layout
40647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40650 \begin_layout Plain Layout
40656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40659 \begin_layout Plain Layout
40667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40670 \begin_layout Plain Layout
40676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40679 \begin_layout Plain Layout
40681 \begin_inset space \thinspace{}
40685 \begin_inset space \thinspace{}
40695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40698 \begin_layout Plain Layout
40704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40707 \begin_layout Plain Layout
40709 \begin_inset space \thinspace{}
40713 \begin_inset space \thinspace{}
40723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40726 \begin_layout Plain Layout
40732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40735 \begin_layout Plain Layout
40736 scaled point (65536
40737 \begin_inset space \thinspace{}
40741 \begin_inset space \thinspace{}
40751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40754 \begin_layout Plain Layout
40760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40763 \begin_layout Plain Layout
40765 \begin_inset space \thinspace{}
40769 \begin_inset space \thinspace{}
40779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40782 \begin_layout Plain Layout
40788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40791 \begin_layout Plain Layout
40793 \begin_inset space \thinspace{}
40797 \begin_inset Formula $\approx$
40801 \begin_inset space \thinspace{}
40811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40814 \begin_layout Plain Layout
40820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40823 \begin_layout Plain Layout
40825 \begin_inset space \thinspace{}
40829 \begin_inset space \thinspace{}
40839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40842 \begin_layout Plain Layout
40848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40851 \begin_layout Plain Layout
40852 % of original image width
40859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40862 \begin_layout Plain Layout
40868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40871 \begin_layout Plain Layout
40879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40882 \begin_layout Plain Layout
40888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40891 \begin_layout Plain Layout
40899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40902 \begin_layout Plain Layout
40908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40911 \begin_layout Plain Layout
40919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40922 \begin_layout Plain Layout
40928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40931 \begin_layout Plain Layout
40939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40942 \begin_layout Plain Layout
40948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40951 \begin_layout Plain Layout
40959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40962 \begin_layout Plain Layout
40968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40971 \begin_layout Plain Layout
40979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40982 \begin_layout Plain Layout
40988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40991 \begin_layout Plain Layout
41003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
41006 \begin_layout Plain Layout
41012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
41015 \begin_layout Plain Layout
41027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
41030 \begin_layout Plain Layout
41036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
41039 \begin_layout Plain Layout
41041 \begin_inset space \thinspace{}
41045 \begin_inset space \thinspace{}
41066 \begin_layout Chapter
41067 Output File Formats with Graphics
41068 \begin_inset CommandInset label
41070 name "cha:Output-File-Formats"
41077 \begin_layout Section
41079 \begin_inset Index idx
41082 \begin_layout Plain Layout
41089 \begin_inset Index idx
41092 \begin_layout Plain Layout
41097 \begin_layout Plain Layout
41108 \begin_layout Plain Layout
41123 \begin_layout Standard
41124 This file type has the extension
41125 \begin_inset Quotes eld
41133 \begin_inset Quotes erd
41138 \begin_inset Quotes eld
41142 \begin_inset Quotes erd
41145 (DVI), because it is completely portable; you can move them from one machine
41146 to another without needing to do any sort of conversion.
41147 At the time when this file-format was developed, this was no matter of
41149 DVIs are used for quick previews and as pre-stage for other output formats,
41153 \begin_layout Standard
41154 \begin_inset Note Greyedout
41157 \begin_layout Plain Layout
41162 DVI-files do not contain images; they will only be a linked.
41167 So don't forget this, if you move your
41171 file to another computer.
41172 This property can also slow down your computer when you view the DVI, because
41173 the DVI-viewer has to convert the image in the background to make it visible
41174 when you scroll in the DVI.
41175 So it is recommended that you use PDF for files with many images.
41178 \begin_layout Standard
41179 You can export your document to DVI by using the menu
41181 File\SpecialChar \menuseparator
41182 Export\SpecialChar \menuseparator
41186 You can view your document as DVI via the
41193 \begin_layout Section
41195 \begin_inset CommandInset label
41197 name "sec:PostScript"
41202 \begin_inset Index idx
41205 \begin_layout Plain Layout
41206 File Formats ! PostScript
41212 \begin_inset Index idx
41215 \begin_layout Plain Layout
41220 \begin_layout Plain Layout
41231 \begin_layout Plain Layout
41246 \begin_layout Standard
41247 This file type has the extension
41248 \begin_inset Quotes eld
41256 \begin_inset Quotes erd
41260 PostScript was developed by the company
41264 as a printer language.
41265 The file therefore contains commands that the printer uses to print the
41267 PostScript can be seen as a
41268 \begin_inset Quotes eld
41271 programming language
41272 \begin_inset Quotes erd
41275 ; you can calculate with it and draw diagrams and images
41279 \begin_layout Plain Layout
41280 If you are interested to learn more about this, have a look at the LaTeX-package
41286 \begin_inset CommandInset citation
41298 Due to this ability, the files are often bigger than PDFs.
41301 \begin_layout Standard
41302 PostScript can only contain images in the format
41303 \begin_inset Quotes eld
41306 Encapsulated PostScript
41307 \begin_inset Quotes erd
41310 (EPS, file extension
41311 \begin_inset Quotes eld
41319 \begin_inset Quotes erd
41323 As LyX allows you to use any known image format in your document, it has
41324 to convert images in the background to EPS.
41326 \begin_inset space ~
41330 \begin_inset space ~
41333 images in your document, LyX has to do 50
41334 \begin_inset space ~
41337 conversions whenever you view or export your document.
41338 This will slow down your work flow with LyX drastically.
41339 So if you plan to use PostScript, you can insert your images directly as
41340 EPS to avoid this problem.
41343 \begin_layout Standard
41344 You can export your document to PostScript using the menu
41346 File\SpecialChar \menuseparator
41347 Export\SpecialChar \menuseparator
41351 You can view your document as PostScript via the
41358 \begin_layout Section
41360 \begin_inset Index idx
41363 \begin_layout Plain Layout
41370 \begin_inset Index idx
41373 \begin_layout Plain Layout
41382 \begin_layout Standard
41383 This file type has the extension
41384 \begin_inset Quotes eld
41392 \begin_inset Quotes erd
41397 \begin_inset Quotes eld
41400 Portable Document Format
41401 \begin_inset Quotes erd
41404 (PDF) was developed by
41408 as a derivative of PostScript.
41409 It is more compressed and it uses fewer commands than PostScript.
41411 \begin_inset Quotes eld
41415 \begin_inset Quotes erd
41418 implies, it can be processed at any computer system and the printed output
41419 looks exactly the same.
41422 \begin_layout Standard
41423 PDF can contain images in its own PDF format, in the format
41424 \begin_inset Quotes eld
41427 Joint Photographic Experts Group
41428 \begin_inset Quotes erd
41431 (JPG, file extension
41432 \begin_inset Quotes eld
41440 \begin_inset Quotes erd
41444 \begin_inset Quotes eld
41452 \begin_inset Quotes erd
41455 ), and in the format
41456 \begin_inset Quotes eld
41459 Portable Network Graphics
41460 \begin_inset Quotes erd
41463 (PNG, file extension
41464 \begin_inset Quotes eld
41472 \begin_inset Quotes erd
41476 Nevertheless you can use any other image format, because LyX converts them
41477 in the background to one of these formats.
41478 But as described in the section about PostScript, the image conversion
41479 will slow down your work flow.
41480 So it is recommended that you use images in one of the three mentioned
41484 \begin_layout Standard
41485 You can export your document to PDF via the menu
41487 File\SpecialChar \menuseparator
41490 in three different ways:
41493 \begin_layout Description
41495 \begin_inset space ~
41498 (ps2pdf) This uses the program
41502 that creates a PDF from a PostScript-version of your file.
41503 The PostScript-version is produced by the program
41507 which uses a DVI-version as intermediate step.
41508 So this export variant consists of three conversions.
41511 \begin_layout Description
41513 \begin_inset space ~
41516 (dvipdfm) This uses the program
41520 that converts your file in the background to DVI and in a second step to
41524 \begin_layout Description
41526 \begin_inset space ~
41529 (pdflatex) This uses the program
41533 that converts your file directly to PDF.
41536 \begin_layout Standard
41537 It is recommended that you use
41540 \begin_inset space ~
41549 supports all features of actual PDF-versions, is quick and works stable.
41554 is not under development and therefore a bit outdated.
41557 \begin_layout Standard
41558 You can view your document as PDF via the
41562 menu or by using a toolbar button.
41565 \begin_layout Chapter
41566 List of dvips color names
41567 \begin_inset CommandInset label
41569 name "chap:List-of-dvips-colornames"
41576 \begin_layout Standard
41577 \begin_inset Tabular
41578 <lyxtabular version="3" rows="17" columns="4">
41579 <features rotate="0" tabularvalignment="middle">
41580 <column alignment="left" valignment="top" width="0pt">
41581 <column alignment="left" valignment="top" width="0pt">
41582 <column alignment="left" valignment="top" width="0pt">
41583 <column alignment="left" valignment="top" width="0pt">
41585 <cell alignment="left" valignment="top" usebox="none">
41588 \begin_layout Plain Layout
41592 \begin_layout Plain Layout
41605 \begin_layout Plain Layout
41616 \begin_layout Plain Layout
41628 <cell alignment="left" valignment="top" usebox="none">
41631 \begin_layout Plain Layout
41635 \begin_layout Plain Layout
41648 \begin_layout Plain Layout
41659 \begin_layout Plain Layout
41671 <cell alignment="left" valignment="top" usebox="none">
41674 \begin_layout Plain Layout
41678 \begin_layout Plain Layout
41691 \begin_layout Plain Layout
41702 \begin_layout Plain Layout
41714 <cell alignment="left" valignment="top" usebox="none">
41717 \begin_layout Plain Layout
41721 \begin_layout Plain Layout
41734 \begin_layout Plain Layout
41745 \begin_layout Plain Layout
41759 <cell alignment="center" valignment="top" usebox="none">
41762 \begin_layout Plain Layout
41766 \begin_layout Plain Layout
41779 \begin_layout Plain Layout
41787 \begin_inset Phantom Phantom
41790 \begin_layout Plain Layout
41800 \begin_layout Plain Layout
41812 <cell alignment="center" valignment="top" usebox="none">
41815 \begin_layout Plain Layout
41819 \begin_layout Plain Layout
41832 \begin_layout Plain Layout
41840 \begin_inset Phantom Phantom
41843 \begin_layout Plain Layout
41853 \begin_layout Plain Layout
41865 <cell alignment="center" valignment="top" usebox="none">
41868 \begin_layout Plain Layout
41872 \begin_layout Plain Layout
41885 \begin_layout Plain Layout
41893 \begin_inset Phantom Phantom
41896 \begin_layout Plain Layout
41906 \begin_layout Plain Layout
41918 <cell alignment="center" valignment="top" usebox="none">
41921 \begin_layout Plain Layout
41925 \begin_layout Plain Layout
41938 \begin_layout Plain Layout
41946 \begin_inset Phantom Phantom
41949 \begin_layout Plain Layout
41959 \begin_layout Plain Layout
41973 <cell alignment="left" valignment="top" usebox="none">
41976 \begin_layout Plain Layout
41980 \begin_layout Plain Layout
41993 \begin_layout Plain Layout
42001 \begin_inset Phantom Phantom
42004 \begin_layout Plain Layout
42014 \begin_layout Plain Layout
42026 <cell alignment="left" valignment="top" usebox="none">
42029 \begin_layout Plain Layout
42033 \begin_layout Plain Layout
42046 \begin_layout Plain Layout
42054 \begin_inset Phantom Phantom
42057 \begin_layout Plain Layout
42067 \begin_layout Plain Layout
42079 <cell alignment="left" valignment="top" usebox="none">
42082 \begin_layout Plain Layout
42086 \begin_layout Plain Layout
42099 \begin_layout Plain Layout
42107 \begin_inset Phantom Phantom
42110 \begin_layout Plain Layout
42120 \begin_layout Plain Layout
42132 <cell alignment="left" valignment="top" usebox="none">
42135 \begin_layout Plain Layout
42139 \begin_layout Plain Layout
42152 \begin_layout Plain Layout
42160 \begin_inset Phantom Phantom
42163 \begin_layout Plain Layout
42173 \begin_layout Plain Layout
42187 <cell alignment="left" valignment="top" usebox="none">
42190 \begin_layout Plain Layout
42194 \begin_layout Plain Layout
42207 \begin_layout Plain Layout
42215 \begin_inset Phantom Phantom
42218 \begin_layout Plain Layout
42228 \begin_layout Plain Layout
42240 <cell alignment="left" valignment="top" usebox="none">
42243 \begin_layout Plain Layout
42247 \begin_layout Plain Layout
42260 \begin_layout Plain Layout
42268 \begin_inset Phantom Phantom
42271 \begin_layout Plain Layout
42281 \begin_layout Plain Layout
42293 <cell alignment="left" valignment="top" usebox="none">
42296 \begin_layout Plain Layout
42300 \begin_layout Plain Layout
42313 \begin_layout Plain Layout
42321 \begin_inset Phantom Phantom
42324 \begin_layout Plain Layout
42334 \begin_layout Plain Layout
42346 <cell alignment="left" valignment="top" usebox="none">
42349 \begin_layout Plain Layout
42353 \begin_layout Plain Layout
42366 \begin_layout Plain Layout
42374 \begin_inset Phantom Phantom
42377 \begin_layout Plain Layout
42387 \begin_layout Plain Layout
42401 <cell alignment="left" valignment="top" usebox="none">
42404 \begin_layout Plain Layout
42408 \begin_layout Plain Layout
42421 \begin_layout Plain Layout
42429 \begin_inset Phantom Phantom
42432 \begin_layout Plain Layout
42442 \begin_layout Plain Layout
42454 <cell alignment="left" valignment="top" usebox="none">
42457 \begin_layout Plain Layout
42461 \begin_layout Plain Layout
42474 \begin_layout Plain Layout
42482 \begin_inset Phantom Phantom
42485 \begin_layout Plain Layout
42495 \begin_layout Plain Layout
42507 <cell alignment="left" valignment="top" usebox="none">
42510 \begin_layout Plain Layout
42514 \begin_layout Plain Layout
42527 \begin_layout Plain Layout
42535 \begin_inset Phantom Phantom
42538 \begin_layout Plain Layout
42548 \begin_layout Plain Layout
42560 <cell alignment="left" valignment="top" usebox="none">
42563 \begin_layout Plain Layout
42567 \begin_layout Plain Layout
42580 \begin_layout Plain Layout
42588 \begin_inset Phantom Phantom
42591 \begin_layout Plain Layout
42601 \begin_layout Plain Layout
42615 <cell alignment="left" valignment="top" usebox="none">
42618 \begin_layout Plain Layout
42622 \begin_layout Plain Layout
42635 \begin_layout Plain Layout
42643 \begin_inset Phantom Phantom
42646 \begin_layout Plain Layout
42656 \begin_layout Plain Layout
42668 <cell alignment="left" valignment="top" usebox="none">
42671 \begin_layout Plain Layout
42675 \begin_layout Plain Layout
42688 \begin_layout Plain Layout
42696 \begin_inset Phantom Phantom
42699 \begin_layout Plain Layout
42709 \begin_layout Plain Layout
42721 <cell alignment="left" valignment="top" usebox="none">
42724 \begin_layout Plain Layout
42728 \begin_layout Plain Layout
42741 \begin_layout Plain Layout
42749 \begin_inset Phantom Phantom
42752 \begin_layout Plain Layout
42762 \begin_layout Plain Layout
42774 <cell alignment="left" valignment="top" usebox="none">
42777 \begin_layout Plain Layout
42781 \begin_layout Plain Layout
42794 \begin_layout Plain Layout
42802 \begin_inset Phantom Phantom
42805 \begin_layout Plain Layout
42815 \begin_layout Plain Layout
42829 <cell alignment="center" valignment="top" usebox="none">
42832 \begin_layout Plain Layout
42836 \begin_layout Plain Layout
42849 \begin_layout Plain Layout
42857 \begin_inset Phantom Phantom
42860 \begin_layout Plain Layout
42870 \begin_layout Plain Layout
42882 <cell alignment="center" valignment="top" usebox="none">
42885 \begin_layout Plain Layout
42889 \begin_layout Plain Layout
42902 \begin_layout Plain Layout
42910 \begin_inset Phantom Phantom
42913 \begin_layout Plain Layout
42923 \begin_layout Plain Layout
42935 <cell alignment="center" valignment="top" usebox="none">
42938 \begin_layout Plain Layout
42942 \begin_layout Plain Layout
42955 \begin_layout Plain Layout
42963 \begin_inset Phantom Phantom
42966 \begin_layout Plain Layout
42976 \begin_layout Plain Layout
42988 <cell alignment="center" valignment="top" usebox="none">
42991 \begin_layout Plain Layout
42995 \begin_layout Plain Layout
43008 \begin_layout Plain Layout
43016 \begin_inset Phantom Phantom
43019 \begin_layout Plain Layout
43029 \begin_layout Plain Layout
43043 <cell alignment="left" valignment="top" usebox="none">
43046 \begin_layout Plain Layout
43050 \begin_layout Plain Layout
43063 \begin_layout Plain Layout
43071 \begin_inset Phantom Phantom
43074 \begin_layout Plain Layout
43084 \begin_layout Plain Layout
43096 <cell alignment="left" valignment="top" usebox="none">
43099 \begin_layout Plain Layout
43103 \begin_layout Plain Layout
43116 \begin_layout Plain Layout
43124 \begin_inset Phantom Phantom
43127 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43149 <cell alignment="left" valignment="top" usebox="none">
43152 \begin_layout Plain Layout
43156 \begin_layout Plain Layout
43169 \begin_layout Plain Layout
43177 \begin_inset Phantom Phantom
43180 \begin_layout Plain Layout
43190 \begin_layout Plain Layout
43202 <cell alignment="left" valignment="top" usebox="none">
43205 \begin_layout Plain Layout
43209 \begin_layout Plain Layout
43222 \begin_layout Plain Layout
43230 \begin_inset Phantom Phantom
43233 \begin_layout Plain Layout
43243 \begin_layout Plain Layout
43257 <cell alignment="left" valignment="top" usebox="none">
43260 \begin_layout Plain Layout
43264 \begin_layout Plain Layout
43277 \begin_layout Plain Layout
43285 \begin_inset Phantom Phantom
43288 \begin_layout Plain Layout
43298 \begin_layout Plain Layout
43310 <cell alignment="left" valignment="top" usebox="none">
43313 \begin_layout Plain Layout
43317 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43338 \begin_inset Phantom Phantom
43341 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43363 <cell alignment="left" valignment="top" usebox="none">
43366 \begin_layout Plain Layout
43370 \begin_layout Plain Layout
43383 \begin_layout Plain Layout
43391 \begin_inset Phantom Phantom
43394 \begin_layout Plain Layout
43404 \begin_layout Plain Layout
43416 <cell alignment="left" valignment="top" usebox="none">
43419 \begin_layout Plain Layout
43423 \begin_layout Plain Layout
43436 \begin_layout Plain Layout
43444 \begin_inset Phantom Phantom
43447 \begin_layout Plain Layout
43457 \begin_layout Plain Layout
43471 <cell alignment="left" valignment="top" usebox="none">
43474 \begin_layout Plain Layout
43478 \begin_layout Plain Layout
43491 \begin_layout Plain Layout
43499 \begin_inset Phantom Phantom
43502 \begin_layout Plain Layout
43512 \begin_layout Plain Layout
43524 <cell alignment="left" valignment="top" usebox="none">
43527 \begin_layout Plain Layout
43531 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43552 \begin_inset Phantom Phantom
43555 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43577 <cell alignment="left" valignment="top" usebox="none">
43580 \begin_layout Plain Layout
43584 \begin_layout Plain Layout
43597 \begin_layout Plain Layout
43605 \begin_inset Phantom Phantom
43608 \begin_layout Plain Layout
43618 \begin_layout Plain Layout
43630 <cell alignment="left" valignment="top" usebox="none">
43633 \begin_layout Plain Layout
43637 \begin_layout Plain Layout
43650 \begin_layout Plain Layout
43658 \begin_inset Phantom Phantom
43661 \begin_layout Plain Layout
43671 \begin_layout Plain Layout
43685 <cell alignment="left" valignment="top" usebox="none">
43688 \begin_layout Plain Layout
43692 \begin_layout Plain Layout
43705 \begin_layout Plain Layout
43713 \begin_inset Phantom Phantom
43716 \begin_layout Plain Layout
43726 \begin_layout Plain Layout
43738 <cell alignment="left" valignment="top" usebox="none">
43741 \begin_layout Plain Layout
43745 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43766 \begin_inset Phantom Phantom
43769 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43791 <cell alignment="left" valignment="top" usebox="none">
43794 \begin_layout Plain Layout
43798 \begin_layout Plain Layout
43811 \begin_layout Plain Layout
43819 \begin_inset Phantom Phantom
43822 \begin_layout Plain Layout
43832 \begin_layout Plain Layout
43844 <cell alignment="left" valignment="top" usebox="none">
43847 \begin_layout Plain Layout
43851 \begin_layout Plain Layout
43864 \begin_layout Plain Layout
43872 \begin_inset Phantom Phantom
43875 \begin_layout Plain Layout
43885 \begin_layout Plain Layout
43899 <cell alignment="left" valignment="top" usebox="none">
43902 \begin_layout Plain Layout
43906 \begin_layout Plain Layout
43919 \begin_layout Plain Layout
43927 \begin_inset Phantom Phantom
43930 \begin_layout Plain Layout
43940 \begin_layout Plain Layout
43952 <cell alignment="left" valignment="top" usebox="none">
43955 \begin_layout Plain Layout
43959 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43980 \begin_inset Phantom Phantom
43983 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44005 <cell alignment="left" valignment="top" usebox="none">
44008 \begin_layout Plain Layout
44012 \begin_layout Plain Layout
44025 \begin_layout Plain Layout
44033 \begin_inset Phantom Phantom
44036 \begin_layout Plain Layout
44046 \begin_layout Plain Layout
44058 <cell alignment="left" valignment="top" usebox="none">
44061 \begin_layout Plain Layout
44065 \begin_layout Plain Layout
44078 \begin_layout Plain Layout
44086 \begin_inset Phantom Phantom
44089 \begin_layout Plain Layout
44099 \begin_layout Plain Layout
44113 <cell alignment="left" valignment="top" usebox="none">
44116 \begin_layout Plain Layout
44120 \begin_layout Plain Layout
44133 \begin_layout Plain Layout
44141 \begin_inset Phantom Phantom
44144 \begin_layout Plain Layout
44154 \begin_layout Plain Layout
44166 <cell alignment="left" valignment="top" usebox="none">
44169 \begin_layout Plain Layout
44173 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44194 \begin_inset Phantom Phantom
44197 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44219 <cell alignment="left" valignment="top" usebox="none">
44222 \begin_layout Plain Layout
44226 \begin_layout Plain Layout
44239 \begin_layout Plain Layout
44247 \begin_inset Phantom Phantom
44250 \begin_layout Plain Layout
44260 \begin_layout Plain Layout
44272 <cell alignment="left" valignment="top" usebox="none">
44275 \begin_layout Plain Layout
44279 \begin_layout Plain Layout
44292 \begin_layout Plain Layout
44300 \begin_inset Phantom Phantom
44303 \begin_layout Plain Layout
44313 \begin_layout Plain Layout
44327 <cell alignment="left" valignment="top" usebox="none">
44330 \begin_layout Plain Layout
44334 \begin_layout Plain Layout
44347 \begin_layout Plain Layout
44355 \begin_inset Phantom Phantom
44358 \begin_layout Plain Layout
44368 \begin_layout Plain Layout
44380 <cell alignment="left" valignment="top" usebox="none">
44383 \begin_layout Plain Layout
44387 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44408 \begin_inset Phantom Phantom
44411 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44433 <cell alignment="left" valignment="top" usebox="none">
44436 \begin_layout Plain Layout
44440 \begin_layout Plain Layout
44453 \begin_layout Plain Layout
44461 \begin_inset Phantom Phantom
44464 \begin_layout Plain Layout
44474 \begin_layout Plain Layout
44486 <cell alignment="left" valignment="top" usebox="none">
44489 \begin_layout Plain Layout
44493 \begin_layout Plain Layout
44506 \begin_layout Plain Layout
44514 \begin_inset Phantom Phantom
44517 \begin_layout Plain Layout
44527 \begin_layout Plain Layout
44541 <cell alignment="left" valignment="top" usebox="none">
44544 \begin_layout Plain Layout
44548 \begin_layout Plain Layout
44561 \begin_layout Plain Layout
44569 \begin_inset Phantom Phantom
44572 \begin_layout Plain Layout
44582 \begin_layout Plain Layout
44594 <cell alignment="left" valignment="top" usebox="none">
44597 \begin_layout Plain Layout
44601 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44622 \begin_inset Phantom Phantom
44625 \begin_layout Plain Layout
44635 \begin_layout Plain Layout
44647 <cell alignment="left" valignment="top" usebox="none">
44650 \begin_layout Plain Layout
44654 \begin_layout Plain Layout
44667 \begin_layout Plain Layout
44675 \begin_inset Phantom Phantom
44678 \begin_layout Plain Layout
44688 \begin_layout Plain Layout
44700 <cell alignment="left" valignment="top" usebox="none">
44703 \begin_layout Plain Layout
44707 \begin_layout Plain Layout
44720 \begin_layout Plain Layout
44728 \begin_inset Phantom Phantom
44731 \begin_layout Plain Layout
44741 \begin_layout Plain Layout
44755 <cell alignment="left" valignment="top" usebox="none">
44758 \begin_layout Plain Layout
44762 \begin_layout Plain Layout
44775 \begin_layout Plain Layout
44783 \begin_inset Phantom Phantom
44786 \begin_layout Plain Layout
44796 \begin_layout Plain Layout
44808 <cell alignment="left" valignment="top" usebox="none">
44811 \begin_layout Plain Layout
44815 \begin_layout Plain Layout
44828 \begin_layout Plain Layout
44836 \begin_inset Phantom Phantom
44839 \begin_layout Plain Layout
44849 \begin_layout Plain Layout
44861 <cell alignment="left" valignment="top" usebox="none">
44864 \begin_layout Plain Layout
44868 \begin_layout Plain Layout
44881 \begin_layout Plain Layout
44889 \begin_inset Phantom Phantom
44892 \begin_layout Plain Layout
44902 \begin_layout Plain Layout
44914 <cell alignment="left" valignment="top" usebox="none">
44917 \begin_layout Plain Layout
44921 \begin_layout Plain Layout
44934 \begin_layout Plain Layout
44942 \begin_inset Phantom Phantom
44945 \begin_layout Plain Layout
44955 \begin_layout Plain Layout
44969 <cell alignment="left" valignment="top" usebox="none">
44972 \begin_layout Plain Layout
44976 \begin_layout Plain Layout
44989 \begin_layout Plain Layout
44997 \begin_inset Phantom Phantom
45000 \begin_layout Plain Layout
45010 \begin_layout Plain Layout
45022 <cell alignment="left" valignment="top" usebox="none">
45025 \begin_layout Plain Layout
45031 <cell alignment="left" valignment="top" usebox="none">
45034 \begin_layout Plain Layout
45040 <cell alignment="left" valignment="top" usebox="none">
45043 \begin_layout Plain Layout
45057 \begin_layout Chapter
45058 Explanation of Equation
45059 \begin_inset space ~
45063 \begin_inset CommandInset ref
45070 \begin_inset CommandInset label
45072 name "cha:Explanation-of-Equation"
45079 \begin_layout Standard
45080 We can calculate the total width of
45085 \begin_inset Formula $W_{\mathrm{tot\, n}}$
45089 \begin_inset Formula
45091 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
45097 \begin_inset Formula $W_{g\, n}$
45100 is the given width of all cells,
45106 is the LaTeX-length between the cell text and the cell border (its default
45108 \begin_inset space \thinspace{}
45118 is the thickness of the cell border line, the default is 0.4
45119 \begin_inset space \thinspace{}
45125 \begin_layout Standard
45127 \begin_inset space ~
45131 \begin_inset CommandInset ref
45133 reference "eq:Wtot_n"
45137 , the total width of a multicolumn
45138 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
45142 \begin_inset Formula
45144 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45152 \begin_layout Standard
45153 By setting equation
45154 \begin_inset space ~
45158 \begin_inset CommandInset ref
45160 reference "eq:Wtot_n"
45165 \begin_inset CommandInset ref
45167 reference "eq:Wtot_mult"
45171 equal we can calculate the needed given width
45172 \begin_inset Formula $W_{g\, n}$
45179 columns are spanned, so that each column has a total width of
45180 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
45184 \begin_inset Formula
45186 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45194 \begin_layout Bibliography
45195 \begin_inset CommandInset bibitem
45196 LatexCommand bibitem
45197 key "latexcompanion"
45201 Frank Mittelbach and Michel Goossens:
45203 The LaTeX Companion Second Edition.
45206 Addison-Wesley, 2004
45209 \begin_layout Bibliography
45210 \begin_inset CommandInset bibitem
45211 LatexCommand bibitem
45216 Helmut Kopka and Patrick W.
45219 A Guide to LaTeX Fourth Edition.
45222 Addison-Wesley, 2003
45225 \begin_layout Bibliography
45226 \begin_inset CommandInset bibitem
45227 LatexCommand bibitem
45234 LaTeX: A Document Preparation System.
45237 Addison-Wesley, second edition, 1994
45240 \begin_layout Bibliography
45241 \begin_inset CommandInset bibitem
45242 LatexCommand bibitem
45247 Documentation of the LaTeX-package
45250 \begin_inset CommandInset href
45253 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45260 \begin_inset Index idx
45263 \begin_layout Plain Layout
45264 LaTeX-packages ! arydshln
45272 \begin_layout Bibliography
45273 \begin_inset CommandInset bibitem
45274 LatexCommand bibitem
45279 Documentation of the LaTeX-package
45282 \begin_inset CommandInset href
45285 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45292 \begin_inset Index idx
45295 \begin_layout Plain Layout
45296 LaTeX-packages ! booktabs
45304 \begin_layout Bibliography
45305 \begin_inset CommandInset bibitem
45306 LatexCommand bibitem
45311 Documentation of the LaTeX-package
45314 \begin_inset CommandInset href
45317 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45324 \begin_inset Index idx
45327 \begin_layout Plain Layout
45328 LaTeX-packages ! caption
45336 \begin_layout Bibliography
45337 \begin_inset CommandInset bibitem
45338 LatexCommand bibitem
45343 Documentation of the LaTeX-package
45346 \begin_inset CommandInset href
45349 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45356 \begin_inset Index idx
45359 \begin_layout Plain Layout
45360 LaTeX-packages ! diagbox
45368 \begin_layout Bibliography
45369 \begin_inset CommandInset bibitem
45370 LatexCommand bibitem
45375 Documentation of the LaTeX-package
45378 \begin_inset CommandInset href
45381 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45388 \begin_inset Index idx
45391 \begin_layout Plain Layout
45392 LaTeX-packages ! endfloat
45400 \begin_layout Bibliography
45401 \begin_inset CommandInset bibitem
45402 LatexCommand bibitem
45407 Documentation of the LaTeX-package
45410 \begin_inset CommandInset href
45413 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45420 \begin_inset Index idx
45423 \begin_layout Plain Layout
45424 LaTeX-packages ! footmisc
45432 \begin_layout Bibliography
45433 \begin_inset CommandInset bibitem
45434 LatexCommand bibitem
45439 Documentation of the LaTeX-package
45442 \begin_inset CommandInset href
45445 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45452 \begin_inset Index idx
45455 \begin_layout Plain Layout
45456 LaTeX-packages ! hyperref
45464 \begin_layout Bibliography
45465 \begin_inset CommandInset bibitem
45466 LatexCommand bibitem
45471 Documentation of the LaTeX-package
45474 \begin_inset CommandInset href
45477 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45484 \begin_inset Index idx
45487 \begin_layout Plain Layout
45488 LaTeX-packages ! hyperref
45496 \begin_layout Bibliography
45497 \begin_inset CommandInset bibitem
45498 LatexCommand bibitem
45503 Documentation of the LaTeX-package
45506 \begin_inset CommandInset href
45509 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf"
45516 \begin_inset Index idx
45519 \begin_layout Plain Layout
45520 LaTeX-packages ! KOMA-Script
45528 \begin_layout Bibliography
45529 \begin_inset CommandInset bibitem
45530 LatexCommand bibitem
45535 Documentation of the LaTeX-package
45538 \begin_inset CommandInset href
45541 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45548 \begin_inset CommandInset href
45551 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45556 \begin_inset Index idx
45559 \begin_layout Plain Layout
45560 LaTeX-packages ! lettrine
45568 \begin_layout Bibliography
45569 \begin_inset CommandInset bibitem
45570 LatexCommand bibitem
45575 Documentation of the LaTeX-package
45578 \begin_inset CommandInset href
45581 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45588 \begin_inset Index idx
45591 \begin_layout Plain Layout
45592 LaTeX-packages ! listings
45600 \begin_layout Bibliography
45601 \begin_inset CommandInset bibitem
45602 LatexCommand bibitem
45607 Documentation of the LaTeX-package
45610 \begin_inset CommandInset href
45613 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45620 \begin_inset Index idx
45623 \begin_layout Plain Layout
45624 LaTeX-packages ! marginnote
45632 \begin_layout Bibliography
45633 \begin_inset CommandInset bibitem
45634 LatexCommand bibitem
45639 Documentation of the LaTeX-package
45642 \begin_inset CommandInset href
45645 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45652 \begin_inset Index idx
45655 \begin_layout Plain Layout
45656 LaTeX-packages ! pdfpages
45664 \begin_layout Bibliography
45665 \begin_inset CommandInset bibitem
45666 LatexCommand bibitem
45671 Documentation of the LaTeX-package
45674 \begin_inset CommandInset href
45677 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45684 \begin_inset Index idx
45687 \begin_layout Plain Layout
45688 LaTeX-packages ! prettyref
45696 \begin_layout Bibliography
45697 \begin_inset CommandInset bibitem
45698 LatexCommand bibitem
45703 Web page of the LaTeX-package
45706 \begin_inset CommandInset href
45709 target "http://tug.org/PSTricks/"
45716 \begin_inset Index idx
45719 \begin_layout Plain Layout
45720 LaTeX-packages ! PSTricks
45728 \begin_layout Bibliography
45729 \begin_inset CommandInset bibitem
45730 LatexCommand bibitem
45735 Documentation of the LaTeX-package
45738 \begin_inset CommandInset href
45741 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45748 \begin_inset Index idx
45751 \begin_layout Plain Layout
45752 LaTeX-packages ! refstyle
45760 \begin_layout Bibliography
45761 \begin_inset CommandInset bibitem
45762 LatexCommand bibitem
45767 Documentation of the LaTeX-package
45770 \begin_inset CommandInset href
45773 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45780 \begin_inset Index idx
45783 \begin_layout Plain Layout
45784 LaTeX-packages ! sidecap
45792 \begin_layout Bibliography
45793 \begin_inset CommandInset bibitem
45794 LatexCommand bibitem
45800 \begin_inset CommandInset href
45803 target "http://wiki.lyx.org/LyX/NewInLyX20"
45807 about new features in
45814 \begin_layout Standard
45815 \begin_inset CommandInset index_print
45816 LatexCommand printindex