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, insert a caption with the TeX-Code command
7702 \begin_layout Standard
7707 caption*{caption text}
7714 \begin_layout Standard
7715 in a dummy caption row that is marked as a header.
7717 \begin_inset space ~
7721 \begin_inset CommandInset ref
7723 reference "tab:DiffCaptions"
7727 is an example of a longtable with different heading where the second caption
7728 doesn't include the table number.
7731 \begin_layout Standard
7733 \begin_inset Tabular
7734 <lyxtabular version="3" rows="59" columns="3">
7735 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7736 <column alignment="left" valignment="top" width="0cm">
7737 <column alignment="left" valignment="top" width="0pt">
7738 <column alignment="center" valignment="top" width="0pt">
7739 <row endfirsthead="true" caption="true">
7740 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7743 \begin_layout Plain Layout
7744 \begin_inset Caption Standard
7746 \begin_layout Plain Layout
7748 \begin_inset CommandInset label
7750 name "tab:DiffCaptions"
7755 \begin_inset Argument 1
7758 \begin_layout Plain Layout
7774 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7777 \begin_layout Plain Layout
7783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7786 \begin_layout Plain Layout
7793 <row endfirsthead="true">
7794 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7797 \begin_layout Plain Layout
7800 Example Phone List (ignore the names)
7805 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7808 \begin_layout Plain Layout
7814 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7817 \begin_layout Plain Layout
7824 <row endfirsthead="true">
7825 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7828 \begin_layout Plain Layout
7836 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7839 \begin_layout Plain Layout
7845 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7848 \begin_layout Plain Layout
7857 <row endhead="true">
7858 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7861 \begin_layout Plain Layout
7865 \begin_layout Plain Layout
7869 caption*{Continued Example Phone List}
7883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7886 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7895 \begin_layout Plain Layout
7902 <row endhead="true">
7903 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7906 \begin_layout Plain Layout
7914 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7917 \begin_layout Plain Layout
7923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7926 \begin_layout Plain Layout
7933 <row endhead="true">
7934 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7937 \begin_layout Plain Layout
7945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7948 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7957 \begin_layout Plain Layout
7966 <row endfoot="true">
7967 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7970 \begin_layout Plain Layout
7971 continued on next page
7976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7979 \begin_layout Plain Layout
7985 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7999 \begin_layout Plain Layout
8007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8010 \begin_layout Plain Layout
8016 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8030 \begin_layout Plain Layout
8038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8041 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8061 \begin_layout Plain Layout
8069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8072 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8092 \begin_layout Plain Layout
8100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8103 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8123 \begin_layout Plain Layout
8131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8134 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8422 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8433 \begin_layout Plain Layout
8442 \begin_layout Plain Layout
8453 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8456 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8476 \begin_layout Plain Layout
8484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8487 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8507 \begin_layout Plain Layout
8515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8518 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8538 \begin_layout Plain Layout
8546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8549 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8569 \begin_layout Plain Layout
8577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8580 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8600 \begin_layout Plain Layout
8608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8611 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8631 \begin_layout Plain Layout
8639 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8642 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8662 \begin_layout Plain Layout
8670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8673 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8693 \begin_layout Plain Layout
8701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8704 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8724 \begin_layout Plain Layout
8732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8735 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8755 \begin_layout Plain Layout
8763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8766 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8786 \begin_layout Plain Layout
8794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8797 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8817 \begin_layout Plain Layout
8825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8828 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8848 \begin_layout Plain Layout
8856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8859 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8879 \begin_layout Plain Layout
8887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8890 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8910 \begin_layout Plain Layout
8918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8921 \begin_layout Plain Layout
8927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8930 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8941 \begin_layout Plain Layout
8949 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8952 \begin_layout Plain Layout
8958 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8961 \begin_layout Plain Layout
8969 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8972 \begin_layout Plain Layout
8978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8981 \begin_layout Plain Layout
8987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9001 \begin_layout Plain Layout
9009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9012 \begin_layout Plain Layout
9018 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9032 \begin_layout Plain Layout
9040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9043 \begin_layout Plain Layout
9049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9063 \begin_layout Plain Layout
9071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9074 \begin_layout Plain Layout
9080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9094 \begin_layout Plain Layout
9102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9105 \begin_layout Plain Layout
9111 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9125 \begin_layout Plain Layout
9133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9136 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9156 \begin_layout Plain Layout
9164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9167 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9187 \begin_layout Plain Layout
9195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9198 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9218 \begin_layout Plain Layout
9226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9229 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9249 \begin_layout Plain Layout
9257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9260 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9280 \begin_layout Plain Layout
9288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9291 \begin_layout Plain Layout
9297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9311 \begin_layout Plain Layout
9319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9322 \begin_layout Plain Layout
9328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9342 \begin_layout Plain Layout
9350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9353 \begin_layout Plain Layout
9359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9373 \begin_layout Plain Layout
9381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9384 \begin_layout Plain Layout
9390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9404 \begin_layout Plain Layout
9412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9415 \begin_layout Plain Layout
9421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9435 \begin_layout Plain Layout
9443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9446 \begin_layout Plain Layout
9452 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9466 \begin_layout Plain Layout
9474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9477 \begin_layout Plain Layout
9483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9497 \begin_layout Plain Layout
9505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9508 \begin_layout Plain Layout
9514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9528 \begin_layout Plain Layout
9536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9539 \begin_layout Plain Layout
9545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9559 \begin_layout Plain Layout
9567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9570 \begin_layout Plain Layout
9576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9579 \begin_layout Plain Layout
9587 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9590 \begin_layout Plain Layout
9598 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9601 \begin_layout Plain Layout
9607 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9610 \begin_layout Plain Layout
9624 \begin_layout Section
9625 Special Longtable Issues
9626 \begin_inset CommandInset label
9628 name "sec:Special-Longtable-Issues"
9635 \begin_layout Subsection
9636 Longtable Calculation
9637 \begin_inset Index idx
9640 \begin_layout Plain Layout
9641 Longtables ! Calculation
9649 \begin_layout Standard
9650 LaTeX calculates the height of table pages and their page breaks using so
9652 Chunks are parts of tables that held at the same time in LaTeX's memory.
9653 The default value was historically set to only 20 table rows.
9654 If you are using longtables with many pages this may slow down the creation
9656 You can safely increase the chunk size to values of 100-1000 by adding
9657 this command line to your document preamble:
9660 \begin_layout Standard
9665 setcounter{LTchunksize}{100}
9668 \begin_layout Subsection
9669 Floats and Longtables
9670 \begin_inset Index idx
9673 \begin_layout Plain Layout
9682 \begin_layout Standard
9683 There might be problems when a float appears on the same page where a longtable
9685 To avoid such a situation, insert a
9686 \begin_inset Quotes eld
9690 \begin_inset Quotes erd
9695 Insert\SpecialChar \menuseparator
9696 Formatting\SpecialChar \menuseparator
9698 \begin_inset space ~
9703 ) before your longtable.
9706 \begin_layout Subsection
9708 \begin_inset Index idx
9711 \begin_layout Plain Layout
9712 Longtables ! Forced Page Breaks
9720 \begin_layout Standard
9721 By default tables are only broken between rows.
9722 If you have a cell with multiples lines and want to have a page break within
9723 the cell, insert the new line command
9724 \begin_inset Quotes eld
9736 \begin_inset Quotes erd
9739 as TeX-Code at the point of the cell where it can be broken.
9748 command you have to insert in TeX-Code as many
9749 \begin_inset Quotes eld
9757 \begin_inset Quotes erd
9760 characters as the number of the following table columns.
9765 is the character to separate table cells.
9766 Write in TeX-Code after each
9770 the content of the corresponding following cell and delete the content
9772 \begin_inset Newline newline
9783 command, insert as many
9787 characters as the number of table columns before the current column.
9789 \begin_inset space ~
9793 \begin_inset CommandInset ref
9795 reference "tab:ForcedPagebreak"
9799 the cell that should be broken is in the second column followed by another
9801 Therefore the following command was inserted in the cell as TeX-Code after
9803 \begin_inset Quotes eld
9811 \begin_inset Quotes erd
9817 \begin_layout Standard
9827 \begin_inset Newline newline
9833 \begin_layout Standard
9835 \begin_inset Quotes eld
9839 \begin_inset Quotes erd
9842 in the third column of the row was deleted.
9849 is only needed when a page break should definitely occur at this position,
9850 otherwise it would be a conditional break.
9851 If your footer row of the longtable has for a certain reason no upper line
9852 but you would have a horizontal line where the cell is broken, use this
9856 \begin_layout Standard
9864 \begin_inset Newline newline
9872 \begin_layout Standard
9873 When the cell to be broken is in the last column, the command
9876 \begin_layout Standard
9886 \begin_layout Standard
9887 must be inserted as TeX-Code at the beginning of the cell.
9888 This ensures that the part of the cell that will be displayed on the new
9889 page appears with the full width.
9892 \begin_layout Standard
9894 \begin_inset Tabular
9895 <lyxtabular version="3" rows="38" columns="3">
9896 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9897 <column alignment="left" valignment="top" width="0cm">
9898 <column alignment="left" valignment="top" width="3cm">
9899 <column alignment="center" valignment="top" width="0pt">
9900 <row endfirsthead="true" caption="true">
9901 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9904 \begin_layout Plain Layout
9905 \begin_inset Caption Standard
9907 \begin_layout Plain Layout
9908 Table with forced page break in table cell
9909 \begin_inset CommandInset label
9911 name "tab:ForcedPagebreak"
9916 \begin_inset Argument 1
9919 \begin_layout Plain Layout
9920 Table with forced page break in table cell
9935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9954 <row endfirsthead="true">
9955 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9961 Example Phone List (ignore the names)
9966 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9978 \begin_layout Plain Layout
9985 <row endfirsthead="true">
9986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9989 \begin_layout Plain Layout
9997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10000 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10009 \begin_layout Plain Layout
10018 <row endhead="true">
10019 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10022 \begin_layout Plain Layout
10026 \begin_layout Plain Layout
10030 caption*{Continued Example Phone List}
10044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10063 <row endhead="true">
10064 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10067 \begin_layout Plain Layout
10075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10078 \begin_layout Plain Layout
10084 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10087 \begin_layout Plain Layout
10094 <row endhead="true">
10095 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10098 \begin_layout Plain Layout
10106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10109 \begin_layout Plain Layout
10115 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10118 \begin_layout Plain Layout
10127 <row endfoot="true">
10128 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10131 \begin_layout Plain Layout
10132 continued on next page
10137 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10140 \begin_layout Plain Layout
10146 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10160 \begin_layout Plain Layout
10168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10171 \begin_layout Plain Layout
10177 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10191 \begin_layout Plain Layout
10199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10202 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10222 \begin_layout Plain Layout
10230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10233 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10253 \begin_layout Plain Layout
10261 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10264 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10284 \begin_layout Plain Layout
10292 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10295 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10315 \begin_layout Plain Layout
10323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10326 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10346 \begin_layout Plain Layout
10354 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10357 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10377 \begin_layout Plain Layout
10385 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10388 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10408 \begin_layout Plain Layout
10416 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10419 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10439 \begin_layout Plain Layout
10447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10450 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10470 \begin_layout Plain Layout
10478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10481 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10501 \begin_layout Plain Layout
10509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10512 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10532 \begin_layout Plain Layout
10540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10543 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10563 \begin_layout Plain Layout
10571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10574 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10594 \begin_layout Plain Layout
10602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10605 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10625 \begin_layout Plain Layout
10633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10636 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10656 \begin_layout Plain Layout
10664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10667 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10687 \begin_layout Plain Layout
10695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10698 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10718 \begin_layout Plain Layout
10726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10729 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10749 \begin_layout Plain Layout
10757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10760 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10780 \begin_layout Plain Layout
10788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10791 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10811 \begin_layout Plain Layout
10819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10831 \begin_layout Plain Layout
10839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10842 \begin_layout Plain Layout
10850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10853 \begin_layout Plain Layout
10855 Fürst von Montecompatri, 11.
10856 Fürst von Sulmona und Vivaro, 10.
10857 Fürst von Rossano, 5.
10858 Herzog von Canemorte, 11.
10859 Herzog von Palombara, 5.
10860 Herzog von Castelchiodato,
10864 \begin_layout Plain Layout
10875 \begin_layout Plain Layout
10883 Herzog von Poggionativo, 11.
10884 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10885 Graf von Valinfreda, 11.
10886 Baron von Cropalati, 11.
10887 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10895 \begin_layout Plain Layout
10903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10906 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10926 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10937 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10948 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10979 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10988 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10999 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11030 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11041 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11050 \begin_layout Plain Layout
11058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11061 \begin_layout Plain Layout
11069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11072 \begin_layout Plain Layout
11078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11081 \begin_layout Plain Layout
11089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11092 \begin_layout Plain Layout
11100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11103 \begin_layout Plain Layout
11109 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11112 \begin_layout Plain Layout
11120 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11131 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11134 \begin_layout Plain Layout
11140 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11143 \begin_layout Plain Layout
11157 \begin_layout Section
11158 Multiple Lines, Columns and Rows
11161 \begin_layout Subsection
11162 Multiple Lines in Table Cells
11163 \begin_inset CommandInset label
11165 name "sub:Multiple-Lines-in"
11170 \begin_inset Index idx
11173 \begin_layout Plain Layout
11174 Multiple Lines in Table Cells
11180 \begin_inset Index idx
11183 \begin_layout Plain Layout
11192 \begin_layout Standard
11194 \begin_inset Float table
11200 \begin_layout Plain Layout
11201 \begin_inset Caption Standard
11203 \begin_layout Plain Layout
11204 \begin_inset CommandInset label
11206 name "tab:Table-with-multiple"
11210 Table with multiple lines in cells
11218 \begin_layout Plain Layout
11220 \begin_inset Tabular
11221 <lyxtabular version="3" rows="3" columns="3">
11222 <features rotate="0" tabularvalignment="middle">
11223 <column alignment="center" valignment="middle" width="2.5cm">
11224 <column alignment="center" valignment="middle">
11225 <column alignment="center" valignment="middle">
11227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11230 \begin_layout Plain Layout
11232 \begin_inset Newline linebreak
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11243 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11252 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11263 \begin_layout Plain Layout
11269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11272 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11281 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11292 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11310 \begin_layout Plain Layout
11329 \begin_layout Standard
11330 Setting a fixed width for a column enables you to enter text as a paragraph
11331 with multiple lines and hyphenation.
11334 \begin_layout Standard
11336 \begin_inset space ~
11340 \begin_inset CommandInset ref
11342 reference "tab:Table-with-multiple"
11346 , create a 3×3 table, mark the first cell and right-click on it.
11347 In the appearing table dialog we set a cell width of 2.5
11348 \begin_inset space \thinspace{}
11351 cm and choose centered for the vertical and horizontal alignment.
11352 The vertical alignment is used for all cells of the row.
11353 As our text is smaller than 2.5
11354 \begin_inset space \thinspace{}
11357 cm, only one line will appear.
11358 To get two lines, a justified line break (shortcut
11361 arg "newline-insert linebreak"
11365 If the text is wider than the set cell width, it will automatically be
11366 broken to several lines.
11369 \begin_layout Standard
11370 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11371 by LaTeX if it is the first entry.
11372 Therefore you need to insert something to prevent the word not being the
11374 So add a horizontal space of 0
11375 \begin_inset space \thinspace{}
11378 pt before the word.
11379 As the space is zero, it doesn't change the output.
11381 \begin_inset space ~
11385 \begin_inset CommandInset ref
11387 reference "tab:Table-with-and"
11394 \begin_layout Standard
11395 \begin_inset Float table
11401 \begin_layout Plain Layout
11402 \begin_inset Caption Standard
11404 \begin_layout Plain Layout
11405 \begin_inset CommandInset label
11407 name "tab:Table-with-and"
11411 Table with and without hyphenation
11419 \begin_layout Plain Layout
11420 \begin_inset space \hfill{}
11424 \begin_inset Tabular
11425 <lyxtabular version="3" rows="3" columns="3">
11426 <features rotate="0" tabularvalignment="middle">
11427 <column alignment="center" valignment="middle" width="2.5cm">
11428 <column alignment="center" valignment="middle">
11429 <column alignment="center" valignment="middle">
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11435 verylongtablecellword
11440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11443 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11452 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11510 \begin_layout Plain Layout
11522 \begin_inset space \hfill{}
11526 \begin_inset Tabular
11527 <lyxtabular version="3" rows="3" columns="3">
11528 <features rotate="0" tabularvalignment="middle">
11529 <column alignment="center" valignment="middle" width="2.5cm">
11530 <column alignment="center" valignment="middle">
11531 <column alignment="center" valignment="middle">
11533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11536 \begin_layout Plain Layout
11537 \begin_inset space \hspace{}
11541 verylongtablecellword
11546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11549 \begin_layout Plain Layout
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11558 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11569 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11578 \begin_layout Plain Layout
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11587 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11598 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11607 \begin_layout Plain Layout
11613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11616 \begin_layout Plain Layout
11628 \begin_inset space \hfill{}
11639 \begin_layout Subsection
11641 \begin_inset CommandInset label
11643 name "sub:Multicolumns"
11648 \begin_inset Index idx
11651 \begin_layout Plain Layout
11658 \begin_inset Index idx
11661 \begin_layout Plain Layout
11662 Table ! Multicolumns
11670 \begin_layout Subsubsection
11674 \begin_layout Standard
11675 To merge cells over multiple columns, select as many cells within a row
11676 as you want to merge and use either the table-toolbar button
11679 arg "inset-modify tabular multicolumn"
11684 Edit\SpecialChar \menuseparator
11685 Table\SpecialChar \menuseparator
11688 , or right click on the marked cells and choose
11692 in the context menu.
11695 \begin_layout Standard
11696 Multicolumns have there own cell settings.
11697 That means changing cell borders, cell alignment, and the width only affects
11699 Here is an example table with a multicolumn cell in the first row and one
11700 in the last row without the upper border:
11703 \begin_layout Standard
11705 \begin_inset Tabular
11706 <lyxtabular version="3" rows="3" columns="4">
11707 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11708 <column alignment="center" valignment="top" width="0pt">
11709 <column alignment="center" valignment="middle">
11710 <column alignment="center" valignment="top" width="0in">
11711 <column alignment="center" valignment="top" width="0pt">
11713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11716 \begin_layout Plain Layout
11722 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11731 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11734 \begin_layout Plain Layout
11740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11743 \begin_layout Plain Layout
11751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11781 \begin_layout Plain Layout
11787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11790 \begin_layout Plain Layout
11798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11801 \begin_layout Plain Layout
11807 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11828 \begin_layout Plain Layout
11842 \begin_layout Subsubsection
11843 Multicolumn Calculations
11844 \begin_inset CommandInset label
11846 name "sub:Multicolumn-Calculations"
11851 \begin_inset Index idx
11854 \begin_layout Plain Layout
11855 Multicolumns ! Calculations
11863 \begin_layout Standard
11864 LyX supports multicolumns directly, but we have to take account of the cell
11865 width of the columns spanned by the multicolumn cell.
11868 \begin_layout Standard
11869 \begin_inset Float table
11875 \begin_layout Plain Layout
11876 \begin_inset Caption Standard
11878 \begin_layout Plain Layout
11879 \begin_inset CommandInset label
11881 name "tab:Table-with-centered"
11885 Table with centered multicolumn text above two columns that have exactly
11886 half the width of the multicolumn cell
11887 \begin_inset Argument 1
11890 \begin_layout Plain Layout
11891 Perfect multicolumn table
11904 \begin_layout Plain Layout
11906 \begin_inset Tabular
11907 <lyxtabular version="3" rows="3" columns="3">
11908 <features rotate="0" tabularvalignment="middle">
11909 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11910 <column alignment="center" valignment="middle">
11911 <column alignment="center" valignment="top">
11913 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11916 \begin_layout Plain Layout
11917 multiple lines multicolumn
11922 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11925 \begin_layout Plain Layout
11931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11934 \begin_layout Plain Layout
11942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11945 \begin_layout Plain Layout
11951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11954 \begin_layout Plain Layout
11960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11963 \begin_layout Plain Layout
11971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11974 \begin_layout Plain Layout
11980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11983 \begin_layout Plain Layout
11989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11992 \begin_layout Plain Layout
12011 \begin_layout Standard
12012 To create for example Table
12013 \begin_inset space ~
12017 \begin_inset CommandInset ref
12019 reference "tab:Table-with-centered"
12023 , mark the first two cells in the first row of a 3×3 table and right-click
12025 Now choose for this cell
12034 \begin_inset space \thinspace{}
12037 cm in the table dialog.
12038 The merged columns should have exactly half the width of the multicolumn
12039 cell, so that you would set a width of 1.25
12040 \begin_inset space \thinspace{}
12043 cm for the first column.
12044 The second column has then automatically a width of 1.25
12045 \begin_inset space \thinspace{}
12048 cm (multicolumn width - width of first column).
12049 This was done for Table
12050 \begin_inset space ~
12054 \begin_inset CommandInset ref
12056 reference "tab:Table-without-half"
12063 \begin_layout Standard
12064 \begin_inset Float table
12069 \begin_layout Plain Layout
12070 \begin_inset Caption Standard
12072 \begin_layout Plain Layout
12073 \begin_inset CommandInset label
12075 name "tab:Table-without-half"
12079 Table where the spanned table columns are not exactly half the width of
12080 the multicolumn cell
12081 \begin_inset Argument 1
12084 \begin_layout Plain Layout
12085 Imperfect multicolumn table
12098 \begin_layout Plain Layout
12100 \begin_inset Tabular
12101 <lyxtabular version="3" rows="3" columns="3">
12102 <features rotate="0" tabularvalignment="middle">
12103 <column alignment="center" valignment="top" width="1.25cm">
12104 <column alignment="center" valignment="top">
12105 <column alignment="center" valignment="top">
12107 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12110 \begin_layout Plain Layout
12111 multiple lines multicolumn
12116 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12119 \begin_layout Plain Layout
12125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12128 \begin_layout Plain Layout
12136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12139 \begin_layout Plain Layout
12145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12148 \begin_layout Plain Layout
12154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12157 \begin_layout Plain Layout
12165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12168 \begin_layout Plain Layout
12174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12177 \begin_layout Plain Layout
12183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12186 \begin_layout Plain Layout
12205 \begin_layout Standard
12206 You can see that the first column is not half the width of the multicolumn
12207 cell, it is a bit bigger.
12208 The reason is that the specified width of a cell
12209 \begin_inset Formula $W_{g}$
12212 is not its total width
12213 \begin_inset Formula $W_{\mathrm{tot}}$
12216 because a cell is always a bit larger than specified.
12218 \begin_inset space ~
12222 \begin_inset CommandInset ref
12224 reference "cha:Explanation-of-Equation"
12228 explains this in detail.
12231 \begin_layout Standard
12233 \begin_inset Formula $W_{g\, n}$
12236 which the user needs to set when
12240 columns are spanned can be calculated, so that each column has a total
12242 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12246 \begin_inset Formula
12248 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12256 \begin_layout Standard
12257 In our case we have
12258 \begin_inset Formula $n=2$
12262 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12265 cm and the default values for the lengths, so that equation
12266 \begin_inset CommandInset ref
12273 \begin_inset Formula
12275 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12283 \begin_layout Standard
12284 To enable calculations in LaTeX, the LaTeX-package
12288 must be loaded with the document preamble line
12289 \begin_inset Index idx
12292 \begin_layout Plain Layout
12293 LaTeX-packages ! calc
12301 \begin_layout Standard
12309 \begin_layout Standard
12310 LyX does not allow you to calculate lengths in the
12314 field of the table dialog.
12315 Therefore you have to format the column by inserting a LaTeX-argument in
12317 Here is an overview about the arguments:
12320 \begin_layout Itemize
12325 creates cell with a fixed width, its text is vertically top-aligned
12328 \begin_layout Itemize
12333 creates cell with a fixed width, its text is vertically centered
12336 \begin_layout Itemize
12341 creates cell with a fixed width, its text is vertically bottom-aligned
12344 \begin_layout Standard
12345 By entering a LaTeX-argument, all cell settings set in the table dialog
12349 \begin_layout Standard
12350 \begin_inset Note Greyedout
12353 \begin_layout Plain Layout
12358 Due to a bug, LyX shows the overwritten settings anyway.
12366 \begin_layout Standard
12367 As the text should be horizontally centered, the command
12374 You can now enter the following LaTeX-argument for the first spanned column:
12377 \begin_layout Standard
12382 centering}m{1.25cm-6.2pt}
12385 \begin_layout Standard
12390 means, that the commands inside the braces are applied before the cell
12394 \begin_layout Standard
12395 Although we have chosen centered alignment for the text of the multicolumn
12396 cell, it is still left aligned.
12397 This is because LyX only applies the alignment to single columns.
12398 So for the multicolumn cell we have to use the LaTeX-argument
12401 \begin_layout Standard
12409 \begin_layout Subsection
12411 \begin_inset CommandInset label
12413 name "sub:Multirows"
12418 \begin_inset Index idx
12421 \begin_layout Plain Layout
12428 \begin_inset Index idx
12431 \begin_layout Plain Layout
12440 \begin_layout Standard
12441 To merge cells over multiple rows, select as many cells within a column
12442 as you want to merge and use either the table-toolbar button
12445 arg "inset-modify tabular multirow"
12450 Edit\SpecialChar \menuseparator
12451 Table\SpecialChar \menuseparator
12454 , or right click on the marked cells and choose
12458 in the context menu.
12461 \begin_layout Standard
12462 Here is an example table with a multirow in the first column:
12465 \begin_layout Standard
12467 \begin_inset Tabular
12468 <lyxtabular version="3" rows="3" columns="3">
12469 <features rotate="0" tabularvalignment="middle">
12470 <column alignment="center" valignment="top" width="0pt">
12471 <column alignment="center" valignment="top">
12472 <column alignment="center" valignment="top">
12474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12477 \begin_layout Plain Layout
12483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12486 \begin_layout Plain Layout
12492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12495 \begin_layout Plain Layout
12503 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12524 \begin_layout Plain Layout
12532 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12535 \begin_layout Plain Layout
12541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12544 \begin_layout Plain Layout
12550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12553 \begin_layout Plain Layout
12567 \begin_layout Standard
12568 The width of multirow cells is set by setting the width and alignment for
12574 shifts the content of the multirow up/down if the offset is positive/negative.
12577 \begin_layout Standard
12578 If the column of a multirow cell has no explicit width, the multirow cell
12579 inherits the alignment of the column.
12580 Otherwise it is by default left-aligned.
12581 To override the default, renew the command
12590 \begin_layout Standard
12602 \begin_layout Standard
12603 in the document preamble.
12604 Then all entries of multirow cells in the document are centered.
12605 If centering is only needed for several tables, you can renew the command
12606 in a TeX-Code box just before the table instead of the preamble.
12607 If the text should be right-aligned, replace
12620 To return to left-alignment
12629 \begin_layout Standard
12630 This is an example table with a right-aligned multirow cell that has a vertical
12632 \begin_inset space \thinspace{}
12636 \begin_inset space \thinspace{}
12642 \begin_layout Standard
12648 \begin_layout Plain Layout
12662 \begin_inset Tabular
12663 <lyxtabular version="3" rows="4" columns="3">
12664 <features rotate="0" tabularvalignment="middle">
12665 <column alignment="center" valignment="top" width="3cm">
12666 <column alignment="center" valignment="top">
12667 <column alignment="center" valignment="top">
12669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12672 \begin_layout Plain Layout
12678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12681 \begin_layout Plain Layout
12687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12690 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12701 \begin_layout Plain Layout
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12710 \begin_layout Plain Layout
12716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12719 \begin_layout Plain Layout
12727 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12730 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12739 \begin_layout Plain Layout
12745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12748 \begin_layout Plain Layout
12756 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12777 \begin_layout Plain Layout
12792 \begin_layout Plain Layout
12808 \begin_layout Standard
12809 To start a new line in a multirow you can use a forced line break (shortcut
12813 arg "newline-insert newline"
12816 ) but this will not respect the cell lines as demonstrated in this table:
12819 \begin_layout Standard
12822 \begin_inset Tabular
12823 <lyxtabular version="3" rows="3" columns="2">
12824 <features rotate="0" tabularvalignment="middle">
12825 <column alignment="left" valignment="middle" width="2cm">
12826 <column alignment="center" valignment="top">
12828 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12831 \begin_layout Plain Layout
12833 \begin_inset Newline newline
12837 \begin_inset Newline newline
12845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12848 \begin_layout Plain Layout
12856 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12859 \begin_layout Plain Layout
12865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12868 \begin_layout Plain Layout
12876 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12879 \begin_layout Plain Layout
12885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12888 \begin_layout Plain Layout
12902 \begin_layout Standard
12903 Therefore be careful with forced line breaks.
12906 \begin_layout Subsection
12907 Cells with diagonal line(s)
12910 \begin_layout Standard
12911 To tell the reader what is meant by column and row headings in a table,
12912 it is helpful to split the first cell of the table by one or two diagonal
12914 This can be achieved by loading the LaTeX-package
12919 \begin_inset Index idx
12922 \begin_layout Plain Layout
12923 LaTeX-packages ! picinpar
12928 in the document preamble.
12929 The package provides the command
12935 that is inserted as TeX-Code and that can take 2 or 3
12936 \begin_inset space ~
12942 \begin_layout Standard
12947 diagbox[options]{lower left}{upper right}
12950 \begin_layout Standard
12955 diagbox[options]{lower left}{upper left}{upper right}
12958 \begin_layout Standard
12959 The first scheme divides the cell by a single diagonal line and the arguments
12960 are placed below and above this line.
12961 The second scheme divides the cell by 2
12962 \begin_inset space ~
12968 \begin_layout Standard
12972 \begin_layout Plain Layout
12982 \begin_inset Note Note
12985 \begin_layout Plain Layout
12986 The following section will only be displayed when the LaTeX-package
12998 \begin_layout Standard
12999 Here is an example table where
13005 is used in the 2-argument scheme in the first cell:
13006 \begin_inset VSpace medskip
13012 \begin_layout Standard
13014 \begin_inset Tabular
13015 <lyxtabular version="3" rows="4" columns="4">
13016 <features rotate="0" tabularvalignment="middle">
13017 <column alignment="center" valignment="top">
13018 <column alignment="center" valignment="top">
13019 <column alignment="center" valignment="top">
13020 <column alignment="center" valignment="top">
13022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13025 \begin_layout Plain Layout
13029 \begin_layout Plain Layout
13042 \begin_layout Plain Layout
13053 \begin_layout Plain Layout
13065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13068 \begin_layout Plain Layout
13074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13077 \begin_layout Plain Layout
13083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13086 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13115 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13124 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13153 \begin_layout Plain Layout
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13162 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13191 \begin_layout Plain Layout
13197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13200 \begin_layout Plain Layout
13212 \begin_inset VSpace medskip
13218 \begin_layout Standard
13219 The 3-argument scheme is for example useful for cross-tables of sports leagues
13223 \begin_layout Standard
13226 \begin_inset Tabular
13227 <lyxtabular version="3" rows="4" columns="4">
13228 <features rotate="0" tabularvalignment="middle">
13229 <column alignment="center" valignment="top" width="0pt">
13230 <column alignment="center" valignment="top">
13231 <column alignment="center" valignment="top">
13232 <column alignment="center" valignment="top">
13234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13237 \begin_layout Plain Layout
13241 \begin_layout Plain Layout
13254 \begin_layout Plain Layout
13265 \begin_layout Plain Layout
13276 \begin_layout Plain Layout
13288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13291 \begin_layout Plain Layout
13297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13300 \begin_layout Plain Layout
13306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13309 \begin_layout Plain Layout
13317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13320 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13329 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13338 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13347 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13367 \begin_layout Plain Layout
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13376 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13385 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13405 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13414 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13423 \begin_layout Plain Layout
13437 \begin_layout Standard
13438 For larger cross-tables one might use split cells in 2 or every corner of
13439 the table like in this example:
13442 \begin_layout Standard
13445 \begin_inset Tabular
13446 <lyxtabular version="3" rows="5" columns="5">
13447 <features rotate="0" tabularvalignment="middle">
13448 <column alignment="center" valignment="top" width="0pt">
13449 <column alignment="center" valignment="top">
13450 <column alignment="center" valignment="top">
13451 <column alignment="center" valignment="top">
13452 <column alignment="center" valignment="top">
13454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13457 \begin_layout Plain Layout
13461 \begin_layout Plain Layout
13474 \begin_layout Plain Layout
13485 \begin_layout Plain Layout
13496 \begin_layout Plain Layout
13508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13511 \begin_layout Plain Layout
13517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13520 \begin_layout Plain Layout
13526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13529 \begin_layout Plain Layout
13535 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13538 \begin_layout Plain Layout
13542 \begin_layout Plain Layout
13555 \begin_layout Plain Layout
13566 \begin_layout Plain Layout
13577 \begin_layout Plain Layout
13591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13594 \begin_layout Plain Layout
13600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13603 \begin_layout Plain Layout
13609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13612 \begin_layout Plain Layout
13618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13621 \begin_layout Plain Layout
13627 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13630 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13641 \begin_layout Plain Layout
13647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13659 \begin_layout Plain Layout
13665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13668 \begin_layout Plain Layout
13674 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13677 \begin_layout Plain Layout
13685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13688 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13715 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13724 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13739 \begin_layout Plain Layout
13752 \begin_layout Plain Layout
13763 \begin_layout Plain Layout
13774 \begin_layout Plain Layout
13786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13789 \begin_layout Plain Layout
13795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13798 \begin_layout Plain Layout
13804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13807 \begin_layout Plain Layout
13813 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13816 \begin_layout Plain Layout
13820 \begin_layout Plain Layout
13833 \begin_layout Plain Layout
13844 \begin_layout Plain Layout
13855 \begin_layout Plain Layout
13875 \begin_layout Standard
13876 To rotate the diagonal lines, the command option
13901 and represent a point of a compass.
13906 is for example the south-west corner.
13907 Thus in the lower left cell of the above table the command
13910 \begin_layout Standard
13915 diagbox[dir=SW]{Team home}{Result}{Team away}
13918 \begin_layout Standard
13920 If no direction is given, it will be NW.
13923 \begin_layout Standard
13924 The necessary width of split cells is automatically calculated.
13925 Thus if you set a fixed column width smaller than the calculated one, the
13926 cell's content will protrude the cell borders:
13929 \begin_layout Standard
13932 \begin_inset Tabular
13933 <lyxtabular version="3" rows="2" columns="2">
13934 <features rotate="0" tabularvalignment="middle">
13935 <column alignment="center" valignment="top" width="3cm">
13936 <column alignment="center" valignment="top">
13938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13941 \begin_layout Plain Layout
13945 \begin_layout Plain Layout
13958 \begin_layout Plain Layout
13969 \begin_layout Plain Layout
13981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13984 \begin_layout Plain Layout
13992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13995 \begin_layout Plain Layout
14001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14004 \begin_layout Plain Layout
14018 \begin_layout Standard
14019 If you need a certain width for columns with a split cell, use the command
14024 (replace '3cm' by the width you need).
14025 In the following table the width of the first column is set to 4
14026 \begin_inset space \thinspace{}
14037 \begin_inset space \thinspace{}
14041 \begin_inset space \thinspace{}
14046 tabcolsep is necessary because the overall width is the width for the text
14047 (in this case the 4
14048 \begin_inset space \thinspace{}
14051 cm) plus two times the separation of the text and the cell border.
14052 The calculation of the width cannot be done in the command option of
14058 so one needs to create a new length which can be used later.
14059 This is done with the TeX-Code commands
14062 \begin_layout Standard
14070 \begin_inset Newline newline
14082 \begin_layout Standard
14086 \begin_layout Plain Layout
14095 \begin_layout Plain Layout
14111 \begin_layout Standard
14112 To enable calculations in LaTeX one needs to load the package
14117 \begin_inset Index idx
14120 \begin_layout Plain Layout
14121 LaTeX-packages ! calc
14126 in the document preamble.
14129 \begin_layout Standard
14130 In this table you can now use the command
14133 \begin_layout Standard
14143 \begin_layout Standard
14147 \begin_layout Standard
14150 \begin_inset Tabular
14151 <lyxtabular version="3" rows="2" columns="2">
14152 <features rotate="0" tabularvalignment="middle">
14153 <column alignment="center" valignment="top" width="4cm">
14154 <column alignment="center" valignment="top">
14156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14159 \begin_layout Plain Layout
14163 \begin_layout Plain Layout
14178 \begin_layout Plain Layout
14189 \begin_layout Plain Layout
14201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14204 \begin_layout Plain Layout
14212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14215 \begin_layout Plain Layout
14221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14224 \begin_layout Plain Layout
14238 \begin_layout Standard
14239 Note that the split cell needs to be the widest one in the column.
14240 Otherwise the length of the diagonal line cannot be calculated correctly
14241 like in this table:
14244 \begin_layout Standard
14247 \begin_inset Tabular
14248 <lyxtabular version="3" rows="2" columns="2">
14249 <features rotate="0" tabularvalignment="middle">
14250 <column alignment="center" valignment="top" width="0pt">
14251 <column alignment="center" valignment="top">
14253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14256 \begin_layout Plain Layout
14260 \begin_layout Plain Layout
14273 \begin_layout Plain Layout
14284 \begin_layout Plain Layout
14296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14299 \begin_layout Plain Layout
14307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14310 \begin_layout Plain Layout
14316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14319 \begin_layout Plain Layout
14333 \begin_layout Standard
14334 In this case use the
14345 It is then not necessary to add 2
14347 tabcolsep because the cell width is now the width of the column.
14348 In this table a width of 3
14349 \begin_inset space \thinspace{}
14355 \begin_layout Standard
14358 \begin_inset Tabular
14359 <lyxtabular version="3" rows="2" columns="2">
14360 <features rotate="0" tabularvalignment="middle">
14361 <column alignment="center" valignment="top" width="0pt">
14362 <column alignment="center" valignment="top">
14364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14367 \begin_layout Plain Layout
14371 \begin_layout Plain Layout
14375 diagbox[width=3cm]{
14384 \begin_layout Plain Layout
14395 \begin_layout Plain Layout
14407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14410 \begin_layout Plain Layout
14418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14421 \begin_layout Plain Layout
14427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14430 \begin_layout Plain Layout
14444 \begin_layout Standard
14445 For multiple text lines in split cells one needs some extra height to fit
14446 the text to the cell.
14447 This can be achieved with the
14457 (replace '3cm' by the height you need).
14458 In the following table the command
14461 \begin_layout Standard
14466 diagbox[width=3cm,height=1.4cm]{A
14477 \begin_layout Standard
14478 is used in the first cell.
14487 creates hereby the line break.
14491 \begin_layout Plain Layout
14492 Breaking lines with
14496 is only possible when the column has a fixed width.
14504 \begin_layout Standard
14507 \begin_inset Tabular
14508 <lyxtabular version="3" rows="2" columns="2">
14509 <features rotate="0" tabularvalignment="middle">
14510 <column alignment="center" valignment="top">
14511 <column alignment="center" valignment="top">
14513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14516 \begin_layout Plain Layout
14520 \begin_layout Plain Layout
14524 diagbox[width=3cm,height=1.4cm]{
14533 \begin_layout Plain Layout
14548 \begin_layout Plain Layout
14559 \begin_layout Plain Layout
14574 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14589 \begin_layout Plain Layout
14597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14600 \begin_layout Plain Layout
14606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14609 \begin_layout Plain Layout
14623 \begin_layout Standard
14627 \begin_layout Plain Layout
14637 \begin_inset Note Note
14640 \begin_layout Plain Layout
14641 The following will be displayed when the LaTeX-package
14653 \begin_layout Standard
14654 You need to install the LaTeX-package
14658 to see the following part of this section in the output.
14661 \begin_layout Standard
14665 \begin_layout Plain Layout
14677 \begin_layout Standard
14678 For more info about the LaTeX-package
14682 , see its documentation,
14683 \begin_inset CommandInset citation
14692 \begin_layout Section
14694 \begin_inset CommandInset label
14696 name "sec:Formal-Tables"
14701 \begin_inset Index idx
14704 \begin_layout Plain Layout
14713 \begin_layout Standard
14714 Tables are often typeset in books similar to Table
14715 \begin_inset space ~
14719 \begin_inset CommandInset ref
14721 reference "tab:Example-booktabs-table"
14726 This kind of tables is called
14727 \begin_inset Quotes eld
14735 \begin_inset Quotes erd
14739 To make a table a formal table use the option
14747 tab of the table dialog.
14750 \begin_layout Standard
14751 \begin_inset Float table
14757 \begin_layout Plain Layout
14758 \begin_inset Caption Standard
14760 \begin_layout Plain Layout
14761 \begin_inset CommandInset label
14763 name "tab:Example-booktabs-table"
14767 Example booktabs-table
14775 \begin_layout Plain Layout
14777 \begin_inset Tabular
14778 <lyxtabular version="3" rows="8" columns="4">
14779 <features rotate="0" booktabs="true" tabularvalignment="middle">
14780 <column alignment="center" valignment="top">
14781 <column alignment="center" valignment="top">
14782 <column alignment="center" valignment="top">
14783 <column alignment="center" valignment="top">
14785 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14788 \begin_layout Plain Layout
14794 <cell alignment="center" valignment="top" topline="true" usebox="none">
14797 \begin_layout Plain Layout
14799 \begin_inset space \thinspace{}
14807 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14810 \begin_layout Plain Layout
14812 \begin_inset space \thinspace{}
14820 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14823 \begin_layout Plain Layout
14831 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14834 \begin_layout Plain Layout
14838 \begin_layout Plain Layout
14851 \begin_layout Plain Layout
14860 Detector thickness in µm
14865 <cell alignment="center" valignment="top" usebox="none">
14868 \begin_layout Plain Layout
14874 <cell alignment="center" valignment="top" usebox="none">
14877 \begin_layout Plain Layout
14883 <cell alignment="center" valignment="top" usebox="none">
14886 \begin_layout Plain Layout
14894 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14897 \begin_layout Plain Layout
14903 <cell alignment="center" valignment="top" topline="true" usebox="none">
14906 \begin_layout Plain Layout
14912 <cell alignment="center" valignment="top" topline="true" usebox="none">
14915 \begin_layout Plain Layout
14921 <cell alignment="center" valignment="top" topline="true" usebox="none">
14924 \begin_layout Plain Layout
14931 <row topspace="default">
14932 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14935 \begin_layout Plain Layout
14936 Spatial resolution in µm
14941 <cell alignment="center" valignment="top" usebox="none">
14944 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" usebox="none">
14953 \begin_layout Plain Layout
14959 <cell alignment="center" valignment="top" usebox="none">
14962 \begin_layout Plain Layout
14969 <row topspace="default">
14970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14973 \begin_layout Plain Layout
14975 \begin_inset Formula $f_{\mathrm{max}}$
14983 <cell alignment="center" valignment="top" usebox="none">
14986 \begin_layout Plain Layout
14992 <cell alignment="center" valignment="top" usebox="none">
14995 \begin_layout Plain Layout
15001 <cell alignment="center" valignment="top" usebox="none">
15004 \begin_layout Plain Layout
15011 <row topspace="default">
15012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15015 \begin_layout Plain Layout
15019 \begin_layout Plain Layout
15023 cmidrule(l{10pt}){1-1}
15028 LSF-spatial resolution
15033 <cell alignment="center" valignment="top" usebox="none">
15036 \begin_layout Plain Layout
15042 <cell alignment="center" valignment="top" usebox="none">
15045 \begin_layout Plain Layout
15051 <cell alignment="center" valignment="top" usebox="none">
15054 \begin_layout Plain Layout
15062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15065 \begin_layout Plain Layout
15071 <cell alignment="center" valignment="top" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15089 <cell alignment="center" valignment="top" usebox="none">
15092 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15121 \begin_layout Plain Layout
15127 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15130 \begin_layout Plain Layout
15149 \begin_layout Standard
15150 Spaces to table rows can be added using the
15154 tab of the table dialog as described in section
15155 \begin_inset space ~
15159 \begin_inset CommandInset ref
15161 reference "sub:Row-Spacing"
15168 \begin_layout Standard
15169 Unlike normal tables, formal tables have no vertical table lines.
15170 The horizontal table lines can be set as for normal tables but they appear
15171 with different widths in the output:
15172 \begin_inset Newline newline
15175 The first and the last table line have a default width of 0.08
15176 \begin_inset space \thinspace{}
15179 em while the other lines have a default width of 0.05
15180 \begin_inset space \thinspace{}
15186 \begin_layout Standard
15187 The default widths can be changed with the following preamble lines
15190 \begin_layout Standard
15200 \begin_inset Newline newline
15212 \begin_layout Standard
15213 This example is for the first line, the so called
15218 If you want to change the width for the last line, replace
15227 To change the width for the other lines replace
15236 You can use all units listed in appendix
15237 \begin_inset space ~
15241 \begin_inset CommandInset ref
15243 reference "cha:Units-available-in"
15250 \begin_layout Standard
15251 Lines that do not span all table columns can be created by setting a table
15252 line for multicolumn cells.
15253 LyX will then internally use the command
15259 to create this line.
15263 \begin_layout Standard
15268 cmidrule[width](trim){startcol-endcol}
15271 \begin_layout Standard
15278 are currently not supported by LyX so you have to use TeX-Code to be able
15286 s can manually be created by inserting the command as TeX-Code as the first
15287 cell entry of the first cell of a row.
15288 The line is then drawn in the output above the current row.
15291 \begin_layout Standard
15292 The default for the width is 0.03
15293 \begin_inset space \thinspace{}
15297 Startcol is the number of the column where the line starts and endcol the
15298 column number where the line ends.
15299 The endcol always needs to be specified, also when the line should span
15301 The optional parameter trim could be either
15309 where the trimwidth is also optional.
15310 Using for example the parameter
15314 means that the line is trimmed from its left end by 2
15315 \begin_inset space \thinspace{}
15319 If you don't specify the trimwidth the lines are trimmed by the default
15321 \begin_inset space \thinspace{}
15327 \begin_layout Standard
15328 \begin_inset VSpace bigskip
15332 \begin_inset space ~
15336 \begin_inset CommandInset ref
15338 reference "tab:Example-booktabs-table"
15342 was created using the commands
15345 \begin_layout Standard
15355 \begin_layout Standard
15356 at the beginning of the second row and
15359 \begin_layout Standard
15364 cmidrule(l{10pt}){1-1}
15367 \begin_layout Standard
15371 \begin_layout Standard
15372 \begin_inset VSpace bigskip
15378 \begin_layout Standard
15379 You might want to have overlapping
15386 \begin_inset space ~
15390 \begin_inset CommandInset ref
15392 reference "tab:Special-booktabs-table"
15397 This can be achieved with the TeX-Code command
15400 \begin_layout Standard
15408 \begin_layout Standard
15409 The command that was used for the second row of Table
15410 \begin_inset space ~
15414 \begin_inset CommandInset ref
15416 reference "tab:Special-booktabs-table"
15423 \begin_layout Standard
15437 \begin_layout Standard
15438 The command for the sixth row is
15441 \begin_layout Standard
15453 \begin_layout Standard
15454 \begin_inset VSpace bigskip
15460 \begin_layout Standard
15461 If you are in any way not satisfied with the border line spacing, you can
15462 use the following command to produce lines that span over all table columns
15467 \begin_layout Standard
15472 specialrule{width}{space above}{space below}
15475 \begin_layout Standard
15476 For more information about these features, refer to the manual of the LaTeX-pack
15482 \begin_inset CommandInset citation
15489 \begin_inset Index idx
15492 \begin_layout Plain Layout
15493 LaTeX-packages ! booktabs
15501 \begin_layout Standard
15502 \begin_inset Float table
15508 \begin_layout Plain Layout
15509 \begin_inset Caption Standard
15511 \begin_layout Plain Layout
15512 \begin_inset CommandInset label
15514 name "tab:Special-booktabs-table"
15518 Special booktabs-table
15526 \begin_layout Plain Layout
15528 \begin_inset Tabular
15529 <lyxtabular version="3" rows="8" columns="4">
15530 <features rotate="0" booktabs="true" tabularvalignment="middle">
15531 <column alignment="center" valignment="top">
15532 <column alignment="center" valignment="top">
15533 <column alignment="center" valignment="top">
15534 <column alignment="center" valignment="top">
15536 <cell alignment="center" valignment="top" topline="true" usebox="none">
15539 \begin_layout Plain Layout
15545 <cell alignment="center" valignment="top" topline="true" usebox="none">
15548 \begin_layout Plain Layout
15550 \begin_inset space \thinspace{}
15558 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15561 \begin_layout Plain Layout
15563 \begin_inset space \thinspace{}
15571 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15574 \begin_layout Plain Layout
15582 <cell alignment="center" valignment="top" usebox="none">
15585 \begin_layout Plain Layout
15589 \begin_layout Plain Layout
15602 \begin_layout Plain Layout
15615 \begin_layout Plain Layout
15628 \begin_layout Plain Layout
15637 Detector thickness in µm
15642 <cell alignment="center" valignment="top" usebox="none">
15645 \begin_layout Plain Layout
15651 <cell alignment="center" valignment="top" usebox="none">
15654 \begin_layout Plain Layout
15660 <cell alignment="center" valignment="top" usebox="none">
15663 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" topline="true" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" topline="true" usebox="none">
15683 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" topline="true" usebox="none">
15692 \begin_layout Plain Layout
15698 <cell alignment="center" valignment="top" topline="true" usebox="none">
15701 \begin_layout Plain Layout
15708 <row topspace="default">
15709 <cell alignment="center" valignment="top" usebox="none">
15712 \begin_layout Plain Layout
15713 Spatial resolution in µm
15718 <cell alignment="center" valignment="top" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" usebox="none">
15730 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" usebox="none">
15739 \begin_layout Plain Layout
15746 <row topspace="default">
15747 <cell alignment="center" valignment="top" usebox="none">
15750 \begin_layout Plain Layout
15752 \begin_inset Formula $f_{\mathrm{max}}$
15760 <cell alignment="center" valignment="top" usebox="none">
15763 \begin_layout Plain Layout
15769 <cell alignment="center" valignment="top" usebox="none">
15772 \begin_layout Plain Layout
15778 <cell alignment="center" valignment="top" usebox="none">
15781 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" topline="true" usebox="none">
15792 \begin_layout Plain Layout
15796 \begin_layout Plain Layout
15809 \begin_layout Plain Layout
15818 LSF-spatial resolution
15823 <cell alignment="center" valignment="top" topline="true" usebox="none">
15826 \begin_layout Plain Layout
15832 <cell alignment="center" valignment="top" topline="true" usebox="none">
15835 \begin_layout Plain Layout
15841 <cell alignment="center" valignment="top" topline="true" usebox="none">
15844 \begin_layout Plain Layout
15852 <cell alignment="center" valignment="top" usebox="none">
15855 \begin_layout Plain Layout
15861 <cell alignment="center" valignment="top" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" usebox="none">
15873 \begin_layout Plain Layout
15879 <cell alignment="center" valignment="top" usebox="none">
15882 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15902 \begin_layout Plain Layout
15908 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15911 \begin_layout Plain Layout
15917 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15920 \begin_layout Plain Layout
15939 \begin_layout Section
15940 Vertical Table Alignment
15941 \begin_inset Index idx
15944 \begin_layout Plain Layout
15953 \begin_layout Standard
15954 To align tables vertically in a text line, the table must be inside a box.
15955 The box can then be vertically aligned as described in section
15956 \begin_inset space ~
15960 \begin_inset CommandInset ref
15962 reference "sec:Box-Dialog"
15969 \begin_layout Standard
15970 In the following example the tables are inside a minipage
15974 \begin_layout Plain Layout
15975 Minipages are described in section
15976 \begin_inset space ~
15980 \begin_inset CommandInset ref
15982 reference "sec:Minipages"
15991 box that has a width of 15
15992 \begin_inset space \thinspace{}
15998 \begin_layout Itemize
16000 \begin_inset Box Frameless
16010 height_special "totalheight"
16013 \begin_layout Plain Layout
16014 \begin_inset Tabular
16015 <lyxtabular version="3" rows="3" columns="3">
16016 <features rotate="0" tabularvalignment="middle">
16017 <column alignment="center" valignment="top">
16018 <column alignment="center" valignment="top">
16019 <column alignment="center" valignment="top">
16021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16024 \begin_layout Plain Layout
16030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16033 \begin_layout Plain Layout
16039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16042 \begin_layout Plain Layout
16050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16053 \begin_layout Plain Layout
16059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16062 \begin_layout Plain Layout
16068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16071 \begin_layout Plain Layout
16079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16082 \begin_layout Plain Layout
16088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16091 \begin_layout Plain Layout
16097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16100 \begin_layout Plain Layout
16120 \begin_layout Plain Layout
16132 \begin_inset Box Frameless
16142 height_special "totalheight"
16145 \begin_layout Plain Layout
16146 \begin_inset Tabular
16147 <lyxtabular version="3" rows="3" columns="3">
16148 <features rotate="0" tabularvalignment="middle">
16149 <column alignment="center" valignment="top">
16150 <column alignment="center" valignment="top">
16151 <column alignment="center" valignment="top">
16153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16156 \begin_layout Plain Layout
16162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16165 \begin_layout Plain Layout
16171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16174 \begin_layout Plain Layout
16182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16185 \begin_layout Plain Layout
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16194 \begin_layout Plain Layout
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16203 \begin_layout Plain Layout
16211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16214 \begin_layout Plain Layout
16220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16223 \begin_layout Plain Layout
16229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16232 \begin_layout Plain Layout
16252 \begin_layout Plain Layout
16262 \begin_layout Itemize
16264 \begin_inset Box Frameless
16274 height_special "totalheight"
16277 \begin_layout Plain Layout
16278 \begin_inset Tabular
16279 <lyxtabular version="3" rows="3" columns="3">
16280 <features rotate="0" tabularvalignment="middle">
16281 <column alignment="center" valignment="top">
16282 <column alignment="center" valignment="top">
16283 <column alignment="center" valignment="top">
16285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16288 \begin_layout Plain Layout
16294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16297 \begin_layout Plain Layout
16303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16306 \begin_layout Plain Layout
16314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16317 \begin_layout Plain Layout
16323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16326 \begin_layout Plain Layout
16332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16335 \begin_layout Plain Layout
16343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16346 \begin_layout Plain Layout
16352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16355 \begin_layout Plain Layout
16361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16364 \begin_layout Plain Layout
16383 \begin_layout Itemize
16385 \begin_inset Box Frameless
16395 height_special "totalheight"
16398 \begin_layout Plain Layout
16399 \begin_inset Tabular
16400 <lyxtabular version="3" rows="3" columns="3">
16401 <features rotate="0" tabularvalignment="middle">
16402 <column alignment="center" valignment="top">
16403 <column alignment="center" valignment="top">
16404 <column alignment="center" valignment="top">
16406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16418 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Plain Layout
16435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16438 \begin_layout Plain Layout
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16456 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16467 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16476 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16485 \begin_layout Plain Layout
16505 \begin_layout Plain Layout
16517 \begin_inset Box Frameless
16527 height_special "totalheight"
16530 \begin_layout Plain Layout
16531 \begin_inset Tabular
16532 <lyxtabular version="3" rows="3" columns="3">
16533 <features rotate="0" tabularvalignment="middle">
16534 <column alignment="center" valignment="top">
16535 <column alignment="center" valignment="top">
16536 <column alignment="center" valignment="top">
16538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16541 \begin_layout Plain Layout
16547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16550 \begin_layout Plain Layout
16556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16559 \begin_layout Plain Layout
16567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16570 \begin_layout Plain Layout
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16579 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16588 \begin_layout Plain Layout
16596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16599 \begin_layout Plain Layout
16605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16608 \begin_layout Plain Layout
16614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16617 \begin_layout Plain Layout
16637 \begin_layout Plain Layout
16647 \begin_layout Standard
16648 As you will see, the content of the first and last table row is not correctly
16650 To get this alignment, the minipage box must be set into a raisebox
16654 \begin_layout Plain Layout
16655 Raiseboxes are described in section
16656 \begin_inset space ~
16660 \begin_inset CommandInset ref
16662 reference "sub:Vertical-Alignment"
16672 In the example above the second table in the first item is aligned using
16673 the TeX-Code-command
16676 \begin_layout Standard
16686 \begin_layout Standard
16688 After the box the closing brace
16692 is inserted as TeX-Code.
16693 For the second table in the last item the command
16696 \begin_layout Standard
16706 \begin_layout Standard
16710 \begin_layout Standard
16711 \begin_inset Note Greyedout
16714 \begin_layout Plain Layout
16719 The alignment of the table row content to the surrounding text line is
16721 The required value for the
16727 command for this alignment depends on the document font, the font size,
16728 and the table line thickness.
16736 \begin_layout Section
16738 \begin_inset CommandInset label
16740 name "sec:Colored-Tables"
16745 \begin_inset Index idx
16748 \begin_layout Plain Layout
16757 \begin_layout Subsection
16759 \begin_inset Index idx
16762 \begin_layout Plain Layout
16763 Table Color ! for Cells
16769 \begin_inset Index idx
16772 \begin_layout Plain Layout
16773 Color ! for Table Cells
16781 \begin_layout Standard
16782 \begin_inset Float table
16788 \begin_layout Plain Layout
16789 \begin_inset Caption Standard
16791 \begin_layout Plain Layout
16792 \begin_inset CommandInset label
16794 name "tab:Table-colored-without"
16798 Table colored without using the package
16803 \begin_inset Argument 1
16806 \begin_layout Plain Layout
16807 Table without colortbl
16820 \begin_layout Plain Layout
16822 \begin_inset Tabular
16823 <lyxtabular version="3" rows="3" columns="3">
16824 <features rotate="0" tabularvalignment="middle">
16825 <column alignment="center" valignment="top">
16826 <column alignment="center" valignment="top">
16827 <column alignment="center" valignment="top">
16829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16832 \begin_layout Plain Layout
16840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16843 \begin_layout Plain Layout
16851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16854 \begin_layout Plain Layout
16864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16867 \begin_layout Plain Layout
16875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16878 \begin_layout Plain Layout
16886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16889 \begin_layout Plain Layout
16899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16902 \begin_layout Plain Layout
16910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16913 \begin_layout Plain Layout
16921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16924 \begin_layout Plain Layout
16945 \begin_layout Standard
16946 If you only need colored text, mark the cells and choose a color in the
16950 \begin_inset space ~
16955 dialog (toolbar button
16958 arg "dialog-show character"
16962 This was used to create Table
16963 \begin_inset space ~
16967 \begin_inset CommandInset ref
16969 reference "tab:Table-colored-without"
16974 In any other case you have to use the LaTeX-package
16979 \begin_inset Index idx
16982 \begin_layout Plain Layout
16983 LaTeX-packages ! colortbl
16991 \begin_layout Standard
16995 \begin_layout Plain Layout
17005 \begin_inset Note Note
17008 \begin_layout Plain Layout
17009 The following section part will only be displayed when the LaTeX-package
17022 \begin_layout Standard
17023 To create colored tables,
17027 must be loaded in the preamble with the line
17030 \begin_layout Standard
17035 usepackage{colortbl}
17038 \begin_layout Standard
17039 The color of a column is adjusted with the command
17042 \begin_layout Standard
17047 columncolor{name of color}
17050 \begin_layout Standard
17056 More about the command
17060 is contained in section
17061 \begin_inset space ~
17065 \begin_inset CommandInset ref
17067 reference "sub:Multicolumn-Calculations"
17074 \begin_layout Standard
17075 The following color names are predefined:
17078 \begin_layout Standard
17112 \begin_layout Standard
17113 \begin_inset VSpace medskip
17119 \begin_layout Standard
17120 If you add the options
17123 \begin_layout Standard
17126 usenames,dvipsnames
17129 \begin_layout Standard
17130 to the document class options in the document settings, you can additionally
17132 \begin_inset space ~
17136 These colors are listed in appendix
17137 \begin_inset space ~
17141 \begin_inset CommandInset ref
17143 reference "chap:List-of-dvips-colornames"
17148 One of these colors,
17152 , is used as example in Table
17153 \begin_inset space ~
17157 \begin_inset CommandInset ref
17159 reference "tab:Table-colored-using"
17166 \begin_layout Standard
17167 \begin_inset VSpace medskip
17173 \begin_layout Standard
17174 You can also define your own color with the command
17177 \begin_layout Standard
17182 definecolor{color name}{color model}{color values}
17185 \begin_layout Standard
17186 The color model can be
17189 \begin_layout Labeling
17190 \labelwidthstring 00.00.0000
17191 cmyk: cyan, magenta, yellow, black
17194 \begin_layout Labeling
17195 \labelwidthstring 00.00.0000
17196 rgb: red, green blue
17199 \begin_layout Labeling
17200 \labelwidthstring 00.00.0000
17204 \begin_layout Standard
17205 and the color values are comma separated numbers between 0 and 1 describing
17206 the factor for the corresponding color of the color model.
17209 \begin_layout Standard
17211 \begin_inset space \thinspace{}
17215 \begin_inset space \space{}
17222 " in the preamble with
17225 \begin_layout Standard
17230 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17233 \begin_layout Standard
17241 \begin_layout Standard
17246 definecolor{lightgray}{gray}{0.8}
17249 \begin_layout Standard
17250 \begin_inset VSpace medskip
17256 \begin_layout Standard
17257 Lines are colored with the command
17260 \begin_layout Standard
17265 rowcolor{name of color}
17268 \begin_layout Standard
17269 and cells are colored with the command
17272 \begin_layout Standard
17277 cellcolor{name of color}
17280 \begin_layout Standard
17281 Both commands are inserted at the beginning of a cell as TeX-Code.
17284 \begin_layout Standard
17285 To color characters in the table, mark the cells and use the
17288 \begin_inset space ~
17294 If a cell contains TeX-Code mark only the characters, otherwise the colored
17295 TeX-Code will cause LaTeX-errors.
17298 \begin_layout Standard
17299 \begin_inset Note Greyedout
17302 \begin_layout Plain Layout
17307 Not all DVI-viewers are able to display self-defined colors.
17315 \begin_layout Standard
17316 \begin_inset VSpace bigskip
17322 \begin_layout Standard
17324 \begin_inset space ~
17328 \begin_inset CommandInset ref
17330 reference "tab:Table-colored-using"
17334 do the following: The color of the first column should be
17342 \begin_layout Standard
17347 columncolor{darkgreen}
17352 \begin_layout Standard
17353 as LaTeX-argument for this column.
17354 The first row should be light blue, therefore the TeX-Code command
17357 \begin_layout Standard
17365 \begin_layout Standard
17366 is inserted to the first cell of this row.
17367 Note that this overwrites the column color for the first cell.
17368 The last cell of the last row is colored maroon by inserting the TeX-Code
17372 \begin_layout Standard
17380 \begin_layout Standard
17381 The characters could now be colored using the menu
17383 Edit\SpecialChar \menuseparator
17385 \begin_inset space ~
17393 \begin_layout Standard
17394 \begin_inset Float table
17400 \begin_layout Plain Layout
17401 \begin_inset Caption Standard
17403 \begin_layout Plain Layout
17404 \begin_inset CommandInset label
17406 name "tab:Table-colored-using"
17410 Table colored using the package
17415 \begin_inset Argument 1
17418 \begin_layout Plain Layout
17419 Table with colortbl
17432 \begin_layout Plain Layout
17434 \begin_inset Tabular
17435 <lyxtabular version="3" rows="3" columns="3">
17436 <features rotate="0" tabularvalignment="middle">
17437 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17438 <column alignment="center" valignment="top">
17439 <column alignment="center" valignment="top">
17441 <cell alignment="center" valignment="top" usebox="none">
17444 \begin_layout Plain Layout
17448 \begin_layout Plain Layout
17464 <cell alignment="center" valignment="top" usebox="none">
17467 \begin_layout Plain Layout
17475 <cell alignment="center" valignment="top" usebox="none">
17478 \begin_layout Plain Layout
17488 <cell alignment="center" valignment="top" usebox="none">
17491 \begin_layout Plain Layout
17499 <cell alignment="center" valignment="top" usebox="none">
17502 \begin_layout Plain Layout
17510 <cell alignment="center" valignment="top" usebox="none">
17513 \begin_layout Plain Layout
17523 <cell alignment="center" valignment="top" usebox="none">
17526 \begin_layout Plain Layout
17534 <cell alignment="center" valignment="top" usebox="none">
17537 \begin_layout Plain Layout
17545 <cell alignment="center" valignment="top" usebox="none">
17548 \begin_layout Plain Layout
17552 \begin_layout Plain Layout
17581 \begin_layout Standard
17585 \begin_layout Plain Layout
17595 \begin_inset Note Note
17598 \begin_layout Plain Layout
17599 The following will be displayed when the LaTeX-package
17611 \begin_layout Standard
17612 You need to install the package
17616 to see the content of this section in the output.
17619 \begin_layout Standard
17623 \begin_layout Plain Layout
17635 \begin_layout Subsection
17637 \begin_inset Index idx
17640 \begin_layout Plain Layout
17641 Table Color ! for Rows
17647 \begin_inset Index idx
17650 \begin_layout Plain Layout
17651 Color ! for Table Rows
17659 \begin_layout Standard
17660 In case every second table row needs to be colored there is an alternative
17661 to the method described in the previous section: One loads the package
17667 \begin_inset Index idx
17670 \begin_layout Plain Layout
17671 LaTeX-packages ! xcolor
17675 \begin_layout Plain Layout
17689 in the document preamble with the command
17692 \begin_layout Standard
17697 usepackage[table]{xcolor}
17700 \begin_layout Standard
17705 automatically loads also the package
17710 \begin_inset Index idx
17713 \begin_layout Plain Layout
17714 LaTeX-packages ! colortbl
17723 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17726 \begin_layout Standard
17730 \begin_layout Plain Layout
17740 \begin_inset Note Note
17743 \begin_layout Plain Layout
17744 The following section part will only be displayed when the LaTeX-package
17757 \begin_layout Standard
17758 The table rows are colored with the command
17761 \begin_layout Standard
17766 rowcolors[commands]{row number}{odd row color}{even row color}
17769 \begin_layout Standard
17770 that is either inserted in the document preamble or as TeX-Code before the
17771 first table to be colored.
17773 \begin_inset space ~
17776 number is the number of the first row which should be colored according
17777 to the odd row color.
17778 commands can be additional commands that are executed before every table
17780 So for example the command
17783 \begin_layout Standard
17788 rowcolors{1}{white}{lightgray}
17791 \begin_layout Standard
17792 leads to the coloring scheme of Table
17793 \begin_inset space ~
17797 \begin_inset CommandInset ref
17799 reference "tab:Table-rowcolors"
17807 \begin_layout Standard
17814 hline]{1}{lightgray}{cyan}
17817 \begin_layout Standard
17818 leads to the coloring scheme of Table
17819 \begin_inset space ~
17823 \begin_inset CommandInset ref
17825 reference "tab:Table-rowcolors-2"
17831 \begin_inset space ~
17835 \begin_inset space ~
17839 \begin_inset space ~
17843 \begin_inset space ~
17846 color are left empty, no color will be used so that the command
17849 \begin_layout Standard
17857 \begin_layout Standard
17858 deletes all colors.
17865 affects all tables following that command.
17868 \begin_layout Standard
17872 \begin_layout Plain Layout
17876 rowcolors{1}{white}{lightgray}
17884 \begin_layout Standard
17885 \begin_inset Float table
17891 \begin_layout Plain Layout
17892 \begin_inset Caption Standard
17894 \begin_layout Plain Layout
17895 \begin_inset CommandInset label
17897 name "tab:Table-rowcolors"
17901 Table where every second row is colored light gray.
17909 \begin_layout Plain Layout
17911 \begin_inset Tabular
17912 <lyxtabular version="3" rows="4" columns="3">
17913 <features rotate="0" tabularvalignment="middle">
17914 <column alignment="center" valignment="top">
17915 <column alignment="center" valignment="top" width="0pt">
17916 <column alignment="center" valignment="top" width="0pt">
17918 <cell alignment="center" valignment="top" usebox="none">
17921 \begin_layout Plain Layout
17927 <cell alignment="center" valignment="top" usebox="none">
17930 \begin_layout Plain Layout
17936 <cell alignment="center" valignment="top" usebox="none">
17939 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" usebox="none">
17959 \begin_layout Plain Layout
17965 <cell alignment="center" valignment="top" usebox="none">
17968 \begin_layout Plain Layout
17976 <cell alignment="center" valignment="top" usebox="none">
17979 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" usebox="none">
17997 \begin_layout Plain Layout
18005 <cell alignment="center" valignment="top" usebox="none">
18008 \begin_layout Plain Layout
18014 <cell alignment="center" valignment="top" usebox="none">
18017 \begin_layout Plain Layout
18023 <cell alignment="center" valignment="top" usebox="none">
18026 \begin_layout Plain Layout
18045 \begin_layout Standard
18049 \begin_layout Plain Layout
18055 hline]{1}{lightgray}{cyan}
18063 \begin_layout Standard
18064 \begin_inset Float table
18070 \begin_layout Plain Layout
18071 \begin_inset Caption Standard
18073 \begin_layout Plain Layout
18074 \begin_inset CommandInset label
18076 name "tab:Table-rowcolors-2"
18080 Table where every second row is colored cyan and at which there is a line
18089 \begin_layout Plain Layout
18091 \begin_inset Tabular
18092 <lyxtabular version="3" rows="4" columns="3">
18093 <features rotate="0" tabularvalignment="middle">
18094 <column alignment="center" valignment="top">
18095 <column alignment="center" valignment="top">
18096 <column alignment="center" valignment="top" width="0pt">
18098 <cell alignment="center" valignment="top" usebox="none">
18101 \begin_layout Plain Layout
18107 <cell alignment="center" valignment="top" usebox="none">
18110 \begin_layout Plain Layout
18116 <cell alignment="center" valignment="top" usebox="none">
18119 \begin_layout Plain Layout
18127 <cell alignment="center" valignment="top" usebox="none">
18130 \begin_layout Plain Layout
18136 <cell alignment="center" valignment="top" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18156 <cell alignment="center" valignment="top" usebox="none">
18159 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18185 <cell alignment="center" valignment="top" usebox="none">
18188 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" usebox="none">
18206 \begin_layout Plain Layout
18225 \begin_layout Standard
18229 \begin_layout Plain Layout
18239 \begin_inset Note Note
18242 \begin_layout Plain Layout
18243 turns off the row coloring
18251 \begin_layout Standard
18255 \begin_layout Plain Layout
18265 \begin_inset Note Note
18268 \begin_layout Plain Layout
18269 The following will be displayed when the LaTeX-package
18281 \begin_layout Standard
18282 You need to install the package
18286 to see the content of this section in the output.
18289 \begin_layout Standard
18293 \begin_layout Plain Layout
18305 \begin_layout Subsection
18307 \begin_inset Index idx
18310 \begin_layout Plain Layout
18311 Table Color ! for Lines
18317 \begin_inset Index idx
18320 \begin_layout Plain Layout
18321 Color ! for Table Lines
18329 \begin_layout Standard
18330 As described in section
18331 \begin_inset space ~
18335 \begin_inset CommandInset ref
18337 reference "sub:Line-Thickness"
18341 , the line thickness for all lines in a table can be adjusted with the length
18350 \begin_inset space \thinspace{}
18353 pt for all tables of this section.
18357 \begin_layout Plain Layout
18363 arrayrulewidth}{1.5pt}
18371 \begin_layout Standard
18372 To color vertical lines for example with green, create the following column
18373 format in the document preamble, according to the description in section
18374 \begin_inset space ~
18378 \begin_inset CommandInset ref
18380 reference "sub:Customized-Format"
18387 \begin_layout Standard
18392 newcolumntype{W}{!{
18399 \begin_layout Standard
18401 \begin_inset space ~
18405 \begin_inset CommandInset ref
18407 reference "tab:Table-with-vertical-colored"
18415 was used for the last column and
18419 for the other columns.
18422 \begin_layout Standard
18423 If you want to have several colors, define more column formats.
18426 \begin_layout Standard
18427 \begin_inset Float table
18433 \begin_layout Plain Layout
18434 \begin_inset Caption Standard
18436 \begin_layout Plain Layout
18437 \begin_inset CommandInset label
18439 name "tab:Table-with-vertical-colored"
18443 Table with colored vertical lines
18451 \begin_layout Plain Layout
18453 \begin_inset Tabular
18454 <lyxtabular version="3" rows="3" columns="3">
18455 <features rotate="0" tabularvalignment="middle">
18456 <column alignment="center" valignment="top" special="Wc">
18457 <column alignment="center" valignment="top" special="Wc">
18458 <column alignment="center" valignment="top" special="WcW">
18460 <cell alignment="center" valignment="top" topline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" usebox="none">
18472 \begin_layout Plain Layout
18478 <cell alignment="center" valignment="top" topline="true" usebox="none">
18481 \begin_layout Plain Layout
18489 <cell alignment="center" valignment="top" topline="true" usebox="none">
18492 \begin_layout Plain Layout
18498 <cell alignment="center" valignment="top" topline="true" usebox="none">
18501 \begin_layout Plain Layout
18507 <cell alignment="center" valignment="top" topline="true" usebox="none">
18510 \begin_layout Plain Layout
18518 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18521 \begin_layout Plain Layout
18527 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18530 \begin_layout Plain Layout
18536 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18539 \begin_layout Plain Layout
18558 \begin_layout Standard
18559 \begin_inset VSpace bigskip
18562 To color horizontal lines for example with red, as in Table
18563 \begin_inset space ~
18567 \begin_inset CommandInset ref
18569 reference "tab:Table-with-horizontal-colored"
18573 , insert these commands in TeX-Code before the table or table float:
18576 \begin_layout Standard
18586 \begin_inset Newline newline
18594 \begin_inset Newline newline
18598 \begin_inset Phantom HPhantom
18601 \begin_layout Plain Layout
18604 \begin_inset space ~
18614 arrayrulecolor{red}
18618 arrayrulecolor{black}}
18621 \begin_layout Standard
18625 \begin_layout Plain Layout
18636 \begin_layout Plain Layout
18645 \begin_layout Plain Layout
18649 arrayrulecolor{red}
18653 arrayrulecolor{black}}
18659 \begin_inset Float table
18665 \begin_layout Plain Layout
18666 \begin_inset Caption Standard
18668 \begin_layout Plain Layout
18669 \begin_inset CommandInset label
18671 name "tab:Table-with-horizontal-colored"
18675 Table with colored horizontal lines
18683 \begin_layout Plain Layout
18685 \begin_inset Tabular
18686 <lyxtabular version="3" rows="3" columns="3">
18687 <features rotate="0" tabularvalignment="middle">
18688 <column alignment="center" valignment="top">
18689 <column alignment="center" valignment="top">
18690 <column alignment="center" valignment="top">
18692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18695 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18704 \begin_layout Plain Layout
18710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18713 \begin_layout Plain Layout
18721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18724 \begin_layout Plain Layout
18730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18742 \begin_layout Plain Layout
18750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18753 \begin_layout Plain Layout
18759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18771 \begin_layout Plain Layout
18790 \begin_layout Standard
18791 To return to the default line color black, insert this command in TeX-Code
18792 after the table or table float:
18795 \begin_layout Standard
18807 \begin_layout Standard
18809 \begin_inset space ~
18813 \begin_inset CommandInset ref
18815 reference "tab:Table-with-colored"
18819 is an example with colored vertical and horizontal lines.
18822 \begin_layout Standard
18823 \begin_inset Float table
18829 \begin_layout Plain Layout
18830 \begin_inset Caption Standard
18832 \begin_layout Plain Layout
18833 \begin_inset CommandInset label
18835 name "tab:Table-with-colored"
18839 Table with colored lines
18847 \begin_layout Plain Layout
18849 \begin_inset Tabular
18850 <lyxtabular version="3" rows="3" columns="3">
18851 <features rotate="0" tabularvalignment="middle">
18852 <column alignment="center" valignment="top" special="Wc">
18853 <column alignment="center" valignment="top" special="Wc">
18854 <column alignment="center" valignment="top" special="WcW">
18856 <cell alignment="center" valignment="top" topline="true" usebox="none">
18859 \begin_layout Plain Layout
18865 <cell alignment="center" valignment="top" topline="true" usebox="none">
18868 \begin_layout Plain Layout
18874 <cell alignment="center" valignment="top" topline="true" usebox="none">
18877 \begin_layout Plain Layout
18885 <cell alignment="center" valignment="top" topline="true" usebox="none">
18888 \begin_layout Plain Layout
18894 <cell alignment="center" valignment="top" topline="true" usebox="none">
18897 \begin_layout Plain Layout
18903 <cell alignment="center" valignment="top" topline="true" usebox="none">
18906 \begin_layout Plain Layout
18913 <row topspace="default">
18914 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18917 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18926 \begin_layout Plain Layout
18932 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18935 \begin_layout Plain Layout
18954 \begin_layout Standard
18958 \begin_layout Plain Layout
18974 \begin_layout Standard
18978 \begin_layout Plain Layout
18984 arrayrulewidth}{0.4pt}
18992 \begin_layout Section
18993 Rotated Table Cells
18994 \begin_inset CommandInset label
18996 name "sec:Rotated-Table-Cells"
19001 \begin_inset Index idx
19004 \begin_layout Plain Layout
19005 Table ! Rotated Cells
19011 \begin_inset Index idx
19014 \begin_layout Plain Layout
19023 \begin_layout Standard
19024 \begin_inset Note Greyedout
19027 \begin_layout Plain Layout
19032 Not all DVI-viewers are able to display rotations.
19040 \begin_layout Standard
19041 Currently LyX only offers to rotate table cells by 90
19042 \begin_inset space \thinspace{}
19045 ° counter-clockwise.
19046 To rotate cells by an angle of your choice, you have to add this to the
19050 \begin_layout Standard
19055 @ifundefined{turnbox}{
19057 usepackage{rotating}}{}
19060 \begin_layout Standard
19061 In the table cell that should be rotated, add at the beginning this command
19065 \begin_layout Standard
19073 \begin_layout Standard
19074 where angle is the rotation angle in °.
19075 At the end of the cell the command
19078 \begin_layout Standard
19086 \begin_layout Standard
19087 is inserted as TeX-code.
19090 \begin_layout Standard
19092 \begin_inset space ~
19096 \begin_inset CommandInset ref
19098 reference "tab:Table-with-rotated-multi"
19102 is an example where 3
19103 \begin_inset space ~
19106 cells were rotated by 45
19107 \begin_inset space \thinspace{}
19113 \begin_layout Standard
19114 \begin_inset Float table
19119 \begin_layout Plain Layout
19120 \begin_inset Caption Standard
19122 \begin_layout Plain Layout
19123 \begin_inset CommandInset label
19125 name "tab:Table-with-rotated"
19129 Table with rotated cells in the first row.
19137 \begin_layout Plain Layout
19140 \begin_inset Tabular
19141 <lyxtabular version="3" rows="2" columns="3">
19142 <features rotate="0" tabularvalignment="middle">
19143 <column alignment="center" valignment="top">
19144 <column alignment="center" valignment="top" width="0pt">
19145 <column alignment="center" valignment="top">
19147 <cell alignment="center" valignment="top" usebox="none">
19150 \begin_layout Plain Layout
19154 \begin_layout Plain Layout
19167 \begin_layout Plain Layout
19181 <cell alignment="center" valignment="top" usebox="none">
19184 \begin_layout Plain Layout
19188 \begin_layout Plain Layout
19201 \begin_layout Plain Layout
19215 <cell alignment="center" valignment="top" usebox="none">
19218 \begin_layout Plain Layout
19222 \begin_layout Plain Layout
19235 \begin_layout Plain Layout
19251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19254 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19263 \begin_layout Plain Layout
19269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19272 \begin_layout Plain Layout
19291 \begin_layout Standard
19292 \begin_inset Note Greyedout
19295 \begin_layout Plain Layout
19300 Line breaks (shortcut
19303 arg "newline-insert newline"
19306 ) are not allowed in rotated cells.
19314 \begin_layout Standard
19315 If you want to rotate table cells containing line breaks, you have to put
19316 the cell content into a minipage or a parbox.
19320 \begin_layout Plain Layout
19321 For more about these boxes see sec.
19322 \begin_inset space \thinspace{}
19326 \begin_inset CommandInset ref
19328 reference "sec:Minipages"
19333 \begin_inset CommandInset ref
19335 reference "sec:Parboxes"
19344 If you rotate this cell by 90
19345 \begin_inset space \thinspace{}
19348 ° the width of the box is the height of the cell.
19350 \begin_inset space ~
19354 \begin_inset CommandInset ref
19356 reference "tab:Table-with-rotated-multi"
19360 is an example for a rotated multiline cell where the box width was set
19362 \begin_inset space \thinspace{}
19368 \begin_layout Standard
19369 \begin_inset Float table
19374 \begin_layout Plain Layout
19375 \begin_inset Caption Standard
19377 \begin_layout Plain Layout
19378 \begin_inset CommandInset label
19380 name "tab:Table-with-rotated-multi"
19384 Table with rotated multiline cell.
19392 \begin_layout Plain Layout
19395 \begin_inset Tabular
19396 <lyxtabular version="3" rows="2" columns="3">
19397 <features rotate="0" tabularvalignment="middle">
19398 <column alignment="center" valignment="top">
19399 <column alignment="center" valignment="top" width="0pt">
19400 <column alignment="center" valignment="top">
19402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19405 \begin_layout Plain Layout
19411 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19414 \begin_layout Plain Layout
19415 \begin_inset Box Frameless
19425 height_special "totalheight"
19428 \begin_layout Plain Layout
19430 \begin_inset Newline newline
19443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19446 \begin_layout Plain Layout
19454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19457 \begin_layout Plain Layout
19463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19466 \begin_layout Plain Layout
19472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19475 \begin_layout Plain Layout
19494 \begin_layout Section
19495 Table Width Calculation
19496 \begin_inset CommandInset label
19498 name "sec:Table-Width-Calculation"
19505 \begin_layout Standard
19506 For wide tables it is sometimes difficult to assure that the table does
19507 not protrude over the page margin.
19508 Setting a fixed width for every column of the table is the solution, but
19509 what amount of space is needed for each column?
19512 \begin_layout Standard
19514 \begin_inset Formula $W_{\mathrm{table}}$
19517 can be calculated: Every column has the width of the specified column width
19519 \begin_inset Formula $W_{\mathrm{column}}$
19522 (that the content of the column can consume) plus two times the separation
19523 between the column content and the column border (LaTeX length
19530 \begin_inset space \thinspace{}
19533 pt) plus the width of a border line (LaTeX length
19540 \begin_inset space \thinspace{}
19544 \begin_inset Formula $n$
19548 \begin_inset space ~
19551 columns have the same width, the table width is
19552 \begin_inset Formula
19554 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19562 \begin_layout Standard
19563 The available width for a table is the space between the page margins or
19564 the width of a text column (for a two-column document) (LaTeX length
19571 If all table columns should have the same width and
19572 \begin_inset Formula $W_{\mathrm{table}}$
19576 \begin_inset space \thinspace{}
19582 \begin_inset Formula $W_{\mathrm{column}}$
19585 can easily be calculated.
19588 \begin_layout Standard
19589 To be able to perform calculations you need to load the LaTeX-package
19594 \begin_inset Index idx
19597 \begin_layout Plain Layout
19598 LaTeX-packages ! calc
19603 in the document preamble.
19604 To set the width in the table dialog you have to use the field
19609 The command scheme for this field is the same that is explained in section
19610 \begin_inset space ~
19614 \begin_inset CommandInset ref
19616 reference "sub:Multicolumn-Calculations"
19622 \begin_inset space \thinspace{}
19625 columns with an uniform width and centered text, enter there for each column
19629 \begin_layout Standard
19636 columnwidth-62.4pt)/5}
19639 \begin_layout Standard
19641 \begin_inset space \thinspace{}
19644 columns where 2 should have 0.75
19645 \begin_inset space ~
19648 times the width than the 3 others, the calculation is
19649 \begin_inset Formula
19651 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19652 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19653 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19654 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19662 \begin_layout Standard
19663 In the table therefore the command
19666 \begin_layout Standard
19673 columnwidth-62.4pt)/
19678 \begin_layout Standard
19679 is used for the wider columns and
19682 \begin_layout Standard
19689 columnwidth-62.4pt)/
19696 \begin_layout Standard
19697 for the smaller ones:
19700 \begin_layout Standard
19701 \begin_inset Tabular
19702 <lyxtabular version="3" rows="2" columns="5">
19703 <features rotate="0" tabularvalignment="middle">
19704 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19705 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19706 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19707 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19708 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19713 \begin_layout Plain Layout
19719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19722 \begin_layout Plain Layout
19728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19731 \begin_layout Plain Layout
19737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19740 \begin_layout Plain Layout
19746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19749 \begin_layout Plain Layout
19757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19760 \begin_layout Plain Layout
19761 111111 1111111 111111 111111111 11111 11111 1111
19766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19769 \begin_layout Plain Layout
19775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19778 \begin_layout Plain Layout
19779 2222 22222 222222 222222222 2222222 22 22222
19784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19787 \begin_layout Plain Layout
19793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19796 \begin_layout Plain Layout
19797 333333 333333 333333 33333 3333333 333
19810 \begin_layout Section
19811 Table Customization
19812 \begin_inset Index idx
19815 \begin_layout Plain Layout
19816 Table Customization
19822 \begin_inset Index idx
19825 \begin_layout Plain Layout
19826 Table ! Customization
19834 \begin_layout Subsection
19836 \begin_inset CommandInset label
19838 name "sub:Row-Spacing"
19843 \begin_inset Index idx
19846 \begin_layout Plain Layout
19847 Table Customization ! Row Spacing
19855 \begin_layout Standard
19856 You can add vertical space to table rows in the
19860 tab of the table dialog.
19861 You find there three possibilities:
19864 \begin_layout Description
19866 \begin_inset space ~
19870 \begin_inset space ~
19873 row will add space above the characters of the table row.
19874 If the table is a formal table
19878 \begin_layout Plain Layout
19879 Formal tables are explained in section
19880 \begin_inset space ~
19884 \begin_inset CommandInset ref
19886 reference "sec:Formal-Tables"
19895 LyX will insert as default 0.5
19896 \begin_inset space \thinspace{}
19900 For normal tables the inserted space will unfortunately destroy the vertical
19901 table lines as in the following table:
19902 \begin_inset VSpace medskip
19906 \begin_inset Newline newline
19910 \begin_inset space \hspace*{}
19915 \begin_inset space \hfill{}
19919 \begin_inset Tabular
19920 <lyxtabular version="3" rows="3" columns="1">
19921 <features rotate="0" tabularvalignment="middle">
19922 <column alignment="center" valignment="top">
19924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19927 \begin_layout Plain Layout
19934 <row topspace="3mm">
19935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19938 \begin_layout Plain Layout
19940 \begin_inset space \thinspace{}
19943 mm space top of row
19950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19953 \begin_layout Plain Layout
19965 \begin_inset space \hfill{}
19969 \begin_inset space \hspace*{}
19974 \begin_inset VSpace medskip
19978 \begin_inset Newline newline
19981 So inserting space in the top of row for normal tables is only useful when
19982 you don't have vertical lines.
19985 \begin_layout Description
19987 \begin_inset space ~
19991 \begin_inset space ~
19994 row will add space below the characters of the table row.
19995 If the table is a formal table LyX will insert as default 0.5
19996 \begin_inset space \thinspace{}
19999 em space, for normal tables the default size is 2
20000 \begin_inset space \thinspace{}
20006 \begin_layout Description
20008 \begin_inset space ~
20011 rows adds space between the current and the following row.
20012 If the table is a formal table LyX will insert as default 0.5
20013 \begin_inset space \thinspace{}
20017 For normal tables the inserted space will unfortunately destroy the vertical
20018 table lines as in the following table:
20019 \begin_inset VSpace medskip
20023 \begin_inset Newline newline
20027 \begin_inset space \hspace*{}
20032 \begin_inset space \hfill{}
20036 \begin_inset Tabular
20037 <lyxtabular version="3" rows="3" columns="1">
20038 <features rotate="0" tabularvalignment="middle">
20039 <column alignment="center" valignment="top">
20041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20044 \begin_layout Plain Layout
20051 <row interlinespace="3mm">
20052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20055 \begin_layout Plain Layout
20056 \begin_inset Formula $\downarrow$
20060 \begin_inset space \thinspace{}
20063 mm space between row
20064 \begin_inset Formula $\downarrow$
20074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20077 \begin_layout Plain Layout
20078 \begin_inset Formula $\uparrow$
20082 \begin_inset space \thinspace{}
20085 mm space between row
20086 \begin_inset Formula $\uparrow$
20100 \begin_inset space \hfill{}
20104 \begin_inset space \hspace*{}
20109 \begin_inset VSpace medskip
20113 \begin_inset Newline newline
20116 So inserting space between rows for normal tables is only useful when you
20117 don't have vertical lines.
20120 \begin_layout Standard
20121 \begin_inset VSpace bigskip
20124 When you want to add extra height to all cells of all tables, you can do
20125 this with the following preamble lines:
20128 \begin_layout Standard
20133 @ifundefined{extrarowheight}
20134 \begin_inset Newline newline
20138 \begin_inset Phantom HPhantom
20141 \begin_layout Plain Layout
20144 \begin_inset space ~
20154 usepackage{array}}{}
20155 \begin_inset Newline newline
20162 extrarowheight}{height}
20165 \begin_layout Standard
20166 But this has the disadvantage that the cell texts are no longer exactly
20167 vertically centered.
20172 will be loaded automatically by LyX when you use self defined table formats.
20173 To avoid that it being loaded twice the command
20179 is used in the above command.)
20182 \begin_layout Standard
20183 If you are using font sizes larger than the normal size, the table borders
20184 are often too close to the letters.
20185 This can be corrected by inserting the command
20191 in TeX-Code at the beginning of a table row.
20193 \begin_inset space ~
20197 \begin_inset CommandInset ref
20199 reference "tab:Vertical-alignment-of"
20203 illustrates the effect.
20206 \begin_layout Standard
20208 \begin_inset Float table
20214 \begin_layout Plain Layout
20215 \begin_inset Caption Standard
20217 \begin_layout Plain Layout
20218 \begin_inset CommandInset label
20220 name "tab:Vertical-alignment-of"
20224 Vertical alignment of text with large font sizes.
20232 \begin_layout Plain Layout
20233 \begin_inset space \hfill{}
20237 \begin_inset Float table
20242 \begin_layout Plain Layout
20243 \begin_inset Caption Standard
20245 \begin_layout Plain Layout
20254 \begin_layout Plain Layout
20257 \begin_inset Tabular
20258 <lyxtabular version="3" rows="6" columns="1">
20259 <features rotate="0" tabularvalignment="middle">
20260 <column alignment="left" valignment="top">
20262 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20265 \begin_layout Plain Layout
20273 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20276 \begin_layout Plain Layout
20286 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20289 \begin_layout Plain Layout
20299 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20302 \begin_layout Plain Layout
20312 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20315 \begin_layout Plain Layout
20325 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20328 \begin_layout Plain Layout
20347 \begin_inset space \hfill{}
20351 \begin_inset Float table
20356 \begin_layout Plain Layout
20357 \begin_inset Caption Standard
20359 \begin_layout Plain Layout
20360 Table using the command
20374 \begin_layout Plain Layout
20377 \begin_inset Tabular
20378 <lyxtabular version="3" rows="6" columns="1">
20379 <features rotate="0" tabularvalignment="middle">
20380 <column alignment="left" valignment="top">
20382 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20385 \begin_layout Plain Layout
20393 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20396 \begin_layout Plain Layout
20402 \begin_layout Plain Layout
20418 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20421 \begin_layout Plain Layout
20427 \begin_layout Plain Layout
20443 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20446 \begin_layout Plain Layout
20452 \begin_layout Plain Layout
20468 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20471 \begin_layout Plain Layout
20477 \begin_layout Plain Layout
20493 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20496 \begin_layout Plain Layout
20502 \begin_layout Plain Layout
20529 \begin_inset space \hfill{}
20540 \begin_layout Subsection
20541 Special Cell Alignment
20542 \begin_inset CommandInset label
20544 name "sub:Special-Cell-Alignment"
20549 \begin_inset Index idx
20552 \begin_layout Plain Layout
20553 Table Customization ! Special Cell Alignment
20561 \begin_layout Standard
20562 Sometimes it looks better when the cell entries of a column are aligned
20563 with a special character, e.
20564 \begin_inset space \thinspace{}
20568 \begin_inset space \space{}
20571 with the decimal separator as in Table
20572 \begin_inset space ~
20576 \begin_inset CommandInset ref
20578 reference "tab:Table-cells-align"
20583 This alignment is achieved by setting the cursor into the column and then
20584 either pressing the toolbar button
20587 arg "inset-modify tabular align-decimal"
20590 or setting the alignment in the table settings to
20593 \begin_inset space ~
20597 \begin_inset space ~
20603 The alignment character can be a character of your choice and is specified
20604 in the table settings.
20607 \begin_layout Standard
20608 \begin_inset Float table
20614 \begin_layout Plain Layout
20615 \begin_inset Caption Standard
20617 \begin_layout Plain Layout
20618 \begin_inset CommandInset label
20620 name "tab:Table-cells-align"
20624 Table cells of a column aligned with the decimal separator.
20632 \begin_layout Plain Layout
20634 \begin_inset Tabular
20635 <lyxtabular version="3" rows="4" columns="1">
20636 <features rotate="0" booktabs="true" tabularvalignment="middle">
20637 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20639 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20642 \begin_layout Plain Layout
20650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20653 \begin_layout Plain Layout
20661 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20664 \begin_layout Plain Layout
20672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20675 \begin_layout Plain Layout
20694 \begin_layout Standard
20695 \begin_inset Float table
20701 \begin_layout Plain Layout
20702 \begin_inset Caption Standard
20704 \begin_layout Plain Layout
20705 \begin_inset CommandInset label
20707 name "tab:Table-align-operator"
20711 Table cells of a column aligned with the operators.
20719 \begin_layout Plain Layout
20721 \begin_inset Tabular
20722 <lyxtabular version="3" rows="4" columns="2">
20723 <features rotate="0" booktabs="true" tabularvalignment="middle">
20724 <column alignment="right" valignment="top" width="0pt">
20725 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20727 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20730 \begin_layout Plain Layout
20736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20739 \begin_layout Plain Layout
20747 <cell alignment="center" valignment="top" usebox="none">
20750 \begin_layout Plain Layout
20751 \begin_inset Formula $12\,+$
20759 <cell alignment="center" valignment="top" usebox="none">
20762 \begin_layout Plain Layout
20763 \begin_inset Formula $\,6$
20773 <cell alignment="center" valignment="top" usebox="none">
20776 \begin_layout Plain Layout
20777 \begin_inset Formula $0\,-$
20785 <cell alignment="center" valignment="top" usebox="none">
20788 \begin_layout Plain Layout
20789 \begin_inset Formula $\,68$
20799 <cell alignment="center" valignment="top" usebox="none">
20802 \begin_layout Plain Layout
20803 \begin_inset Formula $-123\,/$
20811 <cell alignment="center" valignment="top" usebox="none">
20814 \begin_layout Plain Layout
20815 \begin_inset Formula $\,0$
20836 \begin_layout Standard
20837 For alignments at characters in formulas this method does not work because
20838 the field to specify the alignment character does not allow formulas.
20839 In this case one need to use the method from Table
20840 \begin_inset space ~
20844 \begin_inset CommandInset ref
20846 reference "tab:Table-align-operator"
20851 This table was created with a 4×2 table.
20852 The heading is a centered multicolumn.
20853 The first column is right-aligned and contains the first part including
20855 The second column is left aligned and contains the rest.
20856 A small space was added at the beginning of each cell of the second column
20857 to get the space that is usually around operators.
20858 To omit the space that is normally between two table columns, the following
20859 LaTeX-argument was used for the second column:
20862 \begin_layout Standard
20868 \begin_layout Standard
20870 \begin_inset space ~
20874 \begin_inset CommandInset ref
20876 reference "tab:Several-table-cell"
20880 shows some example alignments.
20881 For the alignment with the relation sign, a small space was added like
20882 for the second column of Table
20883 \begin_inset space ~
20887 \begin_inset CommandInset ref
20889 reference "tab:Table-align-operator"
20896 \begin_layout Standard
20897 \begin_inset Float table
20903 \begin_layout Plain Layout
20904 \begin_inset Caption Standard
20906 \begin_layout Plain Layout
20907 \begin_inset CommandInset label
20909 name "tab:Several-table-cell"
20913 Several table cell alignments.
20921 \begin_layout Plain Layout
20923 \begin_inset Tabular
20924 <lyxtabular version="3" rows="4" columns="6">
20925 <features rotate="0" tabularvalignment="middle">
20926 <column alignment="right" valignment="top">
20927 <column alignment="left" valignment="top" special="@{}l">
20928 <column alignment="right" valignment="top">
20929 <column alignment="left" valignment="top" special="@{}l">
20930 <column alignment="right" valignment="top">
20931 <column alignment="left" valignment="top" special="@{}l">
20933 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20936 \begin_layout Plain Layout
20942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20945 \begin_layout Plain Layout
20951 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20954 \begin_layout Plain Layout
20960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20963 \begin_layout Plain Layout
20969 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20972 \begin_layout Plain Layout
20978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20981 \begin_layout Plain Layout
20989 <cell alignment="center" valignment="top" usebox="none">
20992 \begin_layout Plain Layout
20998 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21001 \begin_layout Plain Layout
21003 \begin_inset space \thinspace{}
21011 <cell alignment="center" valignment="top" usebox="none">
21014 \begin_layout Plain Layout
21015 \begin_inset Formula $10\cdot$
21023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21026 \begin_layout Plain Layout
21027 \begin_inset Formula $10^{\mbox{-}17}$
21035 <cell alignment="center" valignment="top" usebox="none">
21038 \begin_layout Plain Layout
21039 \begin_inset Formula $\Gamma(t)\propto$
21047 <cell alignment="center" valignment="top" usebox="none">
21050 \begin_layout Plain Layout
21051 \begin_inset Formula $\:\Upsilon(t)$
21061 <cell alignment="center" valignment="top" usebox="none">
21064 \begin_layout Plain Layout
21070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21073 \begin_layout Plain Layout
21075 \begin_inset space \thinspace{}
21083 <cell alignment="center" valignment="top" usebox="none">
21086 \begin_layout Plain Layout
21087 \begin_inset Formula $5.78\cdot$
21095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21098 \begin_layout Plain Layout
21099 \begin_inset Formula $10^{7}$
21107 <cell alignment="center" valignment="top" usebox="none">
21110 \begin_layout Plain Layout
21111 \begin_inset Formula $A\ne$
21119 <cell alignment="center" valignment="top" usebox="none">
21122 \begin_layout Plain Layout
21123 \begin_inset Formula $\: B_{\mathrm{red}}$
21133 <cell alignment="center" valignment="top" usebox="none">
21136 \begin_layout Plain Layout
21142 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21145 \begin_layout Plain Layout
21147 \begin_inset space \thinspace{}
21155 <cell alignment="center" valignment="top" usebox="none">
21158 \begin_layout Plain Layout
21160 \begin_inset Formula $33.5\cdot$
21168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21171 \begin_layout Plain Layout
21172 \begin_inset Formula $10^{4}$
21180 <cell alignment="center" valignment="top" usebox="none">
21183 \begin_layout Plain Layout
21184 \begin_inset Formula $\sin(\alpha)\ge$
21192 <cell alignment="center" valignment="top" usebox="none">
21195 \begin_layout Plain Layout
21196 \begin_inset Formula $\:\sin(\beta)$
21217 \begin_layout Subsection
21218 Customized Cell/Column Format
21219 \begin_inset CommandInset label
21221 name "sub:Customized-Format"
21226 \begin_inset Index idx
21229 \begin_layout Plain Layout
21230 Table Customization ! Cell/Column Format
21238 \begin_layout Standard
21239 Calculating the required width for normal columns as described in section
21240 \begin_inset space ~
21244 \begin_inset CommandInset ref
21246 reference "sec:Table-Width-Calculation"
21250 or for spanned columns as described in section
21251 \begin_inset space ~
21255 \begin_inset CommandInset ref
21257 reference "sub:Multicolumn-Calculations"
21261 is very annoying if you have several tables where a calculation is necessary.
21262 To make life easier, you can define a cell/column format in the preamble,
21263 that can be used in all tables of the document.
21264 The format is defined with the command
21267 \begin_layout Standard
21272 newcolumntype{name of format}[number of arguments]{commands}
21275 \begin_layout Standard
21276 The format name may only consist of one letter.
21301 are predefined and cannot be used.
21302 But all letters are allowed as capitals.
21305 \begin_layout Standard
21306 \begin_inset VSpace medskip
21312 \begin_layout Standard
21313 For vertically and horizontally centered multicolumn cells with a fixed
21314 width you can define the cell format
21317 \begin_layout Standard
21322 newcolumntype{M}[1]{>{
21329 \begin_layout Standard
21336 avoids the problem of hyphenating the first word, as described in section
21337 \begin_inset space ~
21341 \begin_inset CommandInset ref
21343 reference "sub:Multiple-Lines-in"
21348 Now you can simply enter
21351 \begin_layout Standard
21357 \begin_layout Standard
21362 in the table dialog to create a multicolumn.
21365 \begin_layout Standard
21366 \begin_inset VSpace bigskip
21372 \begin_layout Standard
21373 For cells spanned by a multicolumn cell, you can define the format
21376 \begin_layout Standard
21381 newcolumntype{S}[2]{>{
21386 \begin_inset Newline newline
21390 \begin_inset Phantom HPhantom
21393 \begin_layout Plain Layout
21407 arrayrulewidth)*(1-#2))/#2}}
21410 \begin_layout Standard
21411 This format uses equation
21412 \begin_inset CommandInset ref
21418 to calculate the required width so that each spanned cell has the same
21422 \begin_layout Standard
21426 \begin_layout Standard
21429 S{width of multicolumn cell}{number of spanned columns}
21432 \begin_layout Standard
21433 as LaTeX-argument of the column.
21436 \begin_layout Standard
21437 \begin_inset VSpace bigskip
21443 \begin_layout Standard
21444 For colored columns, you can define
21447 \begin_layout Standard
21452 newcolumntype{K}[1]{>{
21459 \begin_layout Standard
21461 \begin_inset Quotes eld
21465 \begin_inset Quotes erd
21468 at the end creates a column with a flexible width whose text is horizontally
21473 \begin_layout Standard
21479 \begin_layout Standard
21483 \begin_layout Standard
21484 \begin_inset VSpace bigskip
21490 \begin_layout Standard
21492 \begin_inset space ~
21496 \begin_inset CommandInset ref
21498 reference "tab:Table-using-user-defined"
21502 use the LaTeX-arguments
21505 \begin_layout Standard
21511 \begin_layout Standard
21512 for the first column and the multicolumn,
21515 \begin_layout Standard
21521 \begin_layout Standard
21522 for the last column, and
21525 \begin_layout Standard
21531 \begin_layout Standard
21532 for the cells in the second column.
21535 \begin_layout Standard
21536 \begin_inset Float table
21542 \begin_layout Plain Layout
21543 \begin_inset Caption Standard
21545 \begin_layout Plain Layout
21546 \begin_inset CommandInset label
21548 name "tab:Table-using-user-defined"
21552 Table using user-defined table formats
21560 \begin_layout Plain Layout
21562 \begin_inset Tabular
21563 <lyxtabular version="3" rows="3" columns="4">
21564 <features rotate="0" tabularvalignment="middle">
21565 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21566 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21567 <column alignment="center" valignment="middle">
21568 <column alignment="center" valignment="middle" special="K{red}">
21570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21573 \begin_layout Plain Layout
21574 verylongtablecellword
21579 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21582 \begin_layout Plain Layout
21583 multiple lines multicolumn
21588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21591 \begin_layout Plain Layout
21597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21600 \begin_layout Plain Layout
21608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21611 \begin_layout Plain Layout
21617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21620 \begin_layout Plain Layout
21626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21629 \begin_layout Plain Layout
21635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21638 \begin_layout Plain Layout
21646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21649 \begin_layout Plain Layout
21655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21658 \begin_layout Plain Layout
21664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21667 \begin_layout Plain Layout
21673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21676 \begin_layout Plain Layout
21695 \begin_layout Subsection
21697 \begin_inset CommandInset label
21699 name "sub:Line-Thickness"
21704 \begin_inset Index idx
21707 \begin_layout Plain Layout
21708 Table Customization ! Line Thickness
21716 \begin_layout Standard
21717 The line thickness for all lines in a table can be adjusted with the length
21725 To set for example a line thickness of 1.5
21726 \begin_inset space \thinspace{}
21730 \begin_inset space ~
21734 \begin_inset CommandInset ref
21736 reference "tab:Table-with-1.5"
21740 , insert the command
21743 \begin_layout Standard
21750 arrayrulewidth}{1.5pt}
21753 \begin_layout Standard
21754 in TeX-Code before the table or table float.
21755 The changed thickness is valid for all subsequent tables.
21756 To use the default value again, set
21763 \begin_inset space \thinspace{}
21766 pt in TeX-Code after the table or table float.
21769 \begin_layout Standard
21773 \begin_layout Plain Layout
21779 arrayrulewidth}{1.5pt}
21785 \begin_inset Float table
21790 \begin_layout Plain Layout
21791 \begin_inset Caption Standard
21793 \begin_layout Plain Layout
21794 \begin_inset CommandInset label
21796 name "tab:Table-with-1.5"
21801 \begin_inset space \thinspace{}
21812 \begin_layout Plain Layout
21814 \begin_inset Tabular
21815 <lyxtabular version="3" rows="3" columns="3">
21816 <features rotate="0" tabularvalignment="middle">
21817 <column alignment="center" valignment="top">
21818 <column alignment="center" valignment="top">
21819 <column alignment="center" valignment="top">
21821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21824 \begin_layout Plain Layout
21830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21833 \begin_layout Plain Layout
21839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21842 \begin_layout Plain Layout
21850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21853 \begin_layout Plain Layout
21859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21862 \begin_layout Plain Layout
21868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21871 \begin_layout Plain Layout
21879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21882 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21900 \begin_layout Plain Layout
21920 \begin_layout Plain Layout
21926 arrayrulewidth}{0.4pt}
21934 \begin_layout Standard
21935 \begin_inset VSpace bigskip
21938 To set the line thickness to 1.5
21939 \begin_inset space \thinspace{}
21942 pt only for horizontal lines, as in Table
21943 \begin_inset space ~
21947 \begin_inset CommandInset ref
21949 reference "tab:Table-with-horizontal"
21953 , insert these commands in TeX-Code before the table or table float:
21956 \begin_layout Standard
21966 \begin_inset Newline newline
21974 \begin_inset Newline newline
21983 arrayrulewidth 1.5pt}
21984 \begin_inset Newline newline
21995 arrayrulewidth 0.4pt}}
21998 \begin_layout Standard
21999 To return to the default line thickness, insert this command in TeX-Code
22000 after the table or table float:
22003 \begin_layout Standard
22015 \begin_layout Standard
22019 \begin_layout Plain Layout
22030 \begin_layout Plain Layout
22039 \begin_layout Plain Layout
22047 arrayrulewidth 1.5pt}
22050 \begin_layout Plain Layout
22060 arrayrulewidth 0.4pt}}
22066 \begin_inset Float table
22071 \begin_layout Plain Layout
22072 \begin_inset Caption Standard
22074 \begin_layout Plain Layout
22075 \begin_inset CommandInset label
22077 name "tab:Table-with-horizontal"
22082 \begin_inset space \thinspace{}
22085 pt thick horizontal lines
22093 \begin_layout Plain Layout
22095 \begin_inset Tabular
22096 <lyxtabular version="3" rows="3" columns="3">
22097 <features rotate="0" tabularvalignment="middle">
22098 <column alignment="center" valignment="top">
22099 <column alignment="center" valignment="top">
22100 <column alignment="center" valignment="top">
22102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22105 \begin_layout Plain Layout
22111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22114 \begin_layout Plain Layout
22120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22123 \begin_layout Plain Layout
22131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22134 \begin_layout Plain Layout
22140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22143 \begin_layout Plain Layout
22149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22152 \begin_layout Plain Layout
22160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22163 \begin_layout Plain Layout
22169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22172 \begin_layout Plain Layout
22178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22181 \begin_layout Plain Layout
22201 \begin_layout Plain Layout
22217 \begin_layout Standard
22218 \begin_inset VSpace bigskip
22221 To set the line thickness to 1.5
22222 \begin_inset space \thinspace{}
22225 pt only for vertical lines, create the following column format in the document
22226 preamble, according to the description in section
22227 \begin_inset space ~
22231 \begin_inset CommandInset ref
22233 reference "sub:Customized-Format"
22240 \begin_layout Standard
22245 newcolumntype{V}{!{
22247 vrule width 1.5pt}}
22250 \begin_layout Standard
22252 \begin_inset space ~
22256 \begin_inset CommandInset ref
22258 reference "tab:Table-with-vertical"
22265 \begin_layout Standard
22271 \begin_layout Standard
22272 was used for the last column and
22275 \begin_layout Standard
22281 \begin_layout Standard
22282 for the other columns.
22285 \begin_layout Standard
22286 \begin_inset Float table
22291 \begin_layout Plain Layout
22292 \begin_inset Caption Standard
22294 \begin_layout Plain Layout
22295 \begin_inset CommandInset label
22297 name "tab:Table-with-vertical"
22302 \begin_inset space \thinspace{}
22305 pt thick vertical lines
22313 \begin_layout Plain Layout
22315 \begin_inset Tabular
22316 <lyxtabular version="3" rows="3" columns="3">
22317 <features rotate="0" tabularvalignment="middle">
22318 <column alignment="center" valignment="top" special="Vc">
22319 <column alignment="center" valignment="top" special="Vc">
22320 <column alignment="center" valignment="top" special="VcV">
22322 <cell alignment="center" valignment="top" topline="true" usebox="none">
22325 \begin_layout Plain Layout
22331 <cell alignment="center" valignment="top" topline="true" usebox="none">
22334 \begin_layout Plain Layout
22340 <cell alignment="center" valignment="top" topline="true" usebox="none">
22343 \begin_layout Plain Layout
22351 <cell alignment="center" valignment="top" topline="true" usebox="none">
22354 \begin_layout Plain Layout
22360 <cell alignment="center" valignment="top" topline="true" usebox="none">
22363 \begin_layout Plain Layout
22369 <cell alignment="center" valignment="top" topline="true" usebox="none">
22372 \begin_layout Plain Layout
22380 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22383 \begin_layout Plain Layout
22389 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22392 \begin_layout Plain Layout
22398 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22401 \begin_layout Plain Layout
22420 \begin_layout Subsection
22422 \begin_inset Index idx
22425 \begin_layout Plain Layout
22426 Table Customization ! Dashed Lines
22434 \begin_layout Standard
22438 \begin_layout Plain Layout
22448 \begin_inset Note Note
22451 \begin_layout Plain Layout
22452 The following section will only be displayed when the LaTeX-package
22464 \begin_layout Standard
22465 \begin_inset Float table
22471 \begin_layout Plain Layout
22472 \begin_inset Caption Standard
22474 \begin_layout Plain Layout
22475 \begin_inset CommandInset label
22477 name "tab:Table-with-dashed"
22481 Table with dashed lines
22489 \begin_layout Plain Layout
22491 \begin_inset Tabular
22492 <lyxtabular version="3" rows="5" columns="5">
22493 <features rotate="0" tabularvalignment="middle">
22494 <column alignment="center" valignment="top">
22495 <column alignment="center" valignment="top">
22496 <column alignment="center" valignment="top" special=":c">
22497 <column alignment="center" valignment="top">
22498 <column alignment="center" valignment="top">
22500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22503 \begin_layout Plain Layout
22509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22512 \begin_layout Plain Layout
22518 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22521 \begin_layout Plain Layout
22527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22530 \begin_layout Plain Layout
22536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22539 \begin_layout Plain Layout
22547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22550 \begin_layout Plain Layout
22556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22559 \begin_layout Plain Layout
22565 <cell alignment="center" valignment="top" topline="true" usebox="none">
22568 \begin_layout Plain Layout
22574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22577 \begin_layout Plain Layout
22583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22586 \begin_layout Plain Layout
22594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22597 \begin_layout Plain Layout
22601 \begin_layout Plain Layout
22615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22618 \begin_layout Plain Layout
22624 <cell alignment="center" valignment="top" usebox="none">
22627 \begin_layout Plain Layout
22633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22636 \begin_layout Plain Layout
22642 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22645 \begin_layout Plain Layout
22653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22656 \begin_layout Plain Layout
22660 \begin_layout Plain Layout
22674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22677 \begin_layout Plain Layout
22683 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22686 \begin_layout Plain Layout
22692 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22695 \begin_layout Plain Layout
22701 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22704 \begin_layout Plain Layout
22712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22715 \begin_layout Plain Layout
22721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22724 \begin_layout Plain Layout
22730 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22733 \begin_layout Plain Layout
22739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22742 \begin_layout Plain Layout
22748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22751 \begin_layout Plain Layout
22770 \begin_layout Standard
22771 LyX does not natively support dashed lines, so you have to use TeX-Code.
22772 As a prerequisite the LaTeX-package
22777 \begin_inset Index idx
22780 \begin_layout Plain Layout
22781 LaTeX-packages ! arydshln
22786 must be loaded in the document preamble with the command
22789 \begin_layout Standard
22794 usepackage{arydshln}
22797 \begin_layout Standard
22798 To make a vertical line dashed, enter the colon
22799 \begin_inset Quotes eld
22803 \begin_inset Quotes erd
22806 together with the character for the horizontal alignment as LaTeX-argument
22807 in the table cell dialog.
22810 \begin_layout Standard
22811 For a horizontal dashed line add the command
22814 \begin_layout Standard
22822 \begin_layout Standard
22823 in TeX-Code as first element of the first cell in the table row.
22826 \begin_layout Standard
22827 For dashed multicolumn lines use the command
22830 \begin_layout Standard
22835 cdashline{line number
22840 \begin_layout Standard
22841 in TeX-Code as the first element of the first cell in the table row.
22842 If you have for example a multicolumn spanning columns 2 to 4 and you want
22843 to have a dashed line above, add the command
22846 \begin_layout Standard
22854 \begin_layout Standard
22855 as the first element of the first cell in the row of the multicolumn.
22858 \begin_layout Standard
22859 \begin_inset VSpace bigskip
22865 \begin_layout Standard
22867 \begin_inset space ~
22871 \begin_inset CommandInset ref
22873 reference "tab:Table-with-dashed"
22878 \begin_inset Quotes eld
22886 \begin_inset Quotes erd
22889 as LaTeX-argument of the third column.
22890 The TeX-Code command
22896 was inserted in the first cell of the third row and the TeX-Code command
22897 \begin_inset Newline newline
22906 was inserted in the first cell of the fourth row.
22909 \begin_layout Standard
22910 \begin_inset VSpace bigskip
22916 \begin_layout Standard
22917 Tables with dashed lines can also be colored as shown by Table
22918 \begin_inset space ~
22922 \begin_inset CommandInset ref
22924 reference "tab:Colored-table-with"
22931 \begin_layout Standard
22935 \begin_layout Plain Layout
22941 arrayrulewidth}{1pt}
22947 \begin_inset Note Note
22950 \begin_layout Plain Layout
22951 thicker lines for better visualization of the line color
22959 \begin_layout Standard
22963 \begin_layout Plain Layout
22967 dashgapcolor{green}
22973 \begin_inset Note Note
22976 \begin_layout Plain Layout
22977 color gaps between dashes green
22985 \begin_layout Standard
22989 \begin_layout Plain Layout
23000 \begin_layout Plain Layout
23009 \begin_layout Plain Layout
23013 arrayrulecolor{red}
23017 arrayrulecolor{black}}
23023 \begin_inset Note Note
23026 \begin_layout Plain Layout
23027 color horizontal, dashed lines red
23035 \begin_layout Standard
23039 \begin_layout Plain Layout
23050 \begin_layout Plain Layout
23059 \begin_layout Plain Layout
23063 arrayrulecolor{yellow}
23067 arrayrulecolor{black}}
23073 \begin_inset Note Note
23076 \begin_layout Plain Layout
23077 color partial horizontal, dashed lines yellow
23085 \begin_layout Standard
23086 \begin_inset Float table
23092 \begin_layout Plain Layout
23093 \begin_inset Caption Standard
23095 \begin_layout Plain Layout
23096 \begin_inset CommandInset label
23098 name "tab:Colored-table-with"
23102 Colored table with dashed lines
23110 \begin_layout Plain Layout
23112 \begin_inset Tabular
23113 <lyxtabular version="3" rows="5" columns="5">
23114 <features rotate="0" tabularvalignment="middle">
23115 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23116 <column alignment="center" valignment="top" width="0pt">
23117 <column alignment="center" valignment="top" width="0pt" special=":c">
23118 <column alignment="center" valignment="top">
23119 <column alignment="center" valignment="top">
23121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23124 \begin_layout Plain Layout
23130 <cell alignment="center" valignment="top" topline="true" usebox="none">
23133 \begin_layout Plain Layout
23139 <cell alignment="center" valignment="top" topline="true" usebox="none">
23142 \begin_layout Plain Layout
23148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23151 \begin_layout Plain Layout
23157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23160 \begin_layout Plain Layout
23168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23171 \begin_layout Plain Layout
23177 <cell alignment="center" valignment="top" topline="true" usebox="none">
23180 \begin_layout Plain Layout
23186 <cell alignment="center" valignment="top" topline="true" usebox="none">
23189 \begin_layout Plain Layout
23195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23198 \begin_layout Plain Layout
23204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23207 \begin_layout Plain Layout
23215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23218 \begin_layout Plain Layout
23222 \begin_layout Plain Layout
23235 \begin_layout Plain Layout
23249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23252 \begin_layout Plain Layout
23258 <cell alignment="center" valignment="top" usebox="none">
23261 \begin_layout Plain Layout
23267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23270 \begin_layout Plain Layout
23276 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23279 \begin_layout Plain Layout
23287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23290 \begin_layout Plain Layout
23294 \begin_layout Plain Layout
23308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23311 \begin_layout Plain Layout
23317 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23320 \begin_layout Plain Layout
23326 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23329 \begin_layout Plain Layout
23335 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23338 \begin_layout Plain Layout
23346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23349 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23358 \begin_layout Plain Layout
23364 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23367 \begin_layout Plain Layout
23373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23376 \begin_layout Plain Layout
23382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23385 \begin_layout Plain Layout
23389 \begin_layout Plain Layout
23416 \begin_layout Standard
23420 \begin_layout Plain Layout
23434 \begin_inset Note Note
23437 \begin_layout Plain Layout
23446 \begin_layout Standard
23450 \begin_layout Plain Layout
23464 \begin_inset Note Note
23467 \begin_layout Plain Layout
23476 \begin_layout Standard
23480 \begin_layout Plain Layout
23490 \begin_inset Note Note
23493 \begin_layout Plain Layout
23502 \begin_layout Standard
23506 \begin_layout Plain Layout
23512 arrayrulewidth}{0.4pt}
23518 \begin_inset Note Note
23521 \begin_layout Plain Layout
23530 \begin_layout Standard
23531 The coloring of lines, columns and lines works as decribed in section
23532 \begin_inset space ~
23536 \begin_inset CommandInset ref
23538 reference "sec:Colored-Tables"
23543 Coloring horizontal lines works analogically as described there as well,
23544 one only needs to replace in the commands
23568 ; so one uses the command
23571 \begin_layout Standard
23581 \begin_inset Newline newline
23589 \begin_inset Newline newline
23593 \begin_inset Phantom HPhantom
23596 \begin_layout Plain Layout
23597 \begin_inset space ~
23607 arrayrulecolor{red}
23611 arrayrulecolor{black}}
23614 \begin_layout Standard
23624 \begin_layout Standard
23634 \begin_inset Newline newline
23642 \begin_inset Newline newline
23646 \begin_inset Phantom HPhantom
23649 \begin_layout Plain Layout
23650 \begin_inset space ~
23660 arrayrulecolor{red}
23664 arrayrulecolor{black}}
23667 \begin_layout Standard
23668 To get back the black line color, one needs to insert the following commands
23669 as TeX-Code behind the table:
23672 \begin_layout Standard
23680 \begin_layout Standard
23692 \begin_layout Standard
23700 \begin_layout Standard
23712 \begin_layout Standard
23713 To color the gaps between the dashes the command
23716 \begin_layout Standard
23721 dashgapcolor{color}
23724 \begin_layout Standard
23725 can be used in front of a table as TeX-Code.
23726 color is hereby the name of a defined color.
23730 \begin_layout Standard
23738 \begin_layout Standard
23739 unsets the changes made by
23748 \begin_layout Standard
23749 \begin_inset Note Greyedout
23752 \begin_layout Plain Layout
23758 : If there are multiple commands in a cell, the command of
23762 needs to be the first one in the cell.
23768 \begin_inset space ~
23772 \begin_inset CommandInset ref
23774 reference "tab:Colored-table-with"
23798 \begin_layout Standard
23799 \begin_inset Note Greyedout
23802 \begin_layout Plain Layout
23812 must be loaded in the document preamble before the LaTeX-package
23817 \begin_inset Index idx
23820 \begin_layout Plain Layout
23821 LaTeX-packages ! colortbl
23834 \begin_layout Standard
23838 \begin_layout Plain Layout
23848 \begin_inset Note Note
23851 \begin_layout Plain Layout
23852 The following will be displayed when the LaTeX-package
23864 \begin_layout Standard
23865 You need to install the package
23869 to see the content of this section in the output.
23872 \begin_layout Standard
23876 \begin_layout Plain Layout
23888 \begin_layout Standard
23889 For more information about dashed lines see the documentation of
23894 \begin_inset CommandInset citation
23903 \begin_layout Chapter
23905 \begin_inset CommandInset label
23912 \begin_inset Index idx
23915 \begin_layout Plain Layout
23924 \begin_layout Section
23926 \begin_inset CommandInset label
23928 name "sec:FloatIntroduction"
23933 \begin_inset Index idx
23936 \begin_layout Plain Layout
23937 Floats ! Introduction
23945 \begin_layout Standard
23946 A float is a block of text associated with some sort of label, which doesn't
23947 have a fixed location.
23949 \begin_inset Quotes eld
23953 \begin_inset Quotes erd
23956 forward or backward a page or two, to wherever it fits best.
23964 \begin_inset space ~
23969 are also floats because they can float to the next page when there are
23970 too many notes on the page.
23973 \begin_layout Standard
23974 Floats allow a high quality layout.
23975 Images and tables can be spread evenly among the pages to avoid white space
23976 and pages without text.
23977 As the floating often destroys the context between the text and the image/table
23978 , every float can be referenced in the text.
23979 Floats are therefore numbered.
23980 Referencing is described in section
23981 \begin_inset space ~
23985 \begin_inset CommandInset ref
23987 reference "sec:Referencing-Floats"
23994 \begin_layout Standard
23995 To insert a float, use the menu
23997 Insert\SpecialChar \menuseparator
24003 arg "float-insert figure"
24009 arg "float-insert table"
24017 inset, a box with a label.
24018 The label will automatically be translated to the document language in
24020 After the label you can insert the caption text.
24021 The image or table is inserted above or below the caption in a separate
24022 paragraph within the float.
24023 More about the caption placement is contained in section
24024 \begin_inset space ~
24028 \begin_inset CommandInset ref
24030 reference "sec:Caption-Placement"
24035 To keep your LyX-document readable, you can open and close the float box
24036 by left-clicking on the box label.
24037 A closed float box looks like this:
24038 \begin_inset Graphics
24039 filename clipart/floatQt4.png
24041 scaleBeforeRotation
24045 – a gray button with a red label.
24048 \begin_layout Standard
24049 It is recommended that you insert floats as separate standard paragraphs
24050 to avoid possible LaTeX-errors that can occur when the surrounding text
24051 is specially formatted.
24054 \begin_layout Standard
24055 Existing figures or tables can be put into a float by highlighting them
24056 and then pressing the corresponding toolbar button for a new float.
24059 \begin_layout Section
24063 \begin_layout Standard
24064 Besides figure and table floats that are described in sections
24065 \begin_inset space ~
24069 \begin_inset CommandInset ref
24071 reference "sec:Figure-Floats"
24076 \begin_inset CommandInset ref
24078 reference "sec:Table-Floats"
24082 respectively, LyX offers the float types
24091 The latter are explained in sec.
24092 \begin_inset space \thinspace{}
24096 \begin_inset CommandInset ref
24098 reference "sec:Wrap-Floats"
24105 \begin_layout Subsection
24107 \begin_inset Index idx
24110 \begin_layout Plain Layout
24111 Floats ! Algorithms
24119 \begin_layout Standard
24120 \begin_inset Float algorithm
24126 \begin_layout Plain Layout
24127 \begin_inset Caption Standard
24129 \begin_layout Plain Layout
24130 \begin_inset CommandInset label
24132 name "alg:Example-Algorithm-float"
24136 Example Algorithm float
24144 \begin_layout LyX-Code
24146 \begin_inset Newline newline
24149 Sum:= Sum + A(I); /*comment*/
24150 \begin_inset Newline newline
24154 \begin_inset VSpace -4mm
24165 \begin_layout Standard
24166 This float type is inserted with the menu
24168 Insert\SpecialChar \menuseparator
24169 Float\SpecialChar \menuseparator
24173 It is used for program codes and descriptions of algorithms and can be
24174 seen as an alternative to program code listings that are explained in chapter
24175 \begin_inset space ~
24179 \begin_inset CommandInset ref
24181 reference "cha:Program-Code-Listings"
24186 A possible environment for algorithms is the
24190 , described in LyX's
24196 \begin_inset space ~
24200 \begin_inset CommandInset ref
24202 reference "alg:Example-Algorithm-float"
24206 is an example of an algorithm float where -4
24207 \begin_inset space \thinspace{}
24210 mm vertical space was added at the end of the float to have the bottom rule
24211 exactly below the last text line.
24214 \begin_layout Standard
24215 The float label is not automatically translated into the document language.
24216 If your document is not in English, you have to do this manually by adding
24217 the following line to the document preamble
24222 \begin_layout Standard
24227 floatname{algorithm}{your
24228 \begin_inset space ~
24234 \begin_layout Standard
24238 \begin_inset space ~
24244 \begin_inset Quotes eld
24252 \begin_inset Quotes erd
24258 \begin_layout Standard
24259 To insert the list of algorithms you can use the menu
24261 Insert\SpecialChar \menuseparator
24263 \begin_inset space \thinspace{}
24267 \begin_inset space \thinspace{}
24270 TOC\SpecialChar \menuseparator
24273 when your document has the same language as LyX's menu names.
24274 In other cases use this command in TeX-Code instead:
24277 \begin_layout Standard
24282 listof{algorithm}{your
24283 \begin_inset space ~
24289 \begin_layout Standard
24293 \begin_inset space ~
24299 \begin_inset Quotes eld
24307 \begin_inset Quotes erd
24313 \begin_layout Standard
24314 Algorithm floats are not by default numbered in the scheme
24315 \begin_inset Quotes eld
24319 \begin_inset Quotes erd
24322 as is the case for table and figure floats in many document-classes.
24323 To number algorithm floats in the same scheme, add this command to your
24327 \begin_layout Standard
24332 numberwithin{algorithm}{chapter}
24335 \begin_layout Standard
24336 To be able to use the command
24345 \begin_inset space ~
24350 in the document settings the option
24353 \begin_inset space ~
24357 \begin_inset space ~
24361 \begin_inset space ~
24369 \begin_layout Section
24371 \begin_inset Index idx
24374 \begin_layout Plain Layout
24383 \begin_layout Standard
24384 Floats are usually numbered either independently from the sections the floats
24385 are in, or in the scheme
24386 \begin_inset Quotes eld
24390 \begin_inset Quotes erd
24394 \begin_inset Quotes eld
24398 \begin_inset Quotes erd
24402 This depends on the document class used.
24405 \begin_layout Standard
24406 To change section-independent numbering, you can use this command in the
24410 \begin_layout Standard
24422 \begin_layout Standard
24429 is the command that prints the table number.
24430 For figure floats, the command would be
24443 in the command above prints the table number as a small roman number.
24446 \begin_layout Standard
24447 To change the numbering scheme for example to
24448 \begin_inset Quotes eld
24452 \begin_inset Quotes erd
24455 , use this command in the preamble:
24458 \begin_layout Standard
24463 numberwithin{table}{subsection}
24466 \begin_layout Standard
24467 To be able to use the command
24476 \begin_inset space ~
24481 in the document settings the option
24484 \begin_inset space ~
24488 \begin_inset space ~
24492 \begin_inset space ~
24500 \begin_layout Standard
24501 Please also have a look at section
24502 \begin_inset space ~
24506 \begin_inset CommandInset ref
24508 reference "sub:Footnote-Numbering"
24512 for the details and important notes about the numbering commands.
24515 \begin_layout Section
24517 \begin_inset CommandInset label
24519 name "sec:Referencing-Floats"
24524 \begin_inset Index idx
24527 \begin_layout Plain Layout
24528 Floats ! References
24534 \begin_inset Index idx
24537 \begin_layout Plain Layout
24538 References ! to Floats
24546 \begin_layout Standard
24547 To reference a float, insert a label into its caption using the menu
24549 Insert\SpecialChar \menuseparator
24552 or the toolbar button
24559 A grey label box like this one:
24560 \begin_inset Graphics
24561 filename clipart/labelQt4.png
24563 scaleBeforeRotation
24567 will be inserted and the label window pops up asking for the label text.
24568 LyX offers as text the first words of the caption with a prefix.
24569 The prefix depends on the float type, e.
24570 \begin_inset space \thinspace{}
24574 \begin_inset space \space{}
24577 for figure floats the prefix will be "
24584 \begin_layout Standard
24585 The label is used as anchor and name for the reference.
24586 You can refer to the label using the menu
24588 Insert\SpecialChar \menuseparator
24591 or the toolbar button
24594 arg "dialog-show-new-inset ref"
24598 The cross-reference window appears showing all labels of the document.
24599 If you have multiple LyX-documents opened, choose the one you are working
24600 on from the drop-list at the top of the dialog.
24601 You can now sort the labels alphabetically and then choose one.
24602 A grey cross-reference box like this one:
24603 \begin_inset Graphics
24604 filename clipart/referenceQt4.png
24606 scaleBeforeRotation
24611 At the position of the cross-reference box the float number will appear
24615 \begin_layout Standard
24616 It is recommended that you use a protected space between the cross-reference
24617 name and its number to avoid line breaks between them.
24618 If a cross-reference refers to a non-existing label, you will see two question
24619 marks in the output instead of the reference.
24622 \begin_layout Standard
24623 You can change labels at any time by clicking on the label box.
24624 References to the changed label will automatically update their links to
24625 the new label text.
24628 \begin_layout Standard
24632 \begin_inset space ~
24636 \begin_inset space ~
24641 in the cross-reference window sets the cursor before the referred label.
24642 The button text changes then to Go
24643 \begin_inset space ~
24646 Back and you can use it to set the cursor back to the cross-reference.
24649 \begin_layout Subsection
24650 Cross-Reference Formats
24651 \begin_inset CommandInset label
24653 name "sub:Cross-Reference-Formats"
24658 \begin_inset Index idx
24661 \begin_layout Plain Layout
24662 References ! Formats
24670 \begin_layout Standard
24671 There are six varieties of cross-references:
24674 \begin_layout Description
24675 <reference>: prints the float number, this is the default:
24676 \begin_inset CommandInset ref
24678 reference "fig:Two-distorted-images"
24685 \begin_layout Description
24686 (<reference>): prints the float number within two parentheses, this is the
24687 style normally used to reference formulas, especially when the reference
24689 \begin_inset Quotes eld
24693 \begin_inset Quotes erd
24697 \begin_inset CommandInset ref
24706 \begin_layout Description
24707 <page>: prints the page number: Page
24708 \begin_inset space ~
24712 \begin_inset CommandInset ref
24713 LatexCommand pageref
24714 reference "fig:Two-distorted-images"
24721 \begin_layout Description
24723 \begin_inset space ~
24727 \begin_inset space ~
24730 <page>: prints the text "on page" and the page number:
24731 \begin_inset CommandInset ref
24732 LatexCommand vpageref
24733 reference "fig:Two-distorted-images"
24740 \begin_layout Description
24742 \begin_inset space ~
24746 \begin_inset space ~
24750 \begin_inset space ~
24753 <page>: prints the float number, the text "on page", and the page number:
24755 \begin_inset CommandInset ref
24757 reference "fig:Two-distorted-images"
24764 \begin_layout Description
24766 \begin_inset space ~
24769 reference: prints a self-defined cross-reference format.
24770 \begin_inset Newline newline
24774 \begin_inset Note Greyedout
24777 \begin_layout Plain Layout
24782 This feature is only available when you have the LaTeX-package
24791 \begin_inset Index idx
24794 \begin_layout Plain Layout
24795 LaTeX-packages ! prettyref
24801 \begin_inset Index idx
24804 \begin_layout Plain Layout
24805 LaTeX-packages ! refstyle
24816 \begin_inset Newline newline
24819 You can select which LaTeX-package should be used for this feature by setting
24822 Use refstyle (not prettyref) for cross-references
24826 Document\SpecialChar \menuseparator
24827 Settings\SpecialChar \menuseparator
24831 The format is specified by adding the command
24843 (refstyle) to the preamble of the document.
24844 For example redefining all references to figures (which have the label
24846 \begin_inset Quotes eld
24854 \begin_inset Quotes erd
24857 ) can be done with this command
24858 \begin_inset Newline newline
24865 newref{fig}{refcmd={Image on page
24870 \begin_inset Newline newline
24873 For more information about the format, have a look at the package documentations
24875 \begin_inset CommandInset citation
24877 key "prettyref,refstyle"
24884 \begin_layout Description
24886 \begin_inset space ~
24889 reference: prints the caption of the reference:
24890 \begin_inset CommandInset ref
24891 LatexCommand nameref
24892 reference "fig:Two-distorted-images"
24899 \begin_layout Standard
24904 will not print the page number if the label is on the previous, the same,
24907 \begin_inset space \thinspace{}
24911 \begin_inset space \space{}
24915 \begin_inset Quotes eld
24923 \begin_inset Quotes erd
24929 <reference> on page <page>
24931 will not print anything about the page if the label is on the same page.
24934 \begin_layout Standard
24935 The number and current page of the part of the document referred to in the
24936 output is automatically calculated by LaTeX.
24937 The varieties are adjusted in the field
24941 of the cross-reference window that appears when you click on the cross-referenc
24945 \begin_layout Standard
24946 \begin_inset Note Greyedout
24949 \begin_layout Plain Layout
24954 It is recommended to use the LaTeX-package
24959 \begin_inset Index idx
24962 \begin_layout Plain Layout
24963 LaTeX-packages ! refstyle
24973 \begin_inset Index idx
24976 \begin_layout Plain Layout
24977 LaTeX-packages ! prettyref
24982 does not know all of LyX's possible label shortcuts
24986 \begin_layout Plain Layout
24987 \begin_inset Quotes eld
24991 \begin_inset Quotes erd
24994 is for example LyX's shortcut for labels in figure captions.
24999 and is not internationalized.
25007 \begin_layout Standard
25008 \begin_inset Note Greyedout
25011 \begin_layout Plain Layout
25016 Due to a bug in the LaTeX-package
25020 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25021 languages that make the period character active (like French).
25022 For a workaround, see
25023 \begin_inset Newline newline
25027 \begin_inset CommandInset href
25029 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25041 \begin_layout Subsection
25042 Automatic Reference Naming
25043 \begin_inset Index idx
25046 \begin_layout Plain Layout
25047 References ! Automatic Reference Naming
25055 \begin_layout Standard
25061 \begin_inset Index idx
25064 \begin_layout Plain Layout
25065 LaTeX-packages ! hyperref
25070 , that is enabled in the
25078 dialog, provides a very useful feature that cross-references automatically
25079 include the name of the referenced floats (or text parts like
25084 So you will save having to write e.
25085 \begin_inset space \thinspace{}
25089 \begin_inset space \space{}
25093 \begin_inset Quotes eld
25097 \begin_inset Quotes erd
25100 before every reference to a figure.
25101 To use this feature, enable
25105 and insert this line to the LaTeX preamble:
25108 \begin_layout Standard
25124 \begin_layout Standard
25125 When you prefer other reference names than the default ones, for example
25126 you want instead of
25127 \begin_inset Quotes eld
25131 \begin_inset Quotes erd
25135 \begin_inset Quotes eld
25139 \begin_inset space \thinspace{}
25143 \begin_inset Quotes eld
25146 , you can redefine the name by inserting this in the preamble:
25149 \begin_layout Standard
25160 sectionautorefname}
25161 \begin_inset Newline newline
25165 \begin_inset Phantom HPhantom
25168 \begin_layout Plain Layout
25171 \begin_inset space ~
25184 \begin_layout Standard
25185 When you are using another document language than English, replace
25186 \begin_inset Newline newline
25201 , where *** is the name of the language used.
25204 \begin_layout Standard
25205 To get automatic names, but not for certain reference types, for example
25206 not for equations, use this preamble code:
25209 \begin_layout Standard
25220 equationautorefname}[1]{}}
25223 \begin_layout Standard
25224 More about this topic can be found in
25229 \begin_inset CommandInset citation
25238 \begin_layout Standard
25239 \begin_inset Note Greyedout
25242 \begin_layout Plain Layout
25247 Automatic reference naming cannot be used when you use cross-references
25251 \begin_inset space ~
25256 style, as described in section
25257 \begin_inset space ~
25261 \begin_inset CommandInset ref
25263 reference "sub:Cross-Reference-Formats"
25275 \begin_layout Standard
25280 manual is an example where automatic reference naming is used.
25283 \begin_layout Subsection
25285 \begin_inset CommandInset label
25287 name "sub:Reference-Position"
25292 \begin_inset Index idx
25295 \begin_layout Plain Layout
25296 References ! Reference Position
25304 \begin_layout Standard
25310 \begin_inset Index idx
25313 \begin_layout Plain Layout
25314 LaTeX-packages ! hyperref
25327 dialog to link cross-references in the output, you will see that clicking
25328 on an image float reference jumps to the image label.
25329 The caption will be the first text part on the screen, so that you cannot
25330 see the image without scrolling.
25331 This is because the reference link anchor is placed at the position of
25333 With the use of the package
25338 \begin_inset Index idx
25341 \begin_layout Plain Layout
25342 LaTeX-packages ! hypcap
25347 , which is part of the LaTeX-package
25352 \begin_inset Index idx
25355 \begin_layout Plain Layout
25356 LaTeX-packages ! oberdiek
25361 , the link anchor is placed at the beginning of a float.
25362 To use this feature for figure floats, load
25366 in the document preamble with the line
25369 \begin_layout Standard
25374 usepackage[figure]{hypcap}
25377 \begin_layout Standard
25382 for all float types but this is not recommended for stability reasons.
25383 For more information, have a look at
25388 \begin_inset CommandInset citation
25397 \begin_layout Standard
25398 \begin_inset Note Greyedout
25401 \begin_layout Plain Layout
25410 has no effect on references to subfigures.
25418 \begin_layout Section
25420 \begin_inset CommandInset label
25422 name "sec:Float-Placement"
25427 \begin_inset Index idx
25430 \begin_layout Plain Layout
25439 \begin_layout Standard
25440 Right-clicking on a float-box and clicking on
25444 opens a dialog where you can alter the placement options that LaTeX uses
25445 for positioning the float.
25446 \begin_inset Newline newline
25452 \begin_inset space ~
25457 is only useful for two-column documents: If you select it, the float will
25458 span both columns on the page instead of being confined to just one.
25459 \begin_inset Newline newline
25465 \begin_inset space ~
25470 is used to rotate floats, see section
25471 \begin_inset CommandInset ref
25473 reference "sec:Rotated-Floats"
25480 \begin_layout Standard
25481 You can use one or more of the following options in the float dialog to
25482 set the placement for a particular float when you uncheck the option
25485 \begin_inset space ~
25489 \begin_inset space ~
25497 \begin_layout Description
25499 \begin_inset space ~
25503 \begin_inset space ~
25506 possible try to place the float on the position where it has been inserted
25509 \begin_layout Description
25511 \begin_inset space ~
25515 \begin_inset space ~
25518 page try to place the float at the top of the current page
25521 \begin_layout Description
25523 \begin_inset space ~
25527 \begin_inset space ~
25530 page try to place the float at the bottom of the current page
25533 \begin_layout Description
25535 \begin_inset space ~
25539 \begin_inset space ~
25542 floats try to place the float on its own page
25545 \begin_layout Standard
25546 The order of the above option is
25551 That means, if you use the default placement, LaTeX will first try out
25555 \begin_inset space ~
25559 \begin_inset space ~
25567 \begin_inset space ~
25571 \begin_inset space ~
25576 , and then the others.
25577 If you do not use the default, LaTeX will try only the checked options
25578 but in the same order.
25580 \begin_inset space ~
25583 placements is possible the procedure is internally repeated trying to put
25584 the float on the following page.
25587 \begin_layout Standard
25588 By default, each option has its own rules:
25591 \begin_layout Labeling
25592 \labelwidthstring 00.00.0000
25596 \begin_inset space ~
25600 \begin_inset space ~
25605 only floats occupying less than 70
25606 \begin_inset space \thinspace{}
25609 % of the page can be placed at the top of a page (
25618 \begin_layout Labeling
25619 \labelwidthstring 00.00.0000
25623 \begin_inset space ~
25627 \begin_inset space ~
25632 : only floats occupying less than 30
25633 \begin_inset space \thinspace{}
25636 % of the page can be placed at the bottom of a page.
25646 \begin_layout Labeling
25647 \labelwidthstring 00.00.0000
25651 \begin_inset space ~
25655 \begin_inset space ~
25660 : only if more than 50
25661 \begin_inset space \thinspace{}
25664 % of the page is occupied by floats, several floats can be set together
25675 \begin_layout Standard
25676 If you don't like these rules, you can ignore them by using the additional
25680 \begin_inset space ~
25684 \begin_inset space ~
25690 \begin_inset Newline newline
25693 You can also redefine the rules with LaTeX-commands that are given in parenthese
25694 s after the rules description above.
25695 To increase for example the often too small default of the bottom-rule
25697 \begin_inset space \thinspace{}
25700 % of the page, add this line to your document preamble:
25703 \begin_layout Standard
25710 bottomfraction}{0.5}
25713 \begin_layout Standard
25714 Sometimes you might need, under all circumstances, a float to be placed
25715 exactly at the position where it is inserted.
25716 For this case you can use the option
25719 \begin_inset space ~
25725 Use this option very rarely and only if the document is almost ready to
25726 be printed, because the float is then no longer able to
25727 \begin_inset Quotes eld
25731 \begin_inset Quotes erd
25734 when you change your document and this will often destroy the page layout.
25737 \begin_layout Standard
25738 There are no placement options for text wrap floats, because they are always
25739 surrounded by the text of a certain paragraph.
25740 \begin_inset VSpace bigskip
25746 \begin_layout Standard
25747 Sometimes you have the problem that a float is placed at the top of a page
25748 while its corresponding section starts at the middle of the page, so that
25749 the reader could think the float is part of the previous section.
25750 To avoid this the LaTeX-command
25757 It suppresses a given float placement for the page where it is inserted
25758 and can therefore be used to avoid floats being set before a section starts.
25759 To get this, add these commands to your document preamble:
25762 \begin_layout Standard
25772 \begin_inset Newline newline
25786 \begin_layout Standard
25787 You can define the same for all section headings, like chapters and subsections.
25788 This definition is not recommended to be used for small text parts like
25789 subsubsections because LaTeX may then have problems finding a suitable
25793 \begin_layout Standard
25794 \begin_inset VSpace bigskip
25797 In some cases it is required to have all figures/tables at the end of the
25799 For this purpose the LaTeX-package
25804 \begin_inset Index idx
25807 \begin_layout Plain Layout
25808 LaTeX-packages ! endfloat
25814 It puts all figure and table floats at the end of the document into their
25816 At the original float position a text hint like
25817 \begin_inset Quotes eld
25823 \begin_inset space ~
25829 \begin_inset Quotes erd
25833 The endfloat-package is loaded in the preamble with the line
25836 \begin_layout Standard
25841 usepackage[options]{endfloat}
25844 \begin_layout Standard
25845 There are various package options to format the created figure/table sections.
25846 For more information we refer you to the
25851 \begin_inset CommandInset citation
25858 \begin_inset Newline newline
25862 \begin_inset Note Greyedout
25865 \begin_layout Plain Layout
25870 doesn't provide an automatic translation for the text hint, you have to
25871 do this manually, see section
25872 \begin_inset space ~
25876 \begin_inset CommandInset citation
25888 \begin_inset Newline newline
25892 \begin_inset Note Greyedout
25895 \begin_layout Plain Layout
25900 There is currently a bug in
25904 when the caption contains a German
25905 \begin_inset Quotes eld
25909 \begin_inset Quotes erd
25913 Use in this case the command
25914 \begin_inset Quotes eld
25924 \begin_inset Quotes erd
25927 in TeX-Code instead of
25928 \begin_inset Quotes eld
25932 \begin_inset Quotes erd
25943 \begin_layout Standard
25944 \begin_inset VSpace bigskip
25947 For more details about float placements, have a look at LaTeX books,
25948 \begin_inset CommandInset citation
25950 key "latexcompanion,latexguide,latexbook"
25957 \begin_layout Section
25959 \begin_inset CommandInset label
25961 name "sec:Rotated-Floats"
25966 \begin_inset Index idx
25969 \begin_layout Plain Layout
25978 \begin_layout Standard
25979 Especially for wide tables you might have floats rotated.
25980 To rotate a whole float including the caption, right-click on the float-box
25984 \begin_inset space ~
25992 \begin_layout Standard
25993 Rotated floats are always placed on a page of their own (or column of their
25994 own; in case you have a multi-column document).
25995 You can let them span several columns using the float settings option
25998 \begin_inset space ~
26004 Floats are rotated so that you can read them from the outside margin.
26005 To force a certain rotation direction for all pages, you can add either
26014 to the document class options.
26017 \begin_layout Standard
26018 Referencing rotated floats is the same as for normal floats, the caption
26019 format is also the same: Table
26020 \begin_inset space ~
26024 \begin_inset CommandInset ref
26026 reference "tab:Rotated-table"
26030 is an example of a rotated table float.
26033 \begin_layout Standard
26034 \begin_inset Note Greyedout
26037 \begin_layout Plain Layout
26042 Not all DVI-viewers are able to display rotated floats.
26050 \begin_layout Standard
26051 \begin_inset Float table
26056 \begin_layout Plain Layout
26057 \begin_inset Caption Standard
26059 \begin_layout Plain Layout
26060 \begin_inset CommandInset label
26062 name "tab:Rotated-table"
26074 \begin_layout Plain Layout
26076 \begin_inset Tabular
26077 <lyxtabular version="3" rows="1" columns="5">
26078 <features rotate="0" tabularvalignment="middle">
26079 <column alignment="center" valignment="top">
26080 <column alignment="center" valignment="top">
26081 <column alignment="center" valignment="top">
26082 <column alignment="center" valignment="top">
26083 <column alignment="center" valignment="top">
26085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26088 \begin_layout Plain Layout
26094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26097 \begin_layout Plain Layout
26103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26106 \begin_layout Plain Layout
26112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26115 \begin_layout Plain Layout
26121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26124 \begin_layout Plain Layout
26143 \begin_layout Section
26145 \begin_inset Index idx
26148 \begin_layout Plain Layout
26157 \begin_layout Standard
26158 Subfloats are for example used when a figure consists of several images.
26159 They are created by inserting a float into an existing float.
26160 The placement of the subfloats can be controlled in the same way as for
26161 paragraphs as shown in table
26162 \begin_inset space ~
26166 \begin_inset CommandInset ref
26168 reference "tab:Two-subtables-side"
26173 \begin_inset CommandInset ref
26175 reference "tab:Two-subtables-upon"
26182 \begin_layout Standard
26183 Referencing subfloats works as for normal floats: Table
26184 \begin_inset space ~
26188 \begin_inset CommandInset ref
26190 reference "tab:This-is-subtable-a"
26195 \begin_inset CommandInset ref
26197 reference "tab:This-is-subtable-b"
26201 are subtables of table
26202 \begin_inset space ~
26206 \begin_inset CommandInset ref
26208 reference "tab:Two-subtables-side"
26215 \begin_layout Standard
26216 \begin_inset Float table
26221 \begin_layout Plain Layout
26222 \begin_inset Caption Standard
26224 \begin_layout Plain Layout
26225 \begin_inset CommandInset label
26227 name "tab:Two-subtables-side"
26231 Two subtables placed side by side.
26239 \begin_layout Plain Layout
26241 \begin_inset space \hfill{}
26245 \begin_inset Float table
26250 \begin_layout Plain Layout
26251 \begin_inset Caption Standard
26253 \begin_layout Plain Layout
26254 \begin_inset CommandInset label
26256 name "tab:This-is-subtable-a"
26260 This is subtable a.
26268 \begin_layout Plain Layout
26270 \begin_inset Tabular
26271 <lyxtabular version="3" rows="1" columns="5">
26272 <features rotate="0" tabularvalignment="middle">
26273 <column alignment="center" valignment="top">
26274 <column alignment="center" valignment="top">
26275 <column alignment="center" valignment="top">
26276 <column alignment="center" valignment="top">
26277 <column alignment="center" valignment="top">
26279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26282 \begin_layout Plain Layout
26288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26291 \begin_layout Plain Layout
26297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26300 \begin_layout Plain Layout
26306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26309 \begin_layout Plain Layout
26315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26318 \begin_layout Plain Layout
26335 \begin_inset space \hfill{}
26339 \begin_inset Float table
26344 \begin_layout Plain Layout
26345 \begin_inset Caption Standard
26347 \begin_layout Plain Layout
26348 \begin_inset CommandInset label
26350 name "tab:This-is-subtable-b"
26354 This is subtable b.
26362 \begin_layout Plain Layout
26364 \begin_inset Tabular
26365 <lyxtabular version="3" rows="1" columns="5">
26366 <features rotate="0" tabularvalignment="middle">
26367 <column alignment="center" valignment="top">
26368 <column alignment="center" valignment="top">
26369 <column alignment="center" valignment="top">
26370 <column alignment="center" valignment="top">
26371 <column alignment="center" valignment="top">
26373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26376 \begin_layout Plain Layout
26382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26385 \begin_layout Plain Layout
26391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26394 \begin_layout Plain Layout
26400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26403 \begin_layout Plain Layout
26409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26412 \begin_layout Plain Layout
26429 \begin_inset space \hfill{}
26440 \begin_layout Standard
26441 \begin_inset Float table
26446 \begin_layout Plain Layout
26447 \begin_inset Caption Standard
26449 \begin_layout Plain Layout
26450 \begin_inset CommandInset label
26452 name "tab:Two-subtables-upon"
26456 Two subtables placed one above the other.
26457 (a) table with 4 cells, (b) table with 5 cells.
26465 \begin_layout Plain Layout
26467 \begin_inset Float table
26472 \begin_layout Plain Layout
26473 \begin_inset Caption Standard
26475 \begin_layout Plain Layout
26484 \begin_layout Plain Layout
26486 \begin_inset Tabular
26487 <lyxtabular version="3" rows="1" columns="4">
26488 <features rotate="0" tabularvalignment="middle">
26489 <column alignment="center" valignment="top">
26490 <column alignment="center" valignment="top">
26491 <column alignment="center" valignment="top">
26492 <column alignment="center" valignment="top">
26494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26497 \begin_layout Plain Layout
26503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26506 \begin_layout Plain Layout
26512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26515 \begin_layout Plain Layout
26521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26524 \begin_layout Plain Layout
26543 \begin_layout Plain Layout
26545 \begin_inset Float table
26550 \begin_layout Plain Layout
26551 \begin_inset Caption Standard
26553 \begin_layout Plain Layout
26562 \begin_layout Plain Layout
26564 \begin_inset Tabular
26565 <lyxtabular version="3" rows="1" columns="5">
26566 <features rotate="0" tabularvalignment="middle">
26567 <column alignment="center" valignment="top">
26568 <column alignment="center" valignment="top">
26569 <column alignment="center" valignment="top">
26570 <column alignment="center" valignment="top">
26571 <column alignment="center" valignment="top">
26573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26576 \begin_layout Plain Layout
26582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26585 \begin_layout Plain Layout
26591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26594 \begin_layout Plain Layout
26600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26603 \begin_layout Plain Layout
26609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26612 \begin_layout Plain Layout
26636 \begin_layout Section
26637 Floats Side by Side
26638 \begin_inset Index idx
26641 \begin_layout Plain Layout
26642 Floats ! Side by side
26650 \begin_layout Standard
26651 To place floats side by side, as in Figures
26652 \begin_inset space ~
26656 \begin_inset CommandInset ref
26658 reference "fig:Float-left"
26663 \begin_inset CommandInset ref
26665 reference "fig:Float-right"
26674 In it two minipage boxes are inserted.
26678 \begin_layout Plain Layout
26679 Minipages are explained in section
26680 \begin_inset space ~
26684 \begin_inset CommandInset ref
26686 reference "sec:Minipages"
26695 The width is set to 45
26696 \begin_inset space \thinspace{}
26700 \begin_inset space \thinspace{}
26703 column% and the box alignment to
26708 The minipage boxes contain the image and the caption in the same way as
26709 they are in a float.
26710 The only difference is that the image unit
26713 \begin_inset space ~
26717 \begin_inset space ~
26722 is now calculated according to the width of the minipage boxes.
26725 \begin_layout Standard
26726 \begin_inset Float figure
26731 \begin_layout Plain Layout
26732 \begin_inset Box Frameless
26742 height_special "totalheight"
26745 \begin_layout Plain Layout
26747 \begin_inset Graphics
26748 filename clipart/mobius.eps
26751 scaleBeforeRotation
26758 \begin_layout Plain Layout
26759 \begin_inset Caption Standard
26761 \begin_layout Plain Layout
26762 \begin_inset CommandInset label
26764 name "fig:Float-left"
26768 Float on the left side.
26779 \begin_inset space \hfill{}
26783 \begin_inset Box Frameless
26793 height_special "totalheight"
26796 \begin_layout Plain Layout
26798 \begin_inset Graphics
26799 filename clipart/platypus.eps
26802 scaleBeforeRotation
26809 \begin_layout Plain Layout
26810 \begin_inset Caption Standard
26812 \begin_layout Plain Layout
26813 \begin_inset CommandInset label
26815 name "fig:Float-right"
26819 Float on the right side.
26832 \begin_layout Plain Layout
26841 \begin_layout Section
26843 \begin_inset Index idx
26846 \begin_layout Plain Layout
26847 Caption ! Formatting
26853 \begin_inset Index idx
26856 \begin_layout Plain Layout
26857 Floats ! Caption Formatting
26863 \begin_inset CommandInset label
26865 name "sec:Caption-Formatting"
26872 \begin_layout Standard
26877 environment is the default paragraph environment for
26882 On the LyX screen captions appear as a label, e.
26883 \begin_inset space \thinspace{}
26887 \begin_inset space \space{}
26891 \begin_inset Quotes eld
26899 \begin_inset Quotes erd
26902 followed by the caption text.
26904 \begin_inset Quotes eld
26908 \begin_inset Quotes erd
26911 is the actual reference number.
26912 By default the label and the number are in the same font as the caption
26913 text and a colon follows the number to divide the label from the text.
26914 This caption format is not suitable for all document formats.
26918 \begin_layout Standard
26919 To change the default caption format, load the LaTeX-package
26924 \begin_inset Index idx
26927 \begin_layout Plain Layout
26928 LaTeX-packages ! caption
26933 in the document preamble with this line:
26936 \begin_layout Standard
26941 usepackage[format definition]{caption}
26944 \begin_layout Standard
26945 To have for example the label and the number in sans-serif bold font and
26946 the table captions always above the table as in this document, use the
26950 \begin_layout Standard
26955 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26958 \begin_layout Standard
26959 You can also define different caption formats for the different float types.
26960 In this case load the
26964 package without format specific options and define the different formats
26965 with the help of the command
26968 \begin_layout Standard
26973 captionsetup[float type]{format definition}
26976 \begin_layout Standard
26977 in the document preamble.
26978 For example the caption formats of Figure
26979 \begin_inset space ~
26983 \begin_inset CommandInset ref
26985 reference "fig:This-is-an-fig"
26990 \begin_inset space ~
26994 \begin_inset CommandInset ref
26996 reference "tab:This-is-an-tab"
27000 can be created using these commands in the document preamble:
27003 \begin_layout Standard
27008 usepackage[tableposition=top]{caption}
27011 \begin_inset Newline newline
27018 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27019 \begin_inset Newline newline
27023 \begin_inset Phantom HPhantom
27026 \begin_layout Plain Layout
27031 captionsetup[figure]{
27037 \begin_inset Newline newline
27042 captionsetup[table]{labelfont={bf,sf}}
27045 \begin_layout Standard
27046 \begin_inset Note Greyedout
27049 \begin_layout Plain Layout
27058 has no effect when a
27063 \begin_inset Index idx
27066 \begin_layout Plain Layout
27067 LaTeX-packages ! KOMA-Script
27072 document class is used.
27073 In this case the document class option
27075 captions=tableheading
27085 \begin_layout Standard
27086 For more information about the package
27090 we refer to its documentation
27091 \begin_inset CommandInset citation
27100 \begin_layout Standard
27101 To change the label name from e.
27102 \begin_inset space \thinspace{}
27106 \begin_inset space \space{}
27110 \begin_inset Quotes eld
27114 \begin_inset Quotes erd
27118 \begin_inset Quotes eld
27122 \begin_inset Quotes erd
27125 use this preamble command:
27128 \begin_layout Standard
27135 fnum@figure}{Image~
27140 \begin_layout Standard
27147 inserts the figure number and
27150 \begin_inset Quotes eld
27156 \begin_inset Quotes erd
27159 creates a protected space.
27162 \begin_layout Standard
27163 \begin_inset VSpace bigskip
27171 \begin_inset Index idx
27174 \begin_layout Plain Layout
27175 LaTeX-packages ! KOMA-Script
27182 article (KOMA-Script)
27190 letter (KOMA-Script)
27194 report (KOMA-Script)
27197 \begin_inset space \thinspace{}
27200 ), you can alternatively to the
27208 's built-in command
27215 For example, to have the caption label in bold, add this command to your
27219 \begin_layout Standard
27224 setkomafont{captionlabel}{
27229 \begin_layout Standard
27230 For more information about
27241 \begin_inset CommandInset citation
27250 \begin_layout Standard
27254 \begin_layout Plain Layout
27258 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27265 \begin_inset Note Note
27268 \begin_layout Plain Layout
27269 The caption format is changed only for this example.
27277 \begin_layout Standard
27278 \begin_inset Float figure
27284 \begin_layout Plain Layout
27286 \begin_inset Graphics
27287 filename clipart/mobius.eps
27290 scaleBeforeRotation
27297 \begin_layout Plain Layout
27298 \begin_inset Caption Standard
27300 \begin_layout Plain Layout
27301 \begin_inset CommandInset label
27303 name "fig:This-is-an-fig"
27307 This is an example figure caption that is longer than one line to show the
27308 different caption format.
27309 Here a self-defined caption format is used.
27322 \begin_layout Standard
27326 \begin_layout Plain Layout
27330 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27339 \begin_layout Standard
27340 \begin_inset Float table
27346 \begin_layout Plain Layout
27347 \begin_inset Caption Standard
27349 \begin_layout Plain Layout
27350 \begin_inset CommandInset label
27352 name "tab:This-is-an-tab"
27356 This is an example table caption that is longer than one line to show the
27357 different caption format.
27358 Here the standard caption format for tables in this document is used.
27366 \begin_layout Plain Layout
27368 \begin_inset Tabular
27369 <lyxtabular version="3" rows="1" columns="5">
27370 <features rotate="0" tabularvalignment="middle">
27371 <column alignment="center" valignment="top">
27372 <column alignment="center" valignment="top">
27373 <column alignment="center" valignment="top">
27374 <column alignment="center" valignment="top">
27375 <column alignment="center" valignment="top">
27377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27380 \begin_layout Plain Layout
27386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27389 \begin_layout Plain Layout
27395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27398 \begin_layout Plain Layout
27404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27407 \begin_layout Plain Layout
27413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27416 \begin_layout Plain Layout
27435 \begin_layout Section
27437 \begin_inset Index idx
27440 \begin_layout Plain Layout
27441 Caption ! Placement
27447 \begin_inset Index idx
27450 \begin_layout Plain Layout
27451 Floats ! Caption Placement
27457 \begin_inset CommandInset label
27459 name "sec:Caption-Placement"
27466 \begin_layout Standard
27467 The common caption placement rule is:
27470 \begin_layout Description
27471 Figure: Caption is set below the figure
27474 \begin_layout Description
27475 Table: Caption is set above the table
27478 \begin_layout Standard
27479 Having the caption above the table is unfortunately not supported in LaTeX's
27481 That means if you are using the document classes
27497 there will be no space between the caption and the table.
27498 To insert the necessary space, add the following option to the load command
27499 of the LaTeX-package
27503 in your document preamble
27507 \begin_layout Plain Layout
27509 \begin_inset space ~
27513 \begin_inset CommandInset ref
27515 reference "sec:Caption-Formatting"
27519 for more information of the package
27531 \begin_layout Standard
27537 \begin_layout Standard
27543 \begin_inset Index idx
27546 \begin_layout Plain Layout
27547 LaTeX-packages ! KOMA-Script
27554 article (KOMA-Script)
27562 letter (KOMA-Script)
27566 report (KOMA-Script)
27569 \begin_inset space \thinspace{}
27572 ), you can alternatively to the
27576 package set the document class option
27578 captions=tableheading
27583 \begin_layout Standard
27584 \begin_inset VSpace bigskip
27587 It is also possible to set the caption beside a figure or table.
27588 To get this the LaTeX-package
27593 \begin_inset Index idx
27596 \begin_layout Plain Layout
27597 LaTeX-packages ! sidecap
27602 has to be loaded in the document preamble with the line
27605 \begin_layout Standard
27610 usepackage[option]{sidecap}
27613 \begin_layout Standard
27614 If you set no option, the caption is placed on the side of the outer page
27615 margin – to the right on odd pages, to the left on even pages.
27616 You can change the placement to inner margin with the option
27621 To force the placement always to the right or left, use the option
27632 \begin_layout Standard
27636 \begin_layout Plain Layout
27646 \begin_inset Note Note
27649 \begin_layout Plain Layout
27650 The following section will only be displayed when the LaTeX-package
27662 \begin_layout Standard
27663 To place in LyX the caption of a float on the side, it is necessary to add
27664 these commands to the document preamble:
27667 \begin_layout Standard
27668 \begin_inset Newpage pagebreak
27674 \begin_layout Standard
27676 \begin_inset CommandInset line
27687 \begin_layout Standard
27694 TabBesBeg}[1][1.0]{%
27695 \begin_inset Newline newline
27699 \begin_inset Phantom HPhantom
27702 \begin_layout Plain Layout
27703 \begin_inset space ~
27718 \begin_inset Newline newline
27722 \begin_inset Phantom HPhantom
27725 \begin_layout Plain Layout
27728 \begin_inset space ~
27743 \begin_inset Newline newline
27747 \begin_inset Phantom HPhantom
27750 \begin_layout Plain Layout
27753 \begin_inset space ~
27763 renewenvironment{table}[1]{
27765 begin{SCtable}[#1]##1}{
27770 \begin_layout Standard
27778 \begin_inset Newline newline
27782 \begin_inset Phantom HPhantom
27785 \begin_layout Plain Layout
27786 \begin_inset space ~
27801 \begin_inset Newline newline
27805 \begin_inset Phantom HPhantom
27808 \begin_layout Plain Layout
27809 \begin_inset space ~
27826 \begin_layout Standard
27833 FigBesBeg}[1][1.0]{%
27834 \begin_inset Newline newline
27838 \begin_inset Phantom HPhantom
27841 \begin_layout Plain Layout
27842 \begin_inset space ~
27857 \begin_inset Newline newline
27861 \begin_inset Phantom HPhantom
27864 \begin_layout Plain Layout
27865 \begin_inset space ~
27880 \begin_inset Newline newline
27884 \begin_inset Phantom HPhantom
27887 \begin_layout Plain Layout
27888 \begin_inset space ~
27898 renewenvironment{figure}[1]{
27900 begin{SCfigure}[#1]##1}{
27905 \begin_layout Standard
27913 \begin_inset Newline newline
27917 \begin_inset Phantom HPhantom
27920 \begin_layout Plain Layout
27921 \begin_inset space ~
27936 \begin_inset Newline newline
27940 \begin_inset Phantom HPhantom
27943 \begin_layout Plain Layout
27944 \begin_inset space ~
27961 \begin_layout Standard
27963 \begin_inset CommandInset line
27974 \begin_layout Standard
27975 The commands allow you to redefine the floats so that the caption is set
27977 For figure floats use the command
27980 \begin_layout Standard
27988 \begin_layout Standard
27989 in TeX-Code before the float.
27990 And insert the command
27993 \begin_layout Standard
28001 \begin_layout Standard
28002 in TeX-Code at the point where you want to get back to the original float
28006 \begin_layout Standard
28007 For table floats use the corresponding commands
28010 \begin_layout Standard
28024 \begin_layout Standard
28026 \begin_inset space ~
28030 \begin_inset CommandInset ref
28032 reference "fig:cap-beside-fig"
28037 \begin_inset space ~
28041 \begin_inset CommandInset ref
28043 reference "tab:cap-beside-tab"
28047 are examples where the caption is set beside.
28050 \begin_layout Standard
28051 You can see in the examples that the caption text appears at the top of
28052 the floats for table floats and at the bottom for figure floats.
28053 To change this, you can use the command
28056 \begin_layout Standard
28061 sidecaptionvpos{float type}{placement}
28064 \begin_layout Standard
28065 in the document preamble or in TeX-Code before the float.
28066 The float type is either
28074 , the placement can be
28075 \begin_inset Quotes eld
28083 \begin_inset Quotes erd
28087 \begin_inset Quotes eld
28095 \begin_inset Quotes erd
28099 \begin_inset Quotes eld
28107 \begin_inset Quotes erd
28111 To have for example the caption of figure floats vertically centered, use
28115 \begin_layout Standard
28120 sidecaptionvpos{figure}{c}
28123 \begin_layout Standard
28124 This was used for Figure
28125 \begin_inset space ~
28129 \begin_inset CommandInset ref
28131 reference "fig:cap-beside-fig-2"
28138 \begin_layout Standard
28139 \begin_inset VSpace medskip
28145 \begin_layout Standard
28146 The default caption width is the width of the image/table.
28147 For thin image/tables, like in Table
28148 \begin_inset space ~
28152 \begin_inset CommandInset ref
28154 reference "tab:cap-beside-tab"
28158 , this leads to captions that are too thin.
28159 You can increase the width by specifying a factor that will be multiplied
28160 with the image/table width to get the caption width.
28161 The caption width will automatically be recalculated in case it would protrude
28162 over the page or column margin due to the specified width.
28167 can either be given as optional argument for
28176 \begin_layout Standard
28184 \begin_layout Standard
28185 or in the definition of
28195 with another value.
28196 If you do the latter, your factor will be the default if
28202 is used without an argument.
28204 \begin_inset space ~
28208 \begin_inset CommandInset ref
28210 reference "tab:cap-beside-tab-wider"
28214 the factor 5 was used.
28217 \begin_layout Standard
28218 \begin_inset Note Greyedout
28221 \begin_layout Plain Layout
28226 For floats with captions set beside, you cannot use the float placement
28230 \begin_inset space ~
28235 because it is not supported by
28247 \begin_layout Standard
28248 \begin_inset VSpace medskip
28251 For more information about the package
28255 we refer to its documentation
28256 \begin_inset CommandInset citation
28265 \begin_layout Standard
28266 \begin_inset Note Greyedout
28269 \begin_layout Plain Layout
28279 \begin_inset Index idx
28282 \begin_layout Plain Layout
28283 LaTeX-packages ! hypcap
28288 , described in section
28289 \begin_inset space ~
28293 \begin_inset CommandInset ref
28295 reference "sub:Reference-Position"
28299 , has no effect on floats with the caption set beside.
28307 \begin_layout Standard
28311 \begin_layout Plain Layout
28323 \begin_layout Standard
28324 \begin_inset Float figure
28329 \begin_layout Plain Layout
28330 \begin_inset Graphics
28331 filename clipart/escher-lsd.eps
28333 scaleBeforeRotation
28340 \begin_layout Plain Layout
28341 \begin_inset Caption Standard
28343 \begin_layout Plain Layout
28344 \begin_inset CommandInset label
28346 name "fig:cap-beside-fig"
28350 This is a caption beside a figure.
28363 \begin_layout Standard
28367 \begin_layout Plain Layout
28379 \begin_layout Standard
28383 \begin_layout Plain Layout
28395 \begin_layout Standard
28396 \begin_inset Float table
28401 \begin_layout Plain Layout
28402 \begin_inset Caption Standard
28404 \begin_layout Plain Layout
28405 \begin_inset CommandInset label
28407 name "tab:cap-beside-tab"
28411 This is a caption beside a table.
28419 \begin_layout Plain Layout
28420 \begin_inset Tabular
28421 <lyxtabular version="3" rows="4" columns="5">
28422 <features rotate="0" tabularvalignment="middle">
28423 <column alignment="center" valignment="top">
28424 <column alignment="center" valignment="top">
28425 <column alignment="center" valignment="top">
28426 <column alignment="center" valignment="top">
28427 <column alignment="center" valignment="top">
28429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28432 \begin_layout Plain Layout
28438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28441 \begin_layout Plain Layout
28447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28450 \begin_layout Plain Layout
28456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28459 \begin_layout Plain Layout
28465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28468 \begin_layout Plain Layout
28476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28479 \begin_layout Plain Layout
28485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28488 \begin_layout Plain Layout
28494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28497 \begin_layout Plain Layout
28503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28506 \begin_layout Plain Layout
28512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28515 \begin_layout Plain Layout
28523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28526 \begin_layout Plain Layout
28532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28535 \begin_layout Plain Layout
28541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28544 \begin_layout Plain Layout
28550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28553 \begin_layout Plain Layout
28559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28562 \begin_layout Plain Layout
28570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28573 \begin_layout Plain Layout
28579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28582 \begin_layout Plain Layout
28588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28591 \begin_layout Plain Layout
28597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28600 \begin_layout Plain Layout
28606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28609 \begin_layout Plain Layout
28628 \begin_layout Standard
28632 \begin_layout Plain Layout
28644 \begin_layout Standard
28648 \begin_layout Plain Layout
28652 sidecaptionvpos{figure}{c}
28658 \begin_inset Float figure
28663 \begin_layout Plain Layout
28664 \begin_inset Graphics
28665 filename clipart/escher-lsd.eps
28667 scaleBeforeRotation
28674 \begin_layout Plain Layout
28675 \begin_inset Caption Standard
28677 \begin_layout Plain Layout
28678 \begin_inset CommandInset label
28680 name "fig:cap-beside-fig-2"
28684 This is a vertically centered caption beside a figure.
28697 \begin_layout Standard
28701 \begin_layout Plain Layout
28713 \begin_layout Standard
28717 \begin_layout Plain Layout
28729 \begin_layout Standard
28730 \begin_inset Float table
28735 \begin_layout Plain Layout
28736 \begin_inset Caption Standard
28738 \begin_layout Plain Layout
28739 \begin_inset CommandInset label
28741 name "tab:cap-beside-tab-wider"
28745 This is a caption is wider than the one in Table
28746 \begin_inset space ~
28750 \begin_inset CommandInset ref
28752 reference "tab:cap-beside-tab"
28764 \begin_layout Plain Layout
28765 \begin_inset Tabular
28766 <lyxtabular version="3" rows="4" columns="5">
28767 <features rotate="0" tabularvalignment="middle">
28768 <column alignment="center" valignment="top">
28769 <column alignment="center" valignment="top">
28770 <column alignment="center" valignment="top">
28771 <column alignment="center" valignment="top">
28772 <column alignment="center" valignment="top">
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" usebox="none">
28786 \begin_layout Plain Layout
28792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28795 \begin_layout Plain Layout
28801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28804 \begin_layout Plain Layout
28810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28813 \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" usebox="none">
28833 \begin_layout Plain Layout
28839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28842 \begin_layout Plain Layout
28848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28851 \begin_layout Plain Layout
28857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28860 \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" usebox="none">
28880 \begin_layout Plain Layout
28886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28889 \begin_layout Plain Layout
28895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28898 \begin_layout Plain Layout
28904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28907 \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" usebox="none">
28927 \begin_layout Plain Layout
28933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28936 \begin_layout Plain Layout
28942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28945 \begin_layout Plain Layout
28951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28954 \begin_layout Plain Layout
28973 \begin_layout Standard
28977 \begin_layout Plain Layout
28989 \begin_layout Standard
28993 \begin_layout Plain Layout
29003 \begin_inset Note Note
29006 \begin_layout Plain Layout
29007 The following will be displayed when the LaTeX-package
29019 \begin_layout Standard
29020 You need to install the LaTeX-package
29024 to see the following part of this section in the output.
29027 \begin_layout Standard
29031 \begin_layout Plain Layout
29043 \begin_layout Section
29045 \begin_inset Index idx
29048 \begin_layout Plain Layout
29049 Floats ! Float Lists
29057 \begin_layout Standard
29058 Similar to the table of contents where the sections of the document are
29059 listed, there are listings for all float types, like the figures of the
29061 You can insert them via the
29063 Insert\SpecialChar \menuseparator
29065 \begin_inset space ~
29069 \begin_inset space ~
29077 \begin_layout Standard
29078 The list entries are the float captions or its short title, the float number,
29079 and the page number where they appear in the document.
29082 \begin_layout Standard
29083 You can find the list of figures and tables at the end of this document.
29086 \begin_layout Chapter
29090 \begin_layout Section
29092 \begin_inset Index idx
29095 \begin_layout Plain Layout
29104 \begin_layout Standard
29105 Notes are inserted with the toolbar button
29113 Insert\SpecialChar \menuseparator
29117 There are three types of notes:
29120 \begin_layout Description
29122 \begin_inset space ~
29125 Note This note type is for internal notes that won't appear in the output.
29126 Its note-box looks like this:
29127 \begin_inset Newline newline
29131 \begin_inset Newline newline
29135 \begin_inset Graphics
29136 filename clipart/LyXNoteImageQt4.png
29139 scaleBeforeRotation
29144 \begin_inset Note Note
29147 \begin_layout Plain Layout
29148 This is text in a note box that doesn't appear in the output.
29156 \begin_layout Description
29157 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29158 ent, when you export the document to LaTeX via the menu
29160 File\SpecialChar \menuseparator
29161 Export\SpecialChar \menuseparator
29162 LaTeX (pdflatex) / (plain)
29165 Its note-box looks like this:
29166 \begin_inset Newline newline
29170 \begin_inset Newline newline
29174 \begin_inset Graphics
29175 filename clipart/CommentNoteImageQt4.png
29178 scaleBeforeRotation
29183 \begin_inset Note Comment
29186 \begin_layout Plain Layout
29187 This is text in a note box that only appears as comment in LaTeX-files.
29195 \begin_layout Description
29197 \begin_inset space ~
29200 Out This note will appear in the output as grey text.
29201 Its note-box looks like this:
29202 \begin_inset Newline newline
29206 \begin_inset Newline newline
29210 \begin_inset Graphics
29211 filename clipart/GreyedOutNoteImageQt4.png
29214 scaleBeforeRotation
29219 \begin_inset Newline newline
29226 \begin_layout Plain Layout
29230 renewenvironment{lyxgreyedout}
29233 \begin_layout Plain Layout
29237 textcolor[gray]{0.8}
29247 \begin_inset Note Greyedout
29250 \begin_layout Plain Layout
29255 \begin_layout Plain Layout
29256 This is an example footnote within a greyed out note.
29261 of a comment that appears in the output as grey text.
29270 \begin_layout Plain Layout
29274 renewenvironment{lyxgreyedout}
29277 \begin_layout Plain Layout
29291 \begin_inset Note Note
29294 \begin_layout Plain Layout
29295 The greyed out note is here redefined to show it with the original LyX definitio
29296 n because greyed out notes are redefined in the preamble of this document,
29297 as described below, to have blue text.
29303 \begin_inset Newline newline
29307 \begin_inset Newline newline
29310 As you can see in the example, the first line of greyed out notes is a bit
29311 indented and greyed out notes can have footnotes.
29314 \begin_layout Standard
29315 \begin_inset VSpace bigskip
29318 When you use the toolbar button
29327 \begin_inset space ~
29333 You can switch between the three note types by right-clicking on the note-box.
29338 If you want to turn existing text into a note, mark it and click on the
29352 To change a note to text, press the backspace key when the cursor is in
29353 the first position of a note, or press the delete key when the cursor is
29354 in the very last position of the note, respectively.
29357 \begin_layout Standard
29358 \begin_inset VSpace bigskip
29361 You can change the text color of the greyed out notes in the menu
29363 Document\SpecialChar \menuseparator
29364 Settings\SpecialChar \menuseparator
29370 \begin_layout Section
29372 \begin_inset CommandInset label
29374 name "sec:Footnotes"
29379 \begin_inset Index idx
29382 \begin_layout Plain Layout
29389 \begin_inset Index idx
29392 \begin_layout Plain Layout
29401 \begin_layout Standard
29402 Footnotes can be inserted using the toolbar button
29405 arg "footnote-insert"
29410 Insert\SpecialChar \menuseparator
29414 You will then see the following footnote-box:
29415 \begin_inset Graphics
29416 filename clipart/footnoteQt4.png
29418 scaleBeforeRotation
29426 where you can enter the footnote text.
29427 If you want to turn existing text into a footnote, mark it and click on
29453 key when the cursor is in the first position of a
29465 key when the cursor is in the very last position of the
29476 \begin_layout Standard
29477 Here is an example footnote:
29485 \begin_layout Plain Layout
29486 \begin_inset CommandInset label
29488 name "foot:This-is-an"
29492 This is an example footnote.
29505 \begin_layout Plain Layout
29509 newcounter{MyRepeatFoot}
29512 \begin_layout Plain Layout
29516 setcounter{MyRepeatFoot}{
29526 \begin_layout Standard
29527 The footnote will appear in the output as a superscript number at the text
29528 position where the footnote box is placed.
29529 The footnote text is placed at the bottom of the current page.
29530 The footnote number is calculated by LaTeX; the numbers are consecutive.
29531 Whether the footnote number is reset for every chapter depends on your
29535 \begin_layout Standard
29536 Footnotes can be referenced like floats: Insert a label into the footnote
29537 and cross-reference this label in the text as described in section
29538 \begin_inset space ~
29542 \begin_inset CommandInset ref
29544 reference "sec:Referencing-Floats"
29549 \begin_inset Newline newline
29552 This is a cross-reference of Footnote
29553 \begin_inset space ~
29557 \begin_inset CommandInset ref
29559 reference "foot:This-is-an"
29566 \begin_layout Standard
29567 \begin_inset VSpace defskip
29570 Footnotes in tables are not printed by LaTeX due to technical reasons.
29571 However there exists another method to print them: Instead of the footnote
29578 is inserted as TeX-code.
29579 The text of the footnote is entered as an argument of the TeX-code command
29587 \begin_inset Newline newline
29590 This was done for the following table with the command
29593 \begin_layout Standard
29600 Printed table footnote.
29605 \begin_layout Standard
29606 \begin_inset Tabular
29607 <lyxtabular version="3" rows="2" columns="1">
29608 <features rotate="0" tabularvalignment="middle">
29609 <column alignment="center" valignment="top">
29611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29614 \begin_layout Plain Layout
29615 This an example text.
29619 \begin_layout Plain Layout
29620 This footnote will not be printed!
29632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29635 \begin_layout Plain Layout
29636 This an example text.
29640 \begin_layout Plain Layout
29663 \begin_layout Plain Layout
29672 Printed table footnote.
29676 \begin_layout Plain Layout
29686 \begin_layout Standard
29687 Footnotes in longtables are described in section
29688 \begin_inset space ~
29692 \begin_inset CommandInset ref
29694 reference "sub:Footnotes-in-Longtables"
29701 \begin_layout Standard
29702 Footnotes in minipage boxes are printed, but inside the box and with a different
29703 numbering because a minipage box is like a page inside a page.
29704 (For more about minipages, see section
29705 \begin_inset space ~
29709 \begin_inset CommandInset ref
29711 reference "sec:Minipages"
29715 .) To get a footnote in the minipage that is output at the bottom of the
29716 page like normal footnotes, also use the method of
29731 \begin_layout Standard
29732 \begin_inset Box Frameless
29742 height_special "totalheight"
29745 \begin_layout Plain Layout
29746 This an example text in a minipage.
29750 \begin_layout Plain Layout
29751 Footnote in the minipage.
29759 \begin_layout Plain Layout
29760 This an example text in a minipage.
29764 \begin_layout Plain Layout
29781 \begin_layout Standard
29785 \begin_layout Plain Layout
29794 Footnote outside the minipage.
29798 \begin_layout Plain Layout
29808 \begin_layout Standard
29809 \begin_inset VSpace defskip
29815 \begin_layout Standard
29816 To refer to the same footnote several times without printing the footnote
29817 text every time, use the command
29821 footnotemark[number]
29824 \begin_inset Newline newline
29827 As you do not know the number of the repeating footnote while you are writing
29828 the text, you have to store its number.
29829 For the following footnote mark example, these commands were inserted in
29830 TeX-code after Footnote
29831 \begin_inset space ~
29835 \begin_inset CommandInset ref
29837 reference "foot:This-is-an"
29841 to store the footnote number:
29844 \begin_layout Standard
29849 newcounter{MyRepeatFoot}
29850 \begin_inset Newline newline
29855 setcounter{MyRepeatFoot}{
29860 \begin_layout Standard
29861 The footnote mark was then created with this command:
29864 \begin_layout Standard
29874 \begin_layout Standard
29875 Here is a repeated footnote:
29883 \begin_layout Plain Layout
29897 \begin_layout Standard
29898 If you want to repeat the previous footnote, you can omit the storage of
29899 the footnote number and just use this command instead:
29902 \begin_layout Standard
29912 \begin_layout Standard
29913 Here is another repeated footnote:
29921 \begin_layout Plain Layout
29935 \begin_layout Subsection
29937 \begin_inset CommandInset label
29939 name "sub:Footnote-Numbering"
29944 \begin_inset Index idx
29947 \begin_layout Plain Layout
29948 Footnotes ! Numbering
29956 \begin_layout Standard
29957 To reset the footnote number back to 1 after each section
29959 , add this command to your document preamble:
29962 \begin_layout Standard
29967 @addtoreset{footnote}{section}
29970 \begin_layout Standard
29971 \begin_inset VSpace bigskip
29974 The following preamble command changes the footnote numbering style to small
29978 \begin_layout Standard
29990 \begin_layout Standard
29994 \begin_layout Plain Layout
30007 This is a footnote with roman numbering:
30011 \begin_layout Plain Layout
30012 This is an example footnote with roman numbering.
30020 \begin_layout Standard
30021 To change the numbering style to capital roman numerals replace in the command
30036 \begin_inset Quotes eld
30040 \begin_inset Quotes erd
30043 footnotes with capital or small Latin letters use
30057 \begin_inset Quotes eld
30061 \begin_inset Quotes erd
30064 footnotes with symbols use
30073 \begin_layout Standard
30074 \begin_inset Note Greyedout
30077 \begin_layout Plain Layout
30082 You can only number 26 footnotes with Latin letters, because this numbering
30083 is limited to single letters.
30089 \begin_inset Newline newline
30093 \begin_inset Note Greyedout
30096 \begin_layout Plain Layout
30101 You can only number 9 footnotes with symbols.
30109 \begin_layout Standard
30110 To return to the default numbering style after you have changed to another
30123 in the command above.
30127 \begin_layout Plain Layout
30143 \begin_layout Standard
30144 \begin_inset VSpace bigskip
30150 \begin_layout Standard
30151 If you want to have footnotes numbered in the scheme
30152 \begin_inset Quotes eld
30156 \begin_inset Quotes erd
30159 , add the following command to your document preamble:
30162 \begin_layout Standard
30167 numberwithin{footnote}{chapter}
30170 \begin_layout Standard
30171 To be able to use the command
30180 \begin_inset space ~
30185 in the document settings the option
30188 \begin_inset space ~
30192 \begin_inset space ~
30196 \begin_inset space ~
30204 \begin_layout Standard
30208 \begin_layout Plain Layout
30212 numberwithin{footnote}{chapter}
30217 This is another example footnote:
30223 \begin_layout Plain Layout
30224 This is a footnote numbered in the scheme
30225 \begin_inset Quotes eld
30229 \begin_inset Quotes erd
30243 \begin_layout Plain Layout
30259 \begin_layout Standard
30260 \begin_inset Note Greyedout
30263 \begin_layout Plain Layout
30274 always prints out the footnote number as arabic number; previous redefinitions
30275 to get non-arabic numbers are overwritten.
30283 \begin_layout Standard
30284 So to get for example the scheme
30285 \begin_inset Quotes eld
30291 \begin_inset Quotes erd
30294 , use this command instead of
30303 \begin_layout Standard
30317 \begin_layout Subsection
30319 \begin_inset Index idx
30322 \begin_layout Plain Layout
30323 Footnotes ! Placement
30331 \begin_layout Standard
30332 If you have several footnotes in one page, they appear without vertical
30333 space between them at the bottom of the page.
30334 To make them more readable you can e.
30335 \begin_inset space \thinspace{}
30339 \begin_inset space \space{}
30343 \begin_inset space \thinspace{}
30346 mm space with the following preamble command:
30349 \begin_layout Standard
30359 \begin_inset Newline newline
30373 \begin_layout Standard
30374 \begin_inset VSpace bigskip
30377 In a two-column document the footnotes appear at the bottom of every column,
30379 \begin_inset space ~
30383 \begin_inset CommandInset ref
30385 reference "fig:Standard-footnote-placement"
30390 If the footnotes should only appear at the bottom of the right column,
30392 \begin_inset space ~
30396 \begin_inset CommandInset ref
30398 reference "fig:Footnote-placement-in"
30402 , use the LaTeX-package
30407 \begin_inset Index idx
30410 \begin_layout Plain Layout
30411 LaTeX-packages ! ftnright
30416 with this command in the document preamble:
30419 \begin_layout Standard
30424 usepackage{ftnright}
30427 \begin_layout Standard
30428 \begin_inset Float figure
30434 \begin_layout Plain Layout
30438 \begin_layout Plain Layout
30448 \begin_inset Graphics
30449 filename clipart/without_fntright.pdf
30451 scaleBeforeRotation
30459 \begin_layout Plain Layout
30469 \begin_layout Plain Layout
30470 \begin_inset Caption Standard
30472 \begin_layout Plain Layout
30473 \begin_inset CommandInset label
30475 name "fig:Standard-footnote-placement"
30479 Standard footnote placement in two-column documents.
30492 \begin_layout Standard
30493 \begin_inset Float figure
30499 \begin_layout Plain Layout
30503 \begin_layout Plain Layout
30513 \begin_inset Graphics
30514 filename clipart/with_fntright.pdf
30516 scaleBeforeRotation
30524 \begin_layout Plain Layout
30534 \begin_layout Plain Layout
30535 \begin_inset Caption Standard
30537 \begin_layout Plain Layout
30538 \begin_inset CommandInset label
30540 name "fig:Footnote-placement-in"
30544 Footnote placement in two-column documents when the LaTeX-package
30561 \begin_layout Standard
30562 \begin_inset VSpace bigskip
30565 In some scientific literature it is usual to collect the footnotes and print
30566 them in a separate paragraph at the end of a section, as in Figure
30567 \begin_inset space ~
30571 \begin_inset CommandInset ref
30573 reference "fig:Endnotes"
30578 They are then called
30579 \begin_inset Quotes eld
30583 \begin_inset Quotes erd
30587 \begin_inset Index idx
30590 \begin_layout Plain Layout
30596 To use endnotes instead of footnotes in your document, load in the menu
30599 Document\SpecialChar \menuseparator
30600 Settings\SpecialChar \menuseparator
30606 \begin_inset space ~
30610 \begin_inset space ~
30616 To insert the collected footnotes, insert the command
30619 \begin_layout Standard
30627 \begin_layout Standard
30628 in TeX-Code at the end of a section or chapter.
30631 \begin_layout Standard
30632 \begin_inset Float figure
30637 \begin_layout Plain Layout
30642 \begin_layout Plain Layout
30652 \begin_inset Graphics
30653 filename clipart/endnotes.pdf
30654 scaleBeforeRotation
30662 \begin_layout Plain Layout
30672 \begin_layout Plain Layout
30673 \begin_inset Caption Standard
30675 \begin_layout Plain Layout
30676 \begin_inset CommandInset label
30678 name "fig:Endnotes"
30682 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30696 \begin_layout Standard
30697 \begin_inset VSpace medskip
30700 The paragraph heading for the endnotes isn't automatically translated into
30701 the document language, this must be done manually.
30702 The following preamble command translates the default English
30703 \begin_inset Quotes eld
30707 \begin_inset Quotes erd
30711 \begin_inset Quotes eld
30715 \begin_inset Quotes erd
30721 \begin_layout Standard
30728 notesname}{Anmerkungen}
30731 \begin_layout Standard
30732 \begin_inset VSpace medskip
30735 The numbering of endnotes can be changed like the footnote numbering as
30736 described in section
30737 \begin_inset space ~
30741 \begin_inset CommandInset ref
30743 reference "sub:Footnote-Numbering"
30747 ; just replace the command
30760 To reset the endnote number use the command
30766 as described in section
30767 \begin_inset space ~
30771 \begin_inset CommandInset ref
30773 reference "sub:Footnote-Numbering"
30777 and replace the command parameter
30788 \begin_layout Standard
30789 For endnotes there is the command
30793 endnotemark[number]
30795 similar to the command
30801 , that is described in section
30802 \begin_inset space ~
30806 \begin_inset CommandInset ref
30808 reference "sec:Footnotes"
30815 \begin_layout Standard
30816 \begin_inset VSpace bigskip
30819 Footnotes can also be placed in the page margin and the footnote text alignment
30820 can be changed, see the LaTeX-package
30825 \begin_inset Index idx
30828 \begin_layout Plain Layout
30829 LaTeX-packages ! footmisc
30835 \begin_inset CommandInset citation
30841 for more information about this.
30844 \begin_layout Standard
30845 For various further footnote formatting issues have a look at LaTeX-books,
30847 \begin_inset CommandInset citation
30849 key "latexcompanion,latexguide,latexbook"
30859 \begin_inset Index idx
30862 \begin_layout Plain Layout
30863 LaTeX-packages ! KOMA-Script
30868 document class, you can adjust all footnote settings using class-specific
30870 \begin_inset CommandInset citation
30879 \begin_layout Section
30881 \begin_inset Index idx
30884 \begin_layout Plain Layout
30885 Notes ! Margin Notes
30893 \begin_layout Standard
30894 Margin notes look and behave in LyX like footnotes.
30895 They are inserted via the menu
30897 Insert\SpecialChar \menuseparator
30899 \begin_inset space ~
30904 or the toolbar button
30907 arg "marginalnote-insert"
30921 \begin_inset Quotes eld
30925 \begin_inset Quotes erd
30928 appears where you can enter the text of the margin note.
30931 \begin_layout Standard
30932 At the side is an example margin note.
30937 \begin_inset Marginal
30940 \begin_layout Plain Layout
30941 This is a margin note.
30949 \begin_layout Standard
30950 Margin notes appear at the right side in single-sided documents.
30951 In double-sided documents they appear in the outer margin – left on even
30952 pages, right on odd pages.
30953 The text of margin notes is aligned opposite to the outer margin – right-aligne
30954 d when the note appears in the left margin.
30955 The first line of the margin note is placed at the position of the text
30956 line where it is inserted in the document.
30959 \begin_layout Standard
30960 \begin_inset VSpace bigskip
30963 To place the margin note in the inner margin, add the command
30966 \begin_layout Standard
30974 \begin_layout Standard
30975 in TeX-Code before a margin note.
30976 The new placement is valid for all subsequent margin notes.
30981 \begin_layout Plain Layout
30991 \begin_inset Marginal
30994 \begin_layout Plain Layout
30995 This is a margin note in the inner margin.
31003 \begin_inset Newline newline
31009 \begin_inset Note Greyedout
31012 \begin_layout Plain Layout
31017 There is often not enough space in the inner margin so that the notes are
31018 not correctly displayed in the output.
31026 \begin_layout Standard
31027 To return to the default placement insert the command
31030 \begin_layout Standard
31038 \begin_layout Standard
31043 \begin_layout Plain Layout
31053 \begin_inset Note Greyedout
31056 \begin_layout Plain Layout
31061 The command is ignored when it is within a paragraph where also the command
31076 \begin_layout Standard
31077 \begin_inset VSpace bigskip
31084 \begin_inset Marginal
31087 \begin_layout Plain Layout
31088 AVeryLongMarginParWord that isn't hyphenated.
31096 Similar to the case described in section
31097 \begin_inset space ~
31101 \begin_inset CommandInset ref
31103 reference "sub:Multiple-Lines-in"
31107 , long words cannot be hyphenated when they are the first word in a margin
31109 To avoid this, insert 0
31110 \begin_inset space \thinspace{}
31113 pt horizontal space before the word
31118 \begin_inset Marginal
31121 \begin_layout Plain Layout
31122 \begin_inset space \hspace*{}
31126 AVeryLongMarginParWord that is hyphenated.
31134 \begin_layout Standard
31135 \begin_inset VSpace bigskip
31141 \begin_layout Standard
31142 \begin_inset Note Greyedout
31145 \begin_layout Plain Layout
31150 Margin notes can normally not be used inside tables, floats, and footnotes.
31158 \begin_layout Standard
31159 \begin_inset VSpace bigskip
31165 \begin_layout Standard
31169 \begin_layout Plain Layout
31179 \begin_inset Note Note
31182 \begin_layout Plain Layout
31183 The following section will only be displayed when the LaTeX-package
31195 \begin_layout Standard
31196 This restriction can be evaded by using the LaTeX-package
31201 \begin_inset Index idx
31204 \begin_layout Plain Layout
31205 LaTeX-packages ! marginnote
31211 By adding these two lines to your document preamble, the command used by
31212 LyX for margin notes is redefined to use the command provided by the
31219 \begin_layout Standard
31224 usepackage{marginnote}
31225 \begin_inset Newline newline
31237 \begin_layout Standard
31238 This is also used in this document because
31242 has another useful feature: You can set a vertical offset for the note.
31243 This is often needed when too many margin notes are too close together
31244 or for a better page layout.
31245 The offset is set in LyX as TeX-Code directly after the margin note in
31249 \begin_layout Standard
31255 \begin_layout Standard
31256 where the offset is a length with one of the units listed in Table
31257 \begin_inset space ~
31261 \begin_inset CommandInset ref
31263 reference "tab:Units"
31268 A negative value shifts the note up, a positive value shifts it down.
31272 For example the margin note beside this text line is shifted up 1.5
31273 \begin_inset space \thinspace{}
31276 cm with the TeX-Code-command
31277 \begin_inset Quotes eld
31287 \begin_inset Quotes erd
31291 \begin_inset Marginal
31294 \begin_layout Plain Layout
31295 This margin note is shifted up 1.5
31296 \begin_inset space \thinspace{}
31299 cm from its original position.
31311 \begin_layout Plain Layout
31321 \begin_layout Standard
31322 \begin_inset VSpace medskip
31329 you can also change the alignment of the text in the margin note.
31330 For example the commands
31333 \begin_layout Standard
31340 raggedleftmarginnote}{
31343 \begin_inset Newline newline
31350 raggedrightmarginnote}{
31355 \begin_layout Standard
31356 set the alignment to centered.
31361 raggedleftmarginnote
31363 denotes margin notes that appear at the left side.
31370 \begin_layout Plain Layout
31376 raggedleftmarginnote}{
31381 \begin_layout Plain Layout
31387 raggedrightmarginnote}{
31395 \begin_inset Marginal
31398 \begin_layout Plain Layout
31399 The text of this margin note is centered.
31410 \begin_layout Standard
31417 raggedleftmarginnote}{
31420 \begin_inset Newline newline
31427 raggedrightmarginnote}{
31436 \begin_layout Plain Layout
31442 raggedleftmarginnote}{
31447 \begin_layout Plain Layout
31453 raggedrightmarginnote}{
31463 \begin_layout Standard
31464 \begin_inset VSpace medskip
31467 For the other features of
31471 refer to its documentation
31472 \begin_inset CommandInset citation
31481 \begin_layout Standard
31482 \begin_inset VSpace bigskip
31485 You can adjust the layout of margin notes by changing its definition.
31486 To create for example a header for all margin notes with the underlined,
31487 sans-serif, and bold header text
31488 \begin_inset Quotes eld
31500 \begin_inset Quotes erd
31503 , add this to your document preamble:
31506 \begin_layout Standard
31516 \begin_inset Newline newline
31526 \begin_inset Newline newline
31530 \begin_inset Phantom HPhantom
31533 \begin_layout Plain Layout
31536 \begin_inset space ~
31552 underbar{Attention!}}}%
31553 \begin_inset Newline newline
31557 \begin_inset Phantom HPhantom
31560 \begin_layout Plain Layout
31563 \begin_inset space ~
31580 \begin_layout Standard
31587 \begin_layout Plain Layout
31598 \begin_layout Plain Layout
31609 \begin_layout Plain Layout
31617 underbar{Attention!}}}%
31620 \begin_layout Plain Layout
31634 \begin_inset Marginal
31637 \begin_layout Plain Layout
31638 This is a margin note with a defined heading.
31650 \begin_layout Plain Layout
31664 \begin_layout Plain Layout
31681 \begin_inset Note Note
31684 \begin_layout Plain Layout
31685 The margin note format is changed only for this example.
31693 \begin_layout Standard
31697 \begin_layout Plain Layout
31707 \begin_inset Note Note
31710 \begin_layout Plain Layout
31711 The following will be displayed when the LaTeX-package
31723 \begin_layout Standard
31724 You need to install the LaTeX-package
31728 to see the following part of this section in the output.
31731 \begin_layout Standard
31735 \begin_layout Plain Layout
31747 \begin_layout Chapter
31751 \begin_layout Section
31753 \begin_inset Index idx
31756 \begin_layout Plain Layout
31757 Boxes ! Introduction
31765 \begin_layout Standard
31766 Boxes are used to format a block of text.
31767 Boxes can be used to write documents with multiple languages, see section
31768 \begin_inset space ~
31772 \begin_inset CommandInset ref
31774 reference "sec:Minipages"
31778 , to frame texts, see section
31779 \begin_inset space ~
31783 \begin_inset CommandInset ref
31785 reference "sec:Decoration"
31789 , to prevent words from being hyphenated, see section
31790 \begin_inset space ~
31794 \begin_inset CommandInset ref
31796 reference "sec:Prevent-Hyphenation"
31800 , to align text, see section
31801 \begin_inset space ~
31805 \begin_inset CommandInset ref
31807 reference "sub:Vertical-Alignment"
31811 , or to set the background color of texts, see section
31812 \begin_inset space ~
31816 \begin_inset CommandInset ref
31818 reference "sec:Colored-Boxes"
31825 \begin_layout Standard
31826 Boxes can be inserted with the menu
31828 Insert\SpecialChar \menuseparator
31831 or the toolbar button
31834 arg "box-insert Frameless"
31838 A grey box with the label
31843 \begin_inset Graphics
31844 filename clipart/BoxInsetDefaultQt4.png
31846 scaleBeforeRotation
31851 The box type can be specified by right-clicking on the box and selecting
31857 The box dialog offers the
31860 \begin_inset space ~
31882 is the default for new boxes and is explained in section
31883 \begin_inset space ~
31887 \begin_inset CommandInset ref
31889 reference "sec:Minipages"
31897 is described in section
31898 \begin_inset space ~
31902 \begin_inset CommandInset ref
31904 reference "sec:Parboxes"
31913 \begin_inset CommandInset ref
31915 reference "sec:Prevent-Hyphenation"
31922 \begin_layout Standard
31923 Boxes are not numbered and can therefore not be referenced like floats or
31927 \begin_layout Standard
31928 \begin_inset Note Greyedout
31931 \begin_layout Plain Layout
31936 Boxes must not be the item in an
31952 \begin_layout Standard
31953 \begin_inset Note Greyedout
31956 \begin_layout Plain Layout
31961 For an unknown reason you can only set the
31964 \begin_inset space ~
31973 when you use a framed box.
31977 \begin_inset space ~
31982 type and without frames are explained in section
31983 \begin_inset space ~
31987 \begin_inset CommandInset ref
31989 reference "sec:Prevent-Hyphenation"
32001 \begin_layout Section
32003 \begin_inset CommandInset label
32005 name "sec:Box-Dialog"
32010 \begin_inset Index idx
32013 \begin_layout Plain Layout
32022 \begin_layout Subsection
32024 \begin_inset Index idx
32027 \begin_layout Plain Layout
32036 \begin_layout Standard
32037 In the box dialog you can adjust the box geometry in the fields
32046 The available units for the geometry are explained in Table
32047 \begin_inset space ~
32051 \begin_inset CommandInset ref
32053 reference "tab:Units"
32062 offers the following additional sizes:
32065 \begin_layout Description
32066 Depth This is the plain text
32067 \begin_inset Quotes eld
32071 \begin_inset Quotes erd
32075 It ignores the total depth when there are multiple text lines in the box:
32076 \begin_inset Newline newline
32080 \begin_inset Newline newline
32084 \begin_inset Newline newline
32088 \begin_inset Box Boxed
32098 height_special "depth"
32101 \begin_layout Plain Layout
32103 Box height set to 1
32104 \begin_inset space \thinspace{}
32113 \begin_inset Newline newline
32117 \begin_inset Newline newline
32123 \begin_layout Description
32124 Height This is the height of the text that is inside the box.
32126 \begin_inset space \thinspace{}
32130 \begin_inset space \space{}
32133 2 for this size will set the box height to 2
32134 \begin_inset space ~
32137 times the text height:
32138 \begin_inset Box Boxed
32148 height_special "height"
32151 \begin_layout Plain Layout
32153 Box height set to 2
32154 \begin_inset space \thinspace{}
32165 \begin_layout Description
32167 \begin_inset space ~
32170 Height This is the Height
32171 \begin_inset space \thinspace{}
32175 \begin_inset space \thinspace{}
32179 \begin_inset Box Boxed
32189 height_special "totalheight"
32192 \begin_layout Plain Layout
32194 Box height set to 1
32195 \begin_inset space \thinspace{}
32199 \begin_inset space ~
32210 \begin_layout Description
32211 Width This sets the width of the box as height:
32212 \begin_inset Box Boxed
32222 height_special "width"
32225 \begin_layout Plain Layout
32227 Box height set to 1
32228 \begin_inset space \thinspace{}
32239 \begin_layout Subsection
32241 \begin_inset Index idx
32244 \begin_layout Plain Layout
32253 \begin_layout Standard
32254 When you have chosen an
32257 \begin_inset space ~
32262 , the vertical box alignment can be:
32265 \begin_layout Description
32266 Top This is an example text line.
32268 \begin_inset Box Boxed
32278 height_special "totalheight"
32281 \begin_layout Plain Layout
32283 This box is top-aligned.
32288 This is an example text line.
32291 \begin_layout Description
32292 Middle This is an example text line.
32294 \begin_inset Box Boxed
32304 height_special "totalheight"
32307 \begin_layout Plain Layout
32309 This box is middle-aligned.
32314 This is an example text line.
32317 \begin_layout Description
32318 Bottom This is an example text line.
32320 \begin_inset Box Boxed
32330 height_special "totalheight"
32333 \begin_layout Plain Layout
32335 This box is bottom-aligned.
32340 This is an example text line.
32343 \begin_layout Standard
32344 \begin_inset Note Greyedout
32347 \begin_layout Plain Layout
32352 The vertical box alignment can be lost in the output when you have two
32353 boxes in a line and one has e.
32354 \begin_inset space \thinspace{}
32358 \begin_inset space \space{}
32361 a shadow and the other one not.
32369 \begin_layout Standard
32370 The horizontal box alignment can be set via LyX's paragraph dialog when
32371 you set the box into its own paragraph.
32374 \begin_layout Standard
32375 \begin_inset VSpace bigskip
32378 When you have chosen an
32381 \begin_inset space ~
32386 , the box content can be aligned vertically to:
32389 \begin_layout Description
32390 top This is an example text line.
32392 \begin_inset Box Boxed
32402 height_special "totalheight"
32405 \begin_layout Plain Layout
32407 This box text is top-aligned.
32412 This is an example text line.
32415 \begin_layout Description
32416 middle This is an example text line.
32418 \begin_inset Box Boxed
32428 height_special "totalheight"
32431 \begin_layout Plain Layout
32433 This box text is middle-aligned.
32438 This is an example text line.
32441 \begin_layout Description
32442 bottom This is an example text line.
32444 \begin_inset Box Boxed
32454 height_special "totalheight"
32457 \begin_layout Plain Layout
32459 This box text is bottom-aligned.
32464 This is an example text line.
32467 \begin_layout Description
32468 stretch This is an example text line.
32470 \begin_inset Box Boxed
32480 height_special "totalheight"
32483 \begin_layout Plain Layout
32488 \begin_layout Plain Layout
32493 \begin_layout Plain Layout
32500 This is an example text line.
32503 \begin_layout Standard
32504 To stretch the box content, it must consist of more than one paragraph.
32505 In the example above every text line is in an own paragraph.
32508 \begin_layout Standard
32509 \begin_inset VSpace bigskip
32512 To align the box content horizontally you can use LyX's paragraph dialog
32513 when you have chosen an
32516 \begin_inset space ~
32524 \begin_layout Standard
32526 \begin_inset Box Boxed
32536 height_special "totalheight"
32539 \begin_layout Plain Layout
32544 \begin_layout Plain Layout
32549 \begin_layout Plain Layout
32559 \begin_layout Standard
32560 If you have not set an
32563 \begin_inset space ~
32568 , you can align the box content horizontally in the box dialog.
32571 \begin_layout Standard
32573 \begin_inset Box Boxed
32583 height_special "totalheight"
32586 \begin_layout Plain Layout
32587 This box text is horizontally stretched.
32595 \begin_layout Subsection
32597 \begin_inset CommandInset label
32599 name "sec:Decoration"
32604 \begin_inset Index idx
32607 \begin_layout Plain Layout
32616 \begin_layout Standard
32617 The type of the box can be specified in the box dialog in the drop-down
32623 The following types are possible:
32626 \begin_layout Description
32628 \begin_inset space ~
32631 frame Nothing is drawn.
32634 \begin_layout Description
32636 \begin_inset space ~
32640 \begin_inset space ~
32643 frame This draws a rectangular frame around the box.
32644 The frame line thickness has the size of
32652 \begin_inset Box Boxed
32662 height_special "totalheight"
32665 \begin_layout Plain Layout
32675 \begin_layout Description
32677 \begin_inset space ~
32681 \begin_inset space ~
32684 thin This draws an oval frame around the box.
32685 The frame line thickness has the size 0.4
32686 \begin_inset space \thinspace{}
32691 \begin_inset Box ovalbox
32701 height_special "totalheight"
32704 \begin_layout Plain Layout
32714 \begin_layout Description
32716 \begin_inset space ~
32720 \begin_inset space ~
32723 thick This draws an oval frame around the box.
32724 The frame line thickness has the size 0.8
32725 \begin_inset space \thinspace{}
32730 \begin_inset Box Ovalbox
32740 height_special "totalheight"
32743 \begin_layout Plain Layout
32753 \begin_layout Description
32755 \begin_inset space ~
32758 shadow This draws a rectangular frame with a shadow around the box.
32759 The frame line thickness has the size of
32765 , the shadow has a width of 4
32766 \begin_inset space \thinspace{}
32771 \begin_inset Box Shadowbox
32781 height_special "totalheight"
32784 \begin_layout Plain Layout
32794 \begin_layout Description
32796 \begin_inset space ~
32799 background This draws a box with a red background.
32800 Unlike colored boxes
32804 \begin_layout Plain Layout
32806 \begin_inset space \thinspace{}
32810 \begin_inset CommandInset ref
32812 reference "sec:Colored-Boxes"
32821 , it always uses the whole column width and the box is set as its own paragraph.
32823 \begin_inset Box Shaded
32833 height_special "totalheight"
32836 \begin_layout Plain Layout
32837 Shaded background box
32845 \begin_layout Description
32847 \begin_inset space ~
32851 \begin_inset space ~
32854 frame This draws a double-line rectangular frame around the box.
32855 The line thickness of the inner frame is 0.75
32856 \begin_inset space \thinspace{}
32865 , the thickness of the outer frame is 1.5
32866 \begin_inset space \thinspace{}
32876 The distance between the lines is 1.5
32877 \begin_inset space \thinspace{}
32887 \begin_inset space \thinspace{}
32891 \begin_inset space \thinspace{}
32895 \begin_inset space \thinspace{}
32900 \begin_inset Box Doublebox
32910 height_special "totalheight"
32913 \begin_layout Plain Layout
32915 Double rectangular box
32923 \begin_layout Standard
32924 \begin_inset VSpace bigskip
32927 LyX's box label will reflect the different frame types.
32928 To be able to use all types, the LaTeX-package
32933 \begin_inset Index idx
32936 \begin_layout Plain Layout
32937 LaTeX-packages ! fancybox
32945 \begin_layout Standard
32946 \begin_inset VSpace bigskip
32949 When you use the decoration
32951 simple rectangular frame
32953 and no inner box, you can allow page breaks within a box.
32954 Note that then, unlike other framed boxes, the frame always uses the whole
32955 column width, the box is set as its own paragraph, and
32967 have no effect on this box type.
32968 The frame line thickness has the size of
32976 \begin_inset Box Framed
32986 height_special "totalheight"
32989 \begin_layout Plain Layout
32990 Allow page break box
32998 \begin_layout Section
33000 \begin_inset Index idx
33003 \begin_layout Plain Layout
33004 Boxes ! Customization
33012 \begin_layout Standard
33013 The default value for the size
33020 \begin_inset space \thinspace{}
33024 It can be changed with the following command in TeX-code to e.
33025 \begin_inset space \thinspace{}
33029 \begin_inset space \space{}
33033 \begin_inset space \thinspace{}
33039 \begin_layout Standard
33049 \begin_layout Standard
33053 \begin_layout Plain Layout
33065 \begin_inset Box Boxed
33075 height_special "totalheight"
33078 \begin_layout Plain Layout
33080 Rectangular box with
33087 \begin_inset space \thinspace{}
33091 \begin_inset space \thinspace{}
33095 \begin_inset space \thinspace{}
33107 \begin_layout Plain Layout
33121 \begin_layout Standard
33122 \begin_inset VSpace bigskip
33125 The space between the frame and the box content is for all frame styles
33127 \begin_inset space \thinspace{}
33131 You can change it by setting the length
33138 For example the command
33141 \begin_layout Standard
33151 \begin_layout Standard
33152 sets the value to 10
33153 \begin_inset space \thinspace{}
33156 pt, as with the following box:
33159 \begin_layout Standard
33163 \begin_layout Plain Layout
33175 \begin_inset Box Boxed
33185 height_special "totalheight"
33188 \begin_layout Plain Layout
33190 Rectangular box with
33197 \begin_inset space \thinspace{}
33201 \begin_inset space \thinspace{}
33205 \begin_inset space \thinspace{}
33217 \begin_layout Plain Layout
33231 \begin_layout Standard
33232 \begin_inset VSpace bigskip
33235 The diameter of the round corners of the oval boxes can be set with the
33246 \begin_layout Standard
33254 \begin_layout Standard
33255 sets the diameter to 1
33256 \begin_inset space \thinspace{}
33263 \begin_layout Standard
33271 \begin_layout Standard
33272 sets the diameter to
33275 \begin_inset space \thinspace{}
33279 \begin_inset space \thinspace{}
33282 minimum(width and height of box)
33294 \begin_layout Standard
33298 \begin_layout Plain Layout
33308 \begin_inset Box Ovalbox
33318 height_special "totalheight"
33321 \begin_layout Plain Layout
33330 \begin_inset space \thinspace{}
33334 \begin_inset space \thinspace{}
33338 \begin_inset space \thinspace{}
33350 \begin_layout Plain Layout
33362 \begin_layout Standard
33363 \begin_inset VSpace bigskip
33366 The size of the shadow can be adjusted by changing the length
33374 \begin_inset space \thinspace{}
33377 pt for the following box by this command:
33380 \begin_layout Standard
33390 \begin_layout Standard
33394 \begin_layout Plain Layout
33406 \begin_inset Box Shadowbox
33416 height_special "totalheight"
33419 \begin_layout Plain Layout
33428 \begin_inset space \thinspace{}
33432 \begin_inset space \thinspace{}
33436 \begin_inset space \thinspace{}
33448 \begin_layout Plain Layout
33462 \begin_layout Standard
33463 \begin_inset VSpace bigskip
33469 \begin_layout Standard
33470 The default value for the size
33477 \begin_inset space \thinspace{}
33481 The default space between the note content and the frame is 9
33482 \begin_inset space \thinspace{}
33485 pt and can be changed with the value of
33492 For example the frame appearance of the following
33496 is set with the TeX-Code commands
33499 \begin_layout Standard
33507 \begin_inset Newline newline
33517 \begin_layout Standard
33521 \begin_layout Plain Layout
33530 \begin_layout Plain Layout
33542 \begin_inset Box Framed
33552 height_special "totalheight"
33555 \begin_layout Plain Layout
33569 \begin_layout Plain Layout
33578 \begin_layout Plain Layout
33592 \begin_layout Standard
33593 \begin_inset VSpace bigskip
33599 \begin_layout Standard
33604 boxes the default space between the box content and the box border is 3
33605 \begin_inset space \thinspace{}
33608 pt and can be changed with the value of
33615 The default background color red can either be changed locally with the
33620 definecolor{shadecolor}
33622 or globally with the menu
33624 Tools\SpecialChar \menuseparator
33625 Preferences\SpecialChar \menuseparator
33626 Colors\SpecialChar \menuseparator
33628 \begin_inset space ~
33640 command is explained in section
33641 \begin_inset space ~
33645 \begin_inset CommandInset ref
33647 reference "sec:Colored-Tables"
33655 \begin_layout Plain Layout
33662 requires the LaTeX-package
33666 in the preamble, see section
33667 \begin_inset space ~
33671 \begin_inset CommandInset ref
33673 reference "sec:Colored-Boxes"
33682 For example the appearance of the following shaded background box is set
33683 with the TeX-Code commands
33686 \begin_layout Standard
33696 \begin_inset Newline newline
33703 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33706 \begin_layout Standard
33710 \begin_layout Plain Layout
33719 \begin_layout Plain Layout
33723 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33729 \begin_inset Box Shaded
33739 height_special "totalheight"
33742 \begin_layout Plain Layout
33745 This is yellow text in a
33755 box with dark green background.
33764 \begin_layout Plain Layout
33773 \begin_layout Plain Layout
33777 definecolor{shadecolor}{rgb}{1,0,0}
33785 \begin_layout Standard
33786 \begin_inset VSpace bigskip
33789 Changed lengths and widths are valid for all boxes following the commands
33793 \begin_layout Section
33795 \begin_inset CommandInset label
33797 name "sec:Minipages"
33802 \begin_inset Index idx
33805 \begin_layout Plain Layout
33814 \begin_layout Standard
33815 Minipages are treated by LaTeX as pages within pages and can therefore for
33816 example have their own footnotes.
33819 \begin_layout Standard
33820 Minipages are useful when you write documents with different languages.
33823 \begin_layout Standard
33824 Below are two example minipages side by side.
33825 Their width is set to 45
33826 \begin_inset space \thinspace{}
33829 col% and they are separated by a horizontal fill, that was inserted via
33832 Insert\SpecialChar \menuseparator
33834 \begin_inset space ~
33837 Formatting\SpecialChar \menuseparator
33839 \begin_inset space ~
33845 \begin_inset Newpage newpage
33851 \begin_layout Standard
33852 \begin_inset Box Frameless
33862 height_special "totalheight"
33865 \begin_layout Plain Layout
33868 Dies ist ein deutscher Text.
33869 Dies ist ein deutscher Text.
33870 Dies ist ein deutscher Text.
33871 Dies ist ein deutscher Text.
33872 Dies ist ein deutscher Text.
33873 Dies ist ein deutscher Text.
33874 Dies ist ein deutscher Text.
33875 Dies ist ein deutscher Text.
33876 Dies ist ein deutscher Text.
33877 Dies ist ein deutscher Text.
33878 Dies ist ein deutscher Text.
33879 Dies ist ein deutscher Text.
33880 Dies ist ein deutscher Text
33884 \begin_layout Plain Layout
33887 Dies ist eine deutsche Fußnote.
33893 Dies ist ein deutscher Text.
33894 Dies ist ein deutscher Text.
33900 \begin_inset space \hfill{}
33904 \begin_inset Box Frameless
33914 height_special "totalheight"
33917 \begin_layout Plain Layout
33918 This is an English Text.
33919 This is an English Text.
33920 This is an English Text.
33921 This is an English Text.
33922 This is an English Text.
33923 This is an English Text.
33924 This is an English Text.
33925 This is an English Text.
33926 This is an English Text.
33927 This is an English Text.
33928 This is an English Text.
33929 This is an English Text.
33930 This is an English Text.
33931 This is an English Text.
33932 This is an English Text.
33933 This is an English Text.
33937 \begin_layout Plain Layout
33938 This is an English footnote.
33943 This is an English Text.
33951 \begin_layout Standard
33952 \begin_inset VSpace bigskip
33955 The document-wide paragraph settings are ignored within minipages.
33956 That means that there will be no space between paragraphs in minipages
33957 although you set it to e.
33958 \begin_inset space \thinspace{}
33962 \begin_inset space \space{}
33969 in the document settings.
33972 \begin_layout Standard
33973 Minipages can also be used to set a background color for text parts, see
33975 \begin_inset space ~
33979 \begin_inset CommandInset ref
33981 reference "sub:Color-for-Paragraphs"
33988 \begin_layout Standard
33989 \begin_inset Note Greyedout
33992 \begin_layout Plain Layout
33997 You cannot have floats or margin notes inside minipages but minipages can
33998 be used inside tables, floats, and other boxes.
34006 \begin_layout Section
34008 \begin_inset CommandInset label
34010 name "sec:Parboxes"
34015 \begin_inset Index idx
34018 \begin_layout Plain Layout
34027 \begin_layout Standard
34028 Parboxes are very similar to minipages with the difference that they cannot
34032 \begin_layout Standard
34034 \begin_inset Box Frameless
34044 height_special "totalheight"
34047 \begin_layout Plain Layout
34048 This a text within a parbox.
34049 This a text within a parbox.
34052 \begin_layout Plain Layout
34053 This footnote won't appear:
34057 \begin_layout Plain Layout
34058 This footnote is inside a parbox and will therefore not appear.
34071 \begin_layout Section
34072 Boxes for Words and Characters
34073 \begin_inset Index idx
34076 \begin_layout Plain Layout
34077 Boxes ! for Characters
34085 \begin_layout Subsection
34086 Prevent Hyphenation
34087 \begin_inset CommandInset label
34089 name "sec:Prevent-Hyphenation"
34094 \begin_inset Index idx
34097 \begin_layout Plain Layout
34098 Boxes ! to Prevent Hyphenation
34106 \begin_layout Standard
34107 You can use the box type
34111 to prevent words or text from being hyphenated.
34112 \begin_inset Newline newline
34115 Here is an example text:
34118 \begin_layout Standard
34119 This line is an example to show how you can prevent the hyphenation of
34120 \begin_inset Quotes eld
34124 \begin_inset Quotes erd
34130 \begin_layout Standard
34131 To prevent the hyphenation of the word
34132 \begin_inset Quotes eld
34136 \begin_inset Quotes erd
34139 , put the word into a box, set the
34142 \begin_inset space ~
34152 \begin_inset space \thinspace{}
34158 \begin_layout Standard
34159 This is the result:
34162 \begin_layout Standard
34163 This line is an example to show how you can prevent the hyphenation of
34164 \begin_inset Box Frameless
34174 height_special "totalheight"
34177 \begin_layout Plain Layout
34178 \begin_inset Quotes eld
34182 \begin_inset Quotes erd
34193 \begin_layout Standard
34194 You can alternatively set the command
34195 \begin_inset Quotes eld
34205 \begin_inset Quotes grd
34208 as TeX-Code directly before the word:
34211 \begin_layout Standard
34212 This line is an example to show how you can prevent the hyphenation of
34213 \begin_inset Quotes eld
34220 \begin_layout Plain Layout
34230 \begin_inset Quotes erd
34236 \begin_layout Standard
34237 Of course the word now protrudes over the side margin.
34238 To avoid this, add via the menu
34240 Insert\SpecialChar \menuseparator
34241 Formatting\SpecialChar \menuseparator
34243 \begin_inset space ~
34247 \begin_inset space ~
34255 arg "newline-insert newline"
34258 ) a line break before the word:
34261 \begin_layout Standard
34262 This line is an example to show how you can prevent the hyphenation of
34263 \begin_inset Newline newline
34267 \begin_inset Box Frameless
34277 height_special "totalheight"
34280 \begin_layout Plain Layout
34281 \begin_inset Quotes eld
34285 \begin_inset Quotes erd
34296 \begin_layout Subsection
34298 \begin_inset CommandInset label
34300 name "sub:Vertical-Alignment"
34305 \begin_inset Index idx
34308 \begin_layout Plain Layout
34309 Boxes ! for Vertical Alignment
34315 \begin_inset Index idx
34318 \begin_layout Plain Layout
34327 \begin_layout Standard
34328 With the help of the command
34334 you can align words, characters or other boxes vertically relative to the
34342 is used with the following scheme:
34345 \begin_layout Standard
34350 raisebox{lift}[height][depth]{box content}
34353 \begin_layout Standard
34354 The lift can be a positive value to raise the box or a negative value to
34358 \begin_layout Standard
34359 To align for example the word
34360 \begin_inset Quotes eld
34364 \begin_inset Quotes erd
34367 so that the bottom of the
34368 \begin_inset Quotes eld
34372 \begin_inset Quotes erd
34376 \begin_inset Quotes eld
34380 \begin_inset Quotes erd
34383 is at the baseline, insert the command
34386 \begin_layout Standard
34396 \begin_layout Standard
34397 in TeX-Code before the word.
34398 After the word insert a closing brace
34399 \begin_inset Quotes eld
34407 \begin_inset Quotes erd
34411 \begin_inset Newline newline
34414 This is the result:
34417 \begin_layout Standard
34418 This is a text line with the word
34422 \begin_layout Plain Layout
34434 \begin_inset Quotes eld
34438 \begin_inset Quotes erd
34445 \begin_layout Plain Layout
34455 \begin_layout Standard
34456 \begin_inset VSpace bigskip
34459 When you raise or lower characters in a line, the line distance will be
34463 \begin_layout Standard
34464 This is a text line with the word
34468 \begin_layout Plain Layout
34480 \begin_inset Quotes eld
34484 \begin_inset Quotes erd
34491 \begin_layout Plain Layout
34499 \begin_inset Newline newline
34502 This is a text line with the word
34506 \begin_layout Plain Layout
34516 \begin_inset Quotes eld
34520 \begin_inset Quotes erd
34527 \begin_layout Plain Layout
34537 \begin_layout Standard
34538 If you want to prevent this for a certain reason, set the box height to
34543 \begin_layout Standard
34553 \begin_layout Standard
34554 This is a text line with the word
34558 \begin_layout Plain Layout
34570 \begin_inset Quotes eld
34574 \begin_inset Quotes erd
34581 \begin_layout Plain Layout
34589 \begin_inset Newline newline
34592 This is a text line with the word
34596 \begin_layout Plain Layout
34600 raisebox{0.5cm}[0pt]{
34606 \begin_inset Quotes eld
34610 \begin_inset Quotes erd
34617 \begin_layout Plain Layout
34627 \begin_layout Section
34629 \begin_inset CommandInset label
34631 name "sec:Colored-Boxes"
34636 \begin_inset Index idx
34639 \begin_layout Plain Layout
34648 \begin_layout Subsection
34650 \begin_inset Index idx
34653 \begin_layout Plain Layout
34662 \begin_layout Standard
34663 To color the background of text the text must be put into a so called
34664 \begin_inset Quotes eld
34668 \begin_inset Quotes erd
34672 This requires that the LaTeX-package
34677 \begin_inset Index idx
34680 \begin_layout Plain Layout
34681 LaTeX-packages ! color
34686 is loaded in the document preamble with the command
34689 \begin_layout Standard
34694 @ifundefined{textcolor}
34695 \begin_inset Newline newline
34699 \begin_inset Phantom HPhantom
34702 \begin_layout Plain Layout
34705 \begin_inset space ~
34715 usepackage{color}}{}
34718 \begin_layout Standard
34723 will be loaded automatically by LyX when you color text.
34727 \begin_layout Plain Layout
34728 To avoid it being loaded twice the command
34742 \begin_layout Standard
34743 \begin_inset VSpace medskip
34746 Colorboxes are created with the command
34753 This will be used with the following scheme:
34756 \begin_layout Standard
34761 colorbox{color}{box content}
34764 \begin_layout Standard
34765 The box content can also be a box and colorboxes can also be within other
34769 \begin_layout Standard
34770 The following colors are predefined:
34771 \begin_inset Newline newline
34810 \begin_inset Newline newline
34813 You can also define your own color as described in section
34814 \begin_inset space ~
34818 \begin_inset CommandInset ref
34820 reference "sec:Colored-Tables"
34827 \begin_layout Standard
34829 \begin_inset space \thinspace{}
34833 \begin_inset space \space{}
34836 a red background for a word, insert the command
34839 \begin_layout Standard
34847 \begin_layout Standard
34848 before the word in TeX-Code.
34849 After the word insert a closing brace
34850 \begin_inset Quotes eld
34858 \begin_inset Quotes erd
34862 \begin_inset Newline newline
34865 This is the result:
34868 \begin_layout Standard
34869 This is a line where the word
34873 \begin_layout Plain Layout
34883 \begin_inset Quotes eld
34887 \begin_inset Quotes erd
34894 \begin_layout Plain Layout
34901 has a red background.
34904 \begin_layout Standard
34905 \begin_inset VSpace bigskip
34908 If you would like the box frame in a different color, you can use the command
34915 with the following scheme:
34918 \begin_layout Standard
34923 fcolorbox{frame color}{box color}{box content}
34926 \begin_layout Standard
34940 The frame thickness and the space between the frame and the box content
34941 can be adjusted with the lengths
34953 , respectively, as described in section
34954 \begin_inset space ~
34958 \begin_inset CommandInset ref
34960 reference "sec:Decoration"
34967 \begin_layout Standard
34968 For the following example the command
34971 \begin_layout Standard
34976 fcolorbox{cyan}{magenta}{
34979 \begin_layout Standard
34983 \begin_layout Standard
34984 Here is an example where the frame line thickness was set to 1
34985 \begin_inset space \thinspace{}
34989 \begin_inset Newline newline
34996 \begin_layout Plain Layout
35011 \begin_layout Plain Layout
35015 fcolorbox{cyan}{magenta}{
35020 This is text within a colored, framed box.
35024 \begin_layout Plain Layout
35034 \begin_layout Standard
35035 \begin_inset VSpace bigskip
35038 Of course you can also have colored text inside a colorbox:
35039 \begin_inset Newline newline
35046 \begin_layout Plain Layout
35050 fcolorbox{cyan}{magenta}{
35057 This is colored text within a colored, framed box.
35063 \begin_layout Plain Layout
35074 \begin_layout Plain Layout
35088 \begin_layout Standard
35089 \begin_inset VSpace medskip
35095 \begin_layout Standard
35096 \begin_inset Note Greyedout
35099 \begin_layout Plain Layout
35104 Text in colorboxes cannot have line breaks.
35105 To color multiple text lines or paragraphs, use a box inside a colorbox
35106 as described in the following.
35114 \begin_layout Subsection
35115 Color for Paragraphs
35116 \begin_inset CommandInset label
35118 name "sub:Color-for-Paragraphs"
35123 \begin_inset Index idx
35126 \begin_layout Plain Layout
35127 Color ! for Paragraphs
35135 \begin_layout Standard
35136 To set the background color for more than one text line, put the text into
35138 Before the minipage insert the
35147 \begin_layout Standard
35155 \begin_layout Standard
35157 After the minipage insert a closing brace
35158 \begin_inset Quotes eld
35166 \begin_inset Quotes erd
35172 \begin_layout Standard
35176 \begin_layout Plain Layout
35180 colorbox{lightgrey}{
35186 \begin_inset Box Frameless
35196 height_special "totalheight"
35199 \begin_layout Plain Layout
35200 This is text with background color.
35201 This is text with background color.
35204 \begin_layout Plain Layout
35205 \begin_inset VSpace defskip
35208 The text can have footnotes
35212 \begin_layout Plain Layout
35213 Another example footnote
35218 and can include tables and figures.
35221 \begin_layout Plain Layout
35223 \begin_inset Tabular
35224 <lyxtabular version="3" rows="3" columns="3">
35225 <features rotate="0" tabularvalignment="middle">
35226 <column alignment="center" valignment="top">
35227 <column alignment="center" valignment="top">
35228 <column alignment="center" valignment="top">
35230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35233 \begin_layout Plain Layout
35239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35242 \begin_layout Plain Layout
35248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35251 \begin_layout Plain Layout
35259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35262 \begin_layout Plain Layout
35268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35271 \begin_layout Plain Layout
35273 \begin_inset Quotes erd
35281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35284 \begin_layout Plain Layout
35292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35295 \begin_layout Plain Layout
35301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35304 \begin_layout Plain Layout
35310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35313 \begin_layout Plain Layout
35333 \begin_layout Plain Layout
35343 \begin_layout Section
35344 Rotated and Scaled Boxes
35347 \begin_layout Standard
35348 To use the commands described in this section, the LaTeX-package
35353 \begin_inset Index idx
35356 \begin_layout Plain Layout
35357 LaTeX-packages ! graphicx
35362 needs to be loaded in the document preamble with the command
35365 \begin_layout Standard
35370 @ifundefined{rotatebox}
35371 \begin_inset Newline newline
35375 \begin_inset Phantom HPhantom
35378 \begin_layout Plain Layout
35381 \begin_inset space ~
35391 usepackage{graphicx}}{}
35394 \begin_layout Standard
35395 \begin_inset Note Greyedout
35398 \begin_layout Plain Layout
35403 Not all DVI-viewers are able to display rotated or scaled material.
35411 \begin_layout Standard
35412 \begin_inset Note Greyedout
35415 \begin_layout Plain Layout
35420 Floats are not allowed inside a rotated or scaled box.
35428 \begin_layout Subsection
35430 \begin_inset Index idx
35433 \begin_layout Plain Layout
35440 \begin_inset Index idx
35443 \begin_layout Plain Layout
35452 \begin_layout Standard
35453 To rotate material, you can put it into a rotated box.
35454 Such a box is created using the command
35460 in TeX-Code with the following scheme:
35463 \begin_layout Standard
35468 rotatebox[rotation origin]{rotation angle}{box content}
35471 \begin_layout Standard
35472 The rotation origin is specified in the form
35477 The following positions are possible:
35497 (top), along with meaningful combinations of the four base positions.
35502 means that the rotation origin is at the top left corner of the box.
35503 When no rotation origin is specified, the position
35508 The rotation angle is a number that can be negative that specifies the
35510 The rotation direction is counterclockwise.
35513 \begin_layout Standard
35514 In the following example the command
35518 rotatebox[origin=c]{60}{
35520 was inserted as TeX-Code before the text
35521 \begin_inset Quotes eld
35525 \begin_inset Quotes erd
35528 ; after the text the box was closed by a closing brace
35535 \begin_layout Standard
35540 \begin_layout Plain Layout
35544 rotatebox[origin=c]{60}{
35553 \begin_layout Plain Layout
35563 \begin_layout Standard
35564 The box content can also be another box or an inline formula:
35567 \begin_layout Standard
35572 \begin_layout Plain Layout
35576 rotatebox[origin=r]{-60}{
35582 \begin_inset Box Doublebox
35592 height_special "totalheight"
35595 \begin_layout Plain Layout
35605 \begin_layout Plain Layout
35616 \begin_layout Plain Layout
35620 rotatebox[origin=lb]{60}{
35626 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35633 \begin_layout Plain Layout
35643 \begin_layout Standard
35644 or an image or table:
35647 \begin_layout Standard
35652 \begin_layout Plain Layout
35656 rotatebox[origin=lb]{90}{
35662 \begin_inset Graphics
35663 filename clipart/platypus.eps
35673 \begin_layout Plain Layout
35680 with a rotated image
35684 \begin_layout Plain Layout
35688 rotatebox[origin=l]{-90}{
35694 \begin_inset Tabular
35695 <lyxtabular version="3" rows="2" columns="2">
35696 <features rotate="0" tabularvalignment="middle">
35697 <column alignment="center" valignment="top">
35698 <column alignment="center" valignment="top">
35700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35703 \begin_layout Plain Layout
35709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35712 \begin_layout Plain Layout
35720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35723 \begin_layout Plain Layout
35729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35732 \begin_layout Plain Layout
35747 \begin_layout Plain Layout
35755 \begin_inset Index idx
35758 \begin_layout Plain Layout
35765 \begin_inset Index idx
35768 \begin_layout Plain Layout
35769 Table Customization ! Rotating
35777 \begin_layout Subsection
35779 \begin_inset Index idx
35782 \begin_layout Plain Layout
35789 \begin_inset Index idx
35792 \begin_layout Plain Layout
35801 \begin_layout Standard
35802 To scale material the commands
35814 can be used as TeX-Code.
35817 \begin_layout Standard
35824 is used with the following scheme:
35827 \begin_layout Standard
35832 scalebox{horizontal}[vertical]{box content}
35835 \begin_layout Standard
35836 Horizontal and vertical are the corresponding scaling factors.
35837 If no vertical scaling factor is given, the horizontal factor will also
35838 be used as the vertical one.
35841 \begin_layout Standard
35848 creates for example a double size
35852 \begin_layout Plain Layout
35865 \begin_layout Plain Layout
35872 , compared with the document text size.
35875 \begin_layout Standard
35880 scalebox{2}[1]{Hello}
35882 on the other hand distorts the
35886 \begin_layout Plain Layout
35899 \begin_layout Plain Layout
35909 \begin_layout Standard
35910 If the scaling factor is negative, the box content will be mirrored.
35911 Therefore the command
35915 scalebox{-1}[1]{Hello}
35917 can be used to create mirror writing:
35921 \begin_layout Plain Layout
35934 \begin_layout Plain Layout
35944 \begin_layout Standard
35949 scalebox{1}[-1]{Hello}
35955 \begin_layout Plain Layout
35968 \begin_layout Plain Layout
35978 \begin_layout Standard
35983 scalebox{-1}[1]{box content}
35985 there exists the command
35986 \begin_inset Newline newline
35993 reflectbox{box content}
35998 \begin_layout Standard
35999 \begin_inset VSpace bigskip
36008 is used to scale the box to a defined width and height.
36009 The command scheme is:
36012 \begin_layout Standard
36017 resizebox{width}{height}{box content}
36020 \begin_layout Standard
36021 If one of the two command arguments given is an exclamation mark
36025 , the size is set so that the aspect ratio of the box content is kept.
36028 \begin_layout Standard
36033 resizebox{2cm}{1cm}{Hello}
36039 \begin_layout Plain Layout
36043 resizebox{2cm}{1cm}{
36052 \begin_layout Plain Layout
36060 \begin_inset Newline newline
36067 resizebox{2cm}{!}{Hello}
36073 \begin_layout Plain Layout
36086 \begin_layout Plain Layout
36096 \begin_layout Standard
36097 \begin_inset VSpace bigskip
36101 \begin_inset Note Greyedout
36104 \begin_layout Plain Layout
36121 are set to zero, no LaTeX-errors occur when exporting the document but
36122 the exported files can not or only partly be displayed.
36130 \begin_layout Standard
36131 \begin_inset VSpace bigskip
36137 \begin_layout Standard
36138 The boxes can be combined in any order.
36140 \begin_inset space \thinspace{}
36144 \begin_inset space \space{}
36148 \begin_inset Newline newline
36155 rotatebox[origin=c]{-45}{
36159 reflectbox{Hello}}}
36160 \begin_inset Newline newline
36168 \begin_layout Standard
36173 \begin_layout Plain Layout
36177 rotatebox[origin=c]{-45}{
36190 \begin_layout Plain Layout
36200 \begin_layout Standard
36202 Images, tables, and inline formulas are allowed as box content:
36205 \begin_layout Standard
36210 \begin_layout Plain Layout
36214 rotatebox[origin=c]{-30}{
36224 \begin_inset Graphics
36225 filename clipart/platypus.eps
36235 \begin_layout Plain Layout
36246 \begin_layout Plain Layout
36250 rotatebox[origin=c]{-45}{
36260 \begin_inset Tabular
36261 <lyxtabular version="3" rows="2" columns="2">
36262 <features rotate="0" tabularvalignment="middle">
36263 <column alignment="center" valignment="top">
36264 <column alignment="center" valignment="top">
36266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36269 \begin_layout Plain Layout
36275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36278 \begin_layout Plain Layout
36286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36289 \begin_layout Plain Layout
36295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36298 \begin_layout Plain Layout
36313 \begin_layout Plain Layout
36324 \begin_layout Plain Layout
36328 rotatebox[origin=c]{-45}{
36338 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36345 \begin_layout Plain Layout
36353 \begin_inset Index idx
36356 \begin_layout Plain Layout
36363 \begin_inset Index idx
36366 \begin_layout Plain Layout
36367 Table Customization ! Scaling
36375 \begin_layout Standard
36376 When the global formula style
36380 is used in the document
36384 \begin_layout Plain Layout
36386 \begin_inset Quotes eld
36390 \begin_inset Quotes erd
36393 is added to the document class options.
36398 , display style formulas can also be scaled.
36401 \begin_layout Chapter
36402 Objects Surrounded by Text
36403 \begin_inset Index idx
36406 \begin_layout Plain Layout
36415 \begin_layout Section
36417 \begin_inset CommandInset label
36419 name "sec:Wrap-Floats"
36424 \begin_inset Index idx
36427 \begin_layout Plain Layout
36428 Floats ! Wrap Floats
36434 \begin_inset Index idx
36437 \begin_layout Plain Layout
36438 Surrounded by text ! Wrap Floats
36446 \begin_layout Standard
36447 \begin_inset Wrap figure
36454 \begin_layout Plain Layout
36455 \begin_inset Graphics
36456 filename clipart/mobius.eps
36458 scaleBeforeRotation
36459 rotateOrigin center
36466 \begin_layout Plain Layout
36467 \begin_inset Caption Standard
36469 \begin_layout Plain Layout
36470 \begin_inset CommandInset label
36472 name "fig:This-is-a"
36476 This is a figure wrap float.
36486 This float type is used if you want to wrap text around a figure or table
36487 so that it only occupies some fraction of the column width.
36488 It can be inserted using the menu
36490 Insert\SpecialChar \menuseparator
36491 Floats\SpecialChar \menuseparator
36493 \begin_inset space ~
36497 \begin_inset space ~
36505 \begin_inset space ~
36509 \begin_inset space ~
36514 if the LaTeX-package
36519 \begin_inset Index idx
36522 \begin_layout Plain Layout
36523 LaTeX-packages ! wrapfig
36532 \begin_layout Plain Layout
36533 Installing a LaTeX-package is explained it in the
36536 \begin_inset space ~
36546 The settings of the float can be modified by right-clicking on the float
36548 The mandatory settings are the float
36561 that specifies how much the float is set into the paragraph
36562 \begin_inset space \thinspace{}
36566 \begin_inset space \thinspace{}
36569 page margin, and the
36572 \begin_inset space ~
36577 that specifies how many text lines the float will approximately need.
36578 The line span is often hard to approximate; so it is better only to use
36579 it when you encounter float placement problems.
36580 You can furthermore decide if LaTeX is allowed to let the float float within
36581 the paragraph or to surrounding paragraphs.
36583 \begin_inset space ~
36587 \begin_inset CommandInset ref
36589 reference "fig:This-is-a"
36593 is an example text wrap float with a width of 40
36594 \begin_inset space \thinspace{}
36598 \begin_inset space \thinspace{}
36601 cm overhang, set to the left.
36604 \begin_layout Standard
36605 \begin_inset Note Greyedout
36608 \begin_layout Plain Layout
36614 \begin_inset space ~
36617 wrap float floats are fragile! E.
36618 \begin_inset space \thinspace{}
36622 \begin_inset space \space{}
36625 having a figure too close to the bottom of the page can mess things up in
36626 such a way that the float does not appear in the output or that it is placed
36627 over some other text.
36635 \begin_layout Standard
36636 In general, the following applies for wrap floats:
36639 \begin_layout Itemize
36640 They should not be placed in paragraphs that run over a page break.
36641 That means that wrap floats are better inserted in their exact place when
36642 the document is almost finished and you are able to estimate where page
36643 breaks will appear.
36646 \begin_layout Itemize
36647 They should either be placed in their own paragraph before the paragraph
36648 where they should wrap into or within a paragraph.
36651 \begin_layout Itemize
36652 In consecutive paragraphs they may cause troubles, so ensure that there
36653 is a text paragraph between them as separator.
36656 \begin_layout Itemize
36657 They are not allowed in section headings or tables.
36660 \begin_layout Itemize
36661 Their numbering and referencing works as described in chap.
36662 \begin_inset space \thinspace{}
36666 \begin_inset CommandInset ref
36668 reference "chap:Floats"
36675 \begin_layout Section
36676 Surrounded Fixed Objects
36677 \begin_inset Index idx
36680 \begin_layout Plain Layout
36681 Surrounded by text ! Fixed objects
36689 \begin_layout Standard
36690 The wrap floats described in sec.
36691 \begin_inset space \thinspace{}
36695 \begin_inset CommandInset ref
36697 reference "sec:Wrap-Floats"
36701 have these positions in the paragraph:
36704 \begin_layout Standard
36707 \begin_inset Tabular
36708 <lyxtabular version="3" rows="2" columns="2">
36709 <features rotate="0" tabularvalignment="middle">
36710 <column alignment="center" valignment="top">
36711 <column alignment="center" valignment="top">
36713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36716 \begin_layout Plain Layout
36717 \begin_inset Graphics
36718 filename ../images/dialog-show-new-inset_graphics.png
36720 scaleBeforeRotation
36729 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36732 \begin_layout Plain Layout
36740 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36743 \begin_layout Plain Layout
36749 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36752 \begin_layout Plain Layout
36764 \begin_inset Tabular
36765 <lyxtabular version="3" rows="2" columns="2">
36766 <features rotate="0" tabularvalignment="middle">
36767 <column alignment="center" valignment="top">
36768 <column alignment="center" valignment="top">
36770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36773 \begin_layout Plain Layout
36779 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36782 \begin_layout Plain Layout
36783 \begin_inset Graphics
36784 filename ../images/dialog-show-new-inset_graphics.png
36786 scaleBeforeRotation
36797 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36800 \begin_layout Plain Layout
36806 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36809 \begin_layout Plain Layout
36823 \begin_layout Standard
36824 To get an object exactly at the position where it is inserted, for example
36825 to get one of these positions:
36826 \begin_inset VSpace defskip
36832 \begin_layout Standard
36835 \begin_inset Tabular
36836 <lyxtabular version="3" rows="2" columns="2">
36837 <features rotate="0" tabularvalignment="middle">
36838 <column alignment="center" valignment="top">
36839 <column alignment="center" valignment="top">
36841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36844 \begin_layout Plain Layout
36850 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36853 \begin_layout Plain Layout
36861 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36864 \begin_layout Plain Layout
36865 \begin_inset Graphics
36866 filename ../images/dialog-show-new-inset_graphics.png
36868 scaleBeforeRotation
36877 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36880 \begin_layout Plain Layout
36892 \begin_inset Tabular
36893 <lyxtabular version="3" rows="2" columns="2">
36894 <features rotate="0" tabularvalignment="middle">
36895 <column alignment="center" valignment="top">
36896 <column alignment="center" valignment="top">
36898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36901 \begin_layout Plain Layout
36907 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36910 \begin_layout Plain Layout
36918 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36921 \begin_layout Plain Layout
36927 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36930 \begin_layout Plain Layout
36931 \begin_inset Graphics
36932 filename ../images/dialog-show-new-inset_graphics.png
36934 scaleBeforeRotation
36949 \begin_inset Tabular
36950 <lyxtabular version="3" rows="2" columns="3">
36951 <features rotate="0" tabularvalignment="middle">
36952 <column alignment="center" valignment="top">
36953 <column alignment="center" valignment="top">
36954 <column alignment="center" valignment="top">
36956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36959 \begin_layout Plain Layout
36965 <cell alignment="center" valignment="top" topline="true" usebox="none">
36968 \begin_layout Plain Layout
36969 \begin_inset Graphics
36970 filename ../images/dialog-show-new-inset_graphics.png
36972 scaleBeforeRotation
36981 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36984 \begin_layout Plain Layout
36992 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36995 \begin_layout Plain Layout
37001 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37004 \begin_layout Plain Layout
37010 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37013 \begin_layout Plain Layout
37025 \begin_inset Tabular
37026 <lyxtabular version="3" rows="2" columns="3">
37027 <features rotate="0" tabularvalignment="middle">
37028 <column alignment="center" valignment="top">
37029 <column alignment="center" valignment="top">
37030 <column alignment="center" valignment="top">
37032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37035 \begin_layout Plain Layout
37041 <cell alignment="center" valignment="top" topline="true" usebox="none">
37044 \begin_layout Plain Layout
37050 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37053 \begin_layout Plain Layout
37061 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37064 \begin_layout Plain Layout
37070 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37073 \begin_layout Plain Layout
37074 \begin_inset Graphics
37075 filename ../images/dialog-show-new-inset_graphics.png
37077 scaleBeforeRotation
37086 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37089 \begin_layout Plain Layout
37103 \begin_layout Standard
37106 \begin_inset Tabular
37107 <lyxtabular version="3" rows="3" columns="2">
37108 <features rotate="0" tabularvalignment="middle">
37109 <column alignment="center" valignment="top">
37110 <column alignment="center" valignment="top">
37112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37115 \begin_layout Plain Layout
37121 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37124 \begin_layout Plain Layout
37132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37135 \begin_layout Plain Layout
37136 \begin_inset Graphics
37137 filename ../images/dialog-show-new-inset_graphics.png
37139 scaleBeforeRotation
37148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37151 \begin_layout Plain Layout
37159 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37162 \begin_layout Plain Layout
37168 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37171 \begin_layout Plain Layout
37183 \begin_inset Tabular
37184 <lyxtabular version="3" rows="3" columns="3">
37185 <features rotate="0" tabularvalignment="middle">
37186 <column alignment="center" valignment="top">
37187 <column alignment="center" valignment="top">
37188 <column alignment="center" valignment="top">
37190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37193 \begin_layout Plain Layout
37199 <cell alignment="center" valignment="top" topline="true" usebox="none">
37202 \begin_layout Plain Layout
37208 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37211 \begin_layout Plain Layout
37219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37222 \begin_layout Plain Layout
37228 <cell alignment="center" valignment="top" usebox="none">
37231 \begin_layout Plain Layout
37232 \begin_inset Graphics
37233 filename ../images/dialog-show-new-inset_graphics.png
37235 scaleBeforeRotation
37244 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37247 \begin_layout Plain Layout
37255 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37258 \begin_layout Plain Layout
37264 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37267 \begin_layout Plain Layout
37273 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37276 \begin_layout Plain Layout
37288 \begin_inset Tabular
37289 <lyxtabular version="3" rows="3" columns="2">
37290 <features rotate="0" tabularvalignment="middle">
37291 <column alignment="center" valignment="top">
37292 <column alignment="center" valignment="top">
37294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37297 \begin_layout Plain Layout
37303 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37306 \begin_layout Plain Layout
37314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37317 \begin_layout Plain Layout
37323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37326 \begin_layout Plain Layout
37327 \begin_inset Graphics
37328 filename ../images/dialog-show-new-inset_graphics.png
37330 scaleBeforeRotation
37341 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37344 \begin_layout Plain Layout
37350 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37353 \begin_layout Plain Layout
37367 \begin_layout Standard
37369 you can use the LaTeX-package
37374 \begin_inset Index idx
37377 \begin_layout Plain Layout
37378 LaTeX-packages ! picinpar
37384 Here is an example:
37387 \begin_layout Standard
37391 \begin_layout Plain Layout
37401 \begin_inset Note Note
37404 \begin_layout Plain Layout
37405 The following section will only be displayed when the LaTeX-package
37417 \begin_layout Standard
37421 \begin_layout Plain Layout
37425 begin{window}[2,c,{
37431 \begin_inset Graphics
37432 filename clipart/mobius.eps
37435 scaleBeforeRotation
37436 rotateOrigin center
37444 \begin_layout Plain Layout
37449 \begin_layout Plain Layout
37458 It was in the spring of the year 1894 that all London was interested, and
37459 the fashionable world dismayed, by the murder of the Honourable Ronald
37460 Adair under most unusual and inexplicable circumstances.
37461 The public has already learned those particulars of the crime which
37467 \begin_layout Plain Layout
37478 came out in the police investigation, but a good deal was suppressed upon
37479 that occasion, since the case for the prosecution was so overwhelmingly
37480 strong that it was not necessary to bring forward all the facts.
37481 Only now, at the end of nearly ten years, am I allowed to supply those
37482 missing links which make up the whole of that remarkable chain.
37488 \begin_layout Plain Layout
37500 \begin_layout Standard
37504 \begin_layout Plain Layout
37513 Footnote of the paragraph with the fixed object.
37517 \begin_layout Plain Layout
37527 \begin_layout Standard
37528 Surrounded fixed objects are used to let text float around them, at which
37529 the object's position in the paragraph can be determined by the number
37531 In contrary to floats is it not possible to have a numbered caption.
37534 \begin_layout Standard
37535 A fixed object is inserted by adding the command
37538 \begin_layout Standard
37543 begin{window}[2,c,{
37546 \begin_layout Standard
37547 as TeX-Code at the beginning of the paragraph.
37548 The first parameter in the bracket, here '2', defines the number of lines
37549 above the object, the second, here 'c', the position of the object.
37550 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37551 Behind the command you insert the object.
37552 In this example an image with a width of 40
37553 \begin_inset space \thinspace{}
37556 % of the text column width was inserted.
37557 The object can also be a table, a box or an equation.
37558 Behind the object the command
37561 \begin_layout Standard
37564 },description text]
37565 \begin_inset Newline newline
37571 \begin_layout Standard
37574 \begin_inset Quotes eld
37582 \begin_inset Quotes erd
37585 is in the second line.
37586 The description text is optional.
37587 The text surrounding the object must be in the same paragraph as the object,
37588 so it must begin directly after the
37593 At the end of the paragraph insert the command:
37596 \begin_layout Standard
37604 \begin_layout Standard
37605 Within a paragraph with a fixed object, you cannot insert footnotes in the
37607 You have to use instead the command
37613 inside the paragraph and outside the command
37619 as described in sec.
37620 \begin_inset space \thinspace{}
37624 \begin_inset CommandInset ref
37626 reference "sec:Footnotes"
37633 \begin_layout Standard
37637 \begin_layout Plain Layout
37647 \begin_inset Note Note
37650 \begin_layout Plain Layout
37651 The following will be displayed when the LaTeX-package
37663 \begin_layout Standard
37664 You need to install the LaTeX-package
37668 to see the following part of this section in the output.
37671 \begin_layout Standard
37675 \begin_layout Plain Layout
37687 \begin_layout Section
37689 \begin_inset Index idx
37692 \begin_layout Plain Layout
37699 \begin_inset Index idx
37702 \begin_layout Plain Layout
37703 Surrounded by text ! Initials
37711 \begin_layout Standard
37712 To use initials, you must have the LaTeX-package
37717 \begin_inset Index idx
37720 \begin_layout Plain Layout
37721 LaTeX-packages ! lettrine
37726 installed and use the module
37730 in your document (menu
37732 Document\SpecialChar \menuseparator
37733 Settings\SpecialChar \menuseparator
37737 To insert an initial, use the style
37742 This style has a mandatory and two optional arguments.
37743 The arguments are inserted via the
37748 The mandatory argument
37752 contains the letter(s) that is the initial, the argument
37755 \begin_inset space ~
37759 \begin_inset space ~
37764 contains the rest of the word or text of the initial letter(s).
37769 contains parameters to modify the initial.
37770 For more information about the possible parameters see the documentation
37776 \begin_inset CommandInset citation
37783 The style itself contains the text that is surrounding the initial.
37784 The usual style is hereby that the word whose first letter is the initial,
37792 \begin_layout Standard
37793 Here are some examples:
37796 \begin_layout Standard
37800 \begin_layout Plain Layout
37810 \begin_inset Note Note
37813 \begin_layout Plain Layout
37814 The following section will only be displayed when the LaTeX-package
37826 \begin_layout Enumerate
37827 No optional argument, the initial is the letter 'I' in the math font
37828 \begin_inset Formula $\mathfrak{Fraktur}$
37835 \begin_layout Initial
37836 \begin_inset Argument 2
37839 \begin_layout Plain Layout
37840 \begin_inset Formula $\mathfrak{I}$
37849 \begin_inset Argument 3
37852 \begin_layout Plain Layout
37858 was in the spring of the year 1894 that all London was interested, and
37859 the fashionable world dismayed, by the murder of the Honourable Ronald
37860 Adair under most unusual and inexplicable circumstances.
37861 The public has already learned those particulars of the crime which came
37862 out in the police investigation, but a good deal was suppressed upon that
37863 occasion, since the case for the prosecution was so overwhelmingly strong
37864 that it was not necessary to bring forward all the facts.
37865 \begin_inset Newpage newpage
37872 \begin_layout Enumerate
37873 Only one line is surrounding the initial, which is formed by two letters
37874 in standard font and no text is printed in small caps:
37878 \begin_layout Initial
37879 \begin_inset Argument 1
37882 \begin_layout Plain Layout
37889 \begin_inset Argument 2
37892 \begin_layout Plain Layout
37898 was in the spring of the year 1894 that all London was interested, and
37899 the fashionable world dismayed, by the murder of the Honourable Ronald
37900 Adair under most unusual and inexplicable circumstances.
37901 The public has already learned those particulars of the crime which came
37902 out in the police investigation, but a good deal was suppressed upon that
37903 occasion, since the case for the prosecution was so overwhelmingly strong
37904 that it was not necessary to bring forward all the facts.
37908 \begin_layout Enumerate
37909 Magenta, hanging initial over 3
37910 \begin_inset space ~
37913 lines in the math font
37914 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37918 \begin_inset Quotes eld
37921 t was in the spring
37922 \begin_inset Quotes erd
37929 ; to color the initial, you must insert this command before the initial:
37930 \begin_inset Newline newline
37944 \begin_inset Newline newline
37952 \begin_inset Quotes eld
37956 \begin_inset Quotes erd
37960 \begin_inset Quotes eld
37964 \begin_inset Quotes erd
37968 \begin_inset Quotes eld
37972 \begin_inset Quotes erd
37976 \begin_inset Quotes eld
37980 \begin_inset Quotes erd
37984 \begin_inset Quotes eld
37988 \begin_inset Quotes erd
37992 \begin_inset Quotes eld
37996 \begin_inset Quotes erd
38000 \begin_inset Quotes eld
38004 \begin_inset Quotes erd
38008 \begin_inset Quotes eld
38012 \begin_inset Quotes erd
38015 , and add this command to the document preamble:
38016 \begin_inset Newline newline
38023 @ifundefined{textcolor}
38024 \begin_inset Newline newline
38028 \begin_inset space ~
38033 usepackage{color}}{}
38037 \begin_layout Standard
38041 \begin_layout Plain Layout
38055 \begin_inset Note Note
38058 \begin_layout Plain Layout
38059 makes the initial magenta
38067 \begin_layout Initial
38068 \begin_inset Argument 1
38071 \begin_layout Plain Layout
38072 lines=3, lhang=0.33, loversize=0.25
38078 \begin_inset Argument 2
38081 \begin_layout Plain Layout
38082 \begin_inset Formula $\mathcal{I}$
38091 \begin_inset Argument 3
38094 \begin_layout Plain Layout
38095 t was in the spring
38100 of the year 1894 that all London was interested, and the fashionable world
38101 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38102 and inexplicable circumstances.
38103 The public has already learned those particulars of the crime which came
38104 out in the police investigation, but a good deal was suppressed upon that
38105 occasion, since the case for the prosecution was so overwhelmingly strong
38106 that it was not necessary to bring forward all the facts.
38110 \begin_layout Standard
38114 \begin_layout Plain Layout
38124 \begin_inset Note Note
38127 \begin_layout Plain Layout
38128 The following will be displayed when the LaTeX-package
38140 \begin_layout Standard
38141 You need to install the LaTeX-package
38145 to see the following part of this section in the output.
38148 \begin_layout Standard
38152 \begin_layout Plain Layout
38164 \begin_layout Chapter
38165 External Document Parts
38166 \begin_inset Index idx
38169 \begin_layout Plain Layout
38170 External Document Parts
38178 \begin_layout Standard
38181 Insert\SpecialChar \menuseparator
38184 you can insert external material into your document.
38188 \begin_layout Description
38190 \begin_inset space ~
38193 Document Another LyX document; its content is directly inserted to your
38197 \begin_layout Description
38199 \begin_inset space ~
38202 Text A text document; each line is inserted in your document as a separate
38206 \begin_layout Description
38208 \begin_inset space ~
38212 \begin_inset space ~
38216 \begin_inset space ~
38219 Lines A text document; text lines are inserted in your document continuously
38220 but an empty text line creates a new paragraph.
38223 \begin_layout Description
38225 \begin_inset space ~
38228 Material Files in various formats.
38231 \begin_layout Description
38233 \begin_inset space ~
38236 Document LyX or LaTeX-documents.
38239 \begin_layout Section
38241 \begin_inset Index idx
38244 \begin_layout Plain Layout
38245 External Document Parts ! External Material
38253 \begin_layout Standard
38254 The external material feature allows you to insert files into your document
38255 without converting them to a format that can be read by the document output
38257 LyX takes care of the necessary conversions.
38258 This is similar to images that can be inserted in various image formats
38260 When you have enabled Instant Preview in LyX's preferences under
38263 \begin_inset space ~
38267 \begin_inset space ~
38270 feel\SpecialChar \menuseparator
38273 , the external material types Dia and Xfig are directly shown in LyX.
38276 \begin_layout Standard
38277 External material can be inserted via the
38281 dialog that is accessible with the menu
38283 Insert\SpecialChar \menuseparator
38284 File\SpecialChar \menuseparator
38286 \begin_inset space ~
38292 Currently the following file types (
38299 \begin_layout Description
38300 ChessDiagram This template supports chess position diagrams made with the
38304 \begin_inset CommandInset href
38307 target "http://en.wikipedia.org/wiki/XBoard"
38316 \begin_layout Description
38317 Date This inserts the date in the form
38322 This is a date inserted as external material:
38323 \begin_inset External
38330 \begin_inset space ~
38334 \begin_inset Note Note
38337 \begin_layout Plain Layout
38338 Remove the protected space when bug 4398 is fixed!
38344 \begin_inset Newline newline
38347 The date is not shown within LyX, only in the output.
38348 There are two other methods of inserting a date: Via menu
38350 Insert\SpecialChar \menuseparator
38353 and with the LaTeX command
38360 The different methods are compared in Table
38361 \begin_inset space ~
38365 \begin_inset CommandInset ref
38367 reference "tab:Comparison-of-the"
38374 \begin_layout Description
38375 Dia This template supports diagrams created with the program
38378 \begin_inset CommandInset href
38381 target "http://en.wikipedia.org/wiki/Dia_(software)"
38390 \begin_layout Description
38391 GnumericSpreadsheet With this template you can insert spreadsheets
38392 \begin_inset space \thinspace{}
38396 \begin_inset space \thinspace{}
38399 tables in the format of
38402 \begin_inset CommandInset href
38405 target "http://en.wikipedia.org/wiki/Gnumeric"
38412 \begin_inset CommandInset href
38414 name "OpenDocument"
38415 target "http://en.wikipedia.org/wiki/OpenDocument"
38420 \begin_inset CommandInset href
38422 name "Microsoft Office XML"
38423 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38428 \begin_inset CommandInset href
38430 name "Office Open XML"
38431 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38436 For this feature LyX must have found the program
38440 during its configuration.
38441 This program is part of Gnumeric, so that you must have Gnumeric installed,
38442 also if you don't have tables in the Gnumeric format.
38443 For examples and possible limitations have a look at LyX's example file
38451 \begin_layout Description
38452 LilyPond This template is used for music notation typeset with the program
38453 \begin_inset Newline linebreak
38459 \begin_inset CommandInset href
38462 target "http://en.wikipedia.org/wiki/LilyPond"
38469 For LyX's extended support for LilyPond have a look at LyX's example file
38477 \begin_layout Description
38478 PDFPages With this template you can insert PDF documents to your document.
38479 To specify the range of pages that should be included, use the option
38489 LaTeX and LyX options
38492 The argument of this option is a comma separated list, containing page
38493 numbers (insert as option
38497 ), ranges of page numbers (
38501 ) or any combination.
38502 To insert empty pages use {}.
38504 \begin_inset space \thinspace{}
38508 \begin_inset space ~
38513 pages={3,{},8-11,15}
38515 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38516 Page ranges are specified in the syntax
38525 This selects all pages from
38538 defaults to the first page; omitting
38542 defaults to the last page of the document.
38543 The last page can also be selected with the keyword
38548 (This is only permitted in a page range.) So
38552 will insert all pages of the document and
38556 will insert all pages in reverse order.
38557 If the pages option is not specified, only the first page of the PDF is
38559 \begin_inset Newline newline
38566 inserts the pages with their original size, if this option is not given,
38567 the pages will be resized to fith the width of the page of your document.
38572 you can specify the width and height of the input pages and their rotation.
38573 If another width than 100
38574 \begin_inset space \thinspace{}
38577 Scale% is used, the option
38581 will be overwritten.
38582 For more info and possible options, have a look into the documentation
38583 of the LaTeX-package
38588 \begin_inset CommandInset citation
38595 \begin_inset Index idx
38598 \begin_layout Plain Layout
38599 LaTeX-packages ! pdfpages
38605 \begin_inset Newline newline
38608 To use this template in a
38612 presentation you need to first insert an
38616 environment and in a subsequent paragraph a TeX-Code box containing the
38621 setbeamertemplate{background canvas}{}
38624 Then you can insert as many paragraphs containing the PDFPages template
38626 Behind the included PDF pages you can resume the Beamer presentation by
38627 beginning a new frame or by starting a new section.
38628 To avoid stray blank pages prior to the PDF pages, make sure to use the
38633 alignment for the paragraph containing the template.
38634 \begin_inset Newline newline
38637 Here is an included PDF which is rotated by -5°:
38638 \begin_inset External
38640 filename clipart/Abstract.pdf
38641 extra LaTeX "noautoscale, pages=-"
38643 rotateOrigin bottomleft
38650 \begin_layout Description
38651 RasterImage This can be used for bitmap images.
38652 The image can be treated in the
38656 dialog like the images that are usually included via the
38660 dialog as described in section
38661 \begin_inset space ~
38665 \begin_inset CommandInset ref
38667 reference "sec:Graphics-Dialog"
38672 The difference to the normal image input is that only raster images are
38673 allowed; that means that PDF and EPS-images are not supported.
38674 Here is an inserted raster image:
38675 \begin_inset External
38676 template RasterImage
38677 filename clipart/ToolbarEnvBox.png
38684 \begin_layout Description
38685 XFig This template supports images created with the program
38688 \begin_inset CommandInset href
38691 target "http://en.wikipedia.org/wiki/Xfig"
38700 \begin_layout Standard
38701 \begin_inset Float table
38707 \begin_layout Plain Layout
38708 \begin_inset Caption Standard
38710 \begin_layout Plain Layout
38711 \begin_inset CommandInset label
38713 name "tab:Comparison-of-the"
38717 Comparison of the date input methods.
38725 \begin_layout Plain Layout
38727 \begin_inset Tabular
38728 <lyxtabular version="3" rows="4" columns="4">
38729 <features rotate="0" tabularvalignment="middle">
38730 <column alignment="center" valignment="top">
38731 <column alignment="center" valignment="top">
38732 <column alignment="center" valignment="top">
38733 <column alignment="center" valignment="top">
38735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38738 \begin_layout Plain Layout
38744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38747 \begin_layout Plain Layout
38750 External Material\SpecialChar \menuseparator
38756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38759 \begin_layout Plain Layout
38762 Insert\SpecialChar \menuseparator
38768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38771 \begin_layout Plain Layout
38783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38786 \begin_layout Plain Layout
38792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38795 \begin_layout Plain Layout
38801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38804 \begin_layout Plain Layout
38810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38813 \begin_layout Plain Layout
38814 as TeX-Code inset box
38821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38824 \begin_layout Plain Layout
38830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38833 \begin_layout Plain Layout
38839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38842 \begin_layout Plain Layout
38848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38851 \begin_layout Plain Layout
38859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38862 \begin_layout Plain Layout
38868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38871 \begin_layout Plain Layout
38877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38880 \begin_layout Plain Layout
38886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38889 \begin_layout Plain Layout
38908 \begin_layout Standard
38909 When you use the option
38921 dialog, only the path to the inserted file is shown in the output.
38922 \begin_inset Newline newline
38925 External material is displayed in LyX either as a box like this:
38926 \begin_inset Graphics
38927 filename clipart/ExternalMaterialQt4.png
38929 scaleBeforeRotation
38933 or as image, depending on the option
38939 LaTeX and LyX options
38944 \begin_layout Standard
38951 manual explains how you can define your own templates.
38954 \begin_layout Section
38956 \begin_inset CommandInset label
38958 name "sec:Child-Documents"
38963 \begin_inset Index idx
38966 \begin_layout Plain Layout
38967 External Document Parts ! Child Documents
38973 \begin_inset Index idx
38976 \begin_layout Plain Layout
38985 \begin_layout Standard
38986 Child documents are used if you have a long document consisting of several
38987 larger parts or sections.
38988 For maintenance it is often useful and sometimes even required to split
38989 the document into several files that can be revised separately.
38990 The different documents are then the so called
38991 \begin_inset Quotes eld
38995 \begin_inset Quotes erd
38998 , and a master document connects them to print the full document or parts
39000 A child document inherits elements from its master, for example the LaTeX
39001 preamble, the bibliography, and labels for cross-references.
39004 \begin_layout Standard
39005 To be able to work on child documents without the need to open their master,
39006 specify in the child document the master in the menu
39008 Document\SpecialChar \menuseparator
39009 Settings\SpecialChar \menuseparator
39011 \begin_inset space ~
39017 This master document will then be used in the background by LyX when you
39018 edit the child document.
39021 \begin_layout Standard
39022 Included documents are displayed in LyX as a box like this:
39023 \begin_inset Graphics
39024 filename clipart/ChildDocumentQt4.png
39026 scaleBeforeRotation
39030 To include child documents in a master document use the menu
39032 Insert\SpecialChar \menuseparator
39033 File\SpecialChar \menuseparator
39035 \begin_inset space ~
39041 A dialog pops up where you can choose between four include methods:
39044 \begin_layout Description
39045 Include You can include LyX- and LaTeX-documents.
39054 dialog, the included document will be opened in LyX in a new file tab so
39055 that you can modify it.
39056 \begin_inset Newline newline
39062 \begin_layout Standard
39063 Here is a child document inserted using
39068 \begin_inset CommandInset include
39069 LatexCommand include
39070 filename "DummyDocument1.lyx"
39077 \begin_layout Standard
39078 The section numbering includes the sections of the included files in the
39079 order they are inserted in the master document.
39080 The included example document has for example a subsection that is numbered
39081 as a subsection of this section.
39082 Labels of included documents can be referenced: Subsection
39083 \begin_inset space ~
39087 \begin_inset CommandInset ref
39089 reference "sub:External-Subsection-1"
39096 \begin_layout Standard
39097 The preamble of the child document is ignored; only the preamble of the
39098 master document is used.
39099 Branches in child documents will be ignored by the master document when
39100 the master document does not have a branch with the same name.
39101 Included documents are inserted starting on a new page and ending with
39105 \begin_layout Standard
39106 \begin_inset Note Greyedout
39109 \begin_layout Plain Layout
39114 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39115 the document in case the child document uses another document class than
39116 the master document as this will lead to unexpected outputs.
39124 \begin_layout Description
39125 Input This method is very similar to the Include method.
39126 The differences are:
39130 \begin_layout Itemize
39131 Input files don't start with a new page and don't end with a page break.
39134 \begin_layout Itemize
39135 Input files can be previewed in LyX when
39138 \begin_inset space ~
39143 is enabled in LyX's preferences under
39146 \begin_inset space ~
39150 \begin_inset space ~
39153 feel\SpecialChar \menuseparator
39159 \begin_layout Itemize
39160 You cannot exclude Input files via the menu
39162 Document\SpecialChar \menuseparator
39163 Settings\SpecialChar \menuseparator
39170 \begin_layout Standard
39171 Here is a child document inserted using
39176 \begin_inset CommandInset include
39178 filename "DummyDocument2.lyx"
39185 \begin_layout Description
39186 Verbatim With this method any text file can be included.
39187 The file is shown in the output with its source code; no command used in
39188 the text is invoked.
39189 You can use the option
39191 Mark spaces in output
39193 that displays the character
39194 \begin_inset Quotes eld
39201 \begin_layout Plain Layout
39211 \begin_inset Quotes erd
39214 for every space character in the source code.
39215 The difference from the method via the menu
39217 Insert\SpecialChar \menuseparator
39218 File\SpecialChar \menuseparator
39220 \begin_inset space ~
39225 is that the document content is not shown in LyX.
39228 \begin_layout Standard
39229 Here is a child document inserted as Verbatim:
39230 \begin_inset CommandInset include
39231 LatexCommand verbatiminput
39232 filename "DummyTextDocument.txt"
39237 \begin_inset VSpace bigskip
39240 Here is a child document inserted as Verbatim using the
39242 Mark spaces in output
39245 \begin_inset CommandInset include
39246 LatexCommand verbatiminput*
39247 filename "DummyTextDocument.txt"
39254 \begin_layout Standard
39255 \begin_inset VSpace bigskip
39261 \begin_layout Standard
39262 \begin_inset Note Greyedout
39265 \begin_layout Plain Layout
39270 As you can see in the examples above, the text of the documents included
39275 is not broken at the end of the document lines.
39283 \begin_layout Description
39284 Listings This type is described in chapter
39285 \begin_inset space ~
39289 \begin_inset CommandInset ref
39291 reference "cha:Program-Code-Listings"
39298 \begin_layout Standard
39299 \begin_inset Note Greyedout
39302 \begin_layout Plain Layout
39307 Including the same document twice in a document using different methods
39308 could cause LaTeX-problems.
39316 \begin_layout Standard
39317 If you want to view/export only selected children of your master document,
39318 either because you want to save compiling time or because you want to distribut
39319 e single chapters of the book you are just writing, you can exclude children
39321 This is done via the menu
39323 Document\SpecialChar \menuseparator
39324 Settings\SpecialChar \menuseparator
39328 You can exclude\SpecialChar \slash{}
39329 include children by double-clicking on the
39333 column of the respective child document in the list (note that this only
39334 works for documents embedded via
39335 \begin_inset Quotes eld
39339 \begin_inset Quotes erd
39343 \begin_inset Quotes eld
39347 \begin_inset Quotes erd
39353 Maintain counters and references
39355 is enabled, LyX will assure that all page numbers, references etc.
39356 \begin_inset space ~
39359 are correct as if the whole document was processed.
39360 This is useful if you want the selected sub-documents to look exactly as
39361 in the context of the whole document.
39362 However, LyX needs to process the whole document in the background for
39364 So if you want to save compile time and if counters and references do not
39365 need to be correct, disable this checkbox.
39368 \begin_layout Standard
39369 Alternatively, you can put each included file into a branch.
39373 \begin_layout Plain Layout
39374 Branches are described in section
39387 By enabling\SpecialChar \slash{}
39388 disabling branches you can decide which included files will
39389 appear in the output.
39390 This has the advantage that it also works with Input'ed sub-documents.
39391 However, counters and references will not be maintained with this approach.
39394 \begin_layout Chapter
39395 Program Code Listings
39396 \begin_inset CommandInset label
39398 name "cha:Program-Code-Listings"
39403 \begin_inset Index idx
39406 \begin_layout Plain Layout
39413 \begin_inset Index idx
39416 \begin_layout Plain Layout
39423 \begin_inset Index idx
39426 \begin_layout Plain Layout
39435 \begin_layout Standard
39436 To include and typeset program code you can use the
39440 inset that can be inserted via the menu
39442 Insert\SpecialChar \menuseparator
39451 \begin_inset Index idx
39454 \begin_layout Plain Layout
39455 LaTeX-packages ! listings
39460 provides a powerful and flexible way to insert program source code into
39464 \begin_layout Standard
39465 Right-clicking on a listings inset opens the context menu containing where
39466 you can set the listings format.
39469 \begin_layout Standard
39470 By default, a listing starts a new paragraph in the output.
39471 The placement option
39474 \begin_inset space ~
39479 prints the listing inline like this:
39480 \begin_inset listings
39481 lstparams "language={C++}"
39485 \begin_layout Plain Layout
39493 \begin_inset Newline newline
39500 creates a listings float where you can specify the placement options
39501 \begin_inset Quotes eld
39509 \begin_inset Quotes erd
39513 \begin_inset Quotes eld
39521 \begin_inset Quotes erd
39525 \begin_inset Quotes eld
39533 \begin_inset Quotes erd
39537 \begin_inset Quotes eld
39545 \begin_inset Quotes erd
39548 corresponding to the float placement options described in section
39549 \begin_inset space ~
39553 \begin_inset CommandInset ref
39555 reference "sec:Float-Placement"
39560 The placement options can be mixed and are inserted without any separation,
39562 \begin_inset space \thinspace{}
39566 \begin_inset space \space{}
39570 \begin_inset Quotes eld
39578 \begin_inset Quotes erd
39583 \begin_inset Quotes eld
39587 \begin_inset Quotes erd
39590 has sometimes no effect, but you don't need to use the
39594 option in this case as also non-float listings can have captions and be
39598 \begin_layout Standard
39599 You can add captions to listings with the menu
39601 Insert\SpecialChar \menuseparator
39605 Listings can be referenced like floats: Listing
39606 \begin_inset space ~
39610 \begin_inset CommandInset ref
39612 reference "lst:Example-Listing"
39617 A list of listings which contains all listings with captions can be created
39620 Insert\SpecialChar \menuseparator
39622 \begin_inset space ~
39626 \begin_inset space ~
39629 TOC\SpecialChar \menuseparator
39633 The list entries are the listing caption and the listing number.
39636 \begin_layout Standard
39637 \begin_inset listings
39638 lstparams "language=Python"
39642 \begin_layout Plain Layout
39644 \begin_inset Caption Standard
39646 \begin_layout Plain Layout
39647 \begin_inset CommandInset label
39649 name "lst:Example-Listing"
39653 Example Listing float
39658 # Example listing float
39661 \begin_layout Plain Layout
39666 \begin_layout Plain Layout
39668 'this is a python function'
39671 \begin_layout Plain Layout
39681 \begin_layout Standard
39682 When you have set a programming language in the listings dialog, the keywords
39683 of this language will be recognized and specially typeset in the output.
39684 In the example listings the Python keyword
39685 \begin_inset Quotes eld
39689 \begin_inset Quotes erd
39692 is recognized and printed bold in the output.
39695 \begin_layout Standard
39696 \begin_inset Note Greyedout
39699 \begin_layout Plain Layout
39704 If you don't get bold keywords when using typewriter fonts, your
39708 font probably doesn't provide a bold shape.
39709 In this case select a different one in the menu
39711 Document\SpecialChar \menuseparator
39712 Settings\SpecialChar \menuseparator
39724 provide bold shapes.)
39732 \begin_layout Standard
39736 \begin_inset space ~
39741 of the listings dialog you can specify the line numbering style.
39742 You can insert a number to specify which lines are numbered in the field
39749 \begin_inset space \thinspace{}
39753 \begin_inset space \space{}
39757 \begin_inset Quotes eld
39761 \begin_inset Quotes erd
39764 , only every 3rd line will be numbered.
39767 \begin_layout Standard
39768 You can furthermore specify a range of lines; only these will then appear
39772 Extended character table
39774 should be used when you use national characters like the German umlauts
39776 \begin_inset Newline newline
39779 Here is an example listing with left line numbering, step
39780 \begin_inset Quotes eld
39784 \begin_inset Quotes erd
39788 \begin_inset Quotes eld
39792 \begin_inset Quotes erd
39796 \begin_inset Quotes eld
39799 Extended character table
39800 \begin_inset Quotes erd
39804 \begin_inset Quotes eld
39808 \begin_inset space ~
39812 \begin_inset space ~
39816 \begin_inset Quotes erd
39820 \begin_inset space \thinspace{}
39824 \begin_inset space \thinspace{}
39830 \begin_layout Standard
39831 \begin_inset listings
39832 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39836 \begin_layout Plain Layout
39841 \begin_layout Plain Layout
39843 'this is a python function'
39846 \begin_layout Plain Layout
39851 \begin_layout Plain Layout
39856 \begin_layout Plain Layout
39858 'This is a German word: Tschüß'
39861 \begin_layout Plain Layout
39866 \begin_layout Plain Layout
39871 \begin_layout Plain Layout
39873 'this is a python function'
39876 \begin_layout Plain Layout
39886 \begin_layout Standard
39887 When you have tabulators in your listing, you can specify the number of
39888 characters that are spanned by a tabulator in the field
39891 \begin_inset space ~
39899 \begin_layout Standard
39900 \begin_inset Note Greyedout
39903 \begin_layout Plain Layout
39908 Due to a bug in the
39912 package the line numbering is shifted by a line by every previous listing.
39913 That's the reason why the lines 2 and 5 are numbered in the above listing
39914 and not the lines 3 and 6.
39922 \begin_layout Standard
39923 \begin_inset VSpace bigskip
39929 \begin_layout Standard
39930 It is also possible to print lines from a file as listing.
39931 To do this, use the menu
39933 Insert\SpecialChar \menuseparator
39934 File\SpecialChar \menuseparator
39937 and choose the type
39945 \begin_layout Plain Layout
39946 The other child document types are described in section
39947 \begin_inset space ~
39951 \begin_inset CommandInset ref
39953 reference "sec:Child-Documents"
39962 In the child document dialog you can specify the listing parameters in
39964 To show a list of all available parameters, type in a question mark
39965 \begin_inset Quotes eld
39969 \begin_inset Quotes erd
39975 \begin_layout Standard
39976 To reference child document listings, write a label text into the corresponding
39977 field of the child document dialog.
39978 The label can then be referenced using the menu
39980 Insert\SpecialChar \menuseparator
39986 \begin_layout Standard
39988 \begin_inset space ~
39992 \begin_inset CommandInset ref
39994 reference "lst:file-listing"
39998 is an example for a listing of a file; there the lines 10
39999 \begin_inset space \thinspace{}
40003 \begin_inset space \thinspace{}
40006 15 of this LyX file are listed.
40009 \begin_layout Standard
40010 \begin_inset CommandInset include
40011 LatexCommand lstinputlisting
40012 filename "EmbeddedObjects.lyx"
40013 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40020 \begin_layout Standard
40021 \begin_inset VSpace bigskip
40027 \begin_layout Standard
40028 Inserting a formula into a listing can be done the following way:
40031 \begin_layout Enumerate
40032 Open the listings dialog and add
40033 \begin_inset Newline newline
40041 \begin_inset Newline newline
40044 to the field of the
40051 \begin_layout Enumerate
40052 Create a formula outside the listing
40055 \begin_layout Enumerate
40056 Copy the content of the formula (not the formula inset) to the clipboard
40066 \begin_layout Enumerate
40067 In the listing write
40068 \begin_inset Quotes eld
40076 \begin_inset Quotes erd
40079 and copy from the clipboard between the dollar-signs (shortcut
40088 \begin_layout Standard
40089 \begin_inset listings
40090 lstparams "language=Python,mathescape=true"
40094 \begin_layout Plain Layout
40096 \begin_inset Caption Standard
40098 \begin_layout Plain Layout
40099 Example Listing float containing a formula
40104 # Example listing float
40107 \begin_layout Plain Layout
40112 \begin_layout Plain Layout
40125 \begin_layout Plain Layout
40135 \begin_layout Standard
40136 \begin_inset VSpace bigskip
40142 \begin_layout Standard
40143 Global listings settings can be set in the
40145 Document\SpecialChar \menuseparator
40146 Settings\SpecialChar \menuseparator
40150 To get there a list of available options, type in a question mark
40151 \begin_inset Quotes eld
40155 \begin_inset Quotes erd
40161 \begin_layout Standard
40162 For more information about the
40166 package, we refer to its documentation
40167 \begin_inset CommandInset citation
40176 \begin_layout Standard
40177 \begin_inset Newpage newpage
40183 \begin_layout Chapter
40185 Units available in LyX
40186 \begin_inset Index idx
40189 \begin_layout Plain Layout
40196 \begin_inset CommandInset label
40198 name "cha:Units-available-in"
40205 \begin_layout Standard
40206 To understand the units described in this documentation, Table
40207 \begin_inset space ~
40211 \begin_inset CommandInset ref
40213 reference "tab:Units"
40217 explains all units available in LyX.
40220 \begin_layout Standard
40221 \begin_inset Float table
40227 \begin_layout Plain Layout
40228 \begin_inset Caption Standard
40230 \begin_layout Plain Layout
40231 \begin_inset CommandInset label
40245 \begin_layout Plain Layout
40246 \begin_inset VSpace medskip
40252 \begin_layout Plain Layout
40254 \begin_inset Tabular
40255 <lyxtabular version="3" rows="20" columns="2">
40256 <features rotate="0" tabularvalignment="middle">
40257 <column alignment="center" valignment="top">
40258 <column alignment="center" valignment="top">
40260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40263 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40272 \begin_layout Plain Layout
40280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40283 \begin_layout Plain Layout
40289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40292 \begin_layout Plain Layout
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40312 \begin_layout Plain Layout
40320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40323 \begin_layout Plain Layout
40329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40332 \begin_layout Plain Layout
40340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40343 \begin_layout Plain Layout
40349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40352 \begin_layout Plain Layout
40354 \begin_inset space \thinspace{}
40358 \begin_inset space \thinspace{}
40368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40371 \begin_layout Plain Layout
40377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40380 \begin_layout Plain Layout
40382 \begin_inset space \thinspace{}
40386 \begin_inset space \thinspace{}
40396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40399 \begin_layout Plain Layout
40405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40408 \begin_layout Plain Layout
40409 scaled point (65536
40410 \begin_inset space \thinspace{}
40414 \begin_inset space \thinspace{}
40424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40427 \begin_layout Plain Layout
40433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40436 \begin_layout Plain Layout
40438 \begin_inset space \thinspace{}
40442 \begin_inset space \thinspace{}
40452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40455 \begin_layout Plain Layout
40461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40464 \begin_layout Plain Layout
40466 \begin_inset space \thinspace{}
40470 \begin_inset Formula $\approx$
40474 \begin_inset space \thinspace{}
40484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40487 \begin_layout Plain Layout
40493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40496 \begin_layout Plain Layout
40498 \begin_inset space \thinspace{}
40502 \begin_inset space \thinspace{}
40512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40515 \begin_layout Plain Layout
40521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40524 \begin_layout Plain Layout
40525 % of original image width
40532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40535 \begin_layout Plain Layout
40541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40544 \begin_layout Plain Layout
40552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40555 \begin_layout Plain Layout
40561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40564 \begin_layout Plain Layout
40572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40575 \begin_layout Plain Layout
40581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40584 \begin_layout Plain Layout
40592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40595 \begin_layout Plain Layout
40601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40604 \begin_layout Plain Layout
40612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40615 \begin_layout Plain Layout
40621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40624 \begin_layout Plain Layout
40632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40635 \begin_layout Plain Layout
40641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40644 \begin_layout Plain Layout
40652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40655 \begin_layout Plain Layout
40661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40664 \begin_layout Plain Layout
40676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40679 \begin_layout Plain Layout
40685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40688 \begin_layout Plain Layout
40700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40703 \begin_layout Plain Layout
40709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40712 \begin_layout Plain Layout
40714 \begin_inset space \thinspace{}
40718 \begin_inset space \thinspace{}
40739 \begin_layout Chapter
40740 Output File Formats with Graphics
40741 \begin_inset CommandInset label
40743 name "cha:Output-File-Formats"
40750 \begin_layout Section
40752 \begin_inset Index idx
40755 \begin_layout Plain Layout
40762 \begin_inset Index idx
40765 \begin_layout Plain Layout
40770 \begin_layout Plain Layout
40781 \begin_layout Plain Layout
40796 \begin_layout Standard
40797 This file type has the extension
40798 \begin_inset Quotes eld
40806 \begin_inset Quotes erd
40811 \begin_inset Quotes eld
40815 \begin_inset Quotes erd
40818 (DVI), because it is completely portable; you can move them from one machine
40819 to another without needing to do any sort of conversion.
40820 At the time when this file-format was developed, this was no matter of
40822 DVIs are used for quick previews and as pre-stage for other output formats,
40826 \begin_layout Standard
40827 \begin_inset Note Greyedout
40830 \begin_layout Plain Layout
40835 DVI-files do not contain images; they will only be a linked.
40840 So don't forget this, if you move your
40844 file to another computer.
40845 This property can also slow down your computer when you view the DVI, because
40846 the DVI-viewer has to convert the image in the background to make it visible
40847 when you scroll in the DVI.
40848 So it is recommended that you use PDF for files with many images.
40851 \begin_layout Standard
40852 You can export your document to DVI by using the menu
40854 File\SpecialChar \menuseparator
40855 Export\SpecialChar \menuseparator
40859 You can view your document as DVI via the
40866 \begin_layout Section
40868 \begin_inset CommandInset label
40870 name "sec:PostScript"
40875 \begin_inset Index idx
40878 \begin_layout Plain Layout
40879 File Formats ! PostScript
40885 \begin_inset Index idx
40888 \begin_layout Plain Layout
40893 \begin_layout Plain Layout
40904 \begin_layout Plain Layout
40919 \begin_layout Standard
40920 This file type has the extension
40921 \begin_inset Quotes eld
40929 \begin_inset Quotes erd
40933 PostScript was developed by the company
40937 as a printer language.
40938 The file therefore contains commands that the printer uses to print the
40940 PostScript can be seen as a
40941 \begin_inset Quotes eld
40944 programming language
40945 \begin_inset Quotes erd
40948 ; you can calculate with it and draw diagrams and images
40952 \begin_layout Plain Layout
40953 If you are interested to learn more about this, have a look at the LaTeX-package
40959 \begin_inset CommandInset citation
40971 Due to this ability, the files are often bigger than PDFs.
40974 \begin_layout Standard
40975 PostScript can only contain images in the format
40976 \begin_inset Quotes eld
40979 Encapsulated PostScript
40980 \begin_inset Quotes erd
40983 (EPS, file extension
40984 \begin_inset Quotes eld
40992 \begin_inset Quotes erd
40996 As LyX allows you to use any known image format in your document, it has
40997 to convert images in the background to EPS.
40999 \begin_inset space ~
41003 \begin_inset space ~
41006 images in your document, LyX has to do 50
41007 \begin_inset space ~
41010 conversions whenever you view or export your document.
41011 This will slow down your work flow with LyX drastically.
41012 So if you plan to use PostScript, you can insert your images directly as
41013 EPS to avoid this problem.
41016 \begin_layout Standard
41017 You can export your document to PostScript using the menu
41019 File\SpecialChar \menuseparator
41020 Export\SpecialChar \menuseparator
41024 You can view your document as PostScript via the
41031 \begin_layout Section
41033 \begin_inset Index idx
41036 \begin_layout Plain Layout
41043 \begin_inset Index idx
41046 \begin_layout Plain Layout
41055 \begin_layout Standard
41056 This file type has the extension
41057 \begin_inset Quotes eld
41065 \begin_inset Quotes erd
41070 \begin_inset Quotes eld
41073 Portable Document Format
41074 \begin_inset Quotes erd
41077 (PDF) was developed by
41081 as a derivative of PostScript.
41082 It is more compressed and it uses fewer commands than PostScript.
41084 \begin_inset Quotes eld
41088 \begin_inset Quotes erd
41091 implies, it can be processed at any computer system and the printed output
41092 looks exactly the same.
41095 \begin_layout Standard
41096 PDF can contain images in its own PDF format, in the format
41097 \begin_inset Quotes eld
41100 Joint Photographic Experts Group
41101 \begin_inset Quotes erd
41104 (JPG, file extension
41105 \begin_inset Quotes eld
41113 \begin_inset Quotes erd
41117 \begin_inset Quotes eld
41125 \begin_inset Quotes erd
41128 ), and in the format
41129 \begin_inset Quotes eld
41132 Portable Network Graphics
41133 \begin_inset Quotes erd
41136 (PNG, file extension
41137 \begin_inset Quotes eld
41145 \begin_inset Quotes erd
41149 Nevertheless you can use any other image format, because LyX converts them
41150 in the background to one of these formats.
41151 But as described in the section about PostScript, the image conversion
41152 will slow down your work flow.
41153 So it is recommended that you use images in one of the three mentioned
41157 \begin_layout Standard
41158 You can export your document to PDF via the menu
41160 File\SpecialChar \menuseparator
41163 in three different ways:
41166 \begin_layout Description
41168 \begin_inset space ~
41171 (ps2pdf) This uses the program
41175 that creates a PDF from a PostScript-version of your file.
41176 The PostScript-version is produced by the program
41180 which uses a DVI-version as intermediate step.
41181 So this export variant consists of three conversions.
41184 \begin_layout Description
41186 \begin_inset space ~
41189 (dvipdfm) This uses the program
41193 that converts your file in the background to DVI and in a second step to
41197 \begin_layout Description
41199 \begin_inset space ~
41202 (pdflatex) This uses the program
41206 that converts your file directly to PDF.
41209 \begin_layout Standard
41210 It is recommended that you use
41213 \begin_inset space ~
41222 supports all features of actual PDF-versions, is quick and works stable.
41227 is not under development and therefore a bit outdated.
41230 \begin_layout Standard
41231 You can view your document as PDF via the
41235 menu or by using a toolbar button.
41238 \begin_layout Chapter
41239 List of dvips color names
41240 \begin_inset CommandInset label
41242 name "chap:List-of-dvips-colornames"
41249 \begin_layout Standard
41250 \begin_inset Tabular
41251 <lyxtabular version="3" rows="17" columns="4">
41252 <features rotate="0" tabularvalignment="middle">
41253 <column alignment="left" valignment="top" width="0pt">
41254 <column alignment="left" valignment="top" width="0pt">
41255 <column alignment="left" valignment="top" width="0pt">
41256 <column alignment="left" valignment="top" width="0pt">
41258 <cell alignment="left" valignment="top" usebox="none">
41261 \begin_layout Plain Layout
41265 \begin_layout Plain Layout
41278 \begin_layout Plain Layout
41289 \begin_layout Plain Layout
41301 <cell alignment="left" valignment="top" usebox="none">
41304 \begin_layout Plain Layout
41308 \begin_layout Plain Layout
41321 \begin_layout Plain Layout
41332 \begin_layout Plain Layout
41344 <cell alignment="left" valignment="top" usebox="none">
41347 \begin_layout Plain Layout
41351 \begin_layout Plain Layout
41364 \begin_layout Plain Layout
41375 \begin_layout Plain Layout
41387 <cell alignment="left" valignment="top" usebox="none">
41390 \begin_layout Plain Layout
41394 \begin_layout Plain Layout
41407 \begin_layout Plain Layout
41418 \begin_layout Plain Layout
41432 <cell alignment="center" valignment="top" usebox="none">
41435 \begin_layout Plain Layout
41439 \begin_layout Plain Layout
41452 \begin_layout Plain Layout
41460 \begin_inset Phantom Phantom
41463 \begin_layout Plain Layout
41473 \begin_layout Plain Layout
41485 <cell alignment="center" valignment="top" usebox="none">
41488 \begin_layout Plain Layout
41492 \begin_layout Plain Layout
41505 \begin_layout Plain Layout
41513 \begin_inset Phantom Phantom
41516 \begin_layout Plain Layout
41526 \begin_layout Plain Layout
41538 <cell alignment="center" valignment="top" usebox="none">
41541 \begin_layout Plain Layout
41545 \begin_layout Plain Layout
41558 \begin_layout Plain Layout
41566 \begin_inset Phantom Phantom
41569 \begin_layout Plain Layout
41579 \begin_layout Plain Layout
41591 <cell alignment="center" valignment="top" usebox="none">
41594 \begin_layout Plain Layout
41598 \begin_layout Plain Layout
41611 \begin_layout Plain Layout
41619 \begin_inset Phantom Phantom
41622 \begin_layout Plain Layout
41632 \begin_layout Plain Layout
41646 <cell alignment="left" valignment="top" usebox="none">
41649 \begin_layout Plain Layout
41653 \begin_layout Plain Layout
41666 \begin_layout Plain Layout
41674 \begin_inset Phantom Phantom
41677 \begin_layout Plain Layout
41687 \begin_layout Plain Layout
41699 <cell alignment="left" valignment="top" usebox="none">
41702 \begin_layout Plain Layout
41706 \begin_layout Plain Layout
41719 \begin_layout Plain Layout
41727 \begin_inset Phantom Phantom
41730 \begin_layout Plain Layout
41740 \begin_layout Plain Layout
41752 <cell alignment="left" valignment="top" usebox="none">
41755 \begin_layout Plain Layout
41759 \begin_layout Plain Layout
41772 \begin_layout Plain Layout
41780 \begin_inset Phantom Phantom
41783 \begin_layout Plain Layout
41793 \begin_layout Plain Layout
41805 <cell alignment="left" valignment="top" usebox="none">
41808 \begin_layout Plain Layout
41812 \begin_layout Plain Layout
41825 \begin_layout Plain Layout
41833 \begin_inset Phantom Phantom
41836 \begin_layout Plain Layout
41846 \begin_layout Plain Layout
41860 <cell alignment="left" valignment="top" usebox="none">
41863 \begin_layout Plain Layout
41867 \begin_layout Plain Layout
41880 \begin_layout Plain Layout
41888 \begin_inset Phantom Phantom
41891 \begin_layout Plain Layout
41901 \begin_layout Plain Layout
41913 <cell alignment="left" valignment="top" usebox="none">
41916 \begin_layout Plain Layout
41920 \begin_layout Plain Layout
41933 \begin_layout Plain Layout
41941 \begin_inset Phantom Phantom
41944 \begin_layout Plain Layout
41954 \begin_layout Plain Layout
41966 <cell alignment="left" valignment="top" usebox="none">
41969 \begin_layout Plain Layout
41973 \begin_layout Plain Layout
41986 \begin_layout Plain Layout
41994 \begin_inset Phantom Phantom
41997 \begin_layout Plain Layout
42007 \begin_layout Plain Layout
42019 <cell alignment="left" valignment="top" usebox="none">
42022 \begin_layout Plain Layout
42026 \begin_layout Plain Layout
42039 \begin_layout Plain Layout
42047 \begin_inset Phantom Phantom
42050 \begin_layout Plain Layout
42060 \begin_layout Plain Layout
42074 <cell alignment="left" valignment="top" usebox="none">
42077 \begin_layout Plain Layout
42081 \begin_layout Plain Layout
42094 \begin_layout Plain Layout
42102 \begin_inset Phantom Phantom
42105 \begin_layout Plain Layout
42115 \begin_layout Plain Layout
42127 <cell alignment="left" valignment="top" usebox="none">
42130 \begin_layout Plain Layout
42134 \begin_layout Plain Layout
42147 \begin_layout Plain Layout
42155 \begin_inset Phantom Phantom
42158 \begin_layout Plain Layout
42168 \begin_layout Plain Layout
42180 <cell alignment="left" valignment="top" usebox="none">
42183 \begin_layout Plain Layout
42187 \begin_layout Plain Layout
42200 \begin_layout Plain Layout
42208 \begin_inset Phantom Phantom
42211 \begin_layout Plain Layout
42221 \begin_layout Plain Layout
42233 <cell alignment="left" valignment="top" usebox="none">
42236 \begin_layout Plain Layout
42240 \begin_layout Plain Layout
42253 \begin_layout Plain Layout
42261 \begin_inset Phantom Phantom
42264 \begin_layout Plain Layout
42274 \begin_layout Plain Layout
42288 <cell alignment="left" valignment="top" usebox="none">
42291 \begin_layout Plain Layout
42295 \begin_layout Plain Layout
42308 \begin_layout Plain Layout
42316 \begin_inset Phantom Phantom
42319 \begin_layout Plain Layout
42329 \begin_layout Plain Layout
42341 <cell alignment="left" valignment="top" usebox="none">
42344 \begin_layout Plain Layout
42348 \begin_layout Plain Layout
42361 \begin_layout Plain Layout
42369 \begin_inset Phantom Phantom
42372 \begin_layout Plain Layout
42382 \begin_layout Plain Layout
42394 <cell alignment="left" valignment="top" usebox="none">
42397 \begin_layout Plain Layout
42401 \begin_layout Plain Layout
42414 \begin_layout Plain Layout
42422 \begin_inset Phantom Phantom
42425 \begin_layout Plain Layout
42435 \begin_layout Plain Layout
42447 <cell alignment="left" valignment="top" usebox="none">
42450 \begin_layout Plain Layout
42454 \begin_layout Plain Layout
42467 \begin_layout Plain Layout
42475 \begin_inset Phantom Phantom
42478 \begin_layout Plain Layout
42488 \begin_layout Plain Layout
42502 <cell alignment="center" valignment="top" usebox="none">
42505 \begin_layout Plain Layout
42509 \begin_layout Plain Layout
42522 \begin_layout Plain Layout
42530 \begin_inset Phantom Phantom
42533 \begin_layout Plain Layout
42543 \begin_layout Plain Layout
42555 <cell alignment="center" valignment="top" usebox="none">
42558 \begin_layout Plain Layout
42562 \begin_layout Plain Layout
42575 \begin_layout Plain Layout
42583 \begin_inset Phantom Phantom
42586 \begin_layout Plain Layout
42596 \begin_layout Plain Layout
42608 <cell alignment="center" valignment="top" usebox="none">
42611 \begin_layout Plain Layout
42615 \begin_layout Plain Layout
42628 \begin_layout Plain Layout
42636 \begin_inset Phantom Phantom
42639 \begin_layout Plain Layout
42649 \begin_layout Plain Layout
42661 <cell alignment="center" valignment="top" usebox="none">
42664 \begin_layout Plain Layout
42668 \begin_layout Plain Layout
42681 \begin_layout Plain Layout
42689 \begin_inset Phantom Phantom
42692 \begin_layout Plain Layout
42702 \begin_layout Plain Layout
42716 <cell alignment="left" valignment="top" usebox="none">
42719 \begin_layout Plain Layout
42723 \begin_layout Plain Layout
42736 \begin_layout Plain Layout
42744 \begin_inset Phantom Phantom
42747 \begin_layout Plain Layout
42757 \begin_layout Plain Layout
42769 <cell alignment="left" valignment="top" usebox="none">
42772 \begin_layout Plain Layout
42776 \begin_layout Plain Layout
42789 \begin_layout Plain Layout
42797 \begin_inset Phantom Phantom
42800 \begin_layout Plain Layout
42810 \begin_layout Plain Layout
42822 <cell alignment="left" valignment="top" usebox="none">
42825 \begin_layout Plain Layout
42829 \begin_layout Plain Layout
42842 \begin_layout Plain Layout
42850 \begin_inset Phantom Phantom
42853 \begin_layout Plain Layout
42863 \begin_layout Plain Layout
42875 <cell alignment="left" valignment="top" usebox="none">
42878 \begin_layout Plain Layout
42882 \begin_layout Plain Layout
42895 \begin_layout Plain Layout
42903 \begin_inset Phantom Phantom
42906 \begin_layout Plain Layout
42916 \begin_layout Plain Layout
42930 <cell alignment="left" valignment="top" usebox="none">
42933 \begin_layout Plain Layout
42937 \begin_layout Plain Layout
42950 \begin_layout Plain Layout
42958 \begin_inset Phantom Phantom
42961 \begin_layout Plain Layout
42971 \begin_layout Plain Layout
42983 <cell alignment="left" valignment="top" usebox="none">
42986 \begin_layout Plain Layout
42990 \begin_layout Plain Layout
43003 \begin_layout Plain Layout
43011 \begin_inset Phantom Phantom
43014 \begin_layout Plain Layout
43024 \begin_layout Plain Layout
43036 <cell alignment="left" valignment="top" usebox="none">
43039 \begin_layout Plain Layout
43043 \begin_layout Plain Layout
43056 \begin_layout Plain Layout
43064 \begin_inset Phantom Phantom
43067 \begin_layout Plain Layout
43077 \begin_layout Plain Layout
43089 <cell alignment="left" valignment="top" usebox="none">
43092 \begin_layout Plain Layout
43096 \begin_layout Plain Layout
43109 \begin_layout Plain Layout
43117 \begin_inset Phantom Phantom
43120 \begin_layout Plain Layout
43130 \begin_layout Plain Layout
43144 <cell alignment="left" valignment="top" usebox="none">
43147 \begin_layout Plain Layout
43151 \begin_layout Plain Layout
43164 \begin_layout Plain Layout
43172 \begin_inset Phantom Phantom
43175 \begin_layout Plain Layout
43185 \begin_layout Plain Layout
43197 <cell alignment="left" valignment="top" usebox="none">
43200 \begin_layout Plain Layout
43204 \begin_layout Plain Layout
43217 \begin_layout Plain Layout
43225 \begin_inset Phantom Phantom
43228 \begin_layout Plain Layout
43238 \begin_layout Plain Layout
43250 <cell alignment="left" valignment="top" usebox="none">
43253 \begin_layout Plain Layout
43257 \begin_layout Plain Layout
43270 \begin_layout Plain Layout
43278 \begin_inset Phantom Phantom
43281 \begin_layout Plain Layout
43291 \begin_layout Plain Layout
43303 <cell alignment="left" valignment="top" usebox="none">
43306 \begin_layout Plain Layout
43310 \begin_layout Plain Layout
43323 \begin_layout Plain Layout
43331 \begin_inset Phantom Phantom
43334 \begin_layout Plain Layout
43344 \begin_layout Plain Layout
43358 <cell alignment="left" valignment="top" usebox="none">
43361 \begin_layout Plain Layout
43365 \begin_layout Plain Layout
43378 \begin_layout Plain Layout
43386 \begin_inset Phantom Phantom
43389 \begin_layout Plain Layout
43399 \begin_layout Plain Layout
43411 <cell alignment="left" valignment="top" usebox="none">
43414 \begin_layout Plain Layout
43418 \begin_layout Plain Layout
43431 \begin_layout Plain Layout
43439 \begin_inset Phantom Phantom
43442 \begin_layout Plain Layout
43452 \begin_layout Plain Layout
43464 <cell alignment="left" valignment="top" usebox="none">
43467 \begin_layout Plain Layout
43471 \begin_layout Plain Layout
43484 \begin_layout Plain Layout
43492 \begin_inset Phantom Phantom
43495 \begin_layout Plain Layout
43505 \begin_layout Plain Layout
43517 <cell alignment="left" valignment="top" usebox="none">
43520 \begin_layout Plain Layout
43524 \begin_layout Plain Layout
43537 \begin_layout Plain Layout
43545 \begin_inset Phantom Phantom
43548 \begin_layout Plain Layout
43558 \begin_layout Plain Layout
43572 <cell alignment="left" valignment="top" usebox="none">
43575 \begin_layout Plain Layout
43579 \begin_layout Plain Layout
43592 \begin_layout Plain Layout
43600 \begin_inset Phantom Phantom
43603 \begin_layout Plain Layout
43613 \begin_layout Plain Layout
43625 <cell alignment="left" valignment="top" usebox="none">
43628 \begin_layout Plain Layout
43632 \begin_layout Plain Layout
43645 \begin_layout Plain Layout
43653 \begin_inset Phantom Phantom
43656 \begin_layout Plain Layout
43666 \begin_layout Plain Layout
43678 <cell alignment="left" valignment="top" usebox="none">
43681 \begin_layout Plain Layout
43685 \begin_layout Plain Layout
43698 \begin_layout Plain Layout
43706 \begin_inset Phantom Phantom
43709 \begin_layout Plain Layout
43719 \begin_layout Plain Layout
43731 <cell alignment="left" valignment="top" usebox="none">
43734 \begin_layout Plain Layout
43738 \begin_layout Plain Layout
43751 \begin_layout Plain Layout
43759 \begin_inset Phantom Phantom
43762 \begin_layout Plain Layout
43772 \begin_layout Plain Layout
43786 <cell alignment="left" valignment="top" usebox="none">
43789 \begin_layout Plain Layout
43793 \begin_layout Plain Layout
43806 \begin_layout Plain Layout
43814 \begin_inset Phantom Phantom
43817 \begin_layout Plain Layout
43827 \begin_layout Plain Layout
43839 <cell alignment="left" valignment="top" usebox="none">
43842 \begin_layout Plain Layout
43846 \begin_layout Plain Layout
43859 \begin_layout Plain Layout
43867 \begin_inset Phantom Phantom
43870 \begin_layout Plain Layout
43880 \begin_layout Plain Layout
43892 <cell alignment="left" valignment="top" usebox="none">
43895 \begin_layout Plain Layout
43899 \begin_layout Plain Layout
43912 \begin_layout Plain Layout
43920 \begin_inset Phantom Phantom
43923 \begin_layout Plain Layout
43933 \begin_layout Plain Layout
43945 <cell alignment="left" valignment="top" usebox="none">
43948 \begin_layout Plain Layout
43952 \begin_layout Plain Layout
43965 \begin_layout Plain Layout
43973 \begin_inset Phantom Phantom
43976 \begin_layout Plain Layout
43986 \begin_layout Plain Layout
44000 <cell alignment="left" valignment="top" usebox="none">
44003 \begin_layout Plain Layout
44007 \begin_layout Plain Layout
44020 \begin_layout Plain Layout
44028 \begin_inset Phantom Phantom
44031 \begin_layout Plain Layout
44041 \begin_layout Plain Layout
44053 <cell alignment="left" valignment="top" usebox="none">
44056 \begin_layout Plain Layout
44060 \begin_layout Plain Layout
44073 \begin_layout Plain Layout
44081 \begin_inset Phantom Phantom
44084 \begin_layout Plain Layout
44094 \begin_layout Plain Layout
44106 <cell alignment="left" valignment="top" usebox="none">
44109 \begin_layout Plain Layout
44113 \begin_layout Plain Layout
44126 \begin_layout Plain Layout
44134 \begin_inset Phantom Phantom
44137 \begin_layout Plain Layout
44147 \begin_layout Plain Layout
44159 <cell alignment="left" valignment="top" usebox="none">
44162 \begin_layout Plain Layout
44166 \begin_layout Plain Layout
44179 \begin_layout Plain Layout
44187 \begin_inset Phantom Phantom
44190 \begin_layout Plain Layout
44200 \begin_layout Plain Layout
44214 <cell alignment="left" valignment="top" usebox="none">
44217 \begin_layout Plain Layout
44221 \begin_layout Plain Layout
44234 \begin_layout Plain Layout
44242 \begin_inset Phantom Phantom
44245 \begin_layout Plain Layout
44255 \begin_layout Plain Layout
44267 <cell alignment="left" valignment="top" usebox="none">
44270 \begin_layout Plain Layout
44274 \begin_layout Plain Layout
44287 \begin_layout Plain Layout
44295 \begin_inset Phantom Phantom
44298 \begin_layout Plain Layout
44308 \begin_layout Plain Layout
44320 <cell alignment="left" valignment="top" usebox="none">
44323 \begin_layout Plain Layout
44327 \begin_layout Plain Layout
44340 \begin_layout Plain Layout
44348 \begin_inset Phantom Phantom
44351 \begin_layout Plain Layout
44361 \begin_layout Plain Layout
44373 <cell alignment="left" valignment="top" usebox="none">
44376 \begin_layout Plain Layout
44380 \begin_layout Plain Layout
44393 \begin_layout Plain Layout
44401 \begin_inset Phantom Phantom
44404 \begin_layout Plain Layout
44414 \begin_layout Plain Layout
44428 <cell alignment="left" valignment="top" usebox="none">
44431 \begin_layout Plain Layout
44435 \begin_layout Plain Layout
44448 \begin_layout Plain Layout
44456 \begin_inset Phantom Phantom
44459 \begin_layout Plain Layout
44469 \begin_layout Plain Layout
44481 <cell alignment="left" valignment="top" usebox="none">
44484 \begin_layout Plain Layout
44488 \begin_layout Plain Layout
44501 \begin_layout Plain Layout
44509 \begin_inset Phantom Phantom
44512 \begin_layout Plain Layout
44522 \begin_layout Plain Layout
44534 <cell alignment="left" valignment="top" usebox="none">
44537 \begin_layout Plain Layout
44541 \begin_layout Plain Layout
44554 \begin_layout Plain Layout
44562 \begin_inset Phantom Phantom
44565 \begin_layout Plain Layout
44575 \begin_layout Plain Layout
44587 <cell alignment="left" valignment="top" usebox="none">
44590 \begin_layout Plain Layout
44594 \begin_layout Plain Layout
44607 \begin_layout Plain Layout
44615 \begin_inset Phantom Phantom
44618 \begin_layout Plain Layout
44628 \begin_layout Plain Layout
44642 <cell alignment="left" valignment="top" usebox="none">
44645 \begin_layout Plain Layout
44649 \begin_layout Plain Layout
44662 \begin_layout Plain Layout
44670 \begin_inset Phantom Phantom
44673 \begin_layout Plain Layout
44683 \begin_layout Plain Layout
44695 <cell alignment="left" valignment="top" usebox="none">
44698 \begin_layout Plain Layout
44704 <cell alignment="left" valignment="top" usebox="none">
44707 \begin_layout Plain Layout
44713 <cell alignment="left" valignment="top" usebox="none">
44716 \begin_layout Plain Layout
44730 \begin_layout Chapter
44731 Explanation of Equation
44732 \begin_inset space ~
44736 \begin_inset CommandInset ref
44743 \begin_inset CommandInset label
44745 name "cha:Explanation-of-Equation"
44752 \begin_layout Standard
44753 We can calculate the total width of
44758 \begin_inset Formula $W_{\mathrm{tot\, n}}$
44762 \begin_inset Formula
44764 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44770 \begin_inset Formula $W_{g\, n}$
44773 is the given width of all cells,
44779 is the LaTeX-length between the cell text and the cell border (its default
44781 \begin_inset space \thinspace{}
44791 is the thickness of the cell border line, the default is 0.4
44792 \begin_inset space \thinspace{}
44798 \begin_layout Standard
44800 \begin_inset space ~
44804 \begin_inset CommandInset ref
44806 reference "eq:Wtot_n"
44810 , the total width of a multicolumn
44811 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
44815 \begin_inset Formula
44817 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44825 \begin_layout Standard
44826 By setting equation
44827 \begin_inset space ~
44831 \begin_inset CommandInset ref
44833 reference "eq:Wtot_n"
44838 \begin_inset CommandInset ref
44840 reference "eq:Wtot_mult"
44844 equal we can calculate the needed given width
44845 \begin_inset Formula $W_{g\, n}$
44852 columns are spanned, so that each column has a total width of
44853 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
44857 \begin_inset Formula
44859 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44867 \begin_layout Bibliography
44868 \begin_inset CommandInset bibitem
44869 LatexCommand bibitem
44870 key "latexcompanion"
44874 Frank Mittelbach and Michel Goossens:
44876 The LaTeX Companion Second Edition.
44879 Addison-Wesley, 2004
44882 \begin_layout Bibliography
44883 \begin_inset CommandInset bibitem
44884 LatexCommand bibitem
44889 Helmut Kopka and Patrick W.
44892 A Guide to LaTeX Fourth Edition.
44895 Addison-Wesley, 2003
44898 \begin_layout Bibliography
44899 \begin_inset CommandInset bibitem
44900 LatexCommand bibitem
44907 LaTeX: A Document Preparation System.
44910 Addison-Wesley, second edition, 1994
44913 \begin_layout Bibliography
44914 \begin_inset CommandInset bibitem
44915 LatexCommand bibitem
44920 Documentation of the LaTeX-package
44923 \begin_inset CommandInset href
44926 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44933 \begin_inset Index idx
44936 \begin_layout Plain Layout
44937 LaTeX-packages ! arydshln
44945 \begin_layout Bibliography
44946 \begin_inset CommandInset bibitem
44947 LatexCommand bibitem
44952 Documentation of the LaTeX-package
44955 \begin_inset CommandInset href
44958 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44965 \begin_inset Index idx
44968 \begin_layout Plain Layout
44969 LaTeX-packages ! booktabs
44977 \begin_layout Bibliography
44978 \begin_inset CommandInset bibitem
44979 LatexCommand bibitem
44984 Documentation of the LaTeX-package
44987 \begin_inset CommandInset href
44990 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
44997 \begin_inset Index idx
45000 \begin_layout Plain Layout
45001 LaTeX-packages ! caption
45009 \begin_layout Bibliography
45010 \begin_inset CommandInset bibitem
45011 LatexCommand bibitem
45016 Documentation of the LaTeX-package
45019 \begin_inset CommandInset href
45022 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45029 \begin_inset Index idx
45032 \begin_layout Plain Layout
45033 LaTeX-packages ! diagbox
45041 \begin_layout Bibliography
45042 \begin_inset CommandInset bibitem
45043 LatexCommand bibitem
45048 Documentation of the LaTeX-package
45051 \begin_inset CommandInset href
45054 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45061 \begin_inset Index idx
45064 \begin_layout Plain Layout
45065 LaTeX-packages ! endfloat
45073 \begin_layout Bibliography
45074 \begin_inset CommandInset bibitem
45075 LatexCommand bibitem
45080 Documentation of the LaTeX-package
45083 \begin_inset CommandInset href
45086 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45093 \begin_inset Index idx
45096 \begin_layout Plain Layout
45097 LaTeX-packages ! footmisc
45105 \begin_layout Bibliography
45106 \begin_inset CommandInset bibitem
45107 LatexCommand bibitem
45112 Documentation of the LaTeX-package
45115 \begin_inset CommandInset href
45118 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45125 \begin_inset Index idx
45128 \begin_layout Plain Layout
45129 LaTeX-packages ! hyperref
45137 \begin_layout Bibliography
45138 \begin_inset CommandInset bibitem
45139 LatexCommand bibitem
45144 Documentation of the LaTeX-package
45147 \begin_inset CommandInset href
45150 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45157 \begin_inset Index idx
45160 \begin_layout Plain Layout
45161 LaTeX-packages ! hyperref
45169 \begin_layout Bibliography
45170 \begin_inset CommandInset bibitem
45171 LatexCommand bibitem
45176 Documentation of the LaTeX-package
45179 \begin_inset CommandInset href
45182 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf"
45189 \begin_inset Index idx
45192 \begin_layout Plain Layout
45193 LaTeX-packages ! KOMA-Script
45201 \begin_layout Bibliography
45202 \begin_inset CommandInset bibitem
45203 LatexCommand bibitem
45208 Documentation of the LaTeX-package
45211 \begin_inset CommandInset href
45214 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45221 \begin_inset CommandInset href
45224 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45229 \begin_inset Index idx
45232 \begin_layout Plain Layout
45233 LaTeX-packages ! lettrine
45241 \begin_layout Bibliography
45242 \begin_inset CommandInset bibitem
45243 LatexCommand bibitem
45248 Documentation of the LaTeX-package
45251 \begin_inset CommandInset href
45254 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45261 \begin_inset Index idx
45264 \begin_layout Plain Layout
45265 LaTeX-packages ! listings
45273 \begin_layout Bibliography
45274 \begin_inset CommandInset bibitem
45275 LatexCommand bibitem
45280 Documentation of the LaTeX-package
45283 \begin_inset CommandInset href
45286 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45293 \begin_inset Index idx
45296 \begin_layout Plain Layout
45297 LaTeX-packages ! marginnote
45305 \begin_layout Bibliography
45306 \begin_inset CommandInset bibitem
45307 LatexCommand bibitem
45312 Documentation of the LaTeX-package
45315 \begin_inset CommandInset href
45318 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45325 \begin_inset Index idx
45328 \begin_layout Plain Layout
45329 LaTeX-packages ! pdfpages
45337 \begin_layout Bibliography
45338 \begin_inset CommandInset bibitem
45339 LatexCommand bibitem
45344 Documentation of the LaTeX-package
45347 \begin_inset CommandInset href
45350 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45357 \begin_inset Index idx
45360 \begin_layout Plain Layout
45361 LaTeX-packages ! prettyref
45369 \begin_layout Bibliography
45370 \begin_inset CommandInset bibitem
45371 LatexCommand bibitem
45376 Web page of the LaTeX-package
45379 \begin_inset CommandInset href
45382 target "http://tug.org/PSTricks/"
45389 \begin_inset Index idx
45392 \begin_layout Plain Layout
45393 LaTeX-packages ! PSTricks
45401 \begin_layout Bibliography
45402 \begin_inset CommandInset bibitem
45403 LatexCommand bibitem
45408 Documentation of the LaTeX-package
45411 \begin_inset CommandInset href
45414 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45421 \begin_inset Index idx
45424 \begin_layout Plain Layout
45425 LaTeX-packages ! refstyle
45433 \begin_layout Bibliography
45434 \begin_inset CommandInset bibitem
45435 LatexCommand bibitem
45440 Documentation of the LaTeX-package
45443 \begin_inset CommandInset href
45446 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45453 \begin_inset Index idx
45456 \begin_layout Plain Layout
45457 LaTeX-packages ! sidecap
45465 \begin_layout Bibliography
45466 \begin_inset CommandInset bibitem
45467 LatexCommand bibitem
45473 \begin_inset CommandInset href
45476 target "http://wiki.lyx.org/LyX/NewInLyX20"
45480 about new features in
45487 \begin_layout Standard
45488 \begin_inset CommandInset index_print
45489 LatexCommand printindex