1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for colored table rows
85 \usepackage[table]{xcolor}
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
154 \newboolean{lettrine}
155 \IfFileExists{lettrine.sty}
156 {\usepackage{lettrine}
157 \setboolean{lettrine}{true}}
158 {\setboolean{lettrine}{false}}
162 \IfFileExists{diagbox.sty}
163 {\usepackage{diagbox}
164 \setboolean{diagbox}{true}}
165 {\setboolean{diagbox}{false}}
167 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
168 \use_default_options false
172 \maintain_unincluded_children false
174 \language_package default
179 \font_typewriter default
181 \font_default_family default
182 \use_non_tex_fonts false
188 \default_output_format default
190 \bibtex_command default
191 \index_command default
195 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
196 \pdf_author "LyX Team, Uwe Stöhr"
197 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
198 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
200 \pdf_bookmarksnumbered true
201 \pdf_bookmarksopen true
202 \pdf_bookmarksopenlevel 1
203 \pdf_breaklinks false
207 \pdf_pdfusetitle false
208 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
211 \use_package amsmath 2
212 \use_package amssymb 2
213 \use_package cancel 0
215 \use_package mathdots 1
216 \use_package mathtools 0
217 \use_package mhchem 1
218 \use_package stackrel 0
219 \use_package stmaryrd 0
220 \use_package undertilde 0
222 \cite_engine_type default
226 \paperorientation portrait
230 \notefontcolor #0000ff
237 \paragraph_separation skip
239 \quotes_language english
242 \paperpagestyle default
243 \tracking_changes false
244 \output_changes false
247 \html_be_strict false
253 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
262 \begin_layout Plain Layout
264 If you have comments or error corrections, please send them to the LyX Documenta
266 \begin_inset CommandInset href
268 name "lyx-docs@lists.lyx.org"
269 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
280 \begin_inset Note Note
283 \begin_layout Plain Layout
290 \begin_inset Newline newline
294 \begin_inset Newline newline
302 \begin_layout Standard
303 \begin_inset CommandInset toc
304 LatexCommand tableofcontents
311 \begin_layout Standard
312 \begin_inset Note Note
315 \begin_layout Plain Layout
316 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
327 diagbox, lettrine, marginnote, picinpar
334 If they are not installed you can export the document anyway but the sections
335 where the packages are required won't appear in the output.
338 \begin_layout Plain Layout
339 The latest PDF-version of this document can be found here:
340 \begin_inset Newline newline
345 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
353 \begin_layout Chapter
355 \begin_inset Index idx
358 \begin_layout Plain Layout
365 \begin_inset Index idx
368 \begin_layout Plain Layout
373 \begin_layout Plain Layout
384 \begin_layout Plain Layout
399 \begin_layout Section
401 \begin_inset Index idx
404 \begin_layout Plain Layout
405 Figures ! Graphics Dialog
411 \begin_inset CommandInset label
413 name "sec:Graphics-Dialog"
420 \begin_layout Standard
421 To insert an image into your document, place the cursor at the text position
422 you want and click on the toolbar icon
425 arg "dialog-show-new-inset graphics"
430 Insert\SpecialChar \menuseparator
434 Then a dialog will appear to choose the file to load.
435 The image will appear in the output exactly at the position where it is
439 \begin_layout Standard
440 The graphics dialog can be called at any time by clicking on an image.
441 This dialog has three tabs:
444 \begin_layout Description
449 Here you can choose an image file and adjust its appearance in the output.
450 The available units for the image size are explained in appendix
455 \begin_inset CommandInset ref
457 reference "cha:Units-available-in"
462 \begin_inset Newline newline
466 \begin_inset Index idx
469 \begin_layout Plain Layout
475 You can rotate images counter-clockwise by setting a rotation angle and
477 The image will also be rotated inside LyX.
478 \begin_inset Newline newline
482 \begin_inset Index idx
485 \begin_layout Plain Layout
491 Images can be scaled by using a percentage value or by setting the width
492 and height explicitly.
493 If you set only the width or only the height, the other size will be determined
495 If you set both, then the image will be transformed to the given size,
496 possibly distorting it.
497 To prevent the image from distortion, use the option
499 Maintain aspect ratio
502 The image will then be scaled so that its width and height don't exceed
503 the specified dimensions.
504 \begin_inset Newline newline
507 Images can be opened in a program of your choice by right-clicking on it
508 and choosing the entry
517 The program can be set for every image format in the file format settings
518 in LyX's preferences.
521 \begin_layout Description
526 Alternatively to the usage of scaling units it is possible to set image
527 coordinates to adjust the height and width of the image in the output.
528 The coordinates can also be calculated automatically by pressing the button
558 will only print the image region within the given coordinates.
559 Normally you don't need to worry about image coordinates and can ignore
563 \begin_layout Description
580 In this tab you can modify the appearance of the image within LyX and LaTeX
581 experts can specify additional LaTeX options.
582 \begin_inset Newline newline
593 makes the image appear in the output only as a frame with the size of the
595 \begin_inset Newline newline
614 option only affects zipped EPS-graphics, e.
615 \begin_inset space \thinspace{}
619 \begin_inset space \space{}
627 When the option is used the images will not be unzipped on export, since
628 LaTeX can handle them as they are.
629 \begin_inset Newline newline
632 Zipped EPS-graphics are useful to save disk space when you choose PostScript
633 as output format, see appendix
638 \begin_inset CommandInset ref
640 reference "sec:PostScript"
645 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
647 \begin_inset Newline newline
655 \begin_inset Newline newline
660 zgrep %%Bounding x.eps.gz > x.eps.bb
663 \begin_inset Newline newline
666 The second command creates the bounding box file
667 \begin_inset Quotes eld
671 \begin_inset Quotes erd
674 that is needed by LaTeX for zipped graphics.
675 \begin_inset Newline newline
686 you can define or join an image settings group.
687 \begin_inset Index idx
690 \begin_layout Plain Layout
691 Figures ! Settings grouping
696 Images within such a group share their settings, so adjusting one image
697 of the group automatically also adjusts all other images of the group in
699 So you can for example change the size for a bunch of images without the
700 need to manually change each of them.
701 Joining an existing group can also be done using the context menu of the
702 image by checking the name of the desired group.
705 \begin_layout Standard
706 \begin_inset VSpace bigskip
712 \begin_layout Standard
713 This is an example image in EPS format
717 \begin_layout Plain Layout
718 Image formats are explained in section
723 \begin_inset CommandInset ref
725 reference "sec:Image-Formats"
734 within a separate, horizontally centered paragraph:
737 \begin_layout Standard
739 \begin_inset Graphics
740 filename clipart/mobius.eps
750 \begin_layout Standard
751 This is the same image like the one above but in draft mode:
754 \begin_layout Standard
756 \begin_inset Graphics
757 filename clipart/mobius.eps
768 \begin_layout Standard
769 \begin_inset Newpage newpage
775 \begin_layout Section
777 \begin_inset CommandInset label
779 name "sec:Figure-Floats"
784 \begin_inset Index idx
787 \begin_layout Plain Layout
794 \begin_inset Index idx
797 \begin_layout Plain Layout
806 \begin_layout Standard
807 For general explanations about floats, have a look at section
812 \begin_inset CommandInset ref
814 reference "sec:FloatIntroduction"
821 \begin_layout Standard
825 arg "float-insert figure"
830 Insert\SpecialChar \menuseparator
831 Float\SpecialChar \menuseparator
834 inserts a float with a caption that has the label
835 \begin_inset Quotes eld
843 \begin_inset Quotes erd
846 (# is the actual number).
847 You can insert the image above the caption, like in Figure
852 \begin_inset CommandInset ref
854 reference "fig:kill-plat"
858 or below the caption, like in Figure
863 \begin_inset CommandInset ref
865 reference "fig:escher"
870 More about caption placement is described in section
875 \begin_inset CommandInset ref
877 reference "sec:Caption-Placement"
884 \begin_layout Standard
885 \begin_inset Float figure
890 \begin_layout Plain Layout
892 \begin_inset Graphics
893 filename clipart/platypus.eps
903 \begin_layout Plain Layout
904 \begin_inset Caption Standard
906 \begin_layout Plain Layout
907 \begin_inset CommandInset label
913 A severely distorted platypus in a float.
926 \begin_layout Standard
927 \begin_inset Float figure
932 \begin_layout Plain Layout
933 \begin_inset Caption Standard
935 \begin_layout Plain Layout
936 \begin_inset CommandInset label
951 \begin_layout Plain Layout
953 \begin_inset Graphics
954 filename clipart/escher-lsd.eps
969 \begin_layout Standard
970 \begin_inset Index idx
973 \begin_layout Plain Layout
974 References ! to Figures
984 \begin_inset CommandInset ref
986 reference "fig:kill-plat"
991 \begin_inset CommandInset ref
993 reference "fig:escher"
997 are examples of referenced figures.
998 Figures can be referenced in the text by referencing their label.
999 To do this insert a label in the caption using the menu
1001 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1011 You can now refer to the label using the menu
1013 Insert\SpecialChar \menuseparator
1015 \begin_inset space ~
1020 or the toolbar button
1023 arg "dialog-show-new-inset ref"
1027 It is important to use references to floats, rather than using vague references
1029 \begin_inset Quotes eld
1033 \begin_inset Quotes erd
1036 , because LaTeX will reposition the floats in the final document and it
1038 \begin_inset Quotes eld
1042 \begin_inset Quotes erd
1046 \begin_inset Newline newline
1049 Referencing is explained in detail in section
1050 \begin_inset space ~
1054 \begin_inset CommandInset ref
1056 reference "sec:Referencing-Floats"
1063 \begin_layout Standard
1064 Normally only one image is inserted to a figure float, but sometimes you
1065 might want to use two images with separate subcaptions.
1066 This can be done by inserting image floats into existing image floats.
1067 Note that only the main caption of the float is added to the List of Figures.
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "fig:Two-distorted-images"
1079 is an example of a figure float with two images set side by side.
1080 You can also set the images one below the other.
1082 \begin_inset space ~
1086 \begin_inset CommandInset ref
1088 reference "fig:Undefinable-structure"
1093 \begin_inset CommandInset ref
1095 reference "fig:A-Platypus"
1102 \begin_layout Standard
1103 \begin_inset Float figure
1108 \begin_layout Plain Layout
1109 \begin_inset space \hfill{}
1113 \begin_inset Float figure
1118 \begin_layout Plain Layout
1119 \begin_inset Caption Standard
1121 \begin_layout Plain Layout
1122 \begin_inset CommandInset label
1124 name "fig:Undefinable-structure"
1128 Undefinable structure.
1136 \begin_layout Plain Layout
1137 \begin_inset Graphics
1138 filename clipart/escher-lsd.eps
1151 \begin_inset space \hfill{}
1155 \begin_inset Float figure
1160 \begin_layout Plain Layout
1161 \begin_inset Caption Standard
1163 \begin_layout Plain Layout
1164 \begin_inset CommandInset label
1166 name "fig:A-Platypus"
1178 \begin_layout Plain Layout
1179 \begin_inset Graphics
1180 filename clipart/platypus.eps
1193 \begin_inset space \hfill{}
1199 \begin_layout Plain Layout
1200 \begin_inset Caption Standard
1202 \begin_layout Plain Layout
1203 \begin_inset CommandInset label
1205 name "fig:Two-distorted-images"
1210 \begin_inset CommandInset label
1212 name "fig2:Two-distorted-images-2"
1216 Two distorted images.
1217 Both images are in the image settings group named
1218 \begin_inset Quotes eld
1222 \begin_inset Quotes erd
1238 \begin_layout Standard
1239 \begin_inset Newpage newpage
1245 \begin_layout Section
1247 \begin_inset CommandInset label
1249 name "sec:Image-Formats"
1254 \begin_inset Index idx
1257 \begin_layout Plain Layout
1264 \begin_inset Index idx
1267 \begin_layout Plain Layout
1268 Figures ! Image Formats
1276 \begin_layout Standard
1277 You can insert images in any known file format.
1278 But as explained in appendix
1279 \begin_inset space ~
1283 \begin_inset CommandInset ref
1285 reference "cha:Output-File-Formats"
1289 , each output document format allows only a few image formats.
1290 LyX uses therefore the program
1294 in the background to convert the images to the right format.
1295 To increase your work flow by avoiding these conversions in the background,
1296 you could choose to use only the image formats that can directly be embedded
1297 in the output file format.
1298 The output file formats are explained in appendix
1299 \begin_inset space ~
1303 \begin_inset CommandInset ref
1305 reference "cha:Output-File-Formats"
1312 \begin_layout Standard
1313 Similar to fonts there are two types of image formats:
1316 \begin_layout Description
1318 \begin_inset space ~
1321 images consist of pixel values, often in a compressed form.
1322 They are therefore not fully scalable and look pixelated in large zooms.
1323 Well-known bitmap image formats are
1324 \begin_inset Quotes eld
1327 Graphics Interchange Format
1328 \begin_inset Quotes erd
1331 (GIF, file extension
1332 \begin_inset Quotes eld
1340 \begin_inset Quotes erd
1344 \begin_inset Index idx
1347 \begin_layout Plain Layout
1352 \begin_layout Plain Layout
1363 \begin_layout Plain Layout
1376 \begin_inset Quotes eld
1379 Portable Network Graphics
1380 \begin_inset Quotes erd
1383 (PNG, file extension
1384 \begin_inset Quotes eld
1392 \begin_inset Quotes erd
1396 \begin_inset Index idx
1399 \begin_layout Plain Layout
1404 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1428 \begin_inset Quotes eld
1431 Joint Photographic Experts Group
1432 \begin_inset Quotes erd
1435 (JPG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Quotes eld
1456 \begin_inset Quotes erd
1460 \begin_inset Index idx
1463 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1494 \begin_layout Description
1496 \begin_inset space ~
1499 images consist of vectors and can therefore be scaled to any size without
1501 The scaling ability is necessary if you want to create presentations, because
1502 presentations are always scaled by the video projector.
1503 Scaling is also useful for online documents to let the user zoom into diagrams.
1504 \begin_inset Newline newline
1507 Well-known scalable image formats are
1508 \begin_inset Quotes eld
1511 Scalable Vector Graphics
1512 \begin_inset Quotes erd
1515 (SVG, file extension
1516 \begin_inset Quotes eld
1524 \begin_inset Quotes erd
1528 \begin_inset Index idx
1531 \begin_layout Plain Layout
1536 \begin_layout Plain Layout
1547 \begin_layout Plain Layout
1560 \begin_inset Quotes eld
1563 Encapsulated PostScript
1564 \begin_inset Quotes erd
1567 (EPS, file extension
1568 \begin_inset Quotes eld
1576 \begin_inset Quotes erd
1580 \begin_inset Index idx
1583 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1615 Portable Document Format
1616 \begin_inset Quotes erd
1619 (PDF, file extension
1620 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1632 \begin_inset Index idx
1635 \begin_layout Plain Layout
1642 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 (WMF, file extension
1650 \begin_inset Quotes eld
1658 \begin_inset Quotes erd
1662 \begin_inset Index idx
1665 \begin_layout Plain Layout
1670 \begin_layout Plain Layout
1681 \begin_layout Plain Layout
1695 \begin_inset Quotes eld
1699 \begin_inset Quotes erd
1702 , because you can convert any bitmap image to a PDF or EPS-image and the
1703 result will still be a bitmap image.
1704 In such cases only a header with the image properties is added to the original
1709 \begin_layout Plain Layout
1710 In the case of PDF, the original image is additionally compressed.
1716 The PDF-files generated by
1720 are for example bitmap images.
1723 \begin_layout Standard
1724 Normally it is not possible to convert a bitmap image into a scalable one,
1726 Only the image formats PDF and EPS can directly be embedded to PDF and
1727 PostScript output files, respectively.
1728 SVG and WMF-images are recalculated to bitmaps when the output file is
1729 generated because there is currently no adequate WMF/SVG
1730 \begin_inset Formula $\to$
1733 PDF/EPS converter available.
1736 \begin_layout Chapter
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1750 \begin_layout Section
1752 \begin_inset Index idx
1755 \begin_layout Plain Layout
1756 Table ! Introduction
1764 \begin_layout Standard
1765 You can insert a table using either the toolbar button
1768 arg "tabular-insert"
1773 Insert\SpecialChar \menuseparator
1777 The toolbar button offers you a graphical selection: move the mouse to
1778 set the column/row number of the table that should be created and then
1779 press a mouse button.
1780 When you use the menu to create a table, a dialog will appear, asking you
1781 for the number of rows and columns.
1782 \begin_inset Newline newline
1785 The default table has lines around any cell and the first row appears separated
1786 from the rest of the table.
1787 This separation occurs due to a double line: The cells of the first row
1788 have a line below them and the cells of the second row have a line above
1790 Here is an example table:
1793 \begin_layout Standard
1795 \begin_inset Tabular
1796 <lyxtabular version="3" rows="4" columns="4">
1797 <features rotate="0" tabularvalignment="middle">
1798 <column alignment="center" valignment="top">
1799 <column alignment="center" valignment="top">
1800 <column alignment="center" valignment="top">
1801 <column alignment="center" valignment="top">
1803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1833 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1842 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1853 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1880 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1889 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1900 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1927 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1936 \begin_layout Plain Layout
1944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1947 \begin_layout Plain Layout
1962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1965 \begin_layout Plain Layout
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1974 \begin_layout Plain Layout
1980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1983 \begin_layout Plain Layout
1997 \begin_layout Section
1999 \begin_inset Index idx
2002 \begin_layout Plain Layout
2011 \begin_layout Standard
2012 You can alter a table by clicking on it with the right mouse button, which
2013 brings up the table dialog.
2014 Here you can adjust the settings of that cell and row/column respectively
2015 where the cursor is currently placed.
2016 Most of the dialog options also work on selections.
2017 This means if you select more cells, columns or rows, the action is done
2018 for the whole selection.
2019 Note that there is a difference between selecting the
2023 of the cell, and the cell itself.
2024 \begin_inset Newline newline
2027 With the dialog option
2030 \begin_inset space ~
2035 every change you make in the dialog is directly applied.
2036 If you move the cursor to another table cell the dialog will then also
2037 be updated with the parameters of the new cell.
2038 If you change length values in the dialog you must press return to get
2040 \begin_inset Newline newline
2043 You can alter tables with the following tabs of the table dialog:
2046 \begin_layout Description
2050 \begin_inset space ~
2055 Here you can set the table width
2056 \begin_inset Index idx
2059 \begin_layout Plain Layout
2065 , and the horizontal alignment and the width of the current column.
2069 \begin_inset space ~
2073 \begin_inset space ~
2078 is described in section
2079 \begin_inset space ~
2083 \begin_inset CommandInset ref
2085 reference "sub:Special-Cell-Alignment"
2090 When you have set a width you can also adjust the vertical alignment of
2092 A given width will allow the cell to have line breaks and multiple paragraphs
2094 \begin_inset space \thinspace{}
2098 \begin_inset CommandInset ref
2100 reference "sub:Multiple-Lines-in"
2105 If you set no width, the column is as wide as the content of its widest
2107 \begin_inset Newline newline
2110 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2112 \begin_inset space \thinspace{}
2116 \begin_inset CommandInset ref
2118 reference "sub:Multicolumns"
2122 or the cells of one column as multirow cell, see sec.
2123 \begin_inset space \thinspace{}
2127 \begin_inset CommandInset ref
2129 reference "sub:Multirows"
2134 \begin_inset Newline newline
2137 The rotate check boxes rotate the current cell, a selection, or the whole
2138 table counter-clockwise by 90
2139 \begin_inset space \thinspace{}
2143 The rotation is not shown within LyX, only in the output.
2144 For more information see sec.
2145 \begin_inset space \thinspace{}
2149 \begin_inset CommandInset ref
2151 reference "sec:Rotated-Table-Cells"
2156 \begin_inset Newline newline
2160 \begin_inset Note Greyedout
2163 \begin_layout Plain Layout
2168 Not all DVI-viewers are able to display rotations.
2174 \begin_inset Newline newline
2177 The table-wide vertical alignment is used for tables within text lines:
2178 \begin_inset Newline newline
2181 A line with tables with different alignments:
2182 \begin_inset Tabular
2183 <lyxtabular version="3" rows="2" columns="2">
2184 <features rotate="0" tabularvalignment="top">
2185 <column alignment="center" valignment="top" width="0pt">
2186 <column alignment="center" valignment="top">
2188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2191 \begin_layout Plain Layout
2197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2200 \begin_layout Plain Layout
2217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2220 \begin_layout Plain Layout
2235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2238 \begin_layout Plain Layout
2250 \begin_inset Tabular
2251 <lyxtabular version="3" rows="2" columns="2">
2252 <features rotate="0" tabularvalignment="middle">
2253 <column alignment="center" valignment="top">
2254 <column alignment="center" valignment="top">
2256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2259 \begin_layout Plain Layout
2265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2268 \begin_layout Plain Layout
2285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2288 \begin_layout Plain Layout
2303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2306 \begin_layout Plain Layout
2318 \begin_inset Tabular
2319 <lyxtabular version="3" rows="2" columns="2">
2320 <features rotate="0" tabularvalignment="bottom">
2321 <column alignment="center" valignment="top" width="0pt">
2322 <column alignment="center" valignment="top">
2324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2327 \begin_layout Plain Layout
2333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2336 \begin_layout Plain Layout
2353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2356 \begin_layout Plain Layout
2371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2374 \begin_layout Plain Layout
2386 \begin_inset Newline newline
2389 It is also possible to enter a LaTeX-argument which is needed for special
2390 table formattings, see sec.
2391 \begin_inset space \thinspace{}
2395 \begin_inset CommandInset ref
2397 reference "sub:Multicolumn-Calculations"
2402 \begin_inset CommandInset ref
2404 reference "sec:Colored-Tables"
2411 \begin_layout Description
2416 In this tab you can add and delete border lines for the current row/column.
2417 \begin_inset Newline newline
2420 Using the style option
2424 will convert the table to a formal table as described in sec.
2425 \begin_inset space \thinspace{}
2429 \begin_inset CommandInset ref
2431 reference "sec:Formal-Tables"
2436 \begin_inset Newline newline
2439 You can also add space here to table rows as described in sec.
2440 \begin_inset space \thinspace{}
2444 \begin_inset CommandInset ref
2446 reference "sub:Row-Spacing"
2453 \begin_layout Description
2458 This tab is to make a table a so called
2459 \begin_inset Quotes eld
2467 \begin_inset Quotes erd
2470 that can run over several pages.
2472 \begin_inset space ~
2476 \begin_inset CommandInset ref
2478 reference "sec:Longtables"
2483 \begin_inset CommandInset ref
2485 reference "sec:Special-Longtable-Issues"
2489 describe the longtable features in detail.
2492 \begin_layout Section
2494 \begin_inset Index idx
2497 \begin_layout Plain Layout
2506 \begin_layout Standard
2507 The table toolbar is an alternative to the table dialog to be able to alter
2509 It should normally appear at the bottom of LyX's main window when the cursor
2511 You can alternatively switch it on to appear always, by right-clicking
2512 in LyX's main menu bar.
2515 \begin_layout Standard
2516 The toolbar has the following icons:
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2523 arg "inset-modify tabular append-row"
2526 adds a row below the current cell or selection
2529 \begin_layout Labeling
2530 \labelwidthstring 00.00.0000
2533 arg "inset-modify tabular append-column"
2536 adds a column right beside the current cell or selection
2539 \begin_layout Labeling
2540 \labelwidthstring 00.00.0000
2543 arg "inset-modify tabular delete-row"
2546 deletes the current row or selection
2549 \begin_layout Labeling
2550 \labelwidthstring 00.00.0000
2553 arg "inset-modify tabular delete-column"
2556 deletes the current column or selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2563 arg "inset-modify tabular toggle-line-top"
2566 adds a line at the top of the current cell / row or of a selection
2569 \begin_layout Labeling
2570 \labelwidthstring 00.00.0000
2573 arg "inset-modify tabular toggle-line-bottom"
2576 adds a line at the bottom of the current cell / row or of a selection
2579 \begin_layout Labeling
2580 \labelwidthstring 00.00.0000
2583 arg "inset-modify tabular toggle-line-left"
2586 adds a line at the left side of the current cell / row or of a selection
2589 \begin_layout Labeling
2590 \labelwidthstring 00.00.0000
2593 arg "inset-modify tabular toggle-line-right"
2596 adds a line at the right side of the current cell / row or of a selection
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "inset-modify tabular set-all-lines"
2606 adds lines around the current or selected cells - if the current cell no
2607 multicolumn cell this also affects the current row and column
2610 \begin_layout Labeling
2611 \labelwidthstring 00.00.0000
2614 arg "inset-modify tabular unset-all-lines"
2617 deletes all lines of the current or selected cells - if the current cell
2618 no multicolumn cell this also affects the current row and column
2621 \begin_layout Labeling
2622 \labelwidthstring 00.00.0000
2625 arg "inset-modify tabular m-align-left"
2628 left-aligns the content of the current cell / column
2631 \begin_layout Labeling
2632 \labelwidthstring 00.00.0000
2635 arg "inset-modify tabular m-align-center"
2638 centers the content of the current cell / column horizontally
2641 \begin_layout Labeling
2642 \labelwidthstring 00.00.0000
2645 arg "inset-modify tabular m-align-right"
2648 right-aligns the content of the current cell / column
2651 \begin_layout Labeling
2652 \labelwidthstring 00.00.0000
2655 arg "inset-modify tabular align-decimal"
2658 aligns the content of the current column at a character
2661 \begin_layout Labeling
2662 \labelwidthstring 00.00.0000
2665 arg "inset-modify tabular m-valign-top"
2668 aligns the content of the current cell vertically to the top
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2675 arg "inset-modify tabular m-valign-middle"
2678 centers the content of the current cell vertically
2681 \begin_layout Labeling
2682 \labelwidthstring 00.00.0000
2685 arg "inset-modify tabular m-valign-bottom"
2688 aligns the content of the current cell vertically to the bottom
2691 \begin_layout Labeling
2692 \labelwidthstring 00.00.0000
2695 arg "inset-modify tabular set-rotate-cell"
2698 rotates the current cell or selection counter-clockwise by 90°
2701 \begin_layout Labeling
2702 \labelwidthstring 00.00.0000
2705 arg "inset-modify tabular set-rotate-tabular"
2708 rotates the whole table counter-clockwise by 90°
2711 \begin_layout Labeling
2712 \labelwidthstring 00.00.0000
2715 arg "inset-modify tabular multicolumn"
2718 sets the current cell or selection as a multicolumn
2721 \begin_layout Labeling
2722 \labelwidthstring 00.00.0000
2725 arg "inset-modify tabular multirow"
2728 sets the current cell or selection as a multirow
2731 \begin_layout Standard
2732 \begin_inset Note Greyedout
2735 \begin_layout Plain Layout
2740 For the output the vertical alignment of the first cell in a row is used
2741 for all following cells in the row.
2749 \begin_layout Section
2751 \begin_inset Index idx
2754 \begin_layout Plain Layout
2763 \begin_layout Standard
2764 In addition to the table dialog and toolbar, the menu
2766 Edit\SpecialChar \menuseparator
2769 allows you to add and delete border lines for the current row/column and
2770 to set the current selection as multicolumn.
2771 The menu is only available when the cursor is inside a table.
2774 \begin_layout Section
2776 \begin_inset CommandInset label
2778 name "sec:Table-Floats"
2783 \begin_inset Index idx
2786 \begin_layout Plain Layout
2793 \begin_inset Index idx
2796 \begin_layout Plain Layout
2805 \begin_layout Standard
2806 For general explanations about floats, have a look at section
2807 \begin_inset space ~
2811 \begin_inset CommandInset ref
2813 reference "sec:FloatIntroduction"
2820 \begin_layout Standard
2821 \begin_inset Float table
2827 \begin_layout Plain Layout
2828 \begin_inset Caption Standard
2830 \begin_layout Plain Layout
2831 \begin_inset CommandInset label
2833 name "tab:a table float"
2845 \begin_layout Plain Layout
2847 \begin_inset Tabular
2848 <lyxtabular version="3" rows="3" columns="3">
2849 <features rotate="0" tabularvalignment="middle">
2850 <column alignment="center" valignment="top" width="0pt">
2851 <column alignment="center" valignment="top" width="0pt">
2852 <column alignment="center" valignment="top" width="0pt">
2854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2857 \begin_layout Plain Layout
2872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2875 \begin_layout Plain Layout
2890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2893 \begin_layout Plain Layout
2910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2913 \begin_layout Plain Layout
2928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2931 \begin_layout Plain Layout
2946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2949 \begin_layout Plain Layout
2966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2969 \begin_layout Plain Layout
2979 \begin_inset Formula $\int x^{2}dx$
2987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2990 \begin_layout Plain Layout
3000 \begin_inset Formula $\left[\begin{array}{cc}
3011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3014 \begin_layout Plain Layout
3024 \begin_inset Formula $1+1=2$
3045 \begin_layout Standard
3046 Table floats can be inserted using the menu
3048 Insert\SpecialChar \menuseparator
3049 Float\SpecialChar \menuseparator
3052 or the toolbar button
3055 arg "float-insert table"
3061 \begin_layout Standard
3062 The float appears as a collapsible box with a caption that has the label
3064 \begin_inset Quotes eld
3068 \begin_inset space ~
3072 \begin_inset Quotes erd
3075 (# is the actual table number).
3076 You can insert tables in the float above or below the caption.
3079 \begin_layout Standard
3081 \begin_inset space ~
3085 \begin_inset CommandInset ref
3087 reference "tab:a table float"
3091 is an example table within a table float.
3094 \begin_layout Standard
3095 Having the caption above the table is the common rule that is unfortunately
3096 not supported in LaTeX's standard classes.
3097 This means that, if you are using the document classes
3113 , there will be no space between the caption and the table.
3114 To insert the needed space, add the following option to the load command
3115 of the LaTeX-package
3120 \begin_inset Index idx
3123 \begin_layout Plain Layout
3124 LaTeX-packages ! caption
3129 in your document preamble
3133 \begin_layout Plain Layout
3134 For more information have a look at section
3135 \begin_inset space ~
3139 \begin_inset CommandInset ref
3141 reference "sec:Caption-Placement"
3153 \begin_layout Standard
3159 \begin_layout Standard
3164 , which is described in section
3165 \begin_inset space ~
3169 \begin_inset CommandInset ref
3171 reference "sec:Caption-Formatting"
3175 , is used to adjust the caption format.
3178 \begin_layout Standard
3179 \begin_inset Index idx
3182 \begin_layout Plain Layout
3183 References ! to Tables
3188 Tables can be cross-referenced in the text by referencing their label.
3189 To do this insert a label in the caption using the menu
3191 Insert\SpecialChar \menuseparator
3194 or the toolbar button
3201 You can now refer to the label using the menu
3203 Insert\SpecialChar \menuseparator
3205 \begin_inset space ~
3210 or the toolbar button
3213 arg "dialog-show-new-inset ref"
3217 \begin_inset Newline newline
3220 Referencing is explained in detail in section
3221 \begin_inset space ~
3225 \begin_inset CommandInset ref
3227 reference "sec:Referencing-Floats"
3234 \begin_layout Section
3236 \begin_inset CommandInset label
3238 name "sec:Longtables"
3243 \begin_inset Index idx
3246 \begin_layout Plain Layout
3253 \begin_inset Index idx
3256 \begin_layout Plain Layout
3265 \begin_layout Standard
3266 If the table is too long to fit on one page, you can use the option
3269 \begin_inset space ~
3273 \begin_inset space ~
3282 of the table dialog to split the table automatically over more pages.
3283 Doing this enables the following options:
3286 \begin_layout Description
3287 Header: The current row is defined to be a header row that appears on all
3288 pages of the longtable; except for the first page, if
3291 \begin_inset space ~
3297 This is therefore called the main header.
3300 \begin_layout Description
3302 \begin_inset space ~
3305 header: The current row is defined to be a header row that appears on the
3306 first page of the longtable.
3309 \begin_layout Description
3310 Footer: The current row is defined to be a footer row that appears on all
3311 pages of the longtable; except for the last page, if
3314 \begin_inset space ~
3322 \begin_layout Description
3324 \begin_inset space ~
3327 footer: The current row is defined to be a footer row that appears on the
3328 last page of the longtable.
3331 \begin_layout Description
3332 Caption: The current row contains the table caption.
3333 The row is reset as single column and a caption is inserted.
3334 More about longtable captions is explained in sec.
3335 \begin_inset space \thinspace{}
3339 \begin_inset CommandInset ref
3341 reference "sub:Longtable-Captions"
3348 \begin_layout Standard
3349 You can also specify a row where the table is split.
3350 See the following longtable to see how it works:
3353 \begin_layout Standard
3355 \begin_inset Tabular
3356 <lyxtabular version="3" rows="69" columns="3">
3357 <features rotate="0" islongtable="true" longtabularalignment="center">
3358 <column alignment="left" valignment="top" width="0cm">
3359 <column alignment="left" valignment="top" width="0pt">
3360 <column alignment="center" valignment="top" width="0pt">
3361 <row endfirsthead="true">
3362 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3365 \begin_layout Plain Layout
3368 Example Phone List (ignore the names)
3373 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3376 \begin_layout Plain Layout
3382 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3385 \begin_layout Plain Layout
3392 <row endfirsthead="true">
3393 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3396 \begin_layout Plain Layout
3404 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3407 \begin_layout Plain Layout
3413 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3416 \begin_layout Plain Layout
3425 <row endhead="true">
3426 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3429 \begin_layout Plain Layout
3437 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3440 \begin_layout Plain Layout
3446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3449 \begin_layout Plain Layout
3456 <row endhead="true">
3457 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3460 \begin_layout Plain Layout
3468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3471 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3480 \begin_layout Plain Layout
3489 <row endfoot="true">
3490 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3493 \begin_layout Plain Layout
3494 continued on next page
3499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3502 \begin_layout Plain Layout
3508 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3522 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" usebox="none">
3533 \begin_layout Plain Layout
3539 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3553 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" usebox="none">
3564 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3584 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" usebox="none">
3595 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3615 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" usebox="none">
3626 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3646 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" usebox="none">
3657 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3677 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" usebox="none">
3688 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3708 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" usebox="none">
3719 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3739 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" usebox="none">
3750 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" usebox="none">
3781 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3801 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" usebox="none">
3812 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3832 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" usebox="none">
3843 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3863 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" usebox="none">
3874 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3925 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" usebox="none">
3967 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3987 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" usebox="none">
3998 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" usebox="none">
4060 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4080 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" usebox="none">
4091 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4111 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" usebox="none">
4122 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4142 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" usebox="none">
4153 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4173 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" usebox="none">
4184 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4204 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" usebox="none">
4215 \begin_layout Plain Layout
4221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4235 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" usebox="none">
4246 \begin_layout Plain Layout
4252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4266 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" usebox="none">
4277 \begin_layout Plain Layout
4283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" usebox="none">
4308 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4328 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" usebox="none">
4339 \begin_layout Plain Layout
4345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4359 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" usebox="none">
4370 \begin_layout Plain Layout
4376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4390 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" usebox="none">
4401 \begin_layout Plain Layout
4407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4421 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" usebox="none">
4432 \begin_layout Plain Layout
4438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4441 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4452 \begin_layout Plain Layout
4460 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4463 \begin_layout Plain Layout
4469 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4483 \begin_layout Plain Layout
4489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4492 \begin_layout Plain Layout
4498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4512 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" usebox="none">
4523 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4543 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" usebox="none">
4554 \begin_layout Plain Layout
4560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4574 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" usebox="none">
4585 \begin_layout Plain Layout
4591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4605 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" usebox="none">
4616 \begin_layout Plain Layout
4622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4636 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" usebox="none">
4647 \begin_layout Plain Layout
4653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" usebox="none">
4678 \begin_layout Plain Layout
4684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4698 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" usebox="none">
4709 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4729 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" usebox="none">
4740 \begin_layout Plain Layout
4746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4760 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" usebox="none">
4771 \begin_layout Plain Layout
4777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4791 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" usebox="none">
4802 \begin_layout Plain Layout
4808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4822 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" usebox="none">
4833 \begin_layout Plain Layout
4839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4853 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" usebox="none">
4864 \begin_layout Plain Layout
4870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4884 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" usebox="none">
4895 \begin_layout Plain Layout
4901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4915 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" usebox="none">
4926 \begin_layout Plain Layout
4932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4946 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" usebox="none">
4957 \begin_layout Plain Layout
4963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4977 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" usebox="none">
4988 \begin_layout Plain Layout
4994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5008 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" usebox="none">
5019 \begin_layout Plain Layout
5025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5039 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" usebox="none">
5050 \begin_layout Plain Layout
5056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5070 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" usebox="none">
5081 \begin_layout Plain Layout
5087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" usebox="none">
5112 \begin_layout Plain Layout
5118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5132 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" usebox="none">
5143 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5163 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" usebox="none">
5174 \begin_layout Plain Layout
5180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5194 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" usebox="none">
5205 \begin_layout Plain Layout
5211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5214 \begin_layout Plain Layout
5222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5225 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" usebox="none">
5236 \begin_layout Plain Layout
5242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5245 \begin_layout Plain Layout
5253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5256 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" usebox="none">
5267 \begin_layout Plain Layout
5273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5276 \begin_layout Plain Layout
5284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5287 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" usebox="none">
5298 \begin_layout Plain Layout
5304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Plain Layout
5315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5318 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" usebox="none">
5329 \begin_layout Plain Layout
5335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Plain Layout
5346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5349 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" usebox="none">
5360 \begin_layout Plain Layout
5366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5369 \begin_layout Plain Layout
5377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5380 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" usebox="none">
5391 \begin_layout Plain Layout
5397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5400 \begin_layout Plain Layout
5408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5411 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" usebox="none">
5422 \begin_layout Plain Layout
5428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5431 \begin_layout Plain Layout
5439 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5442 \begin_layout Plain Layout
5450 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5453 \begin_layout Plain Layout
5459 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5462 \begin_layout Plain Layout
5469 <row endlastfoot="true">
5470 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5473 \begin_layout Plain Layout
5479 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5482 \begin_layout Plain Layout
5488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5491 \begin_layout Plain Layout
5506 \begin_layout Plain Layout
5510 addtocounter{table}{-1}
5516 \begin_inset Note Note
5519 \begin_layout Plain Layout
5520 See the first greyed-out note in section
5521 \begin_inset space ~
5525 \begin_inset CommandInset ref
5527 reference "sub:Longtable-Captions"
5531 for an explanation of this command.
5539 \begin_layout Subsection
5540 Footnotes in Longtables
5541 \begin_inset CommandInset label
5543 name "sub:Footnotes-in-Longtables"
5548 \begin_inset Index idx
5551 \begin_layout Plain Layout
5552 Longtables ! Footnotes
5560 \begin_layout Standard
5561 Footnotes can be inserted to every longtable cell.
5562 They appear at the bottom of the page where the table cell with the footnote
5565 \begin_inset space ~
5569 \begin_inset CommandInset ref
5571 reference "tab:DiffCaptions"
5575 has for example a footnote.
5578 \begin_layout Subsection
5580 \begin_inset Index idx
5583 \begin_layout Plain Layout
5584 Longtables ! Alignment
5592 \begin_layout Standard
5593 The horizontal alignment of longtables can be set in the table settings
5595 For left- and right-alignment the table will be directly at the page border.
5596 To add space between the table and the border one has to set the alignment
5597 to center and change the value of the LaTeX-lengths
5609 by inserting this line as TeX-Code before the longtable:
5612 \begin_layout Standard
5622 \begin_layout Standard
5623 The value can have any of the units listed in Table
5624 \begin_inset space ~
5628 \begin_inset CommandInset ref
5630 reference "tab:Units"
5641 controls the horizontal distance from the left page border to the longtable,
5648 the distance from the right side.
5649 The default value for both lengths is
5655 , which is in this case the same as an horizontal fill in LyX.
5658 \begin_layout Standard
5659 The following longtable was centered and
5675 \begin_layout Plain Layout
5691 \begin_layout Standard
5692 \begin_inset Tabular
5693 <lyxtabular version="3" rows="5" columns="5">
5694 <features rotate="0" islongtable="true" longtabularalignment="center">
5695 <column alignment="center" valignment="top">
5696 <column alignment="center" valignment="top" width="0pt">
5697 <column alignment="center" valignment="top">
5698 <column alignment="center" valignment="top">
5699 <column alignment="center" valignment="top">
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Plain Layout
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Plain Layout
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Plain Layout
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Plain Layout
5737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5740 \begin_layout Plain Layout
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Plain Layout
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Plain Layout
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Plain Layout
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5787 \begin_layout Plain Layout
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Plain Layout
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5834 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Plain Layout
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5881 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5892 \begin_layout Plain Layout
5898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5901 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5928 \begin_layout Plain Layout
5943 \begin_layout Plain Layout
5960 \begin_layout Plain Layout
5964 addtocounter{table}{-1}
5970 \begin_inset Note Note
5973 \begin_layout Plain Layout
5974 See the first greyed-out note in section
5975 \begin_inset space ~
5979 \begin_inset CommandInset ref
5981 reference "sub:Longtable-Captions"
5985 for an explanation of this command.
5993 \begin_layout Subsection
5995 \begin_inset Index idx
5998 \begin_layout Plain Layout
5999 Longtables ! Captions
6005 \begin_inset CommandInset label
6007 name "sub:Longtable-Captions"
6014 \begin_layout Standard
6015 A longtable cannot be put into a table float because floats can only be
6017 But the caption environment of floats can also be used for longtables when
6018 you use the longtable option
6022 as described in sec.
6023 \begin_inset space \thinspace{}
6027 \begin_inset CommandInset ref
6029 reference "sec:Longtables"
6034 Only one table row should contain a caption, either a header or a footer
6038 \begin_layout Standard
6039 Here is a short longtable to see how it works:
6042 \begin_layout Standard
6043 \begin_inset Tabular
6044 <lyxtabular version="3" rows="6" columns="5">
6045 <features rotate="0" islongtable="true" longtabularalignment="center">
6046 <column alignment="center" valignment="top">
6047 <column alignment="center" valignment="top">
6048 <column alignment="center" valignment="top">
6049 <column alignment="center" valignment="top">
6050 <column alignment="center" valignment="top">
6051 <row endfirsthead="true" caption="true">
6052 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6055 \begin_layout Plain Layout
6056 \begin_inset Caption Standard
6058 \begin_layout Plain Layout
6059 Longtable with caption
6060 \begin_inset Argument 1
6063 \begin_layout Plain Layout
6079 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6082 \begin_layout Plain Layout
6088 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6091 \begin_layout Plain Layout
6097 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6100 \begin_layout Plain Layout
6106 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6109 \begin_layout Plain Layout
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Plain Layout
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Plain Layout
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6138 \begin_layout Plain Layout
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Plain Layout
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6156 \begin_layout Plain Layout
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Plain Layout
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Plain Layout
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6185 \begin_layout Plain Layout
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Plain Layout
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6203 \begin_layout Plain Layout
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Plain Layout
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6250 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Plain Layout
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6270 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6297 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6326 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6344 \begin_layout Plain Layout
6358 \begin_layout Standard
6359 \begin_inset VSpace medskip
6363 \begin_inset Note Greyedout
6366 \begin_layout Plain Layout
6370 \begin_inset space ~
6375 The table number is increased for every longtable, even if you did not
6376 set a caption for it.
6377 For this reason you could have the case that e.
6378 \begin_inset space \thinspace{}
6382 \begin_inset space \space{}
6386 \begin_inset space ~
6390 \begin_inset space ~
6393 2.1 in the list of tables if there are two longtables without captions.
6394 To avoid this you can add the following command in TeX-Code after every
6395 longtable without a caption:
6398 \begin_layout Plain Layout
6403 addtocounter{table}{-1}
6406 \begin_layout Plain Layout
6407 This is not needed when none of your longtables has a caption and you add
6408 the following code to the document preamble:
6411 \begin_layout Plain Layout
6421 \begin_inset Newline newline
6432 addtocounter{table}{-1}}
6440 \begin_layout Standard
6441 \begin_inset Note Greyedout
6444 \begin_layout Plain Layout
6448 \begin_inset space ~
6458 \begin_inset Index idx
6461 \begin_layout Plain Layout
6462 LaTeX-packages ! hyperref
6475 dialog to link cross-references, the link to a longtable caption will always
6476 point to the beginning of the document.
6484 \begin_layout Subsubsection
6485 References to Longtables
6486 \begin_inset Index idx
6489 \begin_layout Plain Layout
6490 Longtables ! References
6498 \begin_layout Standard
6499 \begin_inset Tabular
6500 <lyxtabular version="3" rows="6" columns="5">
6501 <features rotate="0" islongtable="true" longtabularalignment="center">
6502 <column alignment="center" valignment="top">
6503 <column alignment="center" valignment="top">
6504 <column alignment="center" valignment="top">
6505 <column alignment="center" valignment="top">
6506 <column alignment="center" valignment="top">
6507 <row endfirsthead="true" caption="true">
6508 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6511 \begin_layout Plain Layout
6512 \begin_inset Caption Standard
6514 \begin_layout Plain Layout
6515 Referenced longtable
6516 \begin_inset CommandInset label
6518 name "tab:RefExample"
6532 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6535 \begin_layout Plain Layout
6541 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6544 \begin_layout Plain Layout
6550 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6553 \begin_layout Plain Layout
6559 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6562 \begin_layout Plain Layout
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6573 \begin_layout Plain Layout
6579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6582 \begin_layout Plain Layout
6588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6591 \begin_layout Plain Layout
6597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6600 \begin_layout Plain Layout
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6609 \begin_layout Plain Layout
6617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6620 \begin_layout Plain Layout
6626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6629 \begin_layout Plain Layout
6635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6638 \begin_layout Plain Layout
6644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6647 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6656 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6676 \begin_layout Plain Layout
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6694 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6703 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6723 \begin_layout Plain Layout
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6741 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6750 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6779 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6788 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Plain Layout
6811 \begin_layout Standard
6812 To reference a longtable, insert a label into the caption.
6815 \begin_layout Standard
6816 This is a reference to Table
6817 \begin_inset space ~
6821 \begin_inset CommandInset ref
6823 reference "tab:RefExample"
6830 \begin_layout Standard
6831 The caption layout can be set together with all other captions of your document
6832 using the LaTeX-package
6837 \begin_inset Index idx
6840 \begin_layout Plain Layout
6841 LaTeX-packages ! caption
6847 \begin_inset space ~
6851 \begin_inset CommandInset ref
6853 reference "sec:Caption-Formatting"
6860 \begin_layout Subsubsection
6862 \begin_inset Index idx
6865 \begin_layout Plain Layout
6866 Longtables ! Caption Width
6874 \begin_layout Standard
6875 The maximal width of caption lines is defined by the length
6882 Its default value is 4
6883 \begin_inset space \thinspace{}
6887 To change it add the following command to your document preamble or as
6888 TeX-Code into your document before the longtable that should be affected
6891 \begin_layout Standard
6901 \begin_layout Standard
6902 where the width could have one of the units listed in appendix
6903 \begin_inset space ~
6907 \begin_inset CommandInset ref
6909 reference "cha:Units-available-in"
6916 \begin_layout Standard
6917 The following tables show the difference:
6920 \begin_layout Standard
6921 \begin_inset Tabular
6922 <lyxtabular version="3" rows="6" columns="5">
6923 <features rotate="0" islongtable="true" longtabularalignment="center">
6924 <column alignment="center" valignment="top">
6925 <column alignment="center" valignment="top">
6926 <column alignment="center" valignment="top">
6927 <column alignment="center" valignment="top">
6928 <column alignment="center" valignment="top">
6929 <row endfirsthead="true" caption="true">
6930 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6933 \begin_layout Plain Layout
6934 \begin_inset Caption Standard
6936 \begin_layout Plain Layout
6937 long full title with default width long full title with default width long
6938 full title with default width
6939 \begin_inset Argument 1
6942 \begin_layout Plain Layout
6943 caption with default width
6958 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6961 \begin_layout Plain Layout
6967 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6970 \begin_layout Plain Layout
6976 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6979 \begin_layout Plain Layout
6985 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6988 \begin_layout Plain Layout
6996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6999 \begin_layout Plain Layout
7005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7008 \begin_layout Plain Layout
7014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7017 \begin_layout Plain Layout
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7026 \begin_layout Plain Layout
7032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7035 \begin_layout Plain Layout
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7046 \begin_layout Plain Layout
7052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7055 \begin_layout Plain Layout
7061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7064 \begin_layout Plain Layout
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Plain Layout
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7082 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7093 \begin_layout Plain Layout
7099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7102 \begin_layout Plain Layout
7108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7111 \begin_layout Plain Layout
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7120 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7129 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7140 \begin_layout Plain Layout
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7149 \begin_layout Plain Layout
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7158 \begin_layout Plain Layout
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7167 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7176 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7187 \begin_layout Plain Layout
7193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7196 \begin_layout Plain Layout
7202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7205 \begin_layout Plain Layout
7211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7214 \begin_layout Plain Layout
7220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7223 \begin_layout Plain Layout
7237 \begin_layout Standard
7241 \begin_layout Plain Layout
7253 \begin_inset Tabular
7254 <lyxtabular version="3" rows="6" columns="5">
7255 <features rotate="0" islongtable="true" longtabularalignment="center">
7256 <column alignment="center" valignment="top">
7257 <column alignment="center" valignment="top">
7258 <column alignment="center" valignment="top">
7259 <column alignment="center" valignment="top">
7260 <column alignment="center" valignment="top">
7261 <row endfirsthead="true" caption="true">
7262 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7265 \begin_layout Plain Layout
7266 \begin_inset Caption Standard
7268 \begin_layout Plain Layout
7269 long full title with width set to 5
7270 \begin_inset space \thinspace{}
7273 cm long full title with width set to 5
7274 \begin_inset space \thinspace{}
7277 cm long full title with width set to 5
7278 \begin_inset space \thinspace{}
7282 \begin_inset Argument 1
7285 \begin_layout Plain Layout
7287 \begin_inset space \thinspace{}
7291 \begin_inset space \thinspace{}
7295 \begin_inset space \thinspace{}
7313 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7316 \begin_layout Plain Layout
7322 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7325 \begin_layout Plain Layout
7331 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7334 \begin_layout Plain Layout
7340 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7343 \begin_layout Plain Layout
7351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7354 \begin_layout Plain Layout
7360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7363 \begin_layout Plain Layout
7369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7372 \begin_layout Plain Layout
7378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7381 \begin_layout Plain Layout
7387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7390 \begin_layout Plain Layout
7398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7401 \begin_layout Plain Layout
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7410 \begin_layout Plain Layout
7416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7419 \begin_layout Plain Layout
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7428 \begin_layout Plain Layout
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7437 \begin_layout Plain Layout
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7448 \begin_layout Plain Layout
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Plain Layout
7463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7475 \begin_layout Plain Layout
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7484 \begin_layout Plain Layout
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7504 \begin_layout Plain Layout
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7513 \begin_layout Plain Layout
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7522 \begin_layout Plain Layout
7528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7531 \begin_layout Plain Layout
7539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7551 \begin_layout Plain Layout
7557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7560 \begin_layout Plain Layout
7566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7569 \begin_layout Plain Layout
7575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7578 \begin_layout Plain Layout
7592 \begin_layout Standard
7596 \begin_layout Plain Layout
7610 \begin_layout Standard
7611 \begin_inset Note Greyedout
7614 \begin_layout Plain Layout
7619 When the LaTeX-package
7624 \begin_inset Index idx
7627 \begin_layout Plain Layout
7628 LaTeX-packages ! caption
7633 is used, as in this document, the full page width is used for the caption
7634 when you use the default value of 4
7635 \begin_inset space \thinspace{}
7645 To get in this case exactly a 4
7646 \begin_inset space \thinspace{}
7649 in wide caption, you can either use a value slightly different from 4.0
7650 \begin_inset space \thinspace{}
7654 \begin_inset space \thinspace{}
7658 \begin_inset space \space{}
7662 \begin_inset space \thinspace{}
7665 in, or the LaTeX-command
7669 captionsetup{width=value}
7671 that is provided by the
7683 \begin_layout Subsubsection
7684 Different Captions for Table Pages
7685 \begin_inset Index idx
7688 \begin_layout Plain Layout
7689 Longtables ! Different Captions for Pages
7697 \begin_layout Standard
7698 When the table captions for the following pages should differ from the one
7699 of the first table page, mark a empty row as header which contains a caption.
7700 Then right-click on the caption and select in the context menu
7703 \begin_inset space ~
7710 \begin_inset space ~
7714 \begin_inset CommandInset ref
7716 reference "tab:DiffCaptions"
7720 is an example of a longtable with different heading where the second caption
7721 does not include the table number.
7724 \begin_layout Standard
7726 \begin_inset Tabular
7727 <lyxtabular version="3" rows="59" columns="3">
7728 <features rotate="0" islongtable="true" longtabularalignment="center">
7729 <column alignment="left" valignment="top" width="0cm">
7730 <column alignment="left" valignment="top" width="0pt">
7731 <column alignment="center" valignment="top" width="0pt">
7732 <row endfirsthead="true" caption="true">
7733 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7736 \begin_layout Plain Layout
7737 \begin_inset Caption Standard
7739 \begin_layout Plain Layout
7741 \begin_inset CommandInset label
7743 name "tab:DiffCaptions"
7748 \begin_inset Argument 1
7751 \begin_layout Plain Layout
7767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Plain Layout
7786 <row endfirsthead="true">
7787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7793 Example Phone List (ignore the names)
7798 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7801 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7817 <row endfirsthead="true">
7818 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7832 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7841 \begin_layout Plain Layout
7850 <row endhead="true" caption="true">
7851 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7855 \begin_inset Caption LongTableNoNumber
7857 \begin_layout Plain Layout
7858 Continued Example Phone List
7868 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7880 \begin_layout Plain Layout
7887 <row endhead="true">
7888 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7902 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7911 \begin_layout Plain Layout
7918 <row endhead="true">
7919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7933 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7942 \begin_layout Plain Layout
7951 <row endfoot="true">
7952 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7955 \begin_layout Plain Layout
7956 continued on next page
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7964 \begin_layout Plain Layout
7970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8108 \begin_layout Plain Layout
8116 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8139 \begin_layout Plain Layout
8147 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8407 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8418 \begin_layout Plain Layout
8427 \begin_layout Plain Layout
8438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8647 \begin_layout Plain Layout
8655 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8954 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9045 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9076 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9107 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9138 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9169 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9200 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9231 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9262 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9265 \begin_layout Plain Layout
9273 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9293 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9296 \begin_layout Plain Layout
9304 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9324 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9327 \begin_layout Plain Layout
9335 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9355 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9358 \begin_layout Plain Layout
9366 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9386 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9389 \begin_layout Plain Layout
9397 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9417 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9420 \begin_layout Plain Layout
9428 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9448 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9451 \begin_layout Plain Layout
9459 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9479 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9482 \begin_layout Plain Layout
9490 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9510 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9513 \begin_layout Plain Layout
9521 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9541 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9544 \begin_layout Plain Layout
9552 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9575 \begin_layout Plain Layout
9583 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9592 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9595 \begin_layout Plain Layout
9609 \begin_layout Section
9610 Special Longtable Issues
9611 \begin_inset CommandInset label
9613 name "sec:Special-Longtable-Issues"
9620 \begin_layout Subsection
9621 Longtable Calculation
9622 \begin_inset Index idx
9625 \begin_layout Plain Layout
9626 Longtables ! Calculation
9634 \begin_layout Standard
9635 LaTeX calculates the height of table pages and their page breaks using so
9637 Chunks are parts of tables that held at the same time in LaTeX's memory.
9638 The default value was historically set to only 20 table rows.
9639 If you are using longtables with many pages this may slow down the creation
9641 You can safely increase the chunk size to values of 100-1000 by adding
9642 this command line to your document preamble:
9645 \begin_layout Standard
9650 setcounter{LTchunksize}{100}
9653 \begin_layout Subsection
9654 Floats and Longtables
9655 \begin_inset Index idx
9658 \begin_layout Plain Layout
9667 \begin_layout Standard
9668 There might be problems when a float appears on the same page where a longtable
9670 To avoid such a situation, insert a
9671 \begin_inset Quotes eld
9675 \begin_inset Quotes erd
9680 Insert\SpecialChar \menuseparator
9681 Formatting\SpecialChar \menuseparator
9683 \begin_inset space ~
9688 ) before your longtable.
9691 \begin_layout Subsection
9693 \begin_inset Index idx
9696 \begin_layout Plain Layout
9697 Longtables ! Forced Page Breaks
9705 \begin_layout Standard
9706 By default tables are only broken between rows.
9707 If you have a cell with multiples lines and want to have a page break within
9708 the cell, insert the new line command
9709 \begin_inset Quotes eld
9721 \begin_inset Quotes erd
9724 as TeX-Code at the point of the cell where it can be broken.
9733 command you have to insert in TeX-Code as many
9734 \begin_inset Quotes eld
9742 \begin_inset Quotes erd
9745 characters as the number of the following table columns.
9750 is the character to separate table cells.
9751 Write in TeX-Code after each
9755 the content of the corresponding following cell and delete the content
9757 \begin_inset Newline newline
9768 command, insert as many
9772 characters as the number of table columns before the current column.
9774 \begin_inset space ~
9778 \begin_inset CommandInset ref
9780 reference "tab:ForcedPagebreak"
9784 the cell that should be broken is in the second column followed by another
9786 Therefore the following command was inserted in the cell as TeX-Code after
9788 \begin_inset Quotes eld
9796 \begin_inset Quotes erd
9802 \begin_layout Standard
9812 \begin_inset Newline newline
9818 \begin_layout Standard
9820 \begin_inset Quotes eld
9824 \begin_inset Quotes erd
9827 in the third column of the row was deleted.
9834 is only needed when a page break should definitely occur at this position,
9835 otherwise it would be a conditional break.
9836 If your footer row of the longtable has for a certain reason no upper line
9837 but you would have a horizontal line where the cell is broken, use this
9841 \begin_layout Standard
9849 \begin_inset Newline newline
9857 \begin_layout Standard
9858 When the cell to be broken is in the last column, the command
9861 \begin_layout Standard
9871 \begin_layout Standard
9872 must be inserted as TeX-Code at the beginning of the cell.
9873 This ensures that the part of the cell that will be displayed on the new
9874 page appears with the full width.
9877 \begin_layout Standard
9879 \begin_inset Tabular
9880 <lyxtabular version="3" rows="38" columns="3">
9881 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9882 <column alignment="left" valignment="top" width="0cm">
9883 <column alignment="left" valignment="top" width="3cm">
9884 <column alignment="center" valignment="top" width="0pt">
9885 <row endfirsthead="true" caption="true">
9886 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9889 \begin_layout Plain Layout
9890 \begin_inset Caption Standard
9892 \begin_layout Plain Layout
9893 Table with forced page break in table cell
9894 \begin_inset CommandInset label
9896 name "tab:ForcedPagebreak"
9901 \begin_inset Argument 1
9904 \begin_layout Plain Layout
9905 Table with forced page break in table cell
9920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9923 \begin_layout Plain Layout
9929 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9932 \begin_layout Plain Layout
9939 <row endfirsthead="true">
9940 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9946 Example Phone List (ignore the names)
9951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9963 \begin_layout Plain Layout
9970 <row endfirsthead="true">
9971 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9974 \begin_layout Plain Layout
9982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9985 \begin_layout Plain Layout
9991 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9994 \begin_layout Plain Layout
10003 <row endhead="true">
10004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10007 \begin_layout Plain Layout
10011 \begin_layout Plain Layout
10015 caption*{Continued Example Phone List}
10029 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10032 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10041 \begin_layout Plain Layout
10048 <row endhead="true">
10049 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10060 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10063 \begin_layout Plain Layout
10069 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10079 <row endhead="true">
10080 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10083 \begin_layout Plain Layout
10091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10094 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10103 \begin_layout Plain Layout
10112 <row endfoot="true">
10113 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10116 \begin_layout Plain Layout
10117 continued on next page
10122 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10125 \begin_layout Plain Layout
10131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10134 \begin_layout Plain Layout
10142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10162 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10537 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10548 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10559 \begin_layout Plain Layout
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10785 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10827 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10840 Fürst von Montecompatri, 11.
10841 Fürst von Sulmona und Vivaro, 10.
10842 Fürst von Rossano, 5.
10843 Herzog von Canemorte, 11.
10844 Herzog von Palombara, 5.
10845 Herzog von Castelchiodato,
10849 \begin_layout Plain Layout
10860 \begin_layout Plain Layout
10868 Herzog von Poggionativo, 11.
10869 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10870 Graf von Valinfreda, 11.
10871 Baron von Cropalati, 11.
10872 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10877 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10880 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10902 \begin_layout Plain Layout
10908 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10911 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10922 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10933 \begin_layout Plain Layout
10939 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10942 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10953 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10964 \begin_layout Plain Layout
10970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10973 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11004 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11015 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11026 \begin_layout Plain Layout
11032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11035 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11046 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11057 \begin_layout Plain Layout
11063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11066 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11088 \begin_layout Plain Layout
11094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11097 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11108 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11119 \begin_layout Plain Layout
11125 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11128 \begin_layout Plain Layout
11142 \begin_layout Section
11143 Multiple Lines, Columns and Rows
11146 \begin_layout Subsection
11147 Multiple Lines in Table Cells
11148 \begin_inset CommandInset label
11150 name "sub:Multiple-Lines-in"
11155 \begin_inset Index idx
11158 \begin_layout Plain Layout
11159 Multiple Lines in Table Cells
11165 \begin_inset Index idx
11168 \begin_layout Plain Layout
11177 \begin_layout Standard
11179 \begin_inset Float table
11185 \begin_layout Plain Layout
11186 \begin_inset Caption Standard
11188 \begin_layout Plain Layout
11189 \begin_inset CommandInset label
11191 name "tab:Table-with-multiple"
11195 Table with multiple lines in cells
11203 \begin_layout Plain Layout
11205 \begin_inset Tabular
11206 <lyxtabular version="3" rows="3" columns="3">
11207 <features rotate="0" tabularvalignment="middle">
11208 <column alignment="center" valignment="middle" width="2.5cm">
11209 <column alignment="center" valignment="middle">
11210 <column alignment="center" valignment="middle">
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11215 \begin_layout Plain Layout
11217 \begin_inset Newline linebreak
11225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11228 \begin_layout Plain Layout
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11237 \begin_layout Plain Layout
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11248 \begin_layout Plain Layout
11254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11257 \begin_layout Plain Layout
11263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11266 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11277 \begin_layout Plain Layout
11283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11286 \begin_layout Plain Layout
11292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11295 \begin_layout Plain Layout
11314 \begin_layout Standard
11315 Setting a fixed width for a column enables you to enter text as a paragraph
11316 with multiple lines and hyphenation.
11319 \begin_layout Standard
11321 \begin_inset space ~
11325 \begin_inset CommandInset ref
11327 reference "tab:Table-with-multiple"
11331 , create a 3×3 table, mark the first cell and right-click on it.
11332 In the appearing table dialog we set a cell width of 2.5
11333 \begin_inset space \thinspace{}
11336 cm and choose centered for the vertical and horizontal alignment.
11337 The vertical alignment is used for all cells of the row.
11338 As our text is smaller than 2.5
11339 \begin_inset space \thinspace{}
11342 cm, only one line will appear.
11343 To get two lines, a justified line break (shortcut
11346 arg "newline-insert linebreak"
11350 If the text is wider than the set cell width, it will automatically be
11351 broken to several lines.
11354 \begin_layout Standard
11355 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11356 by LaTeX if it is the first entry.
11357 Therefore you need to insert something to prevent the word not being the
11359 So add a horizontal space of 0
11360 \begin_inset space \thinspace{}
11363 pt before the word.
11364 As the space is zero, it doesn't change the output.
11366 \begin_inset space ~
11370 \begin_inset CommandInset ref
11372 reference "tab:Table-with-and"
11379 \begin_layout Standard
11380 \begin_inset Float table
11386 \begin_layout Plain Layout
11387 \begin_inset Caption Standard
11389 \begin_layout Plain Layout
11390 \begin_inset CommandInset label
11392 name "tab:Table-with-and"
11396 Table with and without hyphenation
11404 \begin_layout Plain Layout
11405 \begin_inset space \hfill{}
11409 \begin_inset Tabular
11410 <lyxtabular version="3" rows="3" columns="3">
11411 <features rotate="0" tabularvalignment="middle">
11412 <column alignment="center" valignment="middle" width="2.5cm">
11413 <column alignment="center" valignment="middle">
11414 <column alignment="center" valignment="middle">
11416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11419 \begin_layout Plain Layout
11420 verylongtablecellword
11425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11428 \begin_layout Plain Layout
11434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11437 \begin_layout Plain Layout
11445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11448 \begin_layout Plain Layout
11454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11457 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11466 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11486 \begin_layout Plain Layout
11492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11495 \begin_layout Plain Layout
11507 \begin_inset space \hfill{}
11511 \begin_inset Tabular
11512 <lyxtabular version="3" rows="3" columns="3">
11513 <features rotate="0" tabularvalignment="middle">
11514 <column alignment="center" valignment="middle" width="2.5cm">
11515 <column alignment="center" valignment="middle">
11516 <column alignment="center" valignment="middle">
11518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11521 \begin_layout Plain Layout
11522 \begin_inset space \hspace{}
11526 verylongtablecellword
11531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11534 \begin_layout Plain Layout
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11543 \begin_layout Plain Layout
11551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11554 \begin_layout Plain Layout
11560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11563 \begin_layout Plain Layout
11569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11572 \begin_layout Plain Layout
11580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11583 \begin_layout Plain Layout
11589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11592 \begin_layout Plain Layout
11598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11601 \begin_layout Plain Layout
11613 \begin_inset space \hfill{}
11624 \begin_layout Subsection
11626 \begin_inset CommandInset label
11628 name "sub:Multicolumns"
11633 \begin_inset Index idx
11636 \begin_layout Plain Layout
11643 \begin_inset Index idx
11646 \begin_layout Plain Layout
11647 Table ! Multicolumns
11655 \begin_layout Subsubsection
11659 \begin_layout Standard
11660 To merge cells over multiple columns, select as many cells within a row
11661 as you want to merge and use either the table-toolbar button
11664 arg "inset-modify tabular multicolumn"
11669 Edit\SpecialChar \menuseparator
11670 Table\SpecialChar \menuseparator
11673 , or right click on the marked cells and choose
11677 in the context menu.
11680 \begin_layout Standard
11681 Multicolumns have there own cell settings.
11682 That means changing cell borders, cell alignment, and the width only affects
11684 Here is an example table with a multicolumn cell in the first row and one
11685 in the last row without the upper border:
11688 \begin_layout Standard
11690 \begin_inset Tabular
11691 <lyxtabular version="3" rows="3" columns="4">
11692 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11693 <column alignment="center" valignment="top" width="0pt">
11694 <column alignment="center" valignment="middle">
11695 <column alignment="center" valignment="top" width="0in">
11696 <column alignment="center" valignment="top" width="0pt">
11698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11701 \begin_layout Plain Layout
11707 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11710 \begin_layout Plain Layout
11716 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11719 \begin_layout Plain Layout
11725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11728 \begin_layout Plain Layout
11736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11739 \begin_layout Plain Layout
11754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11757 \begin_layout Plain Layout
11763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11766 \begin_layout Plain Layout
11772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11775 \begin_layout Plain Layout
11783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11786 \begin_layout Plain Layout
11792 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11795 \begin_layout Plain Layout
11801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11804 \begin_layout Plain Layout
11810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11813 \begin_layout Plain Layout
11827 \begin_layout Subsubsection
11828 Multicolumn Calculations
11829 \begin_inset CommandInset label
11831 name "sub:Multicolumn-Calculations"
11836 \begin_inset Index idx
11839 \begin_layout Plain Layout
11840 Multicolumns ! Calculations
11848 \begin_layout Standard
11849 LyX supports multicolumns directly, but we have to take account of the cell
11850 width of the columns spanned by the multicolumn cell.
11853 \begin_layout Standard
11854 \begin_inset Float table
11860 \begin_layout Plain Layout
11861 \begin_inset Caption Standard
11863 \begin_layout Plain Layout
11864 \begin_inset CommandInset label
11866 name "tab:Table-with-centered"
11870 Table with centered multicolumn text above two columns that have exactly
11871 half the width of the multicolumn cell
11872 \begin_inset Argument 1
11875 \begin_layout Plain Layout
11876 Perfect multicolumn table
11889 \begin_layout Plain Layout
11891 \begin_inset Tabular
11892 <lyxtabular version="3" rows="3" columns="3">
11893 <features rotate="0" tabularvalignment="middle">
11894 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11895 <column alignment="center" valignment="middle">
11896 <column alignment="center" valignment="top">
11898 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11901 \begin_layout Plain Layout
11902 multiple lines multicolumn
11907 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11910 \begin_layout Plain Layout
11916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11919 \begin_layout Plain Layout
11927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11930 \begin_layout Plain Layout
11936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11939 \begin_layout Plain Layout
11945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11948 \begin_layout Plain Layout
11956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11959 \begin_layout Plain Layout
11965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11968 \begin_layout Plain Layout
11974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11977 \begin_layout Plain Layout
11996 \begin_layout Standard
11997 To create for example Table
11998 \begin_inset space ~
12002 \begin_inset CommandInset ref
12004 reference "tab:Table-with-centered"
12008 , mark the first two cells in the first row of a 3×3 table and right-click
12010 Now choose for this cell
12019 \begin_inset space \thinspace{}
12022 cm in the table dialog.
12023 The merged columns should have exactly half the width of the multicolumn
12024 cell, so that you would set a width of 1.25
12025 \begin_inset space \thinspace{}
12028 cm for the first column.
12029 The second column has then automatically a width of 1.25
12030 \begin_inset space \thinspace{}
12033 cm (multicolumn width - width of first column).
12034 This was done for Table
12035 \begin_inset space ~
12039 \begin_inset CommandInset ref
12041 reference "tab:Table-without-half"
12048 \begin_layout Standard
12049 \begin_inset Float table
12054 \begin_layout Plain Layout
12055 \begin_inset Caption Standard
12057 \begin_layout Plain Layout
12058 \begin_inset CommandInset label
12060 name "tab:Table-without-half"
12064 Table where the spanned table columns are not exactly half the width of
12065 the multicolumn cell
12066 \begin_inset Argument 1
12069 \begin_layout Plain Layout
12070 Imperfect multicolumn table
12083 \begin_layout Plain Layout
12085 \begin_inset Tabular
12086 <lyxtabular version="3" rows="3" columns="3">
12087 <features rotate="0" tabularvalignment="middle">
12088 <column alignment="center" valignment="top" width="1.25cm">
12089 <column alignment="center" valignment="top">
12090 <column alignment="center" valignment="top">
12092 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12095 \begin_layout Plain Layout
12096 multiple lines multicolumn
12101 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12104 \begin_layout Plain Layout
12110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12113 \begin_layout Plain Layout
12121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12124 \begin_layout Plain Layout
12130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12133 \begin_layout Plain Layout
12139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12142 \begin_layout Plain Layout
12150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12153 \begin_layout Plain Layout
12159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12162 \begin_layout Plain Layout
12168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12171 \begin_layout Plain Layout
12190 \begin_layout Standard
12191 You can see that the first column is not half the width of the multicolumn
12192 cell, it is a bit bigger.
12193 The reason is that the specified width of a cell
12194 \begin_inset Formula $W_{g}$
12197 is not its total width
12198 \begin_inset Formula $W_{\mathrm{tot}}$
12201 because a cell is always a bit larger than specified.
12203 \begin_inset space ~
12207 \begin_inset CommandInset ref
12209 reference "cha:Explanation-of-Equation"
12213 explains this in detail.
12216 \begin_layout Standard
12218 \begin_inset Formula $W_{g\, n}$
12221 which the user needs to set when
12225 columns are spanned can be calculated, so that each column has a total
12227 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12231 \begin_inset Formula
12233 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12241 \begin_layout Standard
12242 In our case we have
12243 \begin_inset Formula $n=2$
12247 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12250 cm and the default values for the lengths, so that equation
12251 \begin_inset CommandInset ref
12258 \begin_inset Formula
12260 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12268 \begin_layout Standard
12269 To enable calculations in LaTeX, the LaTeX-package
12273 must be loaded with the document preamble line
12274 \begin_inset Index idx
12277 \begin_layout Plain Layout
12278 LaTeX-packages ! calc
12286 \begin_layout Standard
12294 \begin_layout Standard
12295 LyX does not allow you to calculate lengths in the
12299 field of the table dialog.
12300 Therefore you have to format the column by inserting a LaTeX-argument in
12302 Here is an overview about the arguments:
12305 \begin_layout Itemize
12310 creates cell with a fixed width, its text is vertically top-aligned
12313 \begin_layout Itemize
12318 creates cell with a fixed width, its text is vertically centered
12321 \begin_layout Itemize
12326 creates cell with a fixed width, its text is vertically bottom-aligned
12329 \begin_layout Standard
12330 By entering a LaTeX-argument, all cell settings set in the table dialog
12334 \begin_layout Standard
12335 \begin_inset Note Greyedout
12338 \begin_layout Plain Layout
12343 Due to a bug, LyX shows the overwritten settings anyway.
12351 \begin_layout Standard
12352 As the text should be horizontally centered, the command
12359 You can now enter the following LaTeX-argument for the first spanned column:
12362 \begin_layout Standard
12367 centering}m{1.25cm-6.2pt}
12370 \begin_layout Standard
12375 means, that the commands inside the braces are applied before the cell
12379 \begin_layout Standard
12380 Although we have chosen centered alignment for the text of the multicolumn
12381 cell, it is still left aligned.
12382 This is because LyX only applies the alignment to single columns.
12383 So for the multicolumn cell we have to use the LaTeX-argument
12386 \begin_layout Standard
12394 \begin_layout Subsection
12396 \begin_inset CommandInset label
12398 name "sub:Multirows"
12403 \begin_inset Index idx
12406 \begin_layout Plain Layout
12413 \begin_inset Index idx
12416 \begin_layout Plain Layout
12425 \begin_layout Standard
12426 To merge cells over multiple rows, select as many cells within a column
12427 as you want to merge and use either the table-toolbar button
12430 arg "inset-modify tabular multirow"
12435 Edit\SpecialChar \menuseparator
12436 Table\SpecialChar \menuseparator
12439 , or right click on the marked cells and choose
12443 in the context menu.
12446 \begin_layout Standard
12447 Here is an example table with a multirow in the first column:
12450 \begin_layout Standard
12452 \begin_inset Tabular
12453 <lyxtabular version="3" rows="3" columns="3">
12454 <features rotate="0" tabularvalignment="middle">
12455 <column alignment="center" valignment="top" width="0pt">
12456 <column alignment="center" valignment="top">
12457 <column alignment="center" valignment="top">
12459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12462 \begin_layout Plain Layout
12468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12471 \begin_layout Plain Layout
12477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12480 \begin_layout Plain Layout
12488 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12491 \begin_layout Plain Layout
12497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12500 \begin_layout Plain Layout
12506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12509 \begin_layout Plain Layout
12517 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12529 \begin_layout Plain Layout
12535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12538 \begin_layout Plain Layout
12552 \begin_layout Standard
12553 The width of multirow cells is set by setting the width and alignment for
12559 shifts the content of the multirow up/down if the offset is positive/negative.
12562 \begin_layout Standard
12563 If the column of a multirow cell has no explicit width, the multirow cell
12564 inherits the alignment of the column.
12565 Otherwise it is by default left-aligned.
12566 To override the default, renew the command
12575 \begin_layout Standard
12587 \begin_layout Standard
12588 in the document preamble.
12589 Then all entries of multirow cells in the document are centered.
12590 If centering is only needed for several tables, you can renew the command
12591 in a TeX-Code box just before the table instead of the preamble.
12592 If the text should be right-aligned, replace
12605 To return to left-alignment
12614 \begin_layout Standard
12615 This is an example table with a right-aligned multirow cell that has a vertical
12617 \begin_inset space \thinspace{}
12621 \begin_inset space \thinspace{}
12627 \begin_layout Standard
12633 \begin_layout Plain Layout
12647 \begin_inset Tabular
12648 <lyxtabular version="3" rows="4" columns="3">
12649 <features rotate="0" tabularvalignment="middle">
12650 <column alignment="center" valignment="top" width="3cm">
12651 <column alignment="center" valignment="top">
12652 <column alignment="center" valignment="top">
12654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12657 \begin_layout Plain Layout
12663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12666 \begin_layout Plain Layout
12672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12675 \begin_layout Plain Layout
12683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12686 \begin_layout Plain Layout
12692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12695 \begin_layout Plain Layout
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12704 \begin_layout Plain Layout
12712 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12715 \begin_layout Plain Layout
12721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12724 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12741 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12744 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12753 \begin_layout Plain Layout
12759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12762 \begin_layout Plain Layout
12777 \begin_layout Plain Layout
12793 \begin_layout Standard
12794 To start a new line in a multirow you can use a forced line break (shortcut
12798 arg "newline-insert newline"
12801 ) but this will not respect the cell lines as demonstrated in this table:
12804 \begin_layout Standard
12807 \begin_inset Tabular
12808 <lyxtabular version="3" rows="3" columns="2">
12809 <features rotate="0" tabularvalignment="middle">
12810 <column alignment="left" valignment="middle" width="2cm">
12811 <column alignment="center" valignment="top">
12813 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12816 \begin_layout Plain Layout
12818 \begin_inset Newline newline
12822 \begin_inset Newline newline
12830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12833 \begin_layout Plain Layout
12841 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12844 \begin_layout Plain Layout
12850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12853 \begin_layout Plain Layout
12861 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12864 \begin_layout Plain Layout
12870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Plain Layout
12887 \begin_layout Standard
12888 Therefore be careful with forced line breaks.
12891 \begin_layout Subsection
12892 Cells with diagonal line(s)
12895 \begin_layout Standard
12896 To tell the reader what is meant by column and row headings in a table,
12897 it is helpful to split the first cell of the table by one or two diagonal
12899 This can be achieved by loading the LaTeX-package
12904 \begin_inset Index idx
12907 \begin_layout Plain Layout
12908 LaTeX-packages ! picinpar
12913 in the document preamble.
12914 The package provides the command
12920 that is inserted as TeX-Code and that can take 2 or 3
12921 \begin_inset space ~
12927 \begin_layout Standard
12932 diagbox[options]{lower left}{upper right}
12935 \begin_layout Standard
12940 diagbox[options]{lower left}{upper left}{upper right}
12943 \begin_layout Standard
12944 The first scheme divides the cell by a single diagonal line and the arguments
12945 are placed below and above this line.
12946 The second scheme divides the cell by 2
12947 \begin_inset space ~
12953 \begin_layout Standard
12957 \begin_layout Plain Layout
12967 \begin_inset Note Note
12970 \begin_layout Plain Layout
12971 The following section will only be displayed when the LaTeX-package
12983 \begin_layout Standard
12984 Here is an example table where
12990 is used in the 2-argument scheme in the first cell:
12991 \begin_inset VSpace medskip
12997 \begin_layout Standard
12999 \begin_inset Tabular
13000 <lyxtabular version="3" rows="4" columns="4">
13001 <features rotate="0" tabularvalignment="middle">
13002 <column alignment="center" valignment="top">
13003 <column alignment="center" valignment="top">
13004 <column alignment="center" valignment="top">
13005 <column alignment="center" valignment="top">
13007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13010 \begin_layout Plain Layout
13014 \begin_layout Plain Layout
13027 \begin_layout Plain Layout
13038 \begin_layout Plain Layout
13050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13053 \begin_layout Plain Layout
13059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13062 \begin_layout Plain Layout
13068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13071 \begin_layout Plain Layout
13079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13082 \begin_layout Plain Layout
13088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13091 \begin_layout Plain Layout
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Plain Layout
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13109 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13120 \begin_layout Plain Layout
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Plain Layout
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Plain Layout
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13158 \begin_layout Plain Layout
13164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13167 \begin_layout Plain Layout
13173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13176 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13185 \begin_layout Plain Layout
13197 \begin_inset VSpace medskip
13203 \begin_layout Standard
13204 The 3-argument scheme is for example useful for cross-tables of sports leagues
13208 \begin_layout Standard
13211 \begin_inset Tabular
13212 <lyxtabular version="3" rows="4" columns="4">
13213 <features rotate="0" tabularvalignment="middle">
13214 <column alignment="center" valignment="top" width="0pt">
13215 <column alignment="center" valignment="top">
13216 <column alignment="center" valignment="top">
13217 <column alignment="center" valignment="top">
13219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13222 \begin_layout Plain Layout
13226 \begin_layout Plain Layout
13239 \begin_layout Plain Layout
13250 \begin_layout Plain Layout
13261 \begin_layout Plain Layout
13273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13285 \begin_layout Plain Layout
13291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13294 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13305 \begin_layout Plain Layout
13311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13314 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13332 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13361 \begin_layout Plain Layout
13367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13370 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13381 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13408 \begin_layout Plain Layout
13422 \begin_layout Standard
13423 For larger cross-tables one might use split cells in 2 or every corner of
13424 the table like in this example:
13427 \begin_layout Standard
13430 \begin_inset Tabular
13431 <lyxtabular version="3" rows="5" columns="5">
13432 <features rotate="0" tabularvalignment="middle">
13433 <column alignment="center" valignment="top" width="0pt">
13434 <column alignment="center" valignment="top">
13435 <column alignment="center" valignment="top">
13436 <column alignment="center" valignment="top">
13437 <column alignment="center" valignment="top">
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13446 \begin_layout Plain Layout
13459 \begin_layout Plain Layout
13470 \begin_layout Plain Layout
13481 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13514 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13523 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13540 \begin_layout Plain Layout
13551 \begin_layout Plain Layout
13562 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13579 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13588 \begin_layout Plain Layout
13594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13606 \begin_layout Plain Layout
13612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13615 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13626 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13673 \begin_layout Plain Layout
13679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13682 \begin_layout Plain Layout
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13724 \begin_layout Plain Layout
13737 \begin_layout Plain Layout
13748 \begin_layout Plain Layout
13759 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13774 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13783 \begin_layout Plain Layout
13789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13792 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13801 \begin_layout Plain Layout
13805 \begin_layout Plain Layout
13818 \begin_layout Plain Layout
13829 \begin_layout Plain Layout
13840 \begin_layout Plain Layout
13860 \begin_layout Standard
13861 To rotate the diagonal lines, the command option
13886 and represent a point of a compass.
13891 is for example the south-west corner.
13892 Thus in the lower left cell of the above table the command
13895 \begin_layout Standard
13900 diagbox[dir=SW]{Team home}{Result}{Team away}
13903 \begin_layout Standard
13905 If no direction is given, it will be NW.
13908 \begin_layout Standard
13909 The necessary width of split cells is automatically calculated.
13910 Thus if you set a fixed column width smaller than the calculated one, the
13911 cell's content will protrude the cell borders:
13914 \begin_layout Standard
13917 \begin_inset Tabular
13918 <lyxtabular version="3" rows="2" columns="2">
13919 <features rotate="0" tabularvalignment="middle">
13920 <column alignment="center" valignment="top" width="3cm">
13921 <column alignment="center" valignment="top">
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13930 \begin_layout Plain Layout
13943 \begin_layout Plain Layout
13954 \begin_layout Plain Layout
13966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13969 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13980 \begin_layout Plain Layout
13986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13989 \begin_layout Plain Layout
14003 \begin_layout Standard
14004 If you need a certain width for columns with a split cell, use the command
14009 (replace '3cm' by the width you need).
14010 In the following table the width of the first column is set to 4
14011 \begin_inset space \thinspace{}
14022 \begin_inset space \thinspace{}
14026 \begin_inset space \thinspace{}
14031 tabcolsep is necessary because the overall width is the width for the text
14032 (in this case the 4
14033 \begin_inset space \thinspace{}
14036 cm) plus two times the separation of the text and the cell border.
14037 The calculation of the width cannot be done in the command option of
14043 so one needs to create a new length which can be used later.
14044 This is done with the TeX-Code commands
14047 \begin_layout Standard
14055 \begin_inset Newline newline
14067 \begin_layout Standard
14071 \begin_layout Plain Layout
14080 \begin_layout Plain Layout
14096 \begin_layout Standard
14097 To enable calculations in LaTeX one needs to load the package
14102 \begin_inset Index idx
14105 \begin_layout Plain Layout
14106 LaTeX-packages ! calc
14111 in the document preamble.
14114 \begin_layout Standard
14115 In this table you can now use the command
14118 \begin_layout Standard
14128 \begin_layout Standard
14132 \begin_layout Standard
14135 \begin_inset Tabular
14136 <lyxtabular version="3" rows="2" columns="2">
14137 <features rotate="0" tabularvalignment="middle">
14138 <column alignment="center" valignment="top" width="4cm">
14139 <column alignment="center" valignment="top">
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14144 \begin_layout Plain Layout
14148 \begin_layout Plain Layout
14163 \begin_layout Plain Layout
14174 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14189 \begin_layout Plain Layout
14197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14209 \begin_layout Plain Layout
14223 \begin_layout Standard
14224 Note that the split cell needs to be the widest one in the column.
14225 Otherwise the length of the diagonal line cannot be calculated correctly
14226 like in this table:
14229 \begin_layout Standard
14232 \begin_inset Tabular
14233 <lyxtabular version="3" rows="2" columns="2">
14234 <features rotate="0" tabularvalignment="middle">
14235 <column alignment="center" valignment="top" width="0pt">
14236 <column alignment="center" valignment="top">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Plain Layout
14245 \begin_layout Plain Layout
14258 \begin_layout Plain Layout
14269 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14284 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14295 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14304 \begin_layout Plain Layout
14318 \begin_layout Standard
14319 In this case use the
14330 It is then not necessary to add 2
14332 tabcolsep because the cell width is now the width of the column.
14333 In this table a width of 3
14334 \begin_inset space \thinspace{}
14340 \begin_layout Standard
14343 \begin_inset Tabular
14344 <lyxtabular version="3" rows="2" columns="2">
14345 <features rotate="0" tabularvalignment="middle">
14346 <column alignment="center" valignment="top" width="0pt">
14347 <column alignment="center" valignment="top">
14349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14352 \begin_layout Plain Layout
14356 \begin_layout Plain Layout
14360 diagbox[width=3cm]{
14369 \begin_layout Plain Layout
14380 \begin_layout Plain Layout
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14395 \begin_layout Plain Layout
14403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14406 \begin_layout Plain Layout
14412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14415 \begin_layout Plain Layout
14429 \begin_layout Standard
14430 For multiple text lines in split cells one needs some extra height to fit
14431 the text to the cell.
14432 This can be achieved with the
14442 (replace '3cm' by the height you need).
14443 In the following table the command
14446 \begin_layout Standard
14451 diagbox[width=3cm,height=1.4cm]{A
14462 \begin_layout Standard
14463 is used in the first cell.
14472 creates hereby the line break.
14476 \begin_layout Plain Layout
14477 Breaking lines with
14481 is only possible when the column has a fixed width.
14489 \begin_layout Standard
14492 \begin_inset Tabular
14493 <lyxtabular version="3" rows="2" columns="2">
14494 <features rotate="0" tabularvalignment="middle">
14495 <column alignment="center" valignment="top">
14496 <column alignment="center" valignment="top">
14498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14501 \begin_layout Plain Layout
14505 \begin_layout Plain Layout
14509 diagbox[width=3cm,height=1.4cm]{
14518 \begin_layout Plain Layout
14533 \begin_layout Plain Layout
14544 \begin_layout Plain Layout
14559 \begin_layout Plain Layout
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14574 \begin_layout Plain Layout
14582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14585 \begin_layout Plain Layout
14591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14594 \begin_layout Plain Layout
14608 \begin_layout Standard
14612 \begin_layout Plain Layout
14622 \begin_inset Note Note
14625 \begin_layout Plain Layout
14626 The following will be displayed when the LaTeX-package
14638 \begin_layout Standard
14639 You need to install the LaTeX-package
14643 to see the following part of this section in the output.
14646 \begin_layout Standard
14650 \begin_layout Plain Layout
14662 \begin_layout Standard
14663 For more info about the LaTeX-package
14667 , see its documentation,
14668 \begin_inset CommandInset citation
14677 \begin_layout Section
14679 \begin_inset CommandInset label
14681 name "sec:Formal-Tables"
14686 \begin_inset Index idx
14689 \begin_layout Plain Layout
14698 \begin_layout Standard
14699 Tables are often typeset in books similar to Table
14700 \begin_inset space ~
14704 \begin_inset CommandInset ref
14706 reference "tab:Example-booktabs-table"
14711 This kind of tables is called
14712 \begin_inset Quotes eld
14720 \begin_inset Quotes erd
14724 To make a table a formal table use the option
14732 tab of the table dialog.
14735 \begin_layout Standard
14736 \begin_inset Float table
14742 \begin_layout Plain Layout
14743 \begin_inset Caption Standard
14745 \begin_layout Plain Layout
14746 \begin_inset CommandInset label
14748 name "tab:Example-booktabs-table"
14752 Example booktabs-table
14760 \begin_layout Plain Layout
14762 \begin_inset Tabular
14763 <lyxtabular version="3" rows="8" columns="4">
14764 <features rotate="0" booktabs="true" tabularvalignment="middle">
14765 <column alignment="center" valignment="top">
14766 <column alignment="center" valignment="top">
14767 <column alignment="center" valignment="top">
14768 <column alignment="center" valignment="top">
14770 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14773 \begin_layout Plain Layout
14779 <cell alignment="center" valignment="top" topline="true" usebox="none">
14782 \begin_layout Plain Layout
14784 \begin_inset space \thinspace{}
14792 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14795 \begin_layout Plain Layout
14797 \begin_inset space \thinspace{}
14805 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14808 \begin_layout Plain Layout
14816 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14819 \begin_layout Plain Layout
14823 \begin_layout Plain Layout
14836 \begin_layout Plain Layout
14845 Detector thickness in µm
14850 <cell alignment="center" valignment="top" usebox="none">
14853 \begin_layout Plain Layout
14859 <cell alignment="center" valignment="top" usebox="none">
14862 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" usebox="none">
14871 \begin_layout Plain Layout
14879 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14882 \begin_layout Plain Layout
14888 <cell alignment="center" valignment="top" topline="true" usebox="none">
14891 \begin_layout Plain Layout
14897 <cell alignment="center" valignment="top" topline="true" usebox="none">
14900 \begin_layout Plain Layout
14906 <cell alignment="center" valignment="top" topline="true" usebox="none">
14909 \begin_layout Plain Layout
14916 <row topspace="default">
14917 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14920 \begin_layout Plain Layout
14921 Spatial resolution in µm
14926 <cell alignment="center" valignment="top" usebox="none">
14929 \begin_layout Plain Layout
14935 <cell alignment="center" valignment="top" usebox="none">
14938 \begin_layout Plain Layout
14944 <cell alignment="center" valignment="top" usebox="none">
14947 \begin_layout Plain Layout
14954 <row topspace="default">
14955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14958 \begin_layout Plain Layout
14960 \begin_inset Formula $f_{\mathrm{max}}$
14968 <cell alignment="center" valignment="top" usebox="none">
14971 \begin_layout Plain Layout
14977 <cell alignment="center" valignment="top" usebox="none">
14980 \begin_layout Plain Layout
14986 <cell alignment="center" valignment="top" usebox="none">
14989 \begin_layout Plain Layout
14996 <row topspace="default">
14997 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15000 \begin_layout Plain Layout
15004 \begin_layout Plain Layout
15008 cmidrule(l{10pt}){1-1}
15013 LSF-spatial resolution
15018 <cell alignment="center" valignment="top" usebox="none">
15021 \begin_layout Plain Layout
15027 <cell alignment="center" valignment="top" usebox="none">
15030 \begin_layout Plain Layout
15036 <cell alignment="center" valignment="top" usebox="none">
15039 \begin_layout Plain Layout
15047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15050 \begin_layout Plain Layout
15056 <cell alignment="center" valignment="top" usebox="none">
15059 \begin_layout Plain Layout
15065 <cell alignment="center" valignment="top" usebox="none">
15068 \begin_layout Plain Layout
15074 <cell alignment="center" valignment="top" usebox="none">
15077 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15088 \begin_layout Plain Layout
15094 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15097 \begin_layout Plain Layout
15103 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15106 \begin_layout Plain Layout
15112 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15115 \begin_layout Plain Layout
15134 \begin_layout Standard
15135 Spaces to table rows can be added using the
15139 tab of the table dialog as described in section
15140 \begin_inset space ~
15144 \begin_inset CommandInset ref
15146 reference "sub:Row-Spacing"
15153 \begin_layout Standard
15154 Unlike normal tables, formal tables have no vertical table lines.
15155 The horizontal table lines can be set as for normal tables but they appear
15156 with different widths in the output:
15157 \begin_inset Newline newline
15160 The first and the last table line have a default width of 0.08
15161 \begin_inset space \thinspace{}
15164 em while the other lines have a default width of 0.05
15165 \begin_inset space \thinspace{}
15171 \begin_layout Standard
15172 The default widths can be changed with the following preamble lines
15175 \begin_layout Standard
15185 \begin_inset Newline newline
15197 \begin_layout Standard
15198 This example is for the first line, the so called
15203 If you want to change the width for the last line, replace
15212 To change the width for the other lines replace
15221 You can use all units listed in appendix
15222 \begin_inset space ~
15226 \begin_inset CommandInset ref
15228 reference "cha:Units-available-in"
15235 \begin_layout Standard
15236 Lines that do not span all table columns can be created by setting a table
15237 line for multicolumn cells.
15238 LyX will then internally use the command
15244 to create this line.
15248 \begin_layout Standard
15253 cmidrule[width](trim){startcol-endcol}
15256 \begin_layout Standard
15263 are currently not supported by LyX so you have to use TeX-Code to be able
15271 s can manually be created by inserting the command as TeX-Code as the first
15272 cell entry of the first cell of a row.
15273 The line is then drawn in the output above the current row.
15276 \begin_layout Standard
15277 The default for the width is 0.03
15278 \begin_inset space \thinspace{}
15282 Startcol is the number of the column where the line starts and endcol the
15283 column number where the line ends.
15284 The endcol always needs to be specified, also when the line should span
15286 The optional parameter trim could be either
15294 where the trimwidth is also optional.
15295 Using for example the parameter
15299 means that the line is trimmed from its left end by 2
15300 \begin_inset space \thinspace{}
15304 If you don't specify the trimwidth the lines are trimmed by the default
15306 \begin_inset space \thinspace{}
15312 \begin_layout Standard
15313 \begin_inset VSpace bigskip
15317 \begin_inset space ~
15321 \begin_inset CommandInset ref
15323 reference "tab:Example-booktabs-table"
15327 was created using the commands
15330 \begin_layout Standard
15340 \begin_layout Standard
15341 at the beginning of the second row and
15344 \begin_layout Standard
15349 cmidrule(l{10pt}){1-1}
15352 \begin_layout Standard
15356 \begin_layout Standard
15357 \begin_inset VSpace bigskip
15363 \begin_layout Standard
15364 You might want to have overlapping
15371 \begin_inset space ~
15375 \begin_inset CommandInset ref
15377 reference "tab:Special-booktabs-table"
15382 This can be achieved with the TeX-Code command
15385 \begin_layout Standard
15393 \begin_layout Standard
15394 The command that was used for the second row of Table
15395 \begin_inset space ~
15399 \begin_inset CommandInset ref
15401 reference "tab:Special-booktabs-table"
15408 \begin_layout Standard
15422 \begin_layout Standard
15423 The command for the sixth row is
15426 \begin_layout Standard
15438 \begin_layout Standard
15439 \begin_inset VSpace bigskip
15445 \begin_layout Standard
15446 If you are in any way not satisfied with the border line spacing, you can
15447 use the following command to produce lines that span over all table columns
15452 \begin_layout Standard
15457 specialrule{width}{space above}{space below}
15460 \begin_layout Standard
15461 For more information about these features, refer to the manual of the LaTeX-pack
15467 \begin_inset CommandInset citation
15474 \begin_inset Index idx
15477 \begin_layout Plain Layout
15478 LaTeX-packages ! booktabs
15486 \begin_layout Standard
15487 \begin_inset Float table
15493 \begin_layout Plain Layout
15494 \begin_inset Caption Standard
15496 \begin_layout Plain Layout
15497 \begin_inset CommandInset label
15499 name "tab:Special-booktabs-table"
15503 Special booktabs-table
15511 \begin_layout Plain Layout
15513 \begin_inset Tabular
15514 <lyxtabular version="3" rows="8" columns="4">
15515 <features rotate="0" booktabs="true" tabularvalignment="middle">
15516 <column alignment="center" valignment="top">
15517 <column alignment="center" valignment="top">
15518 <column alignment="center" valignment="top">
15519 <column alignment="center" valignment="top">
15521 <cell alignment="center" valignment="top" topline="true" usebox="none">
15524 \begin_layout Plain Layout
15530 <cell alignment="center" valignment="top" topline="true" usebox="none">
15533 \begin_layout Plain Layout
15535 \begin_inset space \thinspace{}
15543 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15546 \begin_layout Plain Layout
15548 \begin_inset space \thinspace{}
15556 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15559 \begin_layout Plain Layout
15567 <cell alignment="center" valignment="top" usebox="none">
15570 \begin_layout Plain Layout
15574 \begin_layout Plain Layout
15587 \begin_layout Plain Layout
15600 \begin_layout Plain Layout
15613 \begin_layout Plain Layout
15622 Detector thickness in µm
15627 <cell alignment="center" valignment="top" usebox="none">
15630 \begin_layout Plain Layout
15636 <cell alignment="center" valignment="top" usebox="none">
15639 \begin_layout Plain Layout
15645 <cell alignment="center" valignment="top" usebox="none">
15648 \begin_layout Plain Layout
15656 <cell alignment="center" valignment="top" topline="true" usebox="none">
15659 \begin_layout Plain Layout
15665 <cell alignment="center" valignment="top" topline="true" usebox="none">
15668 \begin_layout Plain Layout
15674 <cell alignment="center" valignment="top" topline="true" usebox="none">
15677 \begin_layout Plain Layout
15683 <cell alignment="center" valignment="top" topline="true" usebox="none">
15686 \begin_layout Plain Layout
15693 <row topspace="default">
15694 <cell alignment="center" valignment="top" usebox="none">
15697 \begin_layout Plain Layout
15698 Spatial resolution in µm
15703 <cell alignment="center" valignment="top" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" usebox="none">
15715 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" usebox="none">
15724 \begin_layout Plain Layout
15731 <row topspace="default">
15732 <cell alignment="center" valignment="top" usebox="none">
15735 \begin_layout Plain Layout
15737 \begin_inset Formula $f_{\mathrm{max}}$
15745 <cell alignment="center" valignment="top" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" usebox="none">
15757 \begin_layout Plain Layout
15763 <cell alignment="center" valignment="top" usebox="none">
15766 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" topline="true" usebox="none">
15777 \begin_layout Plain Layout
15781 \begin_layout Plain Layout
15794 \begin_layout Plain Layout
15803 LSF-spatial resolution
15808 <cell alignment="center" valignment="top" topline="true" usebox="none">
15811 \begin_layout Plain Layout
15817 <cell alignment="center" valignment="top" topline="true" usebox="none">
15820 \begin_layout Plain Layout
15826 <cell alignment="center" valignment="top" topline="true" usebox="none">
15829 \begin_layout Plain Layout
15837 <cell alignment="center" valignment="top" usebox="none">
15840 \begin_layout Plain Layout
15846 <cell alignment="center" valignment="top" usebox="none">
15849 \begin_layout Plain Layout
15855 <cell alignment="center" valignment="top" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" usebox="none">
15867 \begin_layout Plain Layout
15875 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15878 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15887 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15896 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15905 \begin_layout Plain Layout
15924 \begin_layout Section
15925 Vertical Table Alignment
15926 \begin_inset Index idx
15929 \begin_layout Plain Layout
15938 \begin_layout Standard
15939 To align tables vertically in a text line, the table must be inside a box.
15940 The box can then be vertically aligned as described in section
15941 \begin_inset space ~
15945 \begin_inset CommandInset ref
15947 reference "sec:Box-Dialog"
15954 \begin_layout Standard
15955 In the following example the tables are inside a minipage
15959 \begin_layout Plain Layout
15960 Minipages are described in section
15961 \begin_inset space ~
15965 \begin_inset CommandInset ref
15967 reference "sec:Minipages"
15976 box that has a width of 15
15977 \begin_inset space \thinspace{}
15983 \begin_layout Itemize
15985 \begin_inset Box Frameless
15995 height_special "totalheight"
15998 \begin_layout Plain Layout
15999 \begin_inset Tabular
16000 <lyxtabular version="3" rows="3" columns="3">
16001 <features rotate="0" tabularvalignment="middle">
16002 <column alignment="center" valignment="top">
16003 <column alignment="center" valignment="top">
16004 <column alignment="center" valignment="top">
16006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16009 \begin_layout Plain Layout
16015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16018 \begin_layout Plain Layout
16024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16027 \begin_layout Plain Layout
16035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16038 \begin_layout Plain Layout
16044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16047 \begin_layout Plain Layout
16053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16056 \begin_layout Plain Layout
16064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16067 \begin_layout Plain Layout
16073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16076 \begin_layout Plain Layout
16082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16085 \begin_layout Plain Layout
16105 \begin_layout Plain Layout
16117 \begin_inset Box Frameless
16127 height_special "totalheight"
16130 \begin_layout Plain Layout
16131 \begin_inset Tabular
16132 <lyxtabular version="3" rows="3" columns="3">
16133 <features rotate="0" tabularvalignment="middle">
16134 <column alignment="center" valignment="top">
16135 <column alignment="center" valignment="top">
16136 <column alignment="center" valignment="top">
16138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16141 \begin_layout Plain Layout
16147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16150 \begin_layout Plain Layout
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Plain Layout
16167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16170 \begin_layout Plain Layout
16176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16179 \begin_layout Plain Layout
16185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16188 \begin_layout Plain Layout
16196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16199 \begin_layout Plain Layout
16205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16208 \begin_layout Plain Layout
16214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16217 \begin_layout Plain Layout
16237 \begin_layout Plain Layout
16247 \begin_layout Itemize
16249 \begin_inset Box Frameless
16259 height_special "totalheight"
16262 \begin_layout Plain Layout
16263 \begin_inset Tabular
16264 <lyxtabular version="3" rows="3" columns="3">
16265 <features rotate="0" tabularvalignment="middle">
16266 <column alignment="center" valignment="top">
16267 <column alignment="center" valignment="top">
16268 <column alignment="center" valignment="top">
16270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16273 \begin_layout Plain Layout
16279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16282 \begin_layout Plain Layout
16288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16291 \begin_layout Plain Layout
16299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16302 \begin_layout Plain Layout
16308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16311 \begin_layout Plain Layout
16317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16320 \begin_layout Plain Layout
16328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16331 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16340 \begin_layout Plain Layout
16346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16349 \begin_layout Plain Layout
16368 \begin_layout Itemize
16370 \begin_inset Box Frameless
16380 height_special "totalheight"
16383 \begin_layout Plain Layout
16384 \begin_inset Tabular
16385 <lyxtabular version="3" rows="3" columns="3">
16386 <features rotate="0" tabularvalignment="middle">
16387 <column alignment="center" valignment="top">
16388 <column alignment="center" valignment="top">
16389 <column alignment="center" valignment="top">
16391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16394 \begin_layout Plain Layout
16400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16403 \begin_layout Plain Layout
16409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16412 \begin_layout Plain Layout
16420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16423 \begin_layout Plain Layout
16429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16432 \begin_layout Plain Layout
16438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16441 \begin_layout Plain Layout
16449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16452 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16461 \begin_layout Plain Layout
16467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16470 \begin_layout Plain Layout
16490 \begin_layout Plain Layout
16502 \begin_inset Box Frameless
16512 height_special "totalheight"
16515 \begin_layout Plain Layout
16516 \begin_inset Tabular
16517 <lyxtabular version="3" rows="3" columns="3">
16518 <features rotate="0" tabularvalignment="middle">
16519 <column alignment="center" valignment="top">
16520 <column alignment="center" valignment="top">
16521 <column alignment="center" valignment="top">
16523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16526 \begin_layout Plain Layout
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16535 \begin_layout Plain Layout
16541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Plain Layout
16552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16555 \begin_layout Plain Layout
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16564 \begin_layout Plain Layout
16570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Plain Layout
16581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16593 \begin_layout Plain Layout
16599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16602 \begin_layout Plain Layout
16622 \begin_layout Plain Layout
16632 \begin_layout Standard
16633 As you will see, the content of the first and last table row is not correctly
16635 To get this alignment, the minipage box must be set into a raisebox
16639 \begin_layout Plain Layout
16640 Raiseboxes are described in section
16641 \begin_inset space ~
16645 \begin_inset CommandInset ref
16647 reference "sub:Vertical-Alignment"
16657 In the example above the second table in the first item is aligned using
16658 the TeX-Code-command
16661 \begin_layout Standard
16671 \begin_layout Standard
16673 After the box the closing brace
16677 is inserted as TeX-Code.
16678 For the second table in the last item the command
16681 \begin_layout Standard
16691 \begin_layout Standard
16695 \begin_layout Standard
16696 \begin_inset Note Greyedout
16699 \begin_layout Plain Layout
16704 The alignment of the table row content to the surrounding text line is
16706 The required value for the
16712 command for this alignment depends on the document font, the font size,
16713 and the table line thickness.
16721 \begin_layout Section
16723 \begin_inset CommandInset label
16725 name "sec:Colored-Tables"
16730 \begin_inset Index idx
16733 \begin_layout Plain Layout
16742 \begin_layout Subsection
16744 \begin_inset Index idx
16747 \begin_layout Plain Layout
16748 Table Color ! for Cells
16754 \begin_inset Index idx
16757 \begin_layout Plain Layout
16758 Color ! for Table Cells
16766 \begin_layout Standard
16767 \begin_inset Float table
16773 \begin_layout Plain Layout
16774 \begin_inset Caption Standard
16776 \begin_layout Plain Layout
16777 \begin_inset CommandInset label
16779 name "tab:Table-colored-without"
16783 Table colored without using the package
16788 \begin_inset Argument 1
16791 \begin_layout Plain Layout
16792 Table without colortbl
16805 \begin_layout Plain Layout
16807 \begin_inset Tabular
16808 <lyxtabular version="3" rows="3" columns="3">
16809 <features rotate="0" tabularvalignment="middle">
16810 <column alignment="center" valignment="top">
16811 <column alignment="center" valignment="top">
16812 <column alignment="center" valignment="top">
16814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16817 \begin_layout Plain Layout
16825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16828 \begin_layout Plain Layout
16836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16839 \begin_layout Plain Layout
16849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16852 \begin_layout Plain Layout
16860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16863 \begin_layout Plain Layout
16871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16874 \begin_layout Plain Layout
16884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16887 \begin_layout Plain Layout
16895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16898 \begin_layout Plain Layout
16906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16909 \begin_layout Plain Layout
16930 \begin_layout Standard
16931 If you only need colored text, mark the cells and choose a color in the
16935 \begin_inset space ~
16940 dialog (toolbar button
16943 arg "dialog-show character"
16947 This was used to create Table
16948 \begin_inset space ~
16952 \begin_inset CommandInset ref
16954 reference "tab:Table-colored-without"
16959 In any other case you have to use the LaTeX-package
16964 \begin_inset Index idx
16967 \begin_layout Plain Layout
16968 LaTeX-packages ! colortbl
16976 \begin_layout Standard
16980 \begin_layout Plain Layout
16990 \begin_inset Note Note
16993 \begin_layout Plain Layout
16994 The following section part will only be displayed when the LaTeX-package
17007 \begin_layout Standard
17008 To create colored tables,
17012 must be loaded in the preamble with the line
17015 \begin_layout Standard
17020 usepackage{colortbl}
17023 \begin_layout Standard
17024 The color of a column is adjusted with the command
17027 \begin_layout Standard
17032 columncolor{name of color}
17035 \begin_layout Standard
17041 More about the command
17045 is contained in section
17046 \begin_inset space ~
17050 \begin_inset CommandInset ref
17052 reference "sub:Multicolumn-Calculations"
17059 \begin_layout Standard
17060 The following color names are predefined:
17063 \begin_layout Standard
17097 \begin_layout Standard
17098 \begin_inset VSpace medskip
17104 \begin_layout Standard
17105 If you add the options
17108 \begin_layout Standard
17111 usenames,dvipsnames
17114 \begin_layout Standard
17115 to the document class options in the document settings, you can additionally
17117 \begin_inset space ~
17121 These colors are listed in appendix
17122 \begin_inset space ~
17126 \begin_inset CommandInset ref
17128 reference "chap:List-of-dvips-colornames"
17133 One of these colors,
17137 , is used as example in Table
17138 \begin_inset space ~
17142 \begin_inset CommandInset ref
17144 reference "tab:Table-colored-using"
17151 \begin_layout Standard
17152 \begin_inset VSpace medskip
17158 \begin_layout Standard
17159 You can also define your own color with the command
17162 \begin_layout Standard
17167 definecolor{color name}{color model}{color values}
17170 \begin_layout Standard
17171 The color model can be
17174 \begin_layout Labeling
17175 \labelwidthstring 00.00.0000
17176 cmyk: cyan, magenta, yellow, black
17179 \begin_layout Labeling
17180 \labelwidthstring 00.00.0000
17181 rgb: red, green blue
17184 \begin_layout Labeling
17185 \labelwidthstring 00.00.0000
17189 \begin_layout Standard
17190 and the color values are comma separated numbers between 0 and 1 describing
17191 the factor for the corresponding color of the color model.
17194 \begin_layout Standard
17196 \begin_inset space \thinspace{}
17200 \begin_inset space \space{}
17207 " in the preamble with
17210 \begin_layout Standard
17215 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17218 \begin_layout Standard
17226 \begin_layout Standard
17231 definecolor{lightgray}{gray}{0.8}
17234 \begin_layout Standard
17235 \begin_inset VSpace medskip
17241 \begin_layout Standard
17242 Lines are colored with the command
17245 \begin_layout Standard
17250 rowcolor{name of color}
17253 \begin_layout Standard
17254 and cells are colored with the command
17257 \begin_layout Standard
17262 cellcolor{name of color}
17265 \begin_layout Standard
17266 Both commands are inserted at the beginning of a cell as TeX-Code.
17269 \begin_layout Standard
17270 To color characters in the table, mark the cells and use the
17273 \begin_inset space ~
17279 If a cell contains TeX-Code mark only the characters, otherwise the colored
17280 TeX-Code will cause LaTeX-errors.
17283 \begin_layout Standard
17284 \begin_inset Note Greyedout
17287 \begin_layout Plain Layout
17292 Not all DVI-viewers are able to display self-defined colors.
17300 \begin_layout Standard
17301 \begin_inset VSpace bigskip
17307 \begin_layout Standard
17309 \begin_inset space ~
17313 \begin_inset CommandInset ref
17315 reference "tab:Table-colored-using"
17319 do the following: The color of the first column should be
17327 \begin_layout Standard
17332 columncolor{darkgreen}
17337 \begin_layout Standard
17338 as LaTeX-argument for this column.
17339 The first row should be light blue, therefore the TeX-Code command
17342 \begin_layout Standard
17350 \begin_layout Standard
17351 is inserted to the first cell of this row.
17352 Note that this overwrites the column color for the first cell.
17353 The last cell of the last row is colored maroon by inserting the TeX-Code
17357 \begin_layout Standard
17365 \begin_layout Standard
17366 The characters could now be colored using the menu
17368 Edit\SpecialChar \menuseparator
17370 \begin_inset space ~
17378 \begin_layout Standard
17379 \begin_inset Float table
17385 \begin_layout Plain Layout
17386 \begin_inset Caption Standard
17388 \begin_layout Plain Layout
17389 \begin_inset CommandInset label
17391 name "tab:Table-colored-using"
17395 Table colored using the package
17400 \begin_inset Argument 1
17403 \begin_layout Plain Layout
17404 Table with colortbl
17417 \begin_layout Plain Layout
17419 \begin_inset Tabular
17420 <lyxtabular version="3" rows="3" columns="3">
17421 <features rotate="0" tabularvalignment="middle">
17422 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17423 <column alignment="center" valignment="top">
17424 <column alignment="center" valignment="top">
17426 <cell alignment="center" valignment="top" usebox="none">
17429 \begin_layout Plain Layout
17433 \begin_layout Plain Layout
17449 <cell alignment="center" valignment="top" usebox="none">
17452 \begin_layout Plain Layout
17460 <cell alignment="center" valignment="top" usebox="none">
17463 \begin_layout Plain Layout
17473 <cell alignment="center" valignment="top" usebox="none">
17476 \begin_layout Plain Layout
17484 <cell alignment="center" valignment="top" usebox="none">
17487 \begin_layout Plain Layout
17495 <cell alignment="center" valignment="top" usebox="none">
17498 \begin_layout Plain Layout
17508 <cell alignment="center" valignment="top" usebox="none">
17511 \begin_layout Plain Layout
17519 <cell alignment="center" valignment="top" usebox="none">
17522 \begin_layout Plain Layout
17530 <cell alignment="center" valignment="top" usebox="none">
17533 \begin_layout Plain Layout
17537 \begin_layout Plain Layout
17566 \begin_layout Standard
17570 \begin_layout Plain Layout
17580 \begin_inset Note Note
17583 \begin_layout Plain Layout
17584 The following will be displayed when the LaTeX-package
17596 \begin_layout Standard
17597 You need to install the package
17601 to see the content of this section in the output.
17604 \begin_layout Standard
17608 \begin_layout Plain Layout
17620 \begin_layout Subsection
17622 \begin_inset Index idx
17625 \begin_layout Plain Layout
17626 Table Color ! for Rows
17632 \begin_inset Index idx
17635 \begin_layout Plain Layout
17636 Color ! for Table Rows
17644 \begin_layout Standard
17645 In case every second table row needs to be colored there is an alternative
17646 to the method described in the previous section: One loads the package
17652 \begin_inset Index idx
17655 \begin_layout Plain Layout
17656 LaTeX-packages ! xcolor
17660 \begin_layout Plain Layout
17674 in the document preamble with the command
17677 \begin_layout Standard
17682 usepackage[table]{xcolor}
17685 \begin_layout Standard
17690 automatically loads also the package
17695 \begin_inset Index idx
17698 \begin_layout Plain Layout
17699 LaTeX-packages ! colortbl
17708 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17711 \begin_layout Standard
17715 \begin_layout Plain Layout
17725 \begin_inset Note Note
17728 \begin_layout Plain Layout
17729 The following section part will only be displayed when the LaTeX-package
17742 \begin_layout Standard
17743 The table rows are colored with the command
17746 \begin_layout Standard
17751 rowcolors[commands]{row number}{odd row color}{even row color}
17754 \begin_layout Standard
17755 that is either inserted in the document preamble or as TeX-Code before the
17756 first table to be colored.
17758 \begin_inset space ~
17761 number is the number of the first row which should be colored according
17762 to the odd row color.
17763 commands can be additional commands that are executed before every table
17765 So for example the command
17768 \begin_layout Standard
17773 rowcolors{1}{white}{lightgray}
17776 \begin_layout Standard
17777 leads to the coloring scheme of Table
17778 \begin_inset space ~
17782 \begin_inset CommandInset ref
17784 reference "tab:Table-rowcolors"
17792 \begin_layout Standard
17799 hline]{1}{lightgray}{cyan}
17802 \begin_layout Standard
17803 leads to the coloring scheme of Table
17804 \begin_inset space ~
17808 \begin_inset CommandInset ref
17810 reference "tab:Table-rowcolors-2"
17816 \begin_inset space ~
17820 \begin_inset space ~
17824 \begin_inset space ~
17828 \begin_inset space ~
17831 color are left empty, no color will be used so that the command
17834 \begin_layout Standard
17842 \begin_layout Standard
17843 deletes all colors.
17850 affects all tables following that command.
17853 \begin_layout Standard
17857 \begin_layout Plain Layout
17861 rowcolors{1}{white}{lightgray}
17869 \begin_layout Standard
17870 \begin_inset Float table
17876 \begin_layout Plain Layout
17877 \begin_inset Caption Standard
17879 \begin_layout Plain Layout
17880 \begin_inset CommandInset label
17882 name "tab:Table-rowcolors"
17886 Table where every second row is colored light gray.
17894 \begin_layout Plain Layout
17896 \begin_inset Tabular
17897 <lyxtabular version="3" rows="4" columns="3">
17898 <features rotate="0" tabularvalignment="middle">
17899 <column alignment="center" valignment="top">
17900 <column alignment="center" valignment="top" width="0pt">
17901 <column alignment="center" valignment="top" width="0pt">
17903 <cell alignment="center" valignment="top" usebox="none">
17906 \begin_layout Plain Layout
17912 <cell alignment="center" valignment="top" usebox="none">
17915 \begin_layout Plain Layout
17921 <cell alignment="center" valignment="top" usebox="none">
17924 \begin_layout Plain Layout
17932 <cell alignment="center" valignment="top" usebox="none">
17935 \begin_layout Plain Layout
17941 <cell alignment="center" valignment="top" usebox="none">
17944 \begin_layout Plain Layout
17950 <cell alignment="center" valignment="top" usebox="none">
17953 \begin_layout Plain Layout
17961 <cell alignment="center" valignment="top" usebox="none">
17964 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" usebox="none">
17973 \begin_layout Plain Layout
17979 <cell alignment="center" valignment="top" usebox="none">
17982 \begin_layout Plain Layout
17990 <cell alignment="center" valignment="top" usebox="none">
17993 \begin_layout Plain Layout
17999 <cell alignment="center" valignment="top" usebox="none">
18002 \begin_layout Plain Layout
18008 <cell alignment="center" valignment="top" usebox="none">
18011 \begin_layout Plain Layout
18030 \begin_layout Standard
18034 \begin_layout Plain Layout
18040 hline]{1}{lightgray}{cyan}
18048 \begin_layout Standard
18049 \begin_inset Float table
18055 \begin_layout Plain Layout
18056 \begin_inset Caption Standard
18058 \begin_layout Plain Layout
18059 \begin_inset CommandInset label
18061 name "tab:Table-rowcolors-2"
18065 Table where every second row is colored cyan and at which there is a line
18074 \begin_layout Plain Layout
18076 \begin_inset Tabular
18077 <lyxtabular version="3" rows="4" columns="3">
18078 <features rotate="0" tabularvalignment="middle">
18079 <column alignment="center" valignment="top">
18080 <column alignment="center" valignment="top">
18081 <column alignment="center" valignment="top" width="0pt">
18083 <cell alignment="center" valignment="top" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" usebox="none">
18095 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" usebox="none">
18104 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" usebox="none">
18133 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" usebox="none">
18162 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" usebox="none">
18182 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" usebox="none">
18191 \begin_layout Plain Layout
18210 \begin_layout Standard
18214 \begin_layout Plain Layout
18224 \begin_inset Note Note
18227 \begin_layout Plain Layout
18228 turns off the row coloring
18236 \begin_layout Standard
18240 \begin_layout Plain Layout
18250 \begin_inset Note Note
18253 \begin_layout Plain Layout
18254 The following will be displayed when the LaTeX-package
18266 \begin_layout Standard
18267 You need to install the package
18271 to see the content of this section in the output.
18274 \begin_layout Standard
18278 \begin_layout Plain Layout
18290 \begin_layout Subsection
18292 \begin_inset Index idx
18295 \begin_layout Plain Layout
18296 Table Color ! for Lines
18302 \begin_inset Index idx
18305 \begin_layout Plain Layout
18306 Color ! for Table Lines
18314 \begin_layout Standard
18315 As described in section
18316 \begin_inset space ~
18320 \begin_inset CommandInset ref
18322 reference "sub:Line-Thickness"
18326 , the line thickness for all lines in a table can be adjusted with the length
18335 \begin_inset space \thinspace{}
18338 pt for all tables of this section.
18342 \begin_layout Plain Layout
18348 arrayrulewidth}{1.5pt}
18356 \begin_layout Standard
18357 To color vertical lines for example with green, create the following column
18358 format in the document preamble, according to the description in section
18359 \begin_inset space ~
18363 \begin_inset CommandInset ref
18365 reference "sub:Customized-Format"
18372 \begin_layout Standard
18377 newcolumntype{W}{!{
18384 \begin_layout Standard
18386 \begin_inset space ~
18390 \begin_inset CommandInset ref
18392 reference "tab:Table-with-vertical-colored"
18400 was used for the last column and
18404 for the other columns.
18407 \begin_layout Standard
18408 If you want to have several colors, define more column formats.
18411 \begin_layout Standard
18412 \begin_inset Float table
18418 \begin_layout Plain Layout
18419 \begin_inset Caption Standard
18421 \begin_layout Plain Layout
18422 \begin_inset CommandInset label
18424 name "tab:Table-with-vertical-colored"
18428 Table with colored vertical lines
18436 \begin_layout Plain Layout
18438 \begin_inset Tabular
18439 <lyxtabular version="3" rows="3" columns="3">
18440 <features rotate="0" tabularvalignment="middle">
18441 <column alignment="center" valignment="top" special="Wc">
18442 <column alignment="center" valignment="top" special="Wc">
18443 <column alignment="center" valignment="top" special="WcW">
18445 <cell alignment="center" valignment="top" topline="true" usebox="none">
18448 \begin_layout Plain Layout
18454 <cell alignment="center" valignment="top" topline="true" usebox="none">
18457 \begin_layout Plain Layout
18463 <cell alignment="center" valignment="top" topline="true" usebox="none">
18466 \begin_layout Plain Layout
18474 <cell alignment="center" valignment="top" topline="true" usebox="none">
18477 \begin_layout Plain Layout
18483 <cell alignment="center" valignment="top" topline="true" usebox="none">
18486 \begin_layout Plain Layout
18492 <cell alignment="center" valignment="top" topline="true" usebox="none">
18495 \begin_layout Plain Layout
18503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18506 \begin_layout Plain Layout
18512 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18515 \begin_layout Plain Layout
18521 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18524 \begin_layout Plain Layout
18543 \begin_layout Standard
18544 \begin_inset VSpace bigskip
18547 To color horizontal lines for example with red, as in Table
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "tab:Table-with-horizontal-colored"
18558 , insert these commands in TeX-Code before the table or table float:
18561 \begin_layout Standard
18571 \begin_inset Newline newline
18579 \begin_inset Newline newline
18583 \begin_inset Phantom HPhantom
18586 \begin_layout Plain Layout
18589 \begin_inset space ~
18599 arrayrulecolor{red}
18603 arrayrulecolor{black}}
18606 \begin_layout Standard
18610 \begin_layout Plain Layout
18621 \begin_layout Plain Layout
18630 \begin_layout Plain Layout
18634 arrayrulecolor{red}
18638 arrayrulecolor{black}}
18644 \begin_inset Float table
18650 \begin_layout Plain Layout
18651 \begin_inset Caption Standard
18653 \begin_layout Plain Layout
18654 \begin_inset CommandInset label
18656 name "tab:Table-with-horizontal-colored"
18660 Table with colored horizontal lines
18668 \begin_layout Plain Layout
18670 \begin_inset Tabular
18671 <lyxtabular version="3" rows="3" columns="3">
18672 <features rotate="0" tabularvalignment="middle">
18673 <column alignment="center" valignment="top">
18674 <column alignment="center" valignment="top">
18675 <column alignment="center" valignment="top">
18677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18680 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18689 \begin_layout Plain Layout
18695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18698 \begin_layout Plain Layout
18706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18709 \begin_layout Plain Layout
18715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18718 \begin_layout Plain Layout
18724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18727 \begin_layout Plain Layout
18735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18738 \begin_layout Plain Layout
18744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18747 \begin_layout Plain Layout
18753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18756 \begin_layout Plain Layout
18775 \begin_layout Standard
18776 To return to the default line color black, insert this command in TeX-Code
18777 after the table or table float:
18780 \begin_layout Standard
18792 \begin_layout Standard
18794 \begin_inset space ~
18798 \begin_inset CommandInset ref
18800 reference "tab:Table-with-colored"
18804 is an example with colored vertical and horizontal lines.
18807 \begin_layout Standard
18808 \begin_inset Float table
18814 \begin_layout Plain Layout
18815 \begin_inset Caption Standard
18817 \begin_layout Plain Layout
18818 \begin_inset CommandInset label
18820 name "tab:Table-with-colored"
18824 Table with colored lines
18832 \begin_layout Plain Layout
18834 \begin_inset Tabular
18835 <lyxtabular version="3" rows="3" columns="3">
18836 <features rotate="0" tabularvalignment="middle">
18837 <column alignment="center" valignment="top" special="Wc">
18838 <column alignment="center" valignment="top" special="Wc">
18839 <column alignment="center" valignment="top" special="WcW">
18841 <cell alignment="center" valignment="top" topline="true" usebox="none">
18844 \begin_layout Plain Layout
18850 <cell alignment="center" valignment="top" topline="true" usebox="none">
18853 \begin_layout Plain Layout
18859 <cell alignment="center" valignment="top" topline="true" usebox="none">
18862 \begin_layout Plain Layout
18870 <cell alignment="center" valignment="top" topline="true" usebox="none">
18873 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" usebox="none">
18882 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" usebox="none">
18891 \begin_layout Plain Layout
18898 <row topspace="default">
18899 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18902 \begin_layout Plain Layout
18908 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18911 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18920 \begin_layout Plain Layout
18939 \begin_layout Standard
18943 \begin_layout Plain Layout
18959 \begin_layout Standard
18963 \begin_layout Plain Layout
18969 arrayrulewidth}{0.4pt}
18977 \begin_layout Section
18978 Rotated Table Cells
18979 \begin_inset CommandInset label
18981 name "sec:Rotated-Table-Cells"
18986 \begin_inset Index idx
18989 \begin_layout Plain Layout
18990 Table ! Rotated Cells
18996 \begin_inset Index idx
18999 \begin_layout Plain Layout
19008 \begin_layout Standard
19009 \begin_inset Note Greyedout
19012 \begin_layout Plain Layout
19017 Not all DVI-viewers are able to display rotations.
19025 \begin_layout Standard
19026 Currently LyX only offers to rotate table cells by 90
19027 \begin_inset space \thinspace{}
19030 ° counter-clockwise.
19031 To rotate cells by an angle of your choice, you have to add this to the
19035 \begin_layout Standard
19040 @ifundefined{turnbox}{
19042 usepackage{rotating}}{}
19045 \begin_layout Standard
19046 In the table cell that should be rotated, add at the beginning this command
19050 \begin_layout Standard
19058 \begin_layout Standard
19059 where angle is the rotation angle in °.
19060 At the end of the cell the command
19063 \begin_layout Standard
19071 \begin_layout Standard
19072 is inserted as TeX-code.
19075 \begin_layout Standard
19077 \begin_inset space ~
19081 \begin_inset CommandInset ref
19083 reference "tab:Table-with-rotated-multi"
19087 is an example where 3
19088 \begin_inset space ~
19091 cells were rotated by 45
19092 \begin_inset space \thinspace{}
19098 \begin_layout Standard
19099 \begin_inset Float table
19104 \begin_layout Plain Layout
19105 \begin_inset Caption Standard
19107 \begin_layout Plain Layout
19108 \begin_inset CommandInset label
19110 name "tab:Table-with-rotated"
19114 Table with rotated cells in the first row.
19122 \begin_layout Plain Layout
19125 \begin_inset Tabular
19126 <lyxtabular version="3" rows="2" columns="3">
19127 <features rotate="0" tabularvalignment="middle">
19128 <column alignment="center" valignment="top">
19129 <column alignment="center" valignment="top" width="0pt">
19130 <column alignment="center" valignment="top">
19132 <cell alignment="center" valignment="top" usebox="none">
19135 \begin_layout Plain Layout
19139 \begin_layout Plain Layout
19152 \begin_layout Plain Layout
19166 <cell alignment="center" valignment="top" usebox="none">
19169 \begin_layout Plain Layout
19173 \begin_layout Plain Layout
19186 \begin_layout Plain Layout
19200 <cell alignment="center" valignment="top" usebox="none">
19203 \begin_layout Plain Layout
19207 \begin_layout Plain Layout
19220 \begin_layout Plain Layout
19236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19239 \begin_layout Plain Layout
19245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19248 \begin_layout Plain Layout
19254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19257 \begin_layout Plain Layout
19276 \begin_layout Standard
19277 \begin_inset Note Greyedout
19280 \begin_layout Plain Layout
19285 Line breaks (shortcut
19288 arg "newline-insert newline"
19291 ) are not allowed in rotated cells.
19299 \begin_layout Standard
19300 If you want to rotate table cells containing line breaks, you have to put
19301 the cell content into a minipage or a parbox.
19305 \begin_layout Plain Layout
19306 For more about these boxes see sec.
19307 \begin_inset space \thinspace{}
19311 \begin_inset CommandInset ref
19313 reference "sec:Minipages"
19318 \begin_inset CommandInset ref
19320 reference "sec:Parboxes"
19329 If you rotate this cell by 90
19330 \begin_inset space \thinspace{}
19333 ° the width of the box is the height of the cell.
19335 \begin_inset space ~
19339 \begin_inset CommandInset ref
19341 reference "tab:Table-with-rotated-multi"
19345 is an example for a rotated multiline cell where the box width was set
19347 \begin_inset space \thinspace{}
19353 \begin_layout Standard
19354 \begin_inset Float table
19359 \begin_layout Plain Layout
19360 \begin_inset Caption Standard
19362 \begin_layout Plain Layout
19363 \begin_inset CommandInset label
19365 name "tab:Table-with-rotated-multi"
19369 Table with rotated multiline cell.
19377 \begin_layout Plain Layout
19380 \begin_inset Tabular
19381 <lyxtabular version="3" rows="2" columns="3">
19382 <features rotate="0" tabularvalignment="middle">
19383 <column alignment="center" valignment="top">
19384 <column alignment="center" valignment="top" width="0pt">
19385 <column alignment="center" valignment="top">
19387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19390 \begin_layout Plain Layout
19396 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19399 \begin_layout Plain Layout
19400 \begin_inset Box Frameless
19410 height_special "totalheight"
19413 \begin_layout Plain Layout
19415 \begin_inset Newline newline
19428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19431 \begin_layout Plain Layout
19439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19442 \begin_layout Plain Layout
19448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19451 \begin_layout Plain Layout
19457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19460 \begin_layout Plain Layout
19479 \begin_layout Section
19480 Table Width Calculation
19481 \begin_inset CommandInset label
19483 name "sec:Table-Width-Calculation"
19490 \begin_layout Standard
19491 For wide tables it is sometimes difficult to assure that the table does
19492 not protrude over the page margin.
19493 Setting a fixed width for every column of the table is the solution, but
19494 what amount of space is needed for each column?
19497 \begin_layout Standard
19499 \begin_inset Formula $W_{\mathrm{table}}$
19502 can be calculated: Every column has the width of the specified column width
19504 \begin_inset Formula $W_{\mathrm{column}}$
19507 (that the content of the column can consume) plus two times the separation
19508 between the column content and the column border (LaTeX length
19515 \begin_inset space \thinspace{}
19518 pt) plus the width of a border line (LaTeX length
19525 \begin_inset space \thinspace{}
19529 \begin_inset Formula $n$
19533 \begin_inset space ~
19536 columns have the same width, the table width is
19537 \begin_inset Formula
19539 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19547 \begin_layout Standard
19548 The available width for a table is the space between the page margins or
19549 the width of a text column (for a two-column document) (LaTeX length
19556 If all table columns should have the same width and
19557 \begin_inset Formula $W_{\mathrm{table}}$
19561 \begin_inset space \thinspace{}
19567 \begin_inset Formula $W_{\mathrm{column}}$
19570 can easily be calculated.
19573 \begin_layout Standard
19574 To be able to perform calculations you need to load the LaTeX-package
19579 \begin_inset Index idx
19582 \begin_layout Plain Layout
19583 LaTeX-packages ! calc
19588 in the document preamble.
19589 To set the width in the table dialog you have to use the field
19594 The command scheme for this field is the same that is explained in section
19595 \begin_inset space ~
19599 \begin_inset CommandInset ref
19601 reference "sub:Multicolumn-Calculations"
19607 \begin_inset space \thinspace{}
19610 columns with an uniform width and centered text, enter there for each column
19614 \begin_layout Standard
19621 columnwidth-62.4pt)/5}
19624 \begin_layout Standard
19626 \begin_inset space \thinspace{}
19629 columns where 2 should have 0.75
19630 \begin_inset space ~
19633 times the width than the 3 others, the calculation is
19634 \begin_inset Formula
19636 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19637 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19638 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19639 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19647 \begin_layout Standard
19648 In the table therefore the command
19651 \begin_layout Standard
19658 columnwidth-62.4pt)/
19663 \begin_layout Standard
19664 is used for the wider columns and
19667 \begin_layout Standard
19674 columnwidth-62.4pt)/
19681 \begin_layout Standard
19682 for the smaller ones:
19685 \begin_layout Standard
19686 \begin_inset Tabular
19687 <lyxtabular version="3" rows="2" columns="5">
19688 <features rotate="0" tabularvalignment="middle">
19689 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19690 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19691 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19692 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19693 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19698 \begin_layout Plain Layout
19704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19707 \begin_layout Plain Layout
19713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19716 \begin_layout Plain Layout
19722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19725 \begin_layout Plain Layout
19731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19734 \begin_layout Plain Layout
19742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19745 \begin_layout Plain Layout
19746 111111 1111111 111111 111111111 11111 11111 1111
19751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19754 \begin_layout Plain Layout
19760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19763 \begin_layout Plain Layout
19764 2222 22222 222222 222222222 2222222 22 22222
19769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19772 \begin_layout Plain Layout
19778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19781 \begin_layout Plain Layout
19782 333333 333333 333333 33333 3333333 333
19795 \begin_layout Section
19796 Table Customization
19797 \begin_inset Index idx
19800 \begin_layout Plain Layout
19801 Table Customization
19807 \begin_inset Index idx
19810 \begin_layout Plain Layout
19811 Table ! Customization
19819 \begin_layout Subsection
19821 \begin_inset CommandInset label
19823 name "sub:Row-Spacing"
19828 \begin_inset Index idx
19831 \begin_layout Plain Layout
19832 Table Customization ! Row Spacing
19840 \begin_layout Standard
19841 You can add vertical space to table rows in the
19845 tab of the table dialog.
19846 You find there three possibilities:
19849 \begin_layout Description
19851 \begin_inset space ~
19855 \begin_inset space ~
19858 row will add space above the characters of the table row.
19859 If the table is a formal table
19863 \begin_layout Plain Layout
19864 Formal tables are explained in section
19865 \begin_inset space ~
19869 \begin_inset CommandInset ref
19871 reference "sec:Formal-Tables"
19880 LyX will insert as default 0.5
19881 \begin_inset space \thinspace{}
19885 For normal tables the inserted space will unfortunately destroy the vertical
19886 table lines as in the following table:
19887 \begin_inset VSpace medskip
19891 \begin_inset Newline newline
19895 \begin_inset space \hspace*{}
19900 \begin_inset space \hfill{}
19904 \begin_inset Tabular
19905 <lyxtabular version="3" rows="3" columns="1">
19906 <features rotate="0" tabularvalignment="middle">
19907 <column alignment="center" valignment="top">
19909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19912 \begin_layout Plain Layout
19919 <row topspace="3mm">
19920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19923 \begin_layout Plain Layout
19925 \begin_inset space \thinspace{}
19928 mm space top of row
19935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19938 \begin_layout Plain Layout
19950 \begin_inset space \hfill{}
19954 \begin_inset space \hspace*{}
19959 \begin_inset VSpace medskip
19963 \begin_inset Newline newline
19966 So inserting space in the top of row for normal tables is only useful when
19967 you don't have vertical lines.
19970 \begin_layout Description
19972 \begin_inset space ~
19976 \begin_inset space ~
19979 row will add space below the characters of the table row.
19980 If the table is a formal table LyX will insert as default 0.5
19981 \begin_inset space \thinspace{}
19984 em space, for normal tables the default size is 2
19985 \begin_inset space \thinspace{}
19991 \begin_layout Description
19993 \begin_inset space ~
19996 rows adds space between the current and the following row.
19997 If the table is a formal table LyX will insert as default 0.5
19998 \begin_inset space \thinspace{}
20002 For normal tables the inserted space will unfortunately destroy the vertical
20003 table lines as in the following table:
20004 \begin_inset VSpace medskip
20008 \begin_inset Newline newline
20012 \begin_inset space \hspace*{}
20017 \begin_inset space \hfill{}
20021 \begin_inset Tabular
20022 <lyxtabular version="3" rows="3" columns="1">
20023 <features rotate="0" tabularvalignment="middle">
20024 <column alignment="center" valignment="top">
20026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20029 \begin_layout Plain Layout
20036 <row interlinespace="3mm">
20037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20040 \begin_layout Plain Layout
20041 \begin_inset Formula $\downarrow$
20045 \begin_inset space \thinspace{}
20048 mm space between row
20049 \begin_inset Formula $\downarrow$
20059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20062 \begin_layout Plain Layout
20063 \begin_inset Formula $\uparrow$
20067 \begin_inset space \thinspace{}
20070 mm space between row
20071 \begin_inset Formula $\uparrow$
20085 \begin_inset space \hfill{}
20089 \begin_inset space \hspace*{}
20094 \begin_inset VSpace medskip
20098 \begin_inset Newline newline
20101 So inserting space between rows for normal tables is only useful when you
20102 don't have vertical lines.
20105 \begin_layout Standard
20106 \begin_inset VSpace bigskip
20109 When you want to add extra height to all cells of all tables, you can do
20110 this with the following preamble lines:
20113 \begin_layout Standard
20118 @ifundefined{extrarowheight}
20119 \begin_inset Newline newline
20123 \begin_inset Phantom HPhantom
20126 \begin_layout Plain Layout
20129 \begin_inset space ~
20139 usepackage{array}}{}
20140 \begin_inset Newline newline
20147 extrarowheight}{height}
20150 \begin_layout Standard
20151 But this has the disadvantage that the cell texts are no longer exactly
20152 vertically centered.
20157 will be loaded automatically by LyX when you use self defined table formats.
20158 To avoid that it being loaded twice the command
20164 is used in the above command.)
20167 \begin_layout Standard
20168 If you are using font sizes larger than the normal size, the table borders
20169 are often too close to the letters.
20170 This can be corrected by inserting the command
20176 in TeX-Code at the beginning of a table row.
20178 \begin_inset space ~
20182 \begin_inset CommandInset ref
20184 reference "tab:Vertical-alignment-of"
20188 illustrates the effect.
20191 \begin_layout Standard
20193 \begin_inset Float table
20199 \begin_layout Plain Layout
20200 \begin_inset Caption Standard
20202 \begin_layout Plain Layout
20203 \begin_inset CommandInset label
20205 name "tab:Vertical-alignment-of"
20209 Vertical alignment of text with large font sizes.
20217 \begin_layout Plain Layout
20218 \begin_inset space \hfill{}
20222 \begin_inset Float table
20227 \begin_layout Plain Layout
20228 \begin_inset Caption Standard
20230 \begin_layout Plain Layout
20239 \begin_layout Plain Layout
20242 \begin_inset Tabular
20243 <lyxtabular version="3" rows="6" columns="1">
20244 <features rotate="0" tabularvalignment="middle">
20245 <column alignment="left" valignment="top">
20247 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20250 \begin_layout Plain Layout
20258 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20261 \begin_layout Plain Layout
20271 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20274 \begin_layout Plain Layout
20284 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20287 \begin_layout Plain Layout
20297 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20300 \begin_layout Plain Layout
20310 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20313 \begin_layout Plain Layout
20332 \begin_inset space \hfill{}
20336 \begin_inset Float table
20341 \begin_layout Plain Layout
20342 \begin_inset Caption Standard
20344 \begin_layout Plain Layout
20345 Table using the command
20359 \begin_layout Plain Layout
20362 \begin_inset Tabular
20363 <lyxtabular version="3" rows="6" columns="1">
20364 <features rotate="0" tabularvalignment="middle">
20365 <column alignment="left" valignment="top">
20367 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20370 \begin_layout Plain Layout
20378 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20381 \begin_layout Plain Layout
20387 \begin_layout Plain Layout
20403 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20406 \begin_layout Plain Layout
20412 \begin_layout Plain Layout
20428 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20431 \begin_layout Plain Layout
20437 \begin_layout Plain Layout
20453 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20456 \begin_layout Plain Layout
20462 \begin_layout Plain Layout
20478 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20481 \begin_layout Plain Layout
20487 \begin_layout Plain Layout
20514 \begin_inset space \hfill{}
20525 \begin_layout Subsection
20526 Special Cell Alignment
20527 \begin_inset CommandInset label
20529 name "sub:Special-Cell-Alignment"
20534 \begin_inset Index idx
20537 \begin_layout Plain Layout
20538 Table Customization ! Special Cell Alignment
20546 \begin_layout Standard
20547 Sometimes it looks better when the cell entries of a column are aligned
20548 with a special character, e.
20549 \begin_inset space \thinspace{}
20553 \begin_inset space \space{}
20556 with the decimal separator as in Table
20557 \begin_inset space ~
20561 \begin_inset CommandInset ref
20563 reference "tab:Table-cells-align"
20568 This alignment is achieved by setting the cursor into the column and then
20569 either pressing the toolbar button
20572 arg "inset-modify tabular align-decimal"
20575 or setting the alignment in the table settings to
20578 \begin_inset space ~
20582 \begin_inset space ~
20588 The alignment character can be a character of your choice and is specified
20589 in the table settings.
20592 \begin_layout Standard
20593 \begin_inset Float table
20599 \begin_layout Plain Layout
20600 \begin_inset Caption Standard
20602 \begin_layout Plain Layout
20603 \begin_inset CommandInset label
20605 name "tab:Table-cells-align"
20609 Table cells of a column aligned with the decimal separator.
20617 \begin_layout Plain Layout
20619 \begin_inset Tabular
20620 <lyxtabular version="3" rows="4" columns="1">
20621 <features rotate="0" booktabs="true" tabularvalignment="middle">
20622 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20627 \begin_layout Plain Layout
20635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20638 \begin_layout Plain Layout
20646 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20649 \begin_layout Plain Layout
20657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20660 \begin_layout Plain Layout
20679 \begin_layout Standard
20680 \begin_inset Float table
20686 \begin_layout Plain Layout
20687 \begin_inset Caption Standard
20689 \begin_layout Plain Layout
20690 \begin_inset CommandInset label
20692 name "tab:Table-align-operator"
20696 Table cells of a column aligned with the operators.
20704 \begin_layout Plain Layout
20706 \begin_inset Tabular
20707 <lyxtabular version="3" rows="4" columns="2">
20708 <features rotate="0" booktabs="true" tabularvalignment="middle">
20709 <column alignment="right" valignment="top" width="0pt">
20710 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20712 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20715 \begin_layout Plain Layout
20721 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20724 \begin_layout Plain Layout
20732 <cell alignment="center" valignment="top" usebox="none">
20735 \begin_layout Plain Layout
20736 \begin_inset Formula $12\,+$
20744 <cell alignment="center" valignment="top" usebox="none">
20747 \begin_layout Plain Layout
20748 \begin_inset Formula $\,6$
20758 <cell alignment="center" valignment="top" usebox="none">
20761 \begin_layout Plain Layout
20762 \begin_inset Formula $0\,-$
20770 <cell alignment="center" valignment="top" usebox="none">
20773 \begin_layout Plain Layout
20774 \begin_inset Formula $\,68$
20784 <cell alignment="center" valignment="top" usebox="none">
20787 \begin_layout Plain Layout
20788 \begin_inset Formula $-123\,/$
20796 <cell alignment="center" valignment="top" usebox="none">
20799 \begin_layout Plain Layout
20800 \begin_inset Formula $\,0$
20821 \begin_layout Standard
20822 For alignments at characters in formulas this method does not work because
20823 the field to specify the alignment character does not allow formulas.
20824 In this case one need to use the method from Table
20825 \begin_inset space ~
20829 \begin_inset CommandInset ref
20831 reference "tab:Table-align-operator"
20836 This table was created with a 4×2 table.
20837 The heading is a centered multicolumn.
20838 The first column is right-aligned and contains the first part including
20840 The second column is left aligned and contains the rest.
20841 A small space was added at the beginning of each cell of the second column
20842 to get the space that is usually around operators.
20843 To omit the space that is normally between two table columns, the following
20844 LaTeX-argument was used for the second column:
20847 \begin_layout Standard
20853 \begin_layout Standard
20855 \begin_inset space ~
20859 \begin_inset CommandInset ref
20861 reference "tab:Several-table-cell"
20865 shows some example alignments.
20866 For the alignment with the relation sign, a small space was added like
20867 for the second column of Table
20868 \begin_inset space ~
20872 \begin_inset CommandInset ref
20874 reference "tab:Table-align-operator"
20881 \begin_layout Standard
20882 \begin_inset Float table
20888 \begin_layout Plain Layout
20889 \begin_inset Caption Standard
20891 \begin_layout Plain Layout
20892 \begin_inset CommandInset label
20894 name "tab:Several-table-cell"
20898 Several table cell alignments.
20906 \begin_layout Plain Layout
20908 \begin_inset Tabular
20909 <lyxtabular version="3" rows="4" columns="6">
20910 <features rotate="0" tabularvalignment="middle">
20911 <column alignment="right" valignment="top">
20912 <column alignment="left" valignment="top" special="@{}l">
20913 <column alignment="right" valignment="top">
20914 <column alignment="left" valignment="top" special="@{}l">
20915 <column alignment="right" valignment="top">
20916 <column alignment="left" valignment="top" special="@{}l">
20918 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20921 \begin_layout Plain Layout
20927 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20930 \begin_layout Plain Layout
20936 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20939 \begin_layout Plain Layout
20945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20948 \begin_layout Plain Layout
20954 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20957 \begin_layout Plain Layout
20963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20966 \begin_layout Plain Layout
20974 <cell alignment="center" valignment="top" usebox="none">
20977 \begin_layout Plain Layout
20983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20986 \begin_layout Plain Layout
20988 \begin_inset space \thinspace{}
20996 <cell alignment="center" valignment="top" usebox="none">
20999 \begin_layout Plain Layout
21000 \begin_inset Formula $10\cdot$
21008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21011 \begin_layout Plain Layout
21012 \begin_inset Formula $10^{\mbox{-}17}$
21020 <cell alignment="center" valignment="top" usebox="none">
21023 \begin_layout Plain Layout
21024 \begin_inset Formula $\Gamma(t)\propto$
21032 <cell alignment="center" valignment="top" usebox="none">
21035 \begin_layout Plain Layout
21036 \begin_inset Formula $\:\Upsilon(t)$
21046 <cell alignment="center" valignment="top" usebox="none">
21049 \begin_layout Plain Layout
21055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21058 \begin_layout Plain Layout
21060 \begin_inset space \thinspace{}
21068 <cell alignment="center" valignment="top" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $5.78\cdot$
21080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $10^{7}$
21092 <cell alignment="center" valignment="top" usebox="none">
21095 \begin_layout Plain Layout
21096 \begin_inset Formula $A\ne$
21104 <cell alignment="center" valignment="top" usebox="none">
21107 \begin_layout Plain Layout
21108 \begin_inset Formula $\: B_{\mathrm{red}}$
21118 <cell alignment="center" valignment="top" usebox="none">
21121 \begin_layout Plain Layout
21127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21130 \begin_layout Plain Layout
21132 \begin_inset space \thinspace{}
21140 <cell alignment="center" valignment="top" usebox="none">
21143 \begin_layout Plain Layout
21145 \begin_inset Formula $33.5\cdot$
21153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21156 \begin_layout Plain Layout
21157 \begin_inset Formula $10^{4}$
21165 <cell alignment="center" valignment="top" usebox="none">
21168 \begin_layout Plain Layout
21169 \begin_inset Formula $\sin(\alpha)\ge$
21177 <cell alignment="center" valignment="top" usebox="none">
21180 \begin_layout Plain Layout
21181 \begin_inset Formula $\:\sin(\beta)$
21202 \begin_layout Subsection
21203 Customized Cell/Column Format
21204 \begin_inset CommandInset label
21206 name "sub:Customized-Format"
21211 \begin_inset Index idx
21214 \begin_layout Plain Layout
21215 Table Customization ! Cell/Column Format
21223 \begin_layout Standard
21224 Calculating the required width for normal columns as described in section
21225 \begin_inset space ~
21229 \begin_inset CommandInset ref
21231 reference "sec:Table-Width-Calculation"
21235 or for spanned columns as described in section
21236 \begin_inset space ~
21240 \begin_inset CommandInset ref
21242 reference "sub:Multicolumn-Calculations"
21246 is very annoying if you have several tables where a calculation is necessary.
21247 To make life easier, you can define a cell/column format in the preamble,
21248 that can be used in all tables of the document.
21249 The format is defined with the command
21252 \begin_layout Standard
21257 newcolumntype{name of format}[number of arguments]{commands}
21260 \begin_layout Standard
21261 The format name may only consist of one letter.
21286 are predefined and cannot be used.
21287 But all letters are allowed as capitals.
21290 \begin_layout Standard
21291 \begin_inset VSpace medskip
21297 \begin_layout Standard
21298 For vertically and horizontally centered multicolumn cells with a fixed
21299 width you can define the cell format
21302 \begin_layout Standard
21307 newcolumntype{M}[1]{>{
21314 \begin_layout Standard
21321 avoids the problem of hyphenating the first word, as described in section
21322 \begin_inset space ~
21326 \begin_inset CommandInset ref
21328 reference "sub:Multiple-Lines-in"
21333 Now you can simply enter
21336 \begin_layout Standard
21342 \begin_layout Standard
21347 in the table dialog to create a multicolumn.
21350 \begin_layout Standard
21351 \begin_inset VSpace bigskip
21357 \begin_layout Standard
21358 For cells spanned by a multicolumn cell, you can define the format
21361 \begin_layout Standard
21366 newcolumntype{S}[2]{>{
21371 \begin_inset Newline newline
21375 \begin_inset Phantom HPhantom
21378 \begin_layout Plain Layout
21392 arrayrulewidth)*(1-#2))/#2}}
21395 \begin_layout Standard
21396 This format uses equation
21397 \begin_inset CommandInset ref
21403 to calculate the required width so that each spanned cell has the same
21407 \begin_layout Standard
21411 \begin_layout Standard
21414 S{width of multicolumn cell}{number of spanned columns}
21417 \begin_layout Standard
21418 as LaTeX-argument of the column.
21421 \begin_layout Standard
21422 \begin_inset VSpace bigskip
21428 \begin_layout Standard
21429 For colored columns, you can define
21432 \begin_layout Standard
21437 newcolumntype{K}[1]{>{
21444 \begin_layout Standard
21446 \begin_inset Quotes eld
21450 \begin_inset Quotes erd
21453 at the end creates a column with a flexible width whose text is horizontally
21458 \begin_layout Standard
21464 \begin_layout Standard
21468 \begin_layout Standard
21469 \begin_inset VSpace bigskip
21475 \begin_layout Standard
21477 \begin_inset space ~
21481 \begin_inset CommandInset ref
21483 reference "tab:Table-using-user-defined"
21487 use the LaTeX-arguments
21490 \begin_layout Standard
21496 \begin_layout Standard
21497 for the first column and the multicolumn,
21500 \begin_layout Standard
21506 \begin_layout Standard
21507 for the last column, and
21510 \begin_layout Standard
21516 \begin_layout Standard
21517 for the cells in the second column.
21520 \begin_layout Standard
21521 \begin_inset Float table
21527 \begin_layout Plain Layout
21528 \begin_inset Caption Standard
21530 \begin_layout Plain Layout
21531 \begin_inset CommandInset label
21533 name "tab:Table-using-user-defined"
21537 Table using user-defined table formats
21545 \begin_layout Plain Layout
21547 \begin_inset Tabular
21548 <lyxtabular version="3" rows="3" columns="4">
21549 <features rotate="0" tabularvalignment="middle">
21550 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21551 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21552 <column alignment="center" valignment="middle">
21553 <column alignment="center" valignment="middle" special="K{red}">
21555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21558 \begin_layout Plain Layout
21559 verylongtablecellword
21564 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21567 \begin_layout Plain Layout
21568 multiple lines multicolumn
21573 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21576 \begin_layout Plain Layout
21582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21585 \begin_layout Plain Layout
21593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21596 \begin_layout Plain Layout
21602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21605 \begin_layout Plain Layout
21611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21614 \begin_layout Plain Layout
21620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21623 \begin_layout Plain Layout
21631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21634 \begin_layout Plain Layout
21640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21643 \begin_layout Plain Layout
21649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21652 \begin_layout Plain Layout
21658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21661 \begin_layout Plain Layout
21680 \begin_layout Subsection
21682 \begin_inset CommandInset label
21684 name "sub:Line-Thickness"
21689 \begin_inset Index idx
21692 \begin_layout Plain Layout
21693 Table Customization ! Line Thickness
21701 \begin_layout Standard
21702 The line thickness for all lines in a table can be adjusted with the length
21710 To set for example a line thickness of 1.5
21711 \begin_inset space \thinspace{}
21715 \begin_inset space ~
21719 \begin_inset CommandInset ref
21721 reference "tab:Table-with-1.5"
21725 , insert the command
21728 \begin_layout Standard
21735 arrayrulewidth}{1.5pt}
21738 \begin_layout Standard
21739 in TeX-Code before the table or table float.
21740 The changed thickness is valid for all subsequent tables.
21741 To use the default value again, set
21748 \begin_inset space \thinspace{}
21751 pt in TeX-Code after the table or table float.
21754 \begin_layout Standard
21758 \begin_layout Plain Layout
21764 arrayrulewidth}{1.5pt}
21770 \begin_inset Float table
21775 \begin_layout Plain Layout
21776 \begin_inset Caption Standard
21778 \begin_layout Plain Layout
21779 \begin_inset CommandInset label
21781 name "tab:Table-with-1.5"
21786 \begin_inset space \thinspace{}
21797 \begin_layout Plain Layout
21799 \begin_inset Tabular
21800 <lyxtabular version="3" rows="3" columns="3">
21801 <features rotate="0" tabularvalignment="middle">
21802 <column alignment="center" valignment="top">
21803 <column alignment="center" valignment="top">
21804 <column alignment="center" valignment="top">
21806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21809 \begin_layout Plain Layout
21815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21818 \begin_layout Plain Layout
21824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21827 \begin_layout Plain Layout
21835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21838 \begin_layout Plain Layout
21844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21847 \begin_layout Plain Layout
21853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21856 \begin_layout Plain Layout
21864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21867 \begin_layout Plain Layout
21873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21876 \begin_layout Plain Layout
21882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21885 \begin_layout Plain Layout
21905 \begin_layout Plain Layout
21911 arrayrulewidth}{0.4pt}
21919 \begin_layout Standard
21920 \begin_inset VSpace bigskip
21923 To set the line thickness to 1.5
21924 \begin_inset space \thinspace{}
21927 pt only for horizontal lines, as in Table
21928 \begin_inset space ~
21932 \begin_inset CommandInset ref
21934 reference "tab:Table-with-horizontal"
21938 , insert these commands in TeX-Code before the table or table float:
21941 \begin_layout Standard
21951 \begin_inset Newline newline
21959 \begin_inset Newline newline
21968 arrayrulewidth 1.5pt}
21969 \begin_inset Newline newline
21980 arrayrulewidth 0.4pt}}
21983 \begin_layout Standard
21984 To return to the default line thickness, insert this command in TeX-Code
21985 after the table or table float:
21988 \begin_layout Standard
22000 \begin_layout Standard
22004 \begin_layout Plain Layout
22015 \begin_layout Plain Layout
22024 \begin_layout Plain Layout
22032 arrayrulewidth 1.5pt}
22035 \begin_layout Plain Layout
22045 arrayrulewidth 0.4pt}}
22051 \begin_inset Float table
22056 \begin_layout Plain Layout
22057 \begin_inset Caption Standard
22059 \begin_layout Plain Layout
22060 \begin_inset CommandInset label
22062 name "tab:Table-with-horizontal"
22067 \begin_inset space \thinspace{}
22070 pt thick horizontal lines
22078 \begin_layout Plain Layout
22080 \begin_inset Tabular
22081 <lyxtabular version="3" rows="3" columns="3">
22082 <features rotate="0" tabularvalignment="middle">
22083 <column alignment="center" valignment="top">
22084 <column alignment="center" valignment="top">
22085 <column alignment="center" valignment="top">
22087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22090 \begin_layout Plain Layout
22096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22099 \begin_layout Plain Layout
22105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22108 \begin_layout Plain Layout
22116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22119 \begin_layout Plain Layout
22125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22128 \begin_layout Plain Layout
22134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22137 \begin_layout Plain Layout
22145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22148 \begin_layout Plain Layout
22154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22157 \begin_layout Plain Layout
22163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22166 \begin_layout Plain Layout
22186 \begin_layout Plain Layout
22202 \begin_layout Standard
22203 \begin_inset VSpace bigskip
22206 To set the line thickness to 1.5
22207 \begin_inset space \thinspace{}
22210 pt only for vertical lines, create the following column format in the document
22211 preamble, according to the description in section
22212 \begin_inset space ~
22216 \begin_inset CommandInset ref
22218 reference "sub:Customized-Format"
22225 \begin_layout Standard
22230 newcolumntype{V}{!{
22232 vrule width 1.5pt}}
22235 \begin_layout Standard
22237 \begin_inset space ~
22241 \begin_inset CommandInset ref
22243 reference "tab:Table-with-vertical"
22250 \begin_layout Standard
22256 \begin_layout Standard
22257 was used for the last column and
22260 \begin_layout Standard
22266 \begin_layout Standard
22267 for the other columns.
22270 \begin_layout Standard
22271 \begin_inset Float table
22276 \begin_layout Plain Layout
22277 \begin_inset Caption Standard
22279 \begin_layout Plain Layout
22280 \begin_inset CommandInset label
22282 name "tab:Table-with-vertical"
22287 \begin_inset space \thinspace{}
22290 pt thick vertical lines
22298 \begin_layout Plain Layout
22300 \begin_inset Tabular
22301 <lyxtabular version="3" rows="3" columns="3">
22302 <features rotate="0" tabularvalignment="middle">
22303 <column alignment="center" valignment="top" special="Vc">
22304 <column alignment="center" valignment="top" special="Vc">
22305 <column alignment="center" valignment="top" special="VcV">
22307 <cell alignment="center" valignment="top" topline="true" usebox="none">
22310 \begin_layout Plain Layout
22316 <cell alignment="center" valignment="top" topline="true" usebox="none">
22319 \begin_layout Plain Layout
22325 <cell alignment="center" valignment="top" topline="true" usebox="none">
22328 \begin_layout Plain Layout
22336 <cell alignment="center" valignment="top" topline="true" usebox="none">
22339 \begin_layout Plain Layout
22345 <cell alignment="center" valignment="top" topline="true" usebox="none">
22348 \begin_layout Plain Layout
22354 <cell alignment="center" valignment="top" topline="true" usebox="none">
22357 \begin_layout Plain Layout
22365 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22368 \begin_layout Plain Layout
22374 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22377 \begin_layout Plain Layout
22383 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22386 \begin_layout Plain Layout
22405 \begin_layout Subsection
22407 \begin_inset Index idx
22410 \begin_layout Plain Layout
22411 Table Customization ! Dashed Lines
22419 \begin_layout Standard
22423 \begin_layout Plain Layout
22433 \begin_inset Note Note
22436 \begin_layout Plain Layout
22437 The following section will only be displayed when the LaTeX-package
22449 \begin_layout Standard
22450 \begin_inset Float table
22456 \begin_layout Plain Layout
22457 \begin_inset Caption Standard
22459 \begin_layout Plain Layout
22460 \begin_inset CommandInset label
22462 name "tab:Table-with-dashed"
22466 Table with dashed lines
22474 \begin_layout Plain Layout
22476 \begin_inset Tabular
22477 <lyxtabular version="3" rows="5" columns="5">
22478 <features rotate="0" tabularvalignment="middle">
22479 <column alignment="center" valignment="top">
22480 <column alignment="center" valignment="top">
22481 <column alignment="center" valignment="top" special=":c">
22482 <column alignment="center" valignment="top">
22483 <column alignment="center" valignment="top">
22485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22488 \begin_layout Plain Layout
22494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22497 \begin_layout Plain Layout
22503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22506 \begin_layout Plain Layout
22512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22515 \begin_layout Plain Layout
22521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22524 \begin_layout Plain Layout
22532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22535 \begin_layout Plain Layout
22541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22544 \begin_layout Plain Layout
22550 <cell alignment="center" valignment="top" topline="true" usebox="none">
22553 \begin_layout Plain Layout
22559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22562 \begin_layout Plain Layout
22568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22571 \begin_layout Plain Layout
22579 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22582 \begin_layout Plain Layout
22586 \begin_layout Plain Layout
22600 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22603 \begin_layout Plain Layout
22609 <cell alignment="center" valignment="top" usebox="none">
22612 \begin_layout Plain Layout
22618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22621 \begin_layout Plain Layout
22627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22630 \begin_layout Plain Layout
22638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22641 \begin_layout Plain Layout
22645 \begin_layout Plain Layout
22659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22662 \begin_layout Plain Layout
22668 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22671 \begin_layout Plain Layout
22677 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22680 \begin_layout Plain Layout
22686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22689 \begin_layout Plain Layout
22697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22700 \begin_layout Plain Layout
22706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22709 \begin_layout Plain Layout
22715 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22718 \begin_layout Plain Layout
22724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22727 \begin_layout Plain Layout
22733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22736 \begin_layout Plain Layout
22755 \begin_layout Standard
22756 LyX does not natively support dashed lines, so you have to use TeX-Code.
22757 As a prerequisite the LaTeX-package
22762 \begin_inset Index idx
22765 \begin_layout Plain Layout
22766 LaTeX-packages ! arydshln
22771 must be loaded in the document preamble with the command
22774 \begin_layout Standard
22779 usepackage{arydshln}
22782 \begin_layout Standard
22783 To make a vertical line dashed, enter the colon
22784 \begin_inset Quotes eld
22788 \begin_inset Quotes erd
22791 together with the character for the horizontal alignment as LaTeX-argument
22792 in the table cell dialog.
22795 \begin_layout Standard
22796 For a horizontal dashed line add the command
22799 \begin_layout Standard
22807 \begin_layout Standard
22808 in TeX-Code as first element of the first cell in the table row.
22811 \begin_layout Standard
22812 For dashed multicolumn lines use the command
22815 \begin_layout Standard
22820 cdashline{line number
22825 \begin_layout Standard
22826 in TeX-Code as the first element of the first cell in the table row.
22827 If you have for example a multicolumn spanning columns 2 to 4 and you want
22828 to have a dashed line above, add the command
22831 \begin_layout Standard
22839 \begin_layout Standard
22840 as the first element of the first cell in the row of the multicolumn.
22843 \begin_layout Standard
22844 \begin_inset VSpace bigskip
22850 \begin_layout Standard
22852 \begin_inset space ~
22856 \begin_inset CommandInset ref
22858 reference "tab:Table-with-dashed"
22863 \begin_inset Quotes eld
22871 \begin_inset Quotes erd
22874 as LaTeX-argument of the third column.
22875 The TeX-Code command
22881 was inserted in the first cell of the third row and the TeX-Code command
22882 \begin_inset Newline newline
22891 was inserted in the first cell of the fourth row.
22894 \begin_layout Standard
22895 \begin_inset VSpace bigskip
22901 \begin_layout Standard
22902 Tables with dashed lines can also be colored as shown by Table
22903 \begin_inset space ~
22907 \begin_inset CommandInset ref
22909 reference "tab:Colored-table-with"
22916 \begin_layout Standard
22920 \begin_layout Plain Layout
22926 arrayrulewidth}{1pt}
22932 \begin_inset Note Note
22935 \begin_layout Plain Layout
22936 thicker lines for better visualization of the line color
22944 \begin_layout Standard
22948 \begin_layout Plain Layout
22952 dashgapcolor{green}
22958 \begin_inset Note Note
22961 \begin_layout Plain Layout
22962 color gaps between dashes green
22970 \begin_layout Standard
22974 \begin_layout Plain Layout
22985 \begin_layout Plain Layout
22994 \begin_layout Plain Layout
22998 arrayrulecolor{red}
23002 arrayrulecolor{black}}
23008 \begin_inset Note Note
23011 \begin_layout Plain Layout
23012 color horizontal, dashed lines red
23020 \begin_layout Standard
23024 \begin_layout Plain Layout
23035 \begin_layout Plain Layout
23044 \begin_layout Plain Layout
23048 arrayrulecolor{yellow}
23052 arrayrulecolor{black}}
23058 \begin_inset Note Note
23061 \begin_layout Plain Layout
23062 color partial horizontal, dashed lines yellow
23070 \begin_layout Standard
23071 \begin_inset Float table
23077 \begin_layout Plain Layout
23078 \begin_inset Caption Standard
23080 \begin_layout Plain Layout
23081 \begin_inset CommandInset label
23083 name "tab:Colored-table-with"
23087 Colored table with dashed lines
23095 \begin_layout Plain Layout
23097 \begin_inset Tabular
23098 <lyxtabular version="3" rows="5" columns="5">
23099 <features rotate="0" tabularvalignment="middle">
23100 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23101 <column alignment="center" valignment="top" width="0pt">
23102 <column alignment="center" valignment="top" width="0pt" special=":c">
23103 <column alignment="center" valignment="top">
23104 <column alignment="center" valignment="top">
23106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23109 \begin_layout Plain Layout
23115 <cell alignment="center" valignment="top" topline="true" usebox="none">
23118 \begin_layout Plain Layout
23124 <cell alignment="center" valignment="top" topline="true" usebox="none">
23127 \begin_layout Plain Layout
23133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23136 \begin_layout Plain Layout
23142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23145 \begin_layout Plain Layout
23153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23156 \begin_layout Plain Layout
23162 <cell alignment="center" valignment="top" topline="true" usebox="none">
23165 \begin_layout Plain Layout
23171 <cell alignment="center" valignment="top" topline="true" usebox="none">
23174 \begin_layout Plain Layout
23180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23183 \begin_layout Plain Layout
23189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23192 \begin_layout Plain Layout
23200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23203 \begin_layout Plain Layout
23207 \begin_layout Plain Layout
23220 \begin_layout Plain Layout
23234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23237 \begin_layout Plain Layout
23243 <cell alignment="center" valignment="top" usebox="none">
23246 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23255 \begin_layout Plain Layout
23261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23264 \begin_layout Plain Layout
23272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23275 \begin_layout Plain Layout
23279 \begin_layout Plain Layout
23293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23296 \begin_layout Plain Layout
23302 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23305 \begin_layout Plain Layout
23311 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23314 \begin_layout Plain Layout
23320 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23323 \begin_layout Plain Layout
23331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23334 \begin_layout Plain Layout
23340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23343 \begin_layout Plain Layout
23349 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23352 \begin_layout Plain Layout
23358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23361 \begin_layout Plain Layout
23367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23370 \begin_layout Plain Layout
23374 \begin_layout Plain Layout
23401 \begin_layout Standard
23405 \begin_layout Plain Layout
23419 \begin_inset Note Note
23422 \begin_layout Plain Layout
23431 \begin_layout Standard
23435 \begin_layout Plain Layout
23449 \begin_inset Note Note
23452 \begin_layout Plain Layout
23461 \begin_layout Standard
23465 \begin_layout Plain Layout
23475 \begin_inset Note Note
23478 \begin_layout Plain Layout
23487 \begin_layout Standard
23491 \begin_layout Plain Layout
23497 arrayrulewidth}{0.4pt}
23503 \begin_inset Note Note
23506 \begin_layout Plain Layout
23515 \begin_layout Standard
23516 The coloring of lines, columns and lines works as decribed in section
23517 \begin_inset space ~
23521 \begin_inset CommandInset ref
23523 reference "sec:Colored-Tables"
23528 Coloring horizontal lines works analogically as described there as well,
23529 one only needs to replace in the commands
23553 ; so one uses the command
23556 \begin_layout Standard
23566 \begin_inset Newline newline
23574 \begin_inset Newline newline
23578 \begin_inset Phantom HPhantom
23581 \begin_layout Plain Layout
23582 \begin_inset space ~
23592 arrayrulecolor{red}
23596 arrayrulecolor{black}}
23599 \begin_layout Standard
23609 \begin_layout Standard
23619 \begin_inset Newline newline
23627 \begin_inset Newline newline
23631 \begin_inset Phantom HPhantom
23634 \begin_layout Plain Layout
23635 \begin_inset space ~
23645 arrayrulecolor{red}
23649 arrayrulecolor{black}}
23652 \begin_layout Standard
23653 To get back the black line color, one needs to insert the following commands
23654 as TeX-Code behind the table:
23657 \begin_layout Standard
23665 \begin_layout Standard
23677 \begin_layout Standard
23685 \begin_layout Standard
23697 \begin_layout Standard
23698 To color the gaps between the dashes the command
23701 \begin_layout Standard
23706 dashgapcolor{color}
23709 \begin_layout Standard
23710 can be used in front of a table as TeX-Code.
23711 color is hereby the name of a defined color.
23715 \begin_layout Standard
23723 \begin_layout Standard
23724 unsets the changes made by
23733 \begin_layout Standard
23734 \begin_inset Note Greyedout
23737 \begin_layout Plain Layout
23743 : If there are multiple commands in a cell, the command of
23747 needs to be the first one in the cell.
23753 \begin_inset space ~
23757 \begin_inset CommandInset ref
23759 reference "tab:Colored-table-with"
23783 \begin_layout Standard
23784 \begin_inset Note Greyedout
23787 \begin_layout Plain Layout
23797 must be loaded in the document preamble before the LaTeX-package
23802 \begin_inset Index idx
23805 \begin_layout Plain Layout
23806 LaTeX-packages ! colortbl
23819 \begin_layout Standard
23823 \begin_layout Plain Layout
23833 \begin_inset Note Note
23836 \begin_layout Plain Layout
23837 The following will be displayed when the LaTeX-package
23849 \begin_layout Standard
23850 You need to install the package
23854 to see the content of this section in the output.
23857 \begin_layout Standard
23861 \begin_layout Plain Layout
23873 \begin_layout Standard
23874 For more information about dashed lines see the documentation of
23879 \begin_inset CommandInset citation
23888 \begin_layout Chapter
23890 \begin_inset CommandInset label
23897 \begin_inset Index idx
23900 \begin_layout Plain Layout
23909 \begin_layout Section
23911 \begin_inset CommandInset label
23913 name "sec:FloatIntroduction"
23918 \begin_inset Index idx
23921 \begin_layout Plain Layout
23922 Floats ! Introduction
23930 \begin_layout Standard
23931 A float is a block of text associated with some sort of label, which doesn't
23932 have a fixed location.
23934 \begin_inset Quotes eld
23938 \begin_inset Quotes erd
23941 forward or backward a page or two, to wherever it fits best.
23949 \begin_inset space ~
23954 are also floats because they can float to the next page when there are
23955 too many notes on the page.
23958 \begin_layout Standard
23959 Floats allow a high quality layout.
23960 Images and tables can be spread evenly among the pages to avoid white space
23961 and pages without text.
23962 As the floating often destroys the context between the text and the image/table
23963 , every float can be referenced in the text.
23964 Floats are therefore numbered.
23965 Referencing is described in section
23966 \begin_inset space ~
23970 \begin_inset CommandInset ref
23972 reference "sec:Referencing-Floats"
23979 \begin_layout Standard
23980 To insert a float, use the menu
23982 Insert\SpecialChar \menuseparator
23988 arg "float-insert figure"
23994 arg "float-insert table"
24002 inset, a box with a label.
24003 The label will automatically be translated to the document language in
24005 After the label you can insert the caption text.
24006 The image or table is inserted above or below the caption in a separate
24007 paragraph within the float.
24008 More about the caption placement is contained in section
24009 \begin_inset space ~
24013 \begin_inset CommandInset ref
24015 reference "sec:Caption-Placement"
24020 To keep your LyX-document readable, you can open and close the float box
24021 by left-clicking on the box label.
24022 A closed float box looks like this:
24023 \begin_inset Graphics
24024 filename clipart/floatQt4.png
24026 scaleBeforeRotation
24030 – a gray button with a red label.
24033 \begin_layout Standard
24034 It is recommended that you insert floats as separate standard paragraphs
24035 to avoid possible LaTeX-errors that can occur when the surrounding text
24036 is specially formatted.
24039 \begin_layout Standard
24040 Existing figures or tables can be put into a float by highlighting them
24041 and then pressing the corresponding toolbar button for a new float.
24044 \begin_layout Section
24048 \begin_layout Standard
24049 Besides figure and table floats that are described in sections
24050 \begin_inset space ~
24054 \begin_inset CommandInset ref
24056 reference "sec:Figure-Floats"
24061 \begin_inset CommandInset ref
24063 reference "sec:Table-Floats"
24067 respectively, LyX offers the float types
24076 The latter are explained in sec.
24077 \begin_inset space \thinspace{}
24081 \begin_inset CommandInset ref
24083 reference "sec:Wrap-Floats"
24090 \begin_layout Subsection
24092 \begin_inset Index idx
24095 \begin_layout Plain Layout
24096 Floats ! Algorithms
24104 \begin_layout Standard
24105 \begin_inset Float algorithm
24111 \begin_layout Plain Layout
24112 \begin_inset Caption Standard
24114 \begin_layout Plain Layout
24115 \begin_inset CommandInset label
24117 name "alg:Example-Algorithm-float"
24121 Example Algorithm float
24129 \begin_layout LyX-Code
24131 \begin_inset Newline newline
24134 Sum:= Sum + A(I); /*comment*/
24135 \begin_inset Newline newline
24139 \begin_inset VSpace -4mm
24150 \begin_layout Standard
24151 This float type is inserted with the menu
24153 Insert\SpecialChar \menuseparator
24154 Float\SpecialChar \menuseparator
24158 It is used for program codes and descriptions of algorithms and can be
24159 seen as an alternative to program code listings that are explained in chapter
24160 \begin_inset space ~
24164 \begin_inset CommandInset ref
24166 reference "cha:Program-Code-Listings"
24171 A possible environment for algorithms is the
24175 , described in LyX's
24181 \begin_inset space ~
24185 \begin_inset CommandInset ref
24187 reference "alg:Example-Algorithm-float"
24191 is an example of an algorithm float where -4
24192 \begin_inset space \thinspace{}
24195 mm vertical space was added at the end of the float to have the bottom rule
24196 exactly below the last text line.
24199 \begin_layout Standard
24200 The float label is not automatically translated into the document language.
24201 If your document is not in English, you have to do this manually by adding
24202 the following line to the document preamble
24207 \begin_layout Standard
24212 floatname{algorithm}{your
24213 \begin_inset space ~
24219 \begin_layout Standard
24223 \begin_inset space ~
24229 \begin_inset Quotes eld
24237 \begin_inset Quotes erd
24243 \begin_layout Standard
24244 To insert the list of algorithms you can use the menu
24246 Insert\SpecialChar \menuseparator
24248 \begin_inset space \thinspace{}
24252 \begin_inset space \thinspace{}
24255 TOC\SpecialChar \menuseparator
24258 when your document has the same language as LyX's menu names.
24259 In other cases use this command in TeX-Code instead:
24262 \begin_layout Standard
24267 listof{algorithm}{your
24268 \begin_inset space ~
24274 \begin_layout Standard
24278 \begin_inset space ~
24284 \begin_inset Quotes eld
24292 \begin_inset Quotes erd
24298 \begin_layout Standard
24299 Algorithm floats are not by default numbered in the scheme
24300 \begin_inset Quotes eld
24304 \begin_inset Quotes erd
24307 as is the case for table and figure floats in many document-classes.
24308 To number algorithm floats in the same scheme, add this command to your
24312 \begin_layout Standard
24317 numberwithin{algorithm}{chapter}
24320 \begin_layout Standard
24321 To be able to use the command
24330 \begin_inset space ~
24335 in the document settings the option
24338 \begin_inset space ~
24342 \begin_inset space ~
24346 \begin_inset space ~
24354 \begin_layout Section
24356 \begin_inset Index idx
24359 \begin_layout Plain Layout
24368 \begin_layout Standard
24369 Floats are usually numbered either independently from the sections the floats
24370 are in, or in the scheme
24371 \begin_inset Quotes eld
24375 \begin_inset Quotes erd
24379 \begin_inset Quotes eld
24383 \begin_inset Quotes erd
24387 This depends on the document class used.
24390 \begin_layout Standard
24391 To change section-independent numbering, you can use this command in the
24395 \begin_layout Standard
24407 \begin_layout Standard
24414 is the command that prints the table number.
24415 For figure floats, the command would be
24428 in the command above prints the table number as a small roman number.
24431 \begin_layout Standard
24432 To change the numbering scheme for example to
24433 \begin_inset Quotes eld
24437 \begin_inset Quotes erd
24440 , use this command in the preamble:
24443 \begin_layout Standard
24448 numberwithin{table}{subsection}
24451 \begin_layout Standard
24452 To be able to use the command
24461 \begin_inset space ~
24466 in the document settings the option
24469 \begin_inset space ~
24473 \begin_inset space ~
24477 \begin_inset space ~
24485 \begin_layout Standard
24486 Please also have a look at section
24487 \begin_inset space ~
24491 \begin_inset CommandInset ref
24493 reference "sub:Footnote-Numbering"
24497 for the details and important notes about the numbering commands.
24500 \begin_layout Section
24502 \begin_inset CommandInset label
24504 name "sec:Referencing-Floats"
24509 \begin_inset Index idx
24512 \begin_layout Plain Layout
24513 Floats ! References
24519 \begin_inset Index idx
24522 \begin_layout Plain Layout
24523 References ! to Floats
24531 \begin_layout Standard
24532 To reference a float, insert a label into its caption using the menu
24534 Insert\SpecialChar \menuseparator
24537 or the toolbar button
24544 A grey label box like this one:
24545 \begin_inset Graphics
24546 filename clipart/labelQt4.png
24548 scaleBeforeRotation
24552 will be inserted and the label window pops up asking for the label text.
24553 LyX offers as text the first words of the caption with a prefix.
24554 The prefix depends on the float type, e.
24555 \begin_inset space \thinspace{}
24559 \begin_inset space \space{}
24562 for figure floats the prefix will be "
24569 \begin_layout Standard
24570 The label is used as anchor and name for the reference.
24571 You can refer to the label using the menu
24573 Insert\SpecialChar \menuseparator
24576 or the toolbar button
24579 arg "dialog-show-new-inset ref"
24583 The cross-reference window appears showing all labels of the document.
24584 If you have multiple LyX-documents opened, choose the one you are working
24585 on from the drop-list at the top of the dialog.
24586 You can now sort the labels alphabetically and then choose one.
24587 A grey cross-reference box like this one:
24588 \begin_inset Graphics
24589 filename clipart/referenceQt4.png
24591 scaleBeforeRotation
24596 At the position of the cross-reference box the float number will appear
24600 \begin_layout Standard
24601 It is recommended that you use a protected space between the cross-reference
24602 name and its number to avoid line breaks between them.
24603 If a cross-reference refers to a non-existing label, you will see two question
24604 marks in the output instead of the reference.
24607 \begin_layout Standard
24608 You can change labels at any time by clicking on the label box.
24609 References to the changed label will automatically update their links to
24610 the new label text.
24613 \begin_layout Standard
24617 \begin_inset space ~
24621 \begin_inset space ~
24626 in the cross-reference window sets the cursor before the referred label.
24627 The button text changes then to Go
24628 \begin_inset space ~
24631 Back and you can use it to set the cursor back to the cross-reference.
24634 \begin_layout Subsection
24635 Cross-Reference Formats
24636 \begin_inset CommandInset label
24638 name "sub:Cross-Reference-Formats"
24643 \begin_inset Index idx
24646 \begin_layout Plain Layout
24647 References ! Formats
24655 \begin_layout Standard
24656 There are six varieties of cross-references:
24659 \begin_layout Description
24660 <reference>: prints the float number, this is the default:
24661 \begin_inset CommandInset ref
24663 reference "fig:Two-distorted-images"
24670 \begin_layout Description
24671 (<reference>): prints the float number within two parentheses, this is the
24672 style normally used to reference formulas, especially when the reference
24674 \begin_inset Quotes eld
24678 \begin_inset Quotes erd
24682 \begin_inset CommandInset ref
24691 \begin_layout Description
24692 <page>: prints the page number: Page
24693 \begin_inset space ~
24697 \begin_inset CommandInset ref
24698 LatexCommand pageref
24699 reference "fig:Two-distorted-images"
24706 \begin_layout Description
24708 \begin_inset space ~
24712 \begin_inset space ~
24715 <page>: prints the text "on page" and the page number:
24716 \begin_inset CommandInset ref
24717 LatexCommand vpageref
24718 reference "fig:Two-distorted-images"
24725 \begin_layout Description
24727 \begin_inset space ~
24731 \begin_inset space ~
24735 \begin_inset space ~
24738 <page>: prints the float number, the text "on page", and the page number:
24740 \begin_inset CommandInset ref
24742 reference "fig:Two-distorted-images"
24749 \begin_layout Description
24751 \begin_inset space ~
24754 reference: prints a self-defined cross-reference format.
24755 \begin_inset Newline newline
24759 \begin_inset Note Greyedout
24762 \begin_layout Plain Layout
24767 This feature is only available when you have the LaTeX-package
24776 \begin_inset Index idx
24779 \begin_layout Plain Layout
24780 LaTeX-packages ! prettyref
24786 \begin_inset Index idx
24789 \begin_layout Plain Layout
24790 LaTeX-packages ! refstyle
24801 \begin_inset Newline newline
24804 You can select which LaTeX-package should be used for this feature by setting
24807 Use refstyle (not prettyref) for cross-references
24811 Document\SpecialChar \menuseparator
24812 Settings\SpecialChar \menuseparator
24816 The format is specified by adding the command
24828 (refstyle) to the preamble of the document.
24829 For example redefining all references to figures (which have the label
24831 \begin_inset Quotes eld
24839 \begin_inset Quotes erd
24842 ) can be done with this command
24843 \begin_inset Newline newline
24850 newref{fig}{refcmd={Image on page
24855 \begin_inset Newline newline
24858 For more information about the format, have a look at the package documentations
24860 \begin_inset CommandInset citation
24862 key "prettyref,refstyle"
24869 \begin_layout Description
24871 \begin_inset space ~
24874 reference: prints the caption of the reference:
24875 \begin_inset CommandInset ref
24876 LatexCommand nameref
24877 reference "fig:Two-distorted-images"
24884 \begin_layout Standard
24889 will not print the page number if the label is on the previous, the same,
24892 \begin_inset space \thinspace{}
24896 \begin_inset space \space{}
24900 \begin_inset Quotes eld
24908 \begin_inset Quotes erd
24914 <reference> on page <page>
24916 will not print anything about the page if the label is on the same page.
24919 \begin_layout Standard
24920 The number and current page of the part of the document referred to in the
24921 output is automatically calculated by LaTeX.
24922 The varieties are adjusted in the field
24926 of the cross-reference window that appears when you click on the cross-referenc
24930 \begin_layout Standard
24931 \begin_inset Note Greyedout
24934 \begin_layout Plain Layout
24939 It is recommended to use the LaTeX-package
24944 \begin_inset Index idx
24947 \begin_layout Plain Layout
24948 LaTeX-packages ! refstyle
24958 \begin_inset Index idx
24961 \begin_layout Plain Layout
24962 LaTeX-packages ! prettyref
24967 does not know all of LyX's possible label shortcuts
24971 \begin_layout Plain Layout
24972 \begin_inset Quotes eld
24976 \begin_inset Quotes erd
24979 is for example LyX's shortcut for labels in figure captions.
24984 and is not internationalized.
24992 \begin_layout Standard
24993 \begin_inset Note Greyedout
24996 \begin_layout Plain Layout
25001 Due to a bug in the LaTeX-package
25005 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25006 languages that make the period character active (like French).
25007 For a workaround, see
25008 \begin_inset Newline newline
25012 \begin_inset CommandInset href
25014 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25026 \begin_layout Subsection
25027 Automatic Reference Naming
25028 \begin_inset Index idx
25031 \begin_layout Plain Layout
25032 References ! Automatic Reference Naming
25040 \begin_layout Standard
25046 \begin_inset Index idx
25049 \begin_layout Plain Layout
25050 LaTeX-packages ! hyperref
25055 , that is enabled in the
25063 dialog, provides a very useful feature that cross-references automatically
25064 include the name of the referenced floats (or text parts like
25069 So you will save having to write e.
25070 \begin_inset space \thinspace{}
25074 \begin_inset space \space{}
25078 \begin_inset Quotes eld
25082 \begin_inset Quotes erd
25085 before every reference to a figure.
25086 To use this feature, enable
25090 and insert this line to the LaTeX preamble:
25093 \begin_layout Standard
25109 \begin_layout Standard
25110 When you prefer other reference names than the default ones, for example
25111 you want instead of
25112 \begin_inset Quotes eld
25116 \begin_inset Quotes erd
25120 \begin_inset Quotes eld
25124 \begin_inset space \thinspace{}
25128 \begin_inset Quotes eld
25131 , you can redefine the name by inserting this in the preamble:
25134 \begin_layout Standard
25145 sectionautorefname}
25146 \begin_inset Newline newline
25150 \begin_inset Phantom HPhantom
25153 \begin_layout Plain Layout
25156 \begin_inset space ~
25169 \begin_layout Standard
25170 When you are using another document language than English, replace
25171 \begin_inset Newline newline
25186 , where *** is the name of the language used.
25189 \begin_layout Standard
25190 To get automatic names, but not for certain reference types, for example
25191 not for equations, use this preamble code:
25194 \begin_layout Standard
25205 equationautorefname}[1]{}}
25208 \begin_layout Standard
25209 More about this topic can be found in
25214 \begin_inset CommandInset citation
25223 \begin_layout Standard
25224 \begin_inset Note Greyedout
25227 \begin_layout Plain Layout
25232 Automatic reference naming cannot be used when you use cross-references
25236 \begin_inset space ~
25241 style, as described in section
25242 \begin_inset space ~
25246 \begin_inset CommandInset ref
25248 reference "sub:Cross-Reference-Formats"
25260 \begin_layout Standard
25265 manual is an example where automatic reference naming is used.
25268 \begin_layout Subsection
25270 \begin_inset CommandInset label
25272 name "sub:Reference-Position"
25277 \begin_inset Index idx
25280 \begin_layout Plain Layout
25281 References ! Reference Position
25289 \begin_layout Standard
25295 \begin_inset Index idx
25298 \begin_layout Plain Layout
25299 LaTeX-packages ! hyperref
25312 dialog to link cross-references in the output, you will see that clicking
25313 on an image float reference jumps to the image label.
25314 The caption will be the first text part on the screen, so that you cannot
25315 see the image without scrolling.
25316 This is because the reference link anchor is placed at the position of
25318 With the use of the package
25323 \begin_inset Index idx
25326 \begin_layout Plain Layout
25327 LaTeX-packages ! hypcap
25332 , which is part of the LaTeX-package
25337 \begin_inset Index idx
25340 \begin_layout Plain Layout
25341 LaTeX-packages ! oberdiek
25346 , the link anchor is placed at the beginning of a float.
25347 To use this feature for figure floats, load
25351 in the document preamble with the line
25354 \begin_layout Standard
25359 usepackage[figure]{hypcap}
25362 \begin_layout Standard
25367 for all float types but this is not recommended for stability reasons.
25368 For more information, have a look at
25373 \begin_inset CommandInset citation
25382 \begin_layout Standard
25383 \begin_inset Note Greyedout
25386 \begin_layout Plain Layout
25395 has no effect on references to subfigures.
25403 \begin_layout Section
25405 \begin_inset CommandInset label
25407 name "sec:Float-Placement"
25412 \begin_inset Index idx
25415 \begin_layout Plain Layout
25424 \begin_layout Standard
25425 Right-clicking on a float-box and clicking on
25429 opens a dialog where you can alter the placement options that LaTeX uses
25430 for positioning the float.
25431 \begin_inset Newline newline
25437 \begin_inset space ~
25442 is only useful for two-column documents: If you select it, the float will
25443 span both columns on the page instead of being confined to just one.
25444 \begin_inset Newline newline
25450 \begin_inset space ~
25455 is used to rotate floats, see section
25456 \begin_inset CommandInset ref
25458 reference "sec:Rotated-Floats"
25465 \begin_layout Standard
25466 You can use one or more of the following options in the float dialog to
25467 set the placement for a particular float when you uncheck the option
25470 \begin_inset space ~
25474 \begin_inset space ~
25482 \begin_layout Description
25484 \begin_inset space ~
25488 \begin_inset space ~
25491 possible try to place the float on the position where it has been inserted
25494 \begin_layout Description
25496 \begin_inset space ~
25500 \begin_inset space ~
25503 page try to place the float at the top of the current page
25506 \begin_layout Description
25508 \begin_inset space ~
25512 \begin_inset space ~
25515 page try to place the float at the bottom of the current page
25518 \begin_layout Description
25520 \begin_inset space ~
25524 \begin_inset space ~
25527 floats try to place the float on its own page
25530 \begin_layout Standard
25531 The order of the above option is
25536 That means, if you use the default placement, LaTeX will first try out
25540 \begin_inset space ~
25544 \begin_inset space ~
25552 \begin_inset space ~
25556 \begin_inset space ~
25561 , and then the others.
25562 If you do not use the default, LaTeX will try only the checked options
25563 but in the same order.
25565 \begin_inset space ~
25568 placements is possible the procedure is internally repeated trying to put
25569 the float on the following page.
25572 \begin_layout Standard
25573 By default, each option has its own rules:
25576 \begin_layout Labeling
25577 \labelwidthstring 00.00.0000
25581 \begin_inset space ~
25585 \begin_inset space ~
25590 only floats occupying less than 70
25591 \begin_inset space \thinspace{}
25594 % of the page can be placed at the top of a page (
25603 \begin_layout Labeling
25604 \labelwidthstring 00.00.0000
25608 \begin_inset space ~
25612 \begin_inset space ~
25617 : only floats occupying less than 30
25618 \begin_inset space \thinspace{}
25621 % of the page can be placed at the bottom of a page.
25631 \begin_layout Labeling
25632 \labelwidthstring 00.00.0000
25636 \begin_inset space ~
25640 \begin_inset space ~
25645 : only if more than 50
25646 \begin_inset space \thinspace{}
25649 % of the page is occupied by floats, several floats can be set together
25660 \begin_layout Standard
25661 If you don't like these rules, you can ignore them by using the additional
25665 \begin_inset space ~
25669 \begin_inset space ~
25675 \begin_inset Newline newline
25678 You can also redefine the rules with LaTeX-commands that are given in parenthese
25679 s after the rules description above.
25680 To increase for example the often too small default of the bottom-rule
25682 \begin_inset space \thinspace{}
25685 % of the page, add this line to your document preamble:
25688 \begin_layout Standard
25695 bottomfraction}{0.5}
25698 \begin_layout Standard
25699 Sometimes you might need, under all circumstances, a float to be placed
25700 exactly at the position where it is inserted.
25701 For this case you can use the option
25704 \begin_inset space ~
25710 Use this option very rarely and only if the document is almost ready to
25711 be printed, because the float is then no longer able to
25712 \begin_inset Quotes eld
25716 \begin_inset Quotes erd
25719 when you change your document and this will often destroy the page layout.
25722 \begin_layout Standard
25723 There are no placement options for text wrap floats, because they are always
25724 surrounded by the text of a certain paragraph.
25725 \begin_inset VSpace bigskip
25731 \begin_layout Standard
25732 Sometimes you have the problem that a float is placed at the top of a page
25733 while its corresponding section starts at the middle of the page, so that
25734 the reader could think the float is part of the previous section.
25735 To avoid this the LaTeX-command
25742 It suppresses a given float placement for the page where it is inserted
25743 and can therefore be used to avoid floats being set before a section starts.
25744 To get this, add these commands to your document preamble:
25747 \begin_layout Standard
25757 \begin_inset Newline newline
25771 \begin_layout Standard
25772 You can define the same for all section headings, like chapters and subsections.
25773 This definition is not recommended to be used for small text parts like
25774 subsubsections because LaTeX may then have problems finding a suitable
25778 \begin_layout Standard
25779 \begin_inset VSpace bigskip
25782 In some cases it is required to have all figures/tables at the end of the
25784 For this purpose the LaTeX-package
25789 \begin_inset Index idx
25792 \begin_layout Plain Layout
25793 LaTeX-packages ! endfloat
25799 It puts all figure and table floats at the end of the document into their
25801 At the original float position a text hint like
25802 \begin_inset Quotes eld
25808 \begin_inset space ~
25814 \begin_inset Quotes erd
25818 The endfloat-package is loaded in the preamble with the line
25821 \begin_layout Standard
25826 usepackage[options]{endfloat}
25829 \begin_layout Standard
25830 There are various package options to format the created figure/table sections.
25831 For more information we refer you to the
25836 \begin_inset CommandInset citation
25843 \begin_inset Newline newline
25847 \begin_inset Note Greyedout
25850 \begin_layout Plain Layout
25855 doesn't provide an automatic translation for the text hint, you have to
25856 do this manually, see section
25857 \begin_inset space ~
25861 \begin_inset CommandInset citation
25873 \begin_inset Newline newline
25877 \begin_inset Note Greyedout
25880 \begin_layout Plain Layout
25885 There is currently a bug in
25889 when the caption contains a German
25890 \begin_inset Quotes eld
25894 \begin_inset Quotes erd
25898 Use in this case the command
25899 \begin_inset Quotes eld
25909 \begin_inset Quotes erd
25912 in TeX-Code instead of
25913 \begin_inset Quotes eld
25917 \begin_inset Quotes erd
25928 \begin_layout Standard
25929 \begin_inset VSpace bigskip
25932 For more details about float placements, have a look at LaTeX books,
25933 \begin_inset CommandInset citation
25935 key "latexcompanion,latexguide,latexbook"
25942 \begin_layout Section
25944 \begin_inset CommandInset label
25946 name "sec:Rotated-Floats"
25951 \begin_inset Index idx
25954 \begin_layout Plain Layout
25963 \begin_layout Standard
25964 Especially for wide tables you might have floats rotated.
25965 To rotate a whole float including the caption, right-click on the float-box
25969 \begin_inset space ~
25977 \begin_layout Standard
25978 Rotated floats are always placed on a page of their own (or column of their
25979 own; in case you have a multi-column document).
25980 You can let them span several columns using the float settings option
25983 \begin_inset space ~
25989 Floats are rotated so that you can read them from the outside margin.
25990 To force a certain rotation direction for all pages, you can add either
25999 to the document class options.
26002 \begin_layout Standard
26003 Referencing rotated floats is the same as for normal floats, the caption
26004 format is also the same: Table
26005 \begin_inset space ~
26009 \begin_inset CommandInset ref
26011 reference "tab:Rotated-table"
26015 is an example of a rotated table float.
26018 \begin_layout Standard
26019 \begin_inset Note Greyedout
26022 \begin_layout Plain Layout
26027 Not all DVI-viewers are able to display rotated floats.
26035 \begin_layout Standard
26036 \begin_inset Float table
26041 \begin_layout Plain Layout
26042 \begin_inset Caption Standard
26044 \begin_layout Plain Layout
26045 \begin_inset CommandInset label
26047 name "tab:Rotated-table"
26059 \begin_layout Plain Layout
26061 \begin_inset Tabular
26062 <lyxtabular version="3" rows="1" columns="5">
26063 <features rotate="0" tabularvalignment="middle">
26064 <column alignment="center" valignment="top">
26065 <column alignment="center" valignment="top">
26066 <column alignment="center" valignment="top">
26067 <column alignment="center" valignment="top">
26068 <column alignment="center" valignment="top">
26070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26073 \begin_layout Plain Layout
26079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26082 \begin_layout Plain Layout
26088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26091 \begin_layout Plain Layout
26097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26100 \begin_layout Plain Layout
26106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26109 \begin_layout Plain Layout
26128 \begin_layout Section
26130 \begin_inset Index idx
26133 \begin_layout Plain Layout
26142 \begin_layout Standard
26143 Subfloats are for example used when a figure consists of several images.
26144 They are created by inserting a float into an existing float.
26145 The placement of the subfloats can be controlled in the same way as for
26146 paragraphs as shown in table
26147 \begin_inset space ~
26151 \begin_inset CommandInset ref
26153 reference "tab:Two-subtables-side"
26158 \begin_inset CommandInset ref
26160 reference "tab:Two-subtables-upon"
26167 \begin_layout Standard
26168 Referencing subfloats works as for normal floats: Table
26169 \begin_inset space ~
26173 \begin_inset CommandInset ref
26175 reference "tab:This-is-subtable-a"
26180 \begin_inset CommandInset ref
26182 reference "tab:This-is-subtable-b"
26186 are subtables of table
26187 \begin_inset space ~
26191 \begin_inset CommandInset ref
26193 reference "tab:Two-subtables-side"
26200 \begin_layout Standard
26201 \begin_inset Float table
26206 \begin_layout Plain Layout
26207 \begin_inset Caption Standard
26209 \begin_layout Plain Layout
26210 \begin_inset CommandInset label
26212 name "tab:Two-subtables-side"
26216 Two subtables placed side by side.
26224 \begin_layout Plain Layout
26226 \begin_inset space \hfill{}
26230 \begin_inset Float table
26235 \begin_layout Plain Layout
26236 \begin_inset Caption Standard
26238 \begin_layout Plain Layout
26239 \begin_inset CommandInset label
26241 name "tab:This-is-subtable-a"
26245 This is subtable a.
26253 \begin_layout Plain Layout
26255 \begin_inset Tabular
26256 <lyxtabular version="3" rows="1" columns="5">
26257 <features rotate="0" tabularvalignment="middle">
26258 <column alignment="center" valignment="top">
26259 <column alignment="center" valignment="top">
26260 <column alignment="center" valignment="top">
26261 <column alignment="center" valignment="top">
26262 <column alignment="center" valignment="top">
26264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26267 \begin_layout Plain Layout
26273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26276 \begin_layout Plain Layout
26282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26285 \begin_layout Plain Layout
26291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26294 \begin_layout Plain Layout
26300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26303 \begin_layout Plain Layout
26320 \begin_inset space \hfill{}
26324 \begin_inset Float table
26329 \begin_layout Plain Layout
26330 \begin_inset Caption Standard
26332 \begin_layout Plain Layout
26333 \begin_inset CommandInset label
26335 name "tab:This-is-subtable-b"
26339 This is subtable b.
26347 \begin_layout Plain Layout
26349 \begin_inset Tabular
26350 <lyxtabular version="3" rows="1" columns="5">
26351 <features rotate="0" tabularvalignment="middle">
26352 <column alignment="center" valignment="top">
26353 <column alignment="center" valignment="top">
26354 <column alignment="center" valignment="top">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_layout Plain Layout
26367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26370 \begin_layout Plain Layout
26376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26379 \begin_layout Plain Layout
26385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26388 \begin_layout Plain Layout
26394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26397 \begin_layout Plain Layout
26414 \begin_inset space \hfill{}
26425 \begin_layout Standard
26426 \begin_inset Float table
26431 \begin_layout Plain Layout
26432 \begin_inset Caption Standard
26434 \begin_layout Plain Layout
26435 \begin_inset CommandInset label
26437 name "tab:Two-subtables-upon"
26441 Two subtables placed one above the other.
26442 (a) table with 4 cells, (b) table with 5 cells.
26450 \begin_layout Plain Layout
26452 \begin_inset Float table
26457 \begin_layout Plain Layout
26458 \begin_inset Caption Standard
26460 \begin_layout Plain Layout
26469 \begin_layout Plain Layout
26471 \begin_inset Tabular
26472 <lyxtabular version="3" rows="1" columns="4">
26473 <features rotate="0" tabularvalignment="middle">
26474 <column alignment="center" valignment="top">
26475 <column alignment="center" valignment="top">
26476 <column alignment="center" valignment="top">
26477 <column alignment="center" valignment="top">
26479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26482 \begin_layout Plain Layout
26488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26491 \begin_layout Plain Layout
26497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26500 \begin_layout Plain Layout
26506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26509 \begin_layout Plain Layout
26528 \begin_layout Plain Layout
26530 \begin_inset Float table
26535 \begin_layout Plain Layout
26536 \begin_inset Caption Standard
26538 \begin_layout Plain Layout
26547 \begin_layout Plain Layout
26549 \begin_inset Tabular
26550 <lyxtabular version="3" rows="1" columns="5">
26551 <features rotate="0" tabularvalignment="middle">
26552 <column alignment="center" valignment="top">
26553 <column alignment="center" valignment="top">
26554 <column alignment="center" valignment="top">
26555 <column alignment="center" valignment="top">
26556 <column alignment="center" valignment="top">
26558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26561 \begin_layout Plain Layout
26567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26570 \begin_layout Plain Layout
26576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26579 \begin_layout Plain Layout
26585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26588 \begin_layout Plain Layout
26594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26597 \begin_layout Plain Layout
26621 \begin_layout Section
26622 Floats Side by Side
26623 \begin_inset Index idx
26626 \begin_layout Plain Layout
26627 Floats ! Side by side
26635 \begin_layout Standard
26636 To place floats side by side, as in Figures
26637 \begin_inset space ~
26641 \begin_inset CommandInset ref
26643 reference "fig:Float-left"
26648 \begin_inset CommandInset ref
26650 reference "fig:Float-right"
26659 In it two minipage boxes are inserted.
26663 \begin_layout Plain Layout
26664 Minipages are explained in section
26665 \begin_inset space ~
26669 \begin_inset CommandInset ref
26671 reference "sec:Minipages"
26680 The width is set to 45
26681 \begin_inset space \thinspace{}
26685 \begin_inset space \thinspace{}
26688 column% and the box alignment to
26693 The minipage boxes contain the image and the caption in the same way as
26694 they are in a float.
26695 The only difference is that the image unit
26698 \begin_inset space ~
26702 \begin_inset space ~
26707 is now calculated according to the width of the minipage boxes.
26710 \begin_layout Standard
26711 \begin_inset Float figure
26716 \begin_layout Plain Layout
26717 \begin_inset Box Frameless
26727 height_special "totalheight"
26730 \begin_layout Plain Layout
26732 \begin_inset Graphics
26733 filename clipart/mobius.eps
26736 scaleBeforeRotation
26743 \begin_layout Plain Layout
26744 \begin_inset Caption Standard
26746 \begin_layout Plain Layout
26747 \begin_inset CommandInset label
26749 name "fig:Float-left"
26753 Float on the left side.
26764 \begin_inset space \hfill{}
26768 \begin_inset Box Frameless
26778 height_special "totalheight"
26781 \begin_layout Plain Layout
26783 \begin_inset Graphics
26784 filename clipart/platypus.eps
26787 scaleBeforeRotation
26794 \begin_layout Plain Layout
26795 \begin_inset Caption Standard
26797 \begin_layout Plain Layout
26798 \begin_inset CommandInset label
26800 name "fig:Float-right"
26804 Float on the right side.
26817 \begin_layout Plain Layout
26826 \begin_layout Section
26828 \begin_inset Index idx
26831 \begin_layout Plain Layout
26832 Caption ! Formatting
26838 \begin_inset Index idx
26841 \begin_layout Plain Layout
26842 Floats ! Caption Formatting
26848 \begin_inset CommandInset label
26850 name "sec:Caption-Formatting"
26857 \begin_layout Standard
26862 environment is the default paragraph environment for
26867 On the LyX screen captions appear as a label, e.
26868 \begin_inset space \thinspace{}
26872 \begin_inset space \space{}
26876 \begin_inset Quotes eld
26884 \begin_inset Quotes erd
26887 followed by the caption text.
26889 \begin_inset Quotes eld
26893 \begin_inset Quotes erd
26896 is the actual reference number.
26897 By default the label and the number are in the same font as the caption
26898 text and a colon follows the number to divide the label from the text.
26899 This caption format is not suitable for all document formats.
26903 \begin_layout Standard
26904 To change the default caption format, load the LaTeX-package
26909 \begin_inset Index idx
26912 \begin_layout Plain Layout
26913 LaTeX-packages ! caption
26918 in the document preamble with this line:
26921 \begin_layout Standard
26926 usepackage[format definition]{caption}
26929 \begin_layout Standard
26930 To have for example the label and the number in sans-serif bold font and
26931 the table captions always above the table as in this document, use the
26935 \begin_layout Standard
26940 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26943 \begin_layout Standard
26944 You can also define different caption formats for the different float types.
26945 In this case load the
26949 package without format specific options and define the different formats
26950 with the help of the command
26953 \begin_layout Standard
26958 captionsetup[float type]{format definition}
26961 \begin_layout Standard
26962 in the document preamble.
26963 For example the caption formats of Figure
26964 \begin_inset space ~
26968 \begin_inset CommandInset ref
26970 reference "fig:This-is-an-fig"
26975 \begin_inset space ~
26979 \begin_inset CommandInset ref
26981 reference "tab:This-is-an-tab"
26985 can be created using these commands in the document preamble:
26988 \begin_layout Standard
26993 usepackage[tableposition=top]{caption}
26996 \begin_inset Newline newline
27003 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27004 \begin_inset Newline newline
27008 \begin_inset Phantom HPhantom
27011 \begin_layout Plain Layout
27016 captionsetup[figure]{
27022 \begin_inset Newline newline
27027 captionsetup[table]{labelfont={bf,sf}}
27030 \begin_layout Standard
27031 \begin_inset Note Greyedout
27034 \begin_layout Plain Layout
27043 has no effect when a
27048 \begin_inset Index idx
27051 \begin_layout Plain Layout
27052 LaTeX-packages ! KOMA-Script
27057 document class is used.
27058 In this case the document class option
27060 captions=tableheading
27070 \begin_layout Standard
27071 For more information about the package
27075 we refer to its documentation
27076 \begin_inset CommandInset citation
27085 \begin_layout Standard
27086 To change the label name from e.
27087 \begin_inset space \thinspace{}
27091 \begin_inset space \space{}
27095 \begin_inset Quotes eld
27099 \begin_inset Quotes erd
27103 \begin_inset Quotes eld
27107 \begin_inset Quotes erd
27110 use this preamble command:
27113 \begin_layout Standard
27120 fnum@figure}{Image~
27125 \begin_layout Standard
27132 inserts the figure number and
27135 \begin_inset Quotes eld
27141 \begin_inset Quotes erd
27144 creates a protected space.
27147 \begin_layout Standard
27148 \begin_inset VSpace bigskip
27156 \begin_inset Index idx
27159 \begin_layout Plain Layout
27160 LaTeX-packages ! KOMA-Script
27167 article (KOMA-Script)
27175 letter (KOMA-Script)
27179 report (KOMA-Script)
27182 \begin_inset space \thinspace{}
27185 ), you can alternatively to the
27193 's built-in command
27200 For example, to have the caption label in bold, add this command to your
27204 \begin_layout Standard
27209 setkomafont{captionlabel}{
27214 \begin_layout Standard
27215 For more information about
27226 \begin_inset CommandInset citation
27235 \begin_layout Standard
27239 \begin_layout Plain Layout
27243 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27250 \begin_inset Note Note
27253 \begin_layout Plain Layout
27254 The caption format is changed only for this example.
27262 \begin_layout Standard
27263 \begin_inset Float figure
27269 \begin_layout Plain Layout
27271 \begin_inset Graphics
27272 filename clipart/mobius.eps
27275 scaleBeforeRotation
27282 \begin_layout Plain Layout
27283 \begin_inset Caption Standard
27285 \begin_layout Plain Layout
27286 \begin_inset CommandInset label
27288 name "fig:This-is-an-fig"
27292 This is an example figure caption that is longer than one line to show the
27293 different caption format.
27294 Here a self-defined caption format is used.
27307 \begin_layout Standard
27311 \begin_layout Plain Layout
27315 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27324 \begin_layout Standard
27325 \begin_inset Float table
27331 \begin_layout Plain Layout
27332 \begin_inset Caption Standard
27334 \begin_layout Plain Layout
27335 \begin_inset CommandInset label
27337 name "tab:This-is-an-tab"
27341 This is an example table caption that is longer than one line to show the
27342 different caption format.
27343 Here the standard caption format for tables in this document is used.
27351 \begin_layout Plain Layout
27353 \begin_inset Tabular
27354 <lyxtabular version="3" rows="1" columns="5">
27355 <features rotate="0" tabularvalignment="middle">
27356 <column alignment="center" valignment="top">
27357 <column alignment="center" valignment="top">
27358 <column alignment="center" valignment="top">
27359 <column alignment="center" valignment="top">
27360 <column alignment="center" valignment="top">
27362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27365 \begin_layout Plain Layout
27371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27374 \begin_layout Plain Layout
27380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27383 \begin_layout Plain Layout
27389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27392 \begin_layout Plain Layout
27398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27401 \begin_layout Plain Layout
27420 \begin_layout Section
27422 \begin_inset Index idx
27425 \begin_layout Plain Layout
27426 Caption ! Placement
27432 \begin_inset Index idx
27435 \begin_layout Plain Layout
27436 Floats ! Caption Placement
27442 \begin_inset CommandInset label
27444 name "sec:Caption-Placement"
27451 \begin_layout Standard
27452 The common caption placement rule is:
27455 \begin_layout Description
27456 Figure: Caption is set below the figure
27459 \begin_layout Description
27460 Table: Caption is set above the table
27463 \begin_layout Standard
27464 Having the caption above the table is unfortunately not supported in LaTeX's
27466 That means if you are using the document classes
27482 there will be no space between the caption and the table.
27483 To insert the necessary space, add the following option to the load command
27484 of the LaTeX-package
27488 in your document preamble
27492 \begin_layout Plain Layout
27494 \begin_inset space ~
27498 \begin_inset CommandInset ref
27500 reference "sec:Caption-Formatting"
27504 for more information of the package
27516 \begin_layout Standard
27522 \begin_layout Standard
27528 \begin_inset Index idx
27531 \begin_layout Plain Layout
27532 LaTeX-packages ! KOMA-Script
27539 article (KOMA-Script)
27547 letter (KOMA-Script)
27551 report (KOMA-Script)
27554 \begin_inset space \thinspace{}
27557 ), you can alternatively to the
27561 package set the document class option
27563 captions=tableheading
27568 \begin_layout Standard
27569 \begin_inset VSpace bigskip
27572 It is also possible to set the caption beside a figure or table.
27573 To get this the LaTeX-package
27578 \begin_inset Index idx
27581 \begin_layout Plain Layout
27582 LaTeX-packages ! sidecap
27587 has to be loaded in the document preamble with the line
27590 \begin_layout Standard
27595 usepackage[option]{sidecap}
27598 \begin_layout Standard
27599 If you set no option, the caption is placed on the side of the outer page
27600 margin – to the right on odd pages, to the left on even pages.
27601 You can change the placement to inner margin with the option
27606 To force the placement always to the right or left, use the option
27617 \begin_layout Standard
27621 \begin_layout Plain Layout
27631 \begin_inset Note Note
27634 \begin_layout Plain Layout
27635 The following section will only be displayed when the LaTeX-package
27647 \begin_layout Standard
27648 To place in LyX the caption of a float on the side, it is necessary to add
27649 these commands to the document preamble:
27652 \begin_layout Standard
27653 \begin_inset Newpage pagebreak
27659 \begin_layout Standard
27661 \begin_inset CommandInset line
27672 \begin_layout Standard
27679 TabBesBeg}[1][1.0]{%
27680 \begin_inset Newline newline
27684 \begin_inset Phantom HPhantom
27687 \begin_layout Plain Layout
27688 \begin_inset space ~
27703 \begin_inset Newline newline
27707 \begin_inset Phantom HPhantom
27710 \begin_layout Plain Layout
27713 \begin_inset space ~
27728 \begin_inset Newline newline
27732 \begin_inset Phantom HPhantom
27735 \begin_layout Plain Layout
27738 \begin_inset space ~
27748 renewenvironment{table}[1]{
27750 begin{SCtable}[#1]##1}{
27755 \begin_layout Standard
27763 \begin_inset Newline newline
27767 \begin_inset Phantom HPhantom
27770 \begin_layout Plain Layout
27771 \begin_inset space ~
27786 \begin_inset Newline newline
27790 \begin_inset Phantom HPhantom
27793 \begin_layout Plain Layout
27794 \begin_inset space ~
27811 \begin_layout Standard
27818 FigBesBeg}[1][1.0]{%
27819 \begin_inset Newline newline
27823 \begin_inset Phantom HPhantom
27826 \begin_layout Plain Layout
27827 \begin_inset space ~
27842 \begin_inset Newline newline
27846 \begin_inset Phantom HPhantom
27849 \begin_layout Plain Layout
27850 \begin_inset space ~
27865 \begin_inset Newline newline
27869 \begin_inset Phantom HPhantom
27872 \begin_layout Plain Layout
27873 \begin_inset space ~
27883 renewenvironment{figure}[1]{
27885 begin{SCfigure}[#1]##1}{
27890 \begin_layout Standard
27898 \begin_inset Newline newline
27902 \begin_inset Phantom HPhantom
27905 \begin_layout Plain Layout
27906 \begin_inset space ~
27921 \begin_inset Newline newline
27925 \begin_inset Phantom HPhantom
27928 \begin_layout Plain Layout
27929 \begin_inset space ~
27946 \begin_layout Standard
27948 \begin_inset CommandInset line
27959 \begin_layout Standard
27960 The commands allow you to redefine the floats so that the caption is set
27962 For figure floats use the command
27965 \begin_layout Standard
27973 \begin_layout Standard
27974 in TeX-Code before the float.
27975 And insert the command
27978 \begin_layout Standard
27986 \begin_layout Standard
27987 in TeX-Code at the point where you want to get back to the original float
27991 \begin_layout Standard
27992 For table floats use the corresponding commands
27995 \begin_layout Standard
28009 \begin_layout Standard
28011 \begin_inset space ~
28015 \begin_inset CommandInset ref
28017 reference "fig:cap-beside-fig"
28022 \begin_inset space ~
28026 \begin_inset CommandInset ref
28028 reference "tab:cap-beside-tab"
28032 are examples where the caption is set beside.
28035 \begin_layout Standard
28036 You can see in the examples that the caption text appears at the top of
28037 the floats for table floats and at the bottom for figure floats.
28038 To change this, you can use the command
28041 \begin_layout Standard
28046 sidecaptionvpos{float type}{placement}
28049 \begin_layout Standard
28050 in the document preamble or in TeX-Code before the float.
28051 The float type is either
28059 , the placement can be
28060 \begin_inset Quotes eld
28068 \begin_inset Quotes erd
28072 \begin_inset Quotes eld
28080 \begin_inset Quotes erd
28084 \begin_inset Quotes eld
28092 \begin_inset Quotes erd
28096 To have for example the caption of figure floats vertically centered, use
28100 \begin_layout Standard
28105 sidecaptionvpos{figure}{c}
28108 \begin_layout Standard
28109 This was used for Figure
28110 \begin_inset space ~
28114 \begin_inset CommandInset ref
28116 reference "fig:cap-beside-fig-2"
28123 \begin_layout Standard
28124 \begin_inset VSpace medskip
28130 \begin_layout Standard
28131 The default caption width is the width of the image/table.
28132 For thin image/tables, like in Table
28133 \begin_inset space ~
28137 \begin_inset CommandInset ref
28139 reference "tab:cap-beside-tab"
28143 , this leads to captions that are too thin.
28144 You can increase the width by specifying a factor that will be multiplied
28145 with the image/table width to get the caption width.
28146 The caption width will automatically be recalculated in case it would protrude
28147 over the page or column margin due to the specified width.
28152 can either be given as optional argument for
28161 \begin_layout Standard
28169 \begin_layout Standard
28170 or in the definition of
28180 with another value.
28181 If you do the latter, your factor will be the default if
28187 is used without an argument.
28189 \begin_inset space ~
28193 \begin_inset CommandInset ref
28195 reference "tab:cap-beside-tab-wider"
28199 the factor 5 was used.
28202 \begin_layout Standard
28203 \begin_inset Note Greyedout
28206 \begin_layout Plain Layout
28211 For floats with captions set beside, you cannot use the float placement
28215 \begin_inset space ~
28220 because it is not supported by
28232 \begin_layout Standard
28233 \begin_inset VSpace medskip
28236 For more information about the package
28240 we refer to its documentation
28241 \begin_inset CommandInset citation
28250 \begin_layout Standard
28251 \begin_inset Note Greyedout
28254 \begin_layout Plain Layout
28264 \begin_inset Index idx
28267 \begin_layout Plain Layout
28268 LaTeX-packages ! hypcap
28273 , described in section
28274 \begin_inset space ~
28278 \begin_inset CommandInset ref
28280 reference "sub:Reference-Position"
28284 , has no effect on floats with the caption set beside.
28292 \begin_layout Standard
28296 \begin_layout Plain Layout
28308 \begin_layout Standard
28309 \begin_inset Float figure
28314 \begin_layout Plain Layout
28315 \begin_inset Graphics
28316 filename clipart/escher-lsd.eps
28318 scaleBeforeRotation
28325 \begin_layout Plain Layout
28326 \begin_inset Caption Standard
28328 \begin_layout Plain Layout
28329 \begin_inset CommandInset label
28331 name "fig:cap-beside-fig"
28335 This is a caption beside a figure.
28348 \begin_layout Standard
28352 \begin_layout Plain Layout
28364 \begin_layout Standard
28368 \begin_layout Plain Layout
28380 \begin_layout Standard
28381 \begin_inset Float table
28386 \begin_layout Plain Layout
28387 \begin_inset Caption Standard
28389 \begin_layout Plain Layout
28390 \begin_inset CommandInset label
28392 name "tab:cap-beside-tab"
28396 This is a caption beside a table.
28404 \begin_layout Plain Layout
28405 \begin_inset Tabular
28406 <lyxtabular version="3" rows="4" columns="5">
28407 <features rotate="0" tabularvalignment="middle">
28408 <column alignment="center" valignment="top">
28409 <column alignment="center" valignment="top">
28410 <column alignment="center" valignment="top">
28411 <column alignment="center" valignment="top">
28412 <column alignment="center" valignment="top">
28414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28417 \begin_layout Plain Layout
28423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28426 \begin_layout Plain Layout
28432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28435 \begin_layout Plain Layout
28441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28444 \begin_layout Plain Layout
28450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28453 \begin_layout Plain Layout
28461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28464 \begin_layout Plain Layout
28470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28473 \begin_layout Plain Layout
28479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28482 \begin_layout Plain Layout
28488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28491 \begin_layout Plain Layout
28497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28500 \begin_layout Plain Layout
28508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28511 \begin_layout Plain Layout
28517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28520 \begin_layout Plain Layout
28526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28529 \begin_layout Plain Layout
28535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28538 \begin_layout Plain Layout
28544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28547 \begin_layout Plain Layout
28555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28558 \begin_layout Plain Layout
28564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28567 \begin_layout Plain Layout
28573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28576 \begin_layout Plain Layout
28582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28585 \begin_layout Plain Layout
28591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28594 \begin_layout Plain Layout
28613 \begin_layout Standard
28617 \begin_layout Plain Layout
28629 \begin_layout Standard
28633 \begin_layout Plain Layout
28637 sidecaptionvpos{figure}{c}
28643 \begin_inset Float figure
28648 \begin_layout Plain Layout
28649 \begin_inset Graphics
28650 filename clipart/escher-lsd.eps
28652 scaleBeforeRotation
28659 \begin_layout Plain Layout
28660 \begin_inset Caption Standard
28662 \begin_layout Plain Layout
28663 \begin_inset CommandInset label
28665 name "fig:cap-beside-fig-2"
28669 This is a vertically centered caption beside a figure.
28682 \begin_layout Standard
28686 \begin_layout Plain Layout
28698 \begin_layout Standard
28702 \begin_layout Plain Layout
28714 \begin_layout Standard
28715 \begin_inset Float table
28720 \begin_layout Plain Layout
28721 \begin_inset Caption Standard
28723 \begin_layout Plain Layout
28724 \begin_inset CommandInset label
28726 name "tab:cap-beside-tab-wider"
28730 This is a caption is wider than the one in Table
28731 \begin_inset space ~
28735 \begin_inset CommandInset ref
28737 reference "tab:cap-beside-tab"
28749 \begin_layout Plain Layout
28750 \begin_inset Tabular
28751 <lyxtabular version="3" rows="4" columns="5">
28752 <features rotate="0" tabularvalignment="middle">
28753 <column alignment="center" valignment="top">
28754 <column alignment="center" valignment="top">
28755 <column alignment="center" valignment="top">
28756 <column alignment="center" valignment="top">
28757 <column alignment="center" valignment="top">
28759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28762 \begin_layout Plain Layout
28768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28771 \begin_layout Plain Layout
28777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28780 \begin_layout Plain Layout
28786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28789 \begin_layout Plain Layout
28795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28798 \begin_layout Plain Layout
28806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28809 \begin_layout Plain Layout
28815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28818 \begin_layout Plain Layout
28824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28827 \begin_layout Plain Layout
28833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28836 \begin_layout Plain Layout
28842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28845 \begin_layout Plain Layout
28853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28856 \begin_layout Plain Layout
28862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28865 \begin_layout Plain Layout
28871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28874 \begin_layout Plain Layout
28880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28883 \begin_layout Plain Layout
28889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28892 \begin_layout Plain Layout
28900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28903 \begin_layout Plain Layout
28909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28912 \begin_layout Plain Layout
28918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28921 \begin_layout Plain Layout
28927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28930 \begin_layout Plain Layout
28936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28939 \begin_layout Plain Layout
28958 \begin_layout Standard
28962 \begin_layout Plain Layout
28974 \begin_layout Standard
28978 \begin_layout Plain Layout
28988 \begin_inset Note Note
28991 \begin_layout Plain Layout
28992 The following will be displayed when the LaTeX-package
29004 \begin_layout Standard
29005 You need to install the LaTeX-package
29009 to see the following part of this section in the output.
29012 \begin_layout Standard
29016 \begin_layout Plain Layout
29028 \begin_layout Section
29030 \begin_inset Index idx
29033 \begin_layout Plain Layout
29034 Floats ! Float Lists
29042 \begin_layout Standard
29043 Similar to the table of contents where the sections of the document are
29044 listed, there are listings for all float types, like the figures of the
29046 You can insert them via the
29048 Insert\SpecialChar \menuseparator
29050 \begin_inset space ~
29054 \begin_inset space ~
29062 \begin_layout Standard
29063 The list entries are the float captions or its short title, the float number,
29064 and the page number where they appear in the document.
29067 \begin_layout Standard
29068 You can find the list of figures and tables at the end of this document.
29071 \begin_layout Chapter
29075 \begin_layout Section
29077 \begin_inset Index idx
29080 \begin_layout Plain Layout
29089 \begin_layout Standard
29090 Notes are inserted with the toolbar button
29098 Insert\SpecialChar \menuseparator
29102 There are three types of notes:
29105 \begin_layout Description
29107 \begin_inset space ~
29110 Note This note type is for internal notes that won't appear in the output.
29111 Its note-box looks like this:
29112 \begin_inset Newline newline
29116 \begin_inset Newline newline
29120 \begin_inset Graphics
29121 filename clipart/LyXNoteImageQt4.png
29124 scaleBeforeRotation
29129 \begin_inset Note Note
29132 \begin_layout Plain Layout
29133 This is text in a note box that doesn't appear in the output.
29141 \begin_layout Description
29142 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29143 ent, when you export the document to LaTeX via the menu
29145 File\SpecialChar \menuseparator
29146 Export\SpecialChar \menuseparator
29147 LaTeX (pdflatex) / (plain)
29150 Its note-box looks like this:
29151 \begin_inset Newline newline
29155 \begin_inset Newline newline
29159 \begin_inset Graphics
29160 filename clipart/CommentNoteImageQt4.png
29163 scaleBeforeRotation
29168 \begin_inset Note Comment
29171 \begin_layout Plain Layout
29172 This is text in a note box that only appears as comment in LaTeX-files.
29180 \begin_layout Description
29182 \begin_inset space ~
29185 Out This note will appear in the output as grey text.
29186 Its note-box looks like this:
29187 \begin_inset Newline newline
29191 \begin_inset Newline newline
29195 \begin_inset Graphics
29196 filename clipart/GreyedOutNoteImageQt4.png
29199 scaleBeforeRotation
29204 \begin_inset Newline newline
29211 \begin_layout Plain Layout
29215 renewenvironment{lyxgreyedout}
29218 \begin_layout Plain Layout
29222 textcolor[gray]{0.8}
29232 \begin_inset Note Greyedout
29235 \begin_layout Plain Layout
29240 \begin_layout Plain Layout
29241 This is an example footnote within a greyed out note.
29246 of a comment that appears in the output as grey text.
29255 \begin_layout Plain Layout
29259 renewenvironment{lyxgreyedout}
29262 \begin_layout Plain Layout
29276 \begin_inset Note Note
29279 \begin_layout Plain Layout
29280 The greyed out note is here redefined to show it with the original LyX definitio
29281 n because greyed out notes are redefined in the preamble of this document,
29282 as described below, to have blue text.
29288 \begin_inset Newline newline
29292 \begin_inset Newline newline
29295 As you can see in the example, the first line of greyed out notes is a bit
29296 indented and greyed out notes can have footnotes.
29299 \begin_layout Standard
29300 \begin_inset VSpace bigskip
29303 When you use the toolbar button
29312 \begin_inset space ~
29318 You can switch between the three note types by right-clicking on the note-box.
29323 If you want to turn existing text into a note, mark it and click on the
29337 To change a note to text, press the backspace key when the cursor is in
29338 the first position of a note, or press the delete key when the cursor is
29339 in the very last position of the note, respectively.
29342 \begin_layout Standard
29343 \begin_inset VSpace bigskip
29346 You can change the text color of the greyed out notes in the menu
29348 Document\SpecialChar \menuseparator
29349 Settings\SpecialChar \menuseparator
29355 \begin_layout Section
29357 \begin_inset CommandInset label
29359 name "sec:Footnotes"
29364 \begin_inset Index idx
29367 \begin_layout Plain Layout
29374 \begin_inset Index idx
29377 \begin_layout Plain Layout
29386 \begin_layout Standard
29387 Footnotes can be inserted using the toolbar button
29390 arg "footnote-insert"
29395 Insert\SpecialChar \menuseparator
29399 You will then see the following footnote-box:
29400 \begin_inset Graphics
29401 filename clipart/footnoteQt4.png
29403 scaleBeforeRotation
29411 where you can enter the footnote text.
29412 If you want to turn existing text into a footnote, mark it and click on
29438 key when the cursor is in the first position of a
29450 key when the cursor is in the very last position of the
29461 \begin_layout Standard
29462 Here is an example footnote:
29470 \begin_layout Plain Layout
29471 \begin_inset CommandInset label
29473 name "foot:This-is-an"
29477 This is an example footnote.
29490 \begin_layout Plain Layout
29494 newcounter{MyRepeatFoot}
29497 \begin_layout Plain Layout
29501 setcounter{MyRepeatFoot}{
29511 \begin_layout Standard
29512 The footnote will appear in the output as a superscript number at the text
29513 position where the footnote box is placed.
29514 The footnote text is placed at the bottom of the current page.
29515 The footnote number is calculated by LaTeX; the numbers are consecutive.
29516 Whether the footnote number is reset for every chapter depends on your
29520 \begin_layout Standard
29521 Footnotes can be referenced like floats: Insert a label into the footnote
29522 and cross-reference this label in the text as described in section
29523 \begin_inset space ~
29527 \begin_inset CommandInset ref
29529 reference "sec:Referencing-Floats"
29534 \begin_inset Newline newline
29537 This is a cross-reference of Footnote
29538 \begin_inset space ~
29542 \begin_inset CommandInset ref
29544 reference "foot:This-is-an"
29551 \begin_layout Standard
29552 \begin_inset VSpace defskip
29555 Footnotes in tables are not printed by LaTeX due to technical reasons.
29556 However there exists another method to print them: Instead of the footnote
29563 is inserted as TeX-code.
29564 The text of the footnote is entered as an argument of the TeX-code command
29572 \begin_inset Newline newline
29575 This was done for the following table with the command
29578 \begin_layout Standard
29585 Printed table footnote.
29590 \begin_layout Standard
29591 \begin_inset Tabular
29592 <lyxtabular version="3" rows="2" columns="1">
29593 <features rotate="0" tabularvalignment="middle">
29594 <column alignment="center" valignment="top">
29596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29599 \begin_layout Plain Layout
29600 This an example text.
29604 \begin_layout Plain Layout
29605 This footnote will not be printed!
29617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29620 \begin_layout Plain Layout
29621 This an example text.
29625 \begin_layout Plain Layout
29648 \begin_layout Plain Layout
29657 Printed table footnote.
29661 \begin_layout Plain Layout
29671 \begin_layout Standard
29672 Footnotes in longtables are described in section
29673 \begin_inset space ~
29677 \begin_inset CommandInset ref
29679 reference "sub:Footnotes-in-Longtables"
29686 \begin_layout Standard
29687 Footnotes in minipage boxes are printed, but inside the box and with a different
29688 numbering because a minipage box is like a page inside a page.
29689 (For more about minipages, see section
29690 \begin_inset space ~
29694 \begin_inset CommandInset ref
29696 reference "sec:Minipages"
29700 .) To get a footnote in the minipage that is output at the bottom of the
29701 page like normal footnotes, also use the method of
29716 \begin_layout Standard
29717 \begin_inset Box Frameless
29727 height_special "totalheight"
29730 \begin_layout Plain Layout
29731 This an example text in a minipage.
29735 \begin_layout Plain Layout
29736 Footnote in the minipage.
29744 \begin_layout Plain Layout
29745 This an example text in a minipage.
29749 \begin_layout Plain Layout
29766 \begin_layout Standard
29770 \begin_layout Plain Layout
29779 Footnote outside the minipage.
29783 \begin_layout Plain Layout
29793 \begin_layout Standard
29794 \begin_inset VSpace defskip
29800 \begin_layout Standard
29801 To refer to the same footnote several times without printing the footnote
29802 text every time, use the command
29806 footnotemark[number]
29809 \begin_inset Newline newline
29812 As you do not know the number of the repeating footnote while you are writing
29813 the text, you have to store its number.
29814 For the following footnote mark example, these commands were inserted in
29815 TeX-code after Footnote
29816 \begin_inset space ~
29820 \begin_inset CommandInset ref
29822 reference "foot:This-is-an"
29826 to store the footnote number:
29829 \begin_layout Standard
29834 newcounter{MyRepeatFoot}
29835 \begin_inset Newline newline
29840 setcounter{MyRepeatFoot}{
29845 \begin_layout Standard
29846 The footnote mark was then created with this command:
29849 \begin_layout Standard
29859 \begin_layout Standard
29860 Here is a repeated footnote:
29868 \begin_layout Plain Layout
29882 \begin_layout Standard
29883 If you want to repeat the previous footnote, you can omit the storage of
29884 the footnote number and just use this command instead:
29887 \begin_layout Standard
29897 \begin_layout Standard
29898 Here is another repeated footnote:
29906 \begin_layout Plain Layout
29920 \begin_layout Subsection
29922 \begin_inset CommandInset label
29924 name "sub:Footnote-Numbering"
29929 \begin_inset Index idx
29932 \begin_layout Plain Layout
29933 Footnotes ! Numbering
29941 \begin_layout Standard
29942 To reset the footnote number back to 1 after each section
29944 , add this command to your document preamble:
29947 \begin_layout Standard
29952 @addtoreset{footnote}{section}
29955 \begin_layout Standard
29956 \begin_inset VSpace bigskip
29959 The following preamble command changes the footnote numbering style to small
29963 \begin_layout Standard
29975 \begin_layout Standard
29979 \begin_layout Plain Layout
29992 This is a footnote with roman numbering:
29996 \begin_layout Plain Layout
29997 This is an example footnote with roman numbering.
30005 \begin_layout Standard
30006 To change the numbering style to capital roman numerals replace in the command
30021 \begin_inset Quotes eld
30025 \begin_inset Quotes erd
30028 footnotes with capital or small Latin letters use
30042 \begin_inset Quotes eld
30046 \begin_inset Quotes erd
30049 footnotes with symbols use
30058 \begin_layout Standard
30059 \begin_inset Note Greyedout
30062 \begin_layout Plain Layout
30067 You can only number 26 footnotes with Latin letters, because this numbering
30068 is limited to single letters.
30074 \begin_inset Newline newline
30078 \begin_inset Note Greyedout
30081 \begin_layout Plain Layout
30086 You can only number 9 footnotes with symbols.
30094 \begin_layout Standard
30095 To return to the default numbering style after you have changed to another
30108 in the command above.
30112 \begin_layout Plain Layout
30128 \begin_layout Standard
30129 \begin_inset VSpace bigskip
30135 \begin_layout Standard
30136 If you want to have footnotes numbered in the scheme
30137 \begin_inset Quotes eld
30141 \begin_inset Quotes erd
30144 , add the following command to your document preamble:
30147 \begin_layout Standard
30152 numberwithin{footnote}{chapter}
30155 \begin_layout Standard
30156 To be able to use the command
30165 \begin_inset space ~
30170 in the document settings the option
30173 \begin_inset space ~
30177 \begin_inset space ~
30181 \begin_inset space ~
30189 \begin_layout Standard
30193 \begin_layout Plain Layout
30197 numberwithin{footnote}{chapter}
30202 This is another example footnote:
30208 \begin_layout Plain Layout
30209 This is a footnote numbered in the scheme
30210 \begin_inset Quotes eld
30214 \begin_inset Quotes erd
30228 \begin_layout Plain Layout
30244 \begin_layout Standard
30245 \begin_inset Note Greyedout
30248 \begin_layout Plain Layout
30259 always prints out the footnote number as arabic number; previous redefinitions
30260 to get non-arabic numbers are overwritten.
30268 \begin_layout Standard
30269 So to get for example the scheme
30270 \begin_inset Quotes eld
30276 \begin_inset Quotes erd
30279 , use this command instead of
30288 \begin_layout Standard
30302 \begin_layout Subsection
30304 \begin_inset Index idx
30307 \begin_layout Plain Layout
30308 Footnotes ! Placement
30316 \begin_layout Standard
30317 If you have several footnotes in one page, they appear without vertical
30318 space between them at the bottom of the page.
30319 To make them more readable you can e.
30320 \begin_inset space \thinspace{}
30324 \begin_inset space \space{}
30328 \begin_inset space \thinspace{}
30331 mm space with the following preamble command:
30334 \begin_layout Standard
30344 \begin_inset Newline newline
30358 \begin_layout Standard
30359 \begin_inset VSpace bigskip
30362 In a two-column document the footnotes appear at the bottom of every column,
30364 \begin_inset space ~
30368 \begin_inset CommandInset ref
30370 reference "fig:Standard-footnote-placement"
30375 If the footnotes should only appear at the bottom of the right column,
30377 \begin_inset space ~
30381 \begin_inset CommandInset ref
30383 reference "fig:Footnote-placement-in"
30387 , use the LaTeX-package
30392 \begin_inset Index idx
30395 \begin_layout Plain Layout
30396 LaTeX-packages ! ftnright
30401 with this command in the document preamble:
30404 \begin_layout Standard
30409 usepackage{ftnright}
30412 \begin_layout Standard
30413 \begin_inset Float figure
30419 \begin_layout Plain Layout
30423 \begin_layout Plain Layout
30433 \begin_inset Graphics
30434 filename clipart/without_fntright.pdf
30436 scaleBeforeRotation
30444 \begin_layout Plain Layout
30454 \begin_layout Plain Layout
30455 \begin_inset Caption Standard
30457 \begin_layout Plain Layout
30458 \begin_inset CommandInset label
30460 name "fig:Standard-footnote-placement"
30464 Standard footnote placement in two-column documents.
30477 \begin_layout Standard
30478 \begin_inset Float figure
30484 \begin_layout Plain Layout
30488 \begin_layout Plain Layout
30498 \begin_inset Graphics
30499 filename clipart/with_fntright.pdf
30501 scaleBeforeRotation
30509 \begin_layout Plain Layout
30519 \begin_layout Plain Layout
30520 \begin_inset Caption Standard
30522 \begin_layout Plain Layout
30523 \begin_inset CommandInset label
30525 name "fig:Footnote-placement-in"
30529 Footnote placement in two-column documents when the LaTeX-package
30546 \begin_layout Standard
30547 \begin_inset VSpace bigskip
30550 In some scientific literature it is usual to collect the footnotes and print
30551 them in a separate paragraph at the end of a section, as in Figure
30552 \begin_inset space ~
30556 \begin_inset CommandInset ref
30558 reference "fig:Endnotes"
30563 They are then called
30564 \begin_inset Quotes eld
30568 \begin_inset Quotes erd
30572 \begin_inset Index idx
30575 \begin_layout Plain Layout
30581 To use endnotes instead of footnotes in your document, load in the menu
30584 Document\SpecialChar \menuseparator
30585 Settings\SpecialChar \menuseparator
30591 \begin_inset space ~
30595 \begin_inset space ~
30601 To insert the collected footnotes, insert the command
30604 \begin_layout Standard
30612 \begin_layout Standard
30613 in TeX-Code at the end of a section or chapter.
30616 \begin_layout Standard
30617 \begin_inset Float figure
30622 \begin_layout Plain Layout
30627 \begin_layout Plain Layout
30637 \begin_inset Graphics
30638 filename clipart/endnotes.pdf
30639 scaleBeforeRotation
30647 \begin_layout Plain Layout
30657 \begin_layout Plain Layout
30658 \begin_inset Caption Standard
30660 \begin_layout Plain Layout
30661 \begin_inset CommandInset label
30663 name "fig:Endnotes"
30667 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30681 \begin_layout Standard
30682 \begin_inset VSpace medskip
30685 The paragraph heading for the endnotes isn't automatically translated into
30686 the document language, this must be done manually.
30687 The following preamble command translates the default English
30688 \begin_inset Quotes eld
30692 \begin_inset Quotes erd
30696 \begin_inset Quotes eld
30700 \begin_inset Quotes erd
30706 \begin_layout Standard
30713 notesname}{Anmerkungen}
30716 \begin_layout Standard
30717 \begin_inset VSpace medskip
30720 The numbering of endnotes can be changed like the footnote numbering as
30721 described in section
30722 \begin_inset space ~
30726 \begin_inset CommandInset ref
30728 reference "sub:Footnote-Numbering"
30732 ; just replace the command
30745 To reset the endnote number use the command
30751 as described in section
30752 \begin_inset space ~
30756 \begin_inset CommandInset ref
30758 reference "sub:Footnote-Numbering"
30762 and replace the command parameter
30773 \begin_layout Standard
30774 For endnotes there is the command
30778 endnotemark[number]
30780 similar to the command
30786 , that is described in section
30787 \begin_inset space ~
30791 \begin_inset CommandInset ref
30793 reference "sec:Footnotes"
30800 \begin_layout Standard
30801 \begin_inset VSpace bigskip
30804 Footnotes can also be placed in the page margin and the footnote text alignment
30805 can be changed, see the LaTeX-package
30810 \begin_inset Index idx
30813 \begin_layout Plain Layout
30814 LaTeX-packages ! footmisc
30820 \begin_inset CommandInset citation
30826 for more information about this.
30829 \begin_layout Standard
30830 For various further footnote formatting issues have a look at LaTeX-books,
30832 \begin_inset CommandInset citation
30834 key "latexcompanion,latexguide,latexbook"
30844 \begin_inset Index idx
30847 \begin_layout Plain Layout
30848 LaTeX-packages ! KOMA-Script
30853 document class, you can adjust all footnote settings using class-specific
30855 \begin_inset CommandInset citation
30864 \begin_layout Section
30866 \begin_inset Index idx
30869 \begin_layout Plain Layout
30870 Notes ! Margin Notes
30878 \begin_layout Standard
30879 Margin notes look and behave in LyX like footnotes.
30880 They are inserted via the menu
30882 Insert\SpecialChar \menuseparator
30884 \begin_inset space ~
30889 or the toolbar button
30892 arg "marginalnote-insert"
30906 \begin_inset Quotes eld
30910 \begin_inset Quotes erd
30913 appears where you can enter the text of the margin note.
30916 \begin_layout Standard
30917 At the side is an example margin note.
30922 \begin_inset Marginal
30925 \begin_layout Plain Layout
30926 This is a margin note.
30934 \begin_layout Standard
30935 Margin notes appear at the right side in single-sided documents.
30936 In double-sided documents they appear in the outer margin – left on even
30937 pages, right on odd pages.
30938 The text of margin notes is aligned opposite to the outer margin – right-aligne
30939 d when the note appears in the left margin.
30940 The first line of the margin note is placed at the position of the text
30941 line where it is inserted in the document.
30944 \begin_layout Standard
30945 \begin_inset VSpace bigskip
30948 To place the margin note in the inner margin, add the command
30951 \begin_layout Standard
30959 \begin_layout Standard
30960 in TeX-Code before a margin note.
30961 The new placement is valid for all subsequent margin notes.
30966 \begin_layout Plain Layout
30976 \begin_inset Marginal
30979 \begin_layout Plain Layout
30980 This is a margin note in the inner margin.
30988 \begin_inset Newline newline
30994 \begin_inset Note Greyedout
30997 \begin_layout Plain Layout
31002 There is often not enough space in the inner margin so that the notes are
31003 not correctly displayed in the output.
31011 \begin_layout Standard
31012 To return to the default placement insert the command
31015 \begin_layout Standard
31023 \begin_layout Standard
31028 \begin_layout Plain Layout
31038 \begin_inset Note Greyedout
31041 \begin_layout Plain Layout
31046 The command is ignored when it is within a paragraph where also the command
31061 \begin_layout Standard
31062 \begin_inset VSpace bigskip
31069 \begin_inset Marginal
31072 \begin_layout Plain Layout
31073 AVeryLongMarginParWord that isn't hyphenated.
31081 Similar to the case described in section
31082 \begin_inset space ~
31086 \begin_inset CommandInset ref
31088 reference "sub:Multiple-Lines-in"
31092 , long words cannot be hyphenated when they are the first word in a margin
31094 To avoid this, insert 0
31095 \begin_inset space \thinspace{}
31098 pt horizontal space before the word
31103 \begin_inset Marginal
31106 \begin_layout Plain Layout
31107 \begin_inset space \hspace*{}
31111 AVeryLongMarginParWord that is hyphenated.
31119 \begin_layout Standard
31120 \begin_inset VSpace bigskip
31126 \begin_layout Standard
31127 \begin_inset Note Greyedout
31130 \begin_layout Plain Layout
31135 Margin notes can normally not be used inside tables, floats, and footnotes.
31143 \begin_layout Standard
31144 \begin_inset VSpace bigskip
31150 \begin_layout Standard
31154 \begin_layout Plain Layout
31164 \begin_inset Note Note
31167 \begin_layout Plain Layout
31168 The following section will only be displayed when the LaTeX-package
31180 \begin_layout Standard
31181 This restriction can be evaded by using the LaTeX-package
31186 \begin_inset Index idx
31189 \begin_layout Plain Layout
31190 LaTeX-packages ! marginnote
31196 By adding these two lines to your document preamble, the command used by
31197 LyX for margin notes is redefined to use the command provided by the
31204 \begin_layout Standard
31209 usepackage{marginnote}
31210 \begin_inset Newline newline
31222 \begin_layout Standard
31223 This is also used in this document because
31227 has another useful feature: You can set a vertical offset for the note.
31228 This is often needed when too many margin notes are too close together
31229 or for a better page layout.
31230 The offset is set in LyX as TeX-Code directly after the margin note in
31234 \begin_layout Standard
31240 \begin_layout Standard
31241 where the offset is a length with one of the units listed in Table
31242 \begin_inset space ~
31246 \begin_inset CommandInset ref
31248 reference "tab:Units"
31253 A negative value shifts the note up, a positive value shifts it down.
31257 For example the margin note beside this text line is shifted up 1.5
31258 \begin_inset space \thinspace{}
31261 cm with the TeX-Code-command
31262 \begin_inset Quotes eld
31272 \begin_inset Quotes erd
31276 \begin_inset Marginal
31279 \begin_layout Plain Layout
31280 This margin note is shifted up 1.5
31281 \begin_inset space \thinspace{}
31284 cm from its original position.
31296 \begin_layout Plain Layout
31306 \begin_layout Standard
31307 \begin_inset VSpace medskip
31314 you can also change the alignment of the text in the margin note.
31315 For example the commands
31318 \begin_layout Standard
31325 raggedleftmarginnote}{
31328 \begin_inset Newline newline
31335 raggedrightmarginnote}{
31340 \begin_layout Standard
31341 set the alignment to centered.
31346 raggedleftmarginnote
31348 denotes margin notes that appear at the left side.
31355 \begin_layout Plain Layout
31361 raggedleftmarginnote}{
31366 \begin_layout Plain Layout
31372 raggedrightmarginnote}{
31380 \begin_inset Marginal
31383 \begin_layout Plain Layout
31384 The text of this margin note is centered.
31395 \begin_layout Standard
31402 raggedleftmarginnote}{
31405 \begin_inset Newline newline
31412 raggedrightmarginnote}{
31421 \begin_layout Plain Layout
31427 raggedleftmarginnote}{
31432 \begin_layout Plain Layout
31438 raggedrightmarginnote}{
31448 \begin_layout Standard
31449 \begin_inset VSpace medskip
31452 For the other features of
31456 refer to its documentation
31457 \begin_inset CommandInset citation
31466 \begin_layout Standard
31467 \begin_inset VSpace bigskip
31470 You can adjust the layout of margin notes by changing its definition.
31471 To create for example a header for all margin notes with the underlined,
31472 sans-serif, and bold header text
31473 \begin_inset Quotes eld
31485 \begin_inset Quotes erd
31488 , add this to your document preamble:
31491 \begin_layout Standard
31501 \begin_inset Newline newline
31511 \begin_inset Newline newline
31515 \begin_inset Phantom HPhantom
31518 \begin_layout Plain Layout
31521 \begin_inset space ~
31537 underbar{Attention!}}}%
31538 \begin_inset Newline newline
31542 \begin_inset Phantom HPhantom
31545 \begin_layout Plain Layout
31548 \begin_inset space ~
31565 \begin_layout Standard
31572 \begin_layout Plain Layout
31583 \begin_layout Plain Layout
31594 \begin_layout Plain Layout
31602 underbar{Attention!}}}%
31605 \begin_layout Plain Layout
31619 \begin_inset Marginal
31622 \begin_layout Plain Layout
31623 This is a margin note with a defined heading.
31635 \begin_layout Plain Layout
31649 \begin_layout Plain Layout
31666 \begin_inset Note Note
31669 \begin_layout Plain Layout
31670 The margin note format is changed only for this example.
31678 \begin_layout Standard
31682 \begin_layout Plain Layout
31692 \begin_inset Note Note
31695 \begin_layout Plain Layout
31696 The following will be displayed when the LaTeX-package
31708 \begin_layout Standard
31709 You need to install the LaTeX-package
31713 to see the following part of this section in the output.
31716 \begin_layout Standard
31720 \begin_layout Plain Layout
31732 \begin_layout Chapter
31736 \begin_layout Section
31738 \begin_inset Index idx
31741 \begin_layout Plain Layout
31742 Boxes ! Introduction
31750 \begin_layout Standard
31751 Boxes are used to format a block of text.
31752 Boxes can be used to write documents with multiple languages, see section
31753 \begin_inset space ~
31757 \begin_inset CommandInset ref
31759 reference "sec:Minipages"
31763 , to frame texts, see section
31764 \begin_inset space ~
31768 \begin_inset CommandInset ref
31770 reference "sec:Decoration"
31774 , to prevent words from being hyphenated, see section
31775 \begin_inset space ~
31779 \begin_inset CommandInset ref
31781 reference "sec:Prevent-Hyphenation"
31785 , to align text, see section
31786 \begin_inset space ~
31790 \begin_inset CommandInset ref
31792 reference "sub:Vertical-Alignment"
31796 , or to set the background color of texts, see section
31797 \begin_inset space ~
31801 \begin_inset CommandInset ref
31803 reference "sec:Colored-Boxes"
31810 \begin_layout Standard
31811 Boxes can be inserted with the menu
31813 Insert\SpecialChar \menuseparator
31816 or the toolbar button
31819 arg "box-insert Frameless"
31823 A grey box with the label
31828 \begin_inset Graphics
31829 filename clipart/BoxInsetDefaultQt4.png
31831 scaleBeforeRotation
31836 The box type can be specified by right-clicking on the box and selecting
31842 The box dialog offers the
31845 \begin_inset space ~
31867 is the default for new boxes and is explained in section
31868 \begin_inset space ~
31872 \begin_inset CommandInset ref
31874 reference "sec:Minipages"
31882 is described in section
31883 \begin_inset space ~
31887 \begin_inset CommandInset ref
31889 reference "sec:Parboxes"
31898 \begin_inset CommandInset ref
31900 reference "sec:Prevent-Hyphenation"
31907 \begin_layout Standard
31908 Boxes are not numbered and can therefore not be referenced like floats or
31912 \begin_layout Standard
31913 \begin_inset Note Greyedout
31916 \begin_layout Plain Layout
31921 Boxes must not be the item in an
31937 \begin_layout Standard
31938 \begin_inset Note Greyedout
31941 \begin_layout Plain Layout
31946 For an unknown reason you can only set the
31949 \begin_inset space ~
31958 when you use a framed box.
31962 \begin_inset space ~
31967 type and without frames are explained in section
31968 \begin_inset space ~
31972 \begin_inset CommandInset ref
31974 reference "sec:Prevent-Hyphenation"
31986 \begin_layout Section
31988 \begin_inset CommandInset label
31990 name "sec:Box-Dialog"
31995 \begin_inset Index idx
31998 \begin_layout Plain Layout
32007 \begin_layout Subsection
32009 \begin_inset Index idx
32012 \begin_layout Plain Layout
32021 \begin_layout Standard
32022 In the box dialog you can adjust the box geometry in the fields
32031 The available units for the geometry are explained in Table
32032 \begin_inset space ~
32036 \begin_inset CommandInset ref
32038 reference "tab:Units"
32047 offers the following additional sizes:
32050 \begin_layout Description
32051 Depth This is the plain text
32052 \begin_inset Quotes eld
32056 \begin_inset Quotes erd
32060 It ignores the total depth when there are multiple text lines in the box:
32061 \begin_inset Newline newline
32065 \begin_inset Newline newline
32069 \begin_inset Newline newline
32073 \begin_inset Box Boxed
32083 height_special "depth"
32086 \begin_layout Plain Layout
32088 Box height set to 1
32089 \begin_inset space \thinspace{}
32098 \begin_inset Newline newline
32102 \begin_inset Newline newline
32108 \begin_layout Description
32109 Height This is the height of the text that is inside the box.
32111 \begin_inset space \thinspace{}
32115 \begin_inset space \space{}
32118 2 for this size will set the box height to 2
32119 \begin_inset space ~
32122 times the text height:
32123 \begin_inset Box Boxed
32133 height_special "height"
32136 \begin_layout Plain Layout
32138 Box height set to 2
32139 \begin_inset space \thinspace{}
32150 \begin_layout Description
32152 \begin_inset space ~
32155 Height This is the Height
32156 \begin_inset space \thinspace{}
32160 \begin_inset space \thinspace{}
32164 \begin_inset Box Boxed
32174 height_special "totalheight"
32177 \begin_layout Plain Layout
32179 Box height set to 1
32180 \begin_inset space \thinspace{}
32184 \begin_inset space ~
32195 \begin_layout Description
32196 Width This sets the width of the box as height:
32197 \begin_inset Box Boxed
32207 height_special "width"
32210 \begin_layout Plain Layout
32212 Box height set to 1
32213 \begin_inset space \thinspace{}
32224 \begin_layout Subsection
32226 \begin_inset Index idx
32229 \begin_layout Plain Layout
32238 \begin_layout Standard
32239 When you have chosen an
32242 \begin_inset space ~
32247 , the vertical box alignment can be:
32250 \begin_layout Description
32251 Top This is an example text line.
32253 \begin_inset Box Boxed
32263 height_special "totalheight"
32266 \begin_layout Plain Layout
32268 This box is top-aligned.
32273 This is an example text line.
32276 \begin_layout Description
32277 Middle This is an example text line.
32279 \begin_inset Box Boxed
32289 height_special "totalheight"
32292 \begin_layout Plain Layout
32294 This box is middle-aligned.
32299 This is an example text line.
32302 \begin_layout Description
32303 Bottom This is an example text line.
32305 \begin_inset Box Boxed
32315 height_special "totalheight"
32318 \begin_layout Plain Layout
32320 This box is bottom-aligned.
32325 This is an example text line.
32328 \begin_layout Standard
32329 \begin_inset Note Greyedout
32332 \begin_layout Plain Layout
32337 The vertical box alignment can be lost in the output when you have two
32338 boxes in a line and one has e.
32339 \begin_inset space \thinspace{}
32343 \begin_inset space \space{}
32346 a shadow and the other one not.
32354 \begin_layout Standard
32355 The horizontal box alignment can be set via LyX's paragraph dialog when
32356 you set the box into its own paragraph.
32359 \begin_layout Standard
32360 \begin_inset VSpace bigskip
32363 When you have chosen an
32366 \begin_inset space ~
32371 , the box content can be aligned vertically to:
32374 \begin_layout Description
32375 top This is an example text line.
32377 \begin_inset Box Boxed
32387 height_special "totalheight"
32390 \begin_layout Plain Layout
32392 This box text is top-aligned.
32397 This is an example text line.
32400 \begin_layout Description
32401 middle This is an example text line.
32403 \begin_inset Box Boxed
32413 height_special "totalheight"
32416 \begin_layout Plain Layout
32418 This box text is middle-aligned.
32423 This is an example text line.
32426 \begin_layout Description
32427 bottom This is an example text line.
32429 \begin_inset Box Boxed
32439 height_special "totalheight"
32442 \begin_layout Plain Layout
32444 This box text is bottom-aligned.
32449 This is an example text line.
32452 \begin_layout Description
32453 stretch This is an example text line.
32455 \begin_inset Box Boxed
32465 height_special "totalheight"
32468 \begin_layout Plain Layout
32473 \begin_layout Plain Layout
32478 \begin_layout Plain Layout
32485 This is an example text line.
32488 \begin_layout Standard
32489 To stretch the box content, it must consist of more than one paragraph.
32490 In the example above every text line is in an own paragraph.
32493 \begin_layout Standard
32494 \begin_inset VSpace bigskip
32497 To align the box content horizontally you can use LyX's paragraph dialog
32498 when you have chosen an
32501 \begin_inset space ~
32509 \begin_layout Standard
32511 \begin_inset Box Boxed
32521 height_special "totalheight"
32524 \begin_layout Plain Layout
32529 \begin_layout Plain Layout
32534 \begin_layout Plain Layout
32544 \begin_layout Standard
32545 If you have not set an
32548 \begin_inset space ~
32553 , you can align the box content horizontally in the box dialog.
32556 \begin_layout Standard
32558 \begin_inset Box Boxed
32568 height_special "totalheight"
32571 \begin_layout Plain Layout
32572 This box text is horizontally stretched.
32580 \begin_layout Subsection
32582 \begin_inset CommandInset label
32584 name "sec:Decoration"
32589 \begin_inset Index idx
32592 \begin_layout Plain Layout
32601 \begin_layout Standard
32602 The type of the box can be specified in the box dialog in the drop-down
32608 The following types are possible:
32611 \begin_layout Description
32613 \begin_inset space ~
32616 frame Nothing is drawn.
32619 \begin_layout Description
32621 \begin_inset space ~
32625 \begin_inset space ~
32628 frame This draws a rectangular frame around the box.
32629 The frame line thickness has the size of
32637 \begin_inset Box Boxed
32647 height_special "totalheight"
32650 \begin_layout Plain Layout
32660 \begin_layout Description
32662 \begin_inset space ~
32666 \begin_inset space ~
32669 thin This draws an oval frame around the box.
32670 The frame line thickness has the size 0.4
32671 \begin_inset space \thinspace{}
32676 \begin_inset Box ovalbox
32686 height_special "totalheight"
32689 \begin_layout Plain Layout
32699 \begin_layout Description
32701 \begin_inset space ~
32705 \begin_inset space ~
32708 thick This draws an oval frame around the box.
32709 The frame line thickness has the size 0.8
32710 \begin_inset space \thinspace{}
32715 \begin_inset Box Ovalbox
32725 height_special "totalheight"
32728 \begin_layout Plain Layout
32738 \begin_layout Description
32740 \begin_inset space ~
32743 shadow This draws a rectangular frame with a shadow around the box.
32744 The frame line thickness has the size of
32750 , the shadow has a width of 4
32751 \begin_inset space \thinspace{}
32756 \begin_inset Box Shadowbox
32766 height_special "totalheight"
32769 \begin_layout Plain Layout
32779 \begin_layout Description
32781 \begin_inset space ~
32784 background This draws a box with a red background.
32785 Unlike colored boxes
32789 \begin_layout Plain Layout
32791 \begin_inset space \thinspace{}
32795 \begin_inset CommandInset ref
32797 reference "sec:Colored-Boxes"
32806 , it always uses the whole column width and the box is set as its own paragraph.
32808 \begin_inset Box Shaded
32818 height_special "totalheight"
32821 \begin_layout Plain Layout
32822 Shaded background box
32830 \begin_layout Description
32832 \begin_inset space ~
32836 \begin_inset space ~
32839 frame This draws a double-line rectangular frame around the box.
32840 The line thickness of the inner frame is 0.75
32841 \begin_inset space \thinspace{}
32850 , the thickness of the outer frame is 1.5
32851 \begin_inset space \thinspace{}
32861 The distance between the lines is 1.5
32862 \begin_inset space \thinspace{}
32872 \begin_inset space \thinspace{}
32876 \begin_inset space \thinspace{}
32880 \begin_inset space \thinspace{}
32885 \begin_inset Box Doublebox
32895 height_special "totalheight"
32898 \begin_layout Plain Layout
32900 Double rectangular box
32908 \begin_layout Standard
32909 \begin_inset VSpace bigskip
32912 LyX's box label will reflect the different frame types.
32913 To be able to use all types, the LaTeX-package
32918 \begin_inset Index idx
32921 \begin_layout Plain Layout
32922 LaTeX-packages ! fancybox
32930 \begin_layout Standard
32931 \begin_inset VSpace bigskip
32934 When you use the decoration
32936 simple rectangular frame
32938 and no inner box, you can allow page breaks within a box.
32939 Note that then, unlike other framed boxes, the frame always uses the whole
32940 column width, the box is set as its own paragraph, and
32952 have no effect on this box type.
32953 The frame line thickness has the size of
32961 \begin_inset Box Framed
32971 height_special "totalheight"
32974 \begin_layout Plain Layout
32975 Allow page break box
32983 \begin_layout Section
32985 \begin_inset Index idx
32988 \begin_layout Plain Layout
32989 Boxes ! Customization
32997 \begin_layout Standard
32998 The default value for the size
33005 \begin_inset space \thinspace{}
33009 It can be changed with the following command in TeX-code to e.
33010 \begin_inset space \thinspace{}
33014 \begin_inset space \space{}
33018 \begin_inset space \thinspace{}
33024 \begin_layout Standard
33034 \begin_layout Standard
33038 \begin_layout Plain Layout
33050 \begin_inset Box Boxed
33060 height_special "totalheight"
33063 \begin_layout Plain Layout
33065 Rectangular box with
33072 \begin_inset space \thinspace{}
33076 \begin_inset space \thinspace{}
33080 \begin_inset space \thinspace{}
33092 \begin_layout Plain Layout
33106 \begin_layout Standard
33107 \begin_inset VSpace bigskip
33110 The space between the frame and the box content is for all frame styles
33112 \begin_inset space \thinspace{}
33116 You can change it by setting the length
33123 For example the command
33126 \begin_layout Standard
33136 \begin_layout Standard
33137 sets the value to 10
33138 \begin_inset space \thinspace{}
33141 pt, as with the following box:
33144 \begin_layout Standard
33148 \begin_layout Plain Layout
33160 \begin_inset Box Boxed
33170 height_special "totalheight"
33173 \begin_layout Plain Layout
33175 Rectangular box with
33182 \begin_inset space \thinspace{}
33186 \begin_inset space \thinspace{}
33190 \begin_inset space \thinspace{}
33202 \begin_layout Plain Layout
33216 \begin_layout Standard
33217 \begin_inset VSpace bigskip
33220 The diameter of the round corners of the oval boxes can be set with the
33231 \begin_layout Standard
33239 \begin_layout Standard
33240 sets the diameter to 1
33241 \begin_inset space \thinspace{}
33248 \begin_layout Standard
33256 \begin_layout Standard
33257 sets the diameter to
33260 \begin_inset space \thinspace{}
33264 \begin_inset space \thinspace{}
33267 minimum(width and height of box)
33279 \begin_layout Standard
33283 \begin_layout Plain Layout
33293 \begin_inset Box Ovalbox
33303 height_special "totalheight"
33306 \begin_layout Plain Layout
33315 \begin_inset space \thinspace{}
33319 \begin_inset space \thinspace{}
33323 \begin_inset space \thinspace{}
33335 \begin_layout Plain Layout
33347 \begin_layout Standard
33348 \begin_inset VSpace bigskip
33351 The size of the shadow can be adjusted by changing the length
33359 \begin_inset space \thinspace{}
33362 pt for the following box by this command:
33365 \begin_layout Standard
33375 \begin_layout Standard
33379 \begin_layout Plain Layout
33391 \begin_inset Box Shadowbox
33401 height_special "totalheight"
33404 \begin_layout Plain Layout
33413 \begin_inset space \thinspace{}
33417 \begin_inset space \thinspace{}
33421 \begin_inset space \thinspace{}
33433 \begin_layout Plain Layout
33447 \begin_layout Standard
33448 \begin_inset VSpace bigskip
33454 \begin_layout Standard
33455 The default value for the size
33462 \begin_inset space \thinspace{}
33466 The default space between the note content and the frame is 9
33467 \begin_inset space \thinspace{}
33470 pt and can be changed with the value of
33477 For example the frame appearance of the following
33481 is set with the TeX-Code commands
33484 \begin_layout Standard
33492 \begin_inset Newline newline
33502 \begin_layout Standard
33506 \begin_layout Plain Layout
33515 \begin_layout Plain Layout
33527 \begin_inset Box Framed
33537 height_special "totalheight"
33540 \begin_layout Plain Layout
33554 \begin_layout Plain Layout
33563 \begin_layout Plain Layout
33577 \begin_layout Standard
33578 \begin_inset VSpace bigskip
33584 \begin_layout Standard
33589 boxes the default space between the box content and the box border is 3
33590 \begin_inset space \thinspace{}
33593 pt and can be changed with the value of
33600 The default background color red can either be changed locally with the
33605 definecolor{shadecolor}
33607 or globally with the menu
33609 Tools\SpecialChar \menuseparator
33610 Preferences\SpecialChar \menuseparator
33611 Colors\SpecialChar \menuseparator
33613 \begin_inset space ~
33625 command is explained in section
33626 \begin_inset space ~
33630 \begin_inset CommandInset ref
33632 reference "sec:Colored-Tables"
33640 \begin_layout Plain Layout
33647 requires the LaTeX-package
33651 in the preamble, see section
33652 \begin_inset space ~
33656 \begin_inset CommandInset ref
33658 reference "sec:Colored-Boxes"
33667 For example the appearance of the following shaded background box is set
33668 with the TeX-Code commands
33671 \begin_layout Standard
33681 \begin_inset Newline newline
33688 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33691 \begin_layout Standard
33695 \begin_layout Plain Layout
33704 \begin_layout Plain Layout
33708 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33714 \begin_inset Box Shaded
33724 height_special "totalheight"
33727 \begin_layout Plain Layout
33730 This is yellow text in a
33740 box with dark green background.
33749 \begin_layout Plain Layout
33758 \begin_layout Plain Layout
33762 definecolor{shadecolor}{rgb}{1,0,0}
33770 \begin_layout Standard
33771 \begin_inset VSpace bigskip
33774 Changed lengths and widths are valid for all boxes following the commands
33778 \begin_layout Section
33780 \begin_inset CommandInset label
33782 name "sec:Minipages"
33787 \begin_inset Index idx
33790 \begin_layout Plain Layout
33799 \begin_layout Standard
33800 Minipages are treated by LaTeX as pages within pages and can therefore for
33801 example have their own footnotes.
33804 \begin_layout Standard
33805 Minipages are useful when you write documents with different languages.
33808 \begin_layout Standard
33809 Below are two example minipages side by side.
33810 Their width is set to 45
33811 \begin_inset space \thinspace{}
33814 col% and they are separated by a horizontal fill, that was inserted via
33817 Insert\SpecialChar \menuseparator
33819 \begin_inset space ~
33822 Formatting\SpecialChar \menuseparator
33824 \begin_inset space ~
33830 \begin_inset Newpage newpage
33836 \begin_layout Standard
33837 \begin_inset Box Frameless
33847 height_special "totalheight"
33850 \begin_layout Plain Layout
33853 Dies ist ein deutscher Text.
33854 Dies ist ein deutscher Text.
33855 Dies ist ein deutscher Text.
33856 Dies ist ein deutscher Text.
33857 Dies ist ein deutscher Text.
33858 Dies ist ein deutscher Text.
33859 Dies ist ein deutscher Text.
33860 Dies ist ein deutscher Text.
33861 Dies ist ein deutscher Text.
33862 Dies ist ein deutscher Text.
33863 Dies ist ein deutscher Text.
33864 Dies ist ein deutscher Text.
33865 Dies ist ein deutscher Text
33869 \begin_layout Plain Layout
33872 Dies ist eine deutsche Fußnote.
33878 Dies ist ein deutscher Text.
33879 Dies ist ein deutscher Text.
33885 \begin_inset space \hfill{}
33889 \begin_inset Box Frameless
33899 height_special "totalheight"
33902 \begin_layout Plain Layout
33903 This is an English Text.
33904 This is an English Text.
33905 This is an English Text.
33906 This is an English Text.
33907 This is an English Text.
33908 This is an English Text.
33909 This is an English Text.
33910 This is an English Text.
33911 This is an English Text.
33912 This is an English Text.
33913 This is an English Text.
33914 This is an English Text.
33915 This is an English Text.
33916 This is an English Text.
33917 This is an English Text.
33918 This is an English Text.
33922 \begin_layout Plain Layout
33923 This is an English footnote.
33928 This is an English Text.
33936 \begin_layout Standard
33937 \begin_inset VSpace bigskip
33940 The document-wide paragraph settings are ignored within minipages.
33941 That means that there will be no space between paragraphs in minipages
33942 although you set it to e.
33943 \begin_inset space \thinspace{}
33947 \begin_inset space \space{}
33954 in the document settings.
33957 \begin_layout Standard
33958 Minipages can also be used to set a background color for text parts, see
33960 \begin_inset space ~
33964 \begin_inset CommandInset ref
33966 reference "sub:Color-for-Paragraphs"
33973 \begin_layout Standard
33974 \begin_inset Note Greyedout
33977 \begin_layout Plain Layout
33982 You cannot have floats or margin notes inside minipages but minipages can
33983 be used inside tables, floats, and other boxes.
33991 \begin_layout Section
33993 \begin_inset CommandInset label
33995 name "sec:Parboxes"
34000 \begin_inset Index idx
34003 \begin_layout Plain Layout
34012 \begin_layout Standard
34013 Parboxes are very similar to minipages with the difference that they cannot
34017 \begin_layout Standard
34019 \begin_inset Box Frameless
34029 height_special "totalheight"
34032 \begin_layout Plain Layout
34033 This a text within a parbox.
34034 This a text within a parbox.
34037 \begin_layout Plain Layout
34038 This footnote won't appear:
34042 \begin_layout Plain Layout
34043 This footnote is inside a parbox and will therefore not appear.
34056 \begin_layout Section
34057 Boxes for Words and Characters
34058 \begin_inset Index idx
34061 \begin_layout Plain Layout
34062 Boxes ! for Characters
34070 \begin_layout Subsection
34071 Prevent Hyphenation
34072 \begin_inset CommandInset label
34074 name "sec:Prevent-Hyphenation"
34079 \begin_inset Index idx
34082 \begin_layout Plain Layout
34083 Boxes ! to Prevent Hyphenation
34091 \begin_layout Standard
34092 You can use the box type
34096 to prevent words or text from being hyphenated.
34097 \begin_inset Newline newline
34100 Here is an example text:
34103 \begin_layout Standard
34104 This line is an example to show how you can prevent the hyphenation of
34105 \begin_inset Quotes eld
34109 \begin_inset Quotes erd
34115 \begin_layout Standard
34116 To prevent the hyphenation of the word
34117 \begin_inset Quotes eld
34121 \begin_inset Quotes erd
34124 , put the word into a box, set the
34127 \begin_inset space ~
34137 \begin_inset space \thinspace{}
34143 \begin_layout Standard
34144 This is the result:
34147 \begin_layout Standard
34148 This line is an example to show how you can prevent the hyphenation of
34149 \begin_inset Box Frameless
34159 height_special "totalheight"
34162 \begin_layout Plain Layout
34163 \begin_inset Quotes eld
34167 \begin_inset Quotes erd
34178 \begin_layout Standard
34179 You can alternatively set the command
34180 \begin_inset Quotes eld
34190 \begin_inset Quotes grd
34193 as TeX-Code directly before the word:
34196 \begin_layout Standard
34197 This line is an example to show how you can prevent the hyphenation of
34198 \begin_inset Quotes eld
34205 \begin_layout Plain Layout
34215 \begin_inset Quotes erd
34221 \begin_layout Standard
34222 Of course the word now protrudes over the side margin.
34223 To avoid this, add via the menu
34225 Insert\SpecialChar \menuseparator
34226 Formatting\SpecialChar \menuseparator
34228 \begin_inset space ~
34232 \begin_inset space ~
34240 arg "newline-insert newline"
34243 ) a line break before the word:
34246 \begin_layout Standard
34247 This line is an example to show how you can prevent the hyphenation of
34248 \begin_inset Newline newline
34252 \begin_inset Box Frameless
34262 height_special "totalheight"
34265 \begin_layout Plain Layout
34266 \begin_inset Quotes eld
34270 \begin_inset Quotes erd
34281 \begin_layout Subsection
34283 \begin_inset CommandInset label
34285 name "sub:Vertical-Alignment"
34290 \begin_inset Index idx
34293 \begin_layout Plain Layout
34294 Boxes ! for Vertical Alignment
34300 \begin_inset Index idx
34303 \begin_layout Plain Layout
34312 \begin_layout Standard
34313 With the help of the command
34319 you can align words, characters or other boxes vertically relative to the
34327 is used with the following scheme:
34330 \begin_layout Standard
34335 raisebox{lift}[height][depth]{box content}
34338 \begin_layout Standard
34339 The lift can be a positive value to raise the box or a negative value to
34343 \begin_layout Standard
34344 To align for example the word
34345 \begin_inset Quotes eld
34349 \begin_inset Quotes erd
34352 so that the bottom of the
34353 \begin_inset Quotes eld
34357 \begin_inset Quotes erd
34361 \begin_inset Quotes eld
34365 \begin_inset Quotes erd
34368 is at the baseline, insert the command
34371 \begin_layout Standard
34381 \begin_layout Standard
34382 in TeX-Code before the word.
34383 After the word insert a closing brace
34384 \begin_inset Quotes eld
34392 \begin_inset Quotes erd
34396 \begin_inset Newline newline
34399 This is the result:
34402 \begin_layout Standard
34403 This is a text line with the word
34407 \begin_layout Plain Layout
34419 \begin_inset Quotes eld
34423 \begin_inset Quotes erd
34430 \begin_layout Plain Layout
34440 \begin_layout Standard
34441 \begin_inset VSpace bigskip
34444 When you raise or lower characters in a line, the line distance will be
34448 \begin_layout Standard
34449 This is a text line with the word
34453 \begin_layout Plain Layout
34465 \begin_inset Quotes eld
34469 \begin_inset Quotes erd
34476 \begin_layout Plain Layout
34484 \begin_inset Newline newline
34487 This is a text line with the word
34491 \begin_layout Plain Layout
34501 \begin_inset Quotes eld
34505 \begin_inset Quotes erd
34512 \begin_layout Plain Layout
34522 \begin_layout Standard
34523 If you want to prevent this for a certain reason, set the box height to
34528 \begin_layout Standard
34538 \begin_layout Standard
34539 This is a text line with the word
34543 \begin_layout Plain Layout
34555 \begin_inset Quotes eld
34559 \begin_inset Quotes erd
34566 \begin_layout Plain Layout
34574 \begin_inset Newline newline
34577 This is a text line with the word
34581 \begin_layout Plain Layout
34585 raisebox{0.5cm}[0pt]{
34591 \begin_inset Quotes eld
34595 \begin_inset Quotes erd
34602 \begin_layout Plain Layout
34612 \begin_layout Section
34614 \begin_inset CommandInset label
34616 name "sec:Colored-Boxes"
34621 \begin_inset Index idx
34624 \begin_layout Plain Layout
34633 \begin_layout Subsection
34635 \begin_inset Index idx
34638 \begin_layout Plain Layout
34647 \begin_layout Standard
34648 To color the background of text the text must be put into a so called
34649 \begin_inset Quotes eld
34653 \begin_inset Quotes erd
34657 This requires that the LaTeX-package
34662 \begin_inset Index idx
34665 \begin_layout Plain Layout
34666 LaTeX-packages ! color
34671 is loaded in the document preamble with the command
34674 \begin_layout Standard
34679 @ifundefined{textcolor}
34680 \begin_inset Newline newline
34684 \begin_inset Phantom HPhantom
34687 \begin_layout Plain Layout
34690 \begin_inset space ~
34700 usepackage{color}}{}
34703 \begin_layout Standard
34708 will be loaded automatically by LyX when you color text.
34712 \begin_layout Plain Layout
34713 To avoid it being loaded twice the command
34727 \begin_layout Standard
34728 \begin_inset VSpace medskip
34731 Colorboxes are created with the command
34738 This will be used with the following scheme:
34741 \begin_layout Standard
34746 colorbox{color}{box content}
34749 \begin_layout Standard
34750 The box content can also be a box and colorboxes can also be within other
34754 \begin_layout Standard
34755 The following colors are predefined:
34756 \begin_inset Newline newline
34795 \begin_inset Newline newline
34798 You can also define your own color as described in section
34799 \begin_inset space ~
34803 \begin_inset CommandInset ref
34805 reference "sec:Colored-Tables"
34812 \begin_layout Standard
34814 \begin_inset space \thinspace{}
34818 \begin_inset space \space{}
34821 a red background for a word, insert the command
34824 \begin_layout Standard
34832 \begin_layout Standard
34833 before the word in TeX-Code.
34834 After the word insert a closing brace
34835 \begin_inset Quotes eld
34843 \begin_inset Quotes erd
34847 \begin_inset Newline newline
34850 This is the result:
34853 \begin_layout Standard
34854 This is a line where the word
34858 \begin_layout Plain Layout
34868 \begin_inset Quotes eld
34872 \begin_inset Quotes erd
34879 \begin_layout Plain Layout
34886 has a red background.
34889 \begin_layout Standard
34890 \begin_inset VSpace bigskip
34893 If you would like the box frame in a different color, you can use the command
34900 with the following scheme:
34903 \begin_layout Standard
34908 fcolorbox{frame color}{box color}{box content}
34911 \begin_layout Standard
34925 The frame thickness and the space between the frame and the box content
34926 can be adjusted with the lengths
34938 , respectively, as described in section
34939 \begin_inset space ~
34943 \begin_inset CommandInset ref
34945 reference "sec:Decoration"
34952 \begin_layout Standard
34953 For the following example the command
34956 \begin_layout Standard
34961 fcolorbox{cyan}{magenta}{
34964 \begin_layout Standard
34968 \begin_layout Standard
34969 Here is an example where the frame line thickness was set to 1
34970 \begin_inset space \thinspace{}
34974 \begin_inset Newline newline
34981 \begin_layout Plain Layout
34996 \begin_layout Plain Layout
35000 fcolorbox{cyan}{magenta}{
35005 This is text within a colored, framed box.
35009 \begin_layout Plain Layout
35019 \begin_layout Standard
35020 \begin_inset VSpace bigskip
35023 Of course you can also have colored text inside a colorbox:
35024 \begin_inset Newline newline
35031 \begin_layout Plain Layout
35035 fcolorbox{cyan}{magenta}{
35042 This is colored text within a colored, framed box.
35048 \begin_layout Plain Layout
35059 \begin_layout Plain Layout
35073 \begin_layout Standard
35074 \begin_inset VSpace medskip
35080 \begin_layout Standard
35081 \begin_inset Note Greyedout
35084 \begin_layout Plain Layout
35089 Text in colorboxes cannot have line breaks.
35090 To color multiple text lines or paragraphs, use a box inside a colorbox
35091 as described in the following.
35099 \begin_layout Subsection
35100 Color for Paragraphs
35101 \begin_inset CommandInset label
35103 name "sub:Color-for-Paragraphs"
35108 \begin_inset Index idx
35111 \begin_layout Plain Layout
35112 Color ! for Paragraphs
35120 \begin_layout Standard
35121 To set the background color for more than one text line, put the text into
35123 Before the minipage insert the
35132 \begin_layout Standard
35140 \begin_layout Standard
35142 After the minipage insert a closing brace
35143 \begin_inset Quotes eld
35151 \begin_inset Quotes erd
35157 \begin_layout Standard
35161 \begin_layout Plain Layout
35165 colorbox{lightgrey}{
35171 \begin_inset Box Frameless
35181 height_special "totalheight"
35184 \begin_layout Plain Layout
35185 This is text with background color.
35186 This is text with background color.
35189 \begin_layout Plain Layout
35190 \begin_inset VSpace defskip
35193 The text can have footnotes
35197 \begin_layout Plain Layout
35198 Another example footnote
35203 and can include tables and figures.
35206 \begin_layout Plain Layout
35208 \begin_inset Tabular
35209 <lyxtabular version="3" rows="3" columns="3">
35210 <features rotate="0" tabularvalignment="middle">
35211 <column alignment="center" valignment="top">
35212 <column alignment="center" valignment="top">
35213 <column alignment="center" valignment="top">
35215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35218 \begin_layout Plain Layout
35224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35227 \begin_layout Plain Layout
35233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35236 \begin_layout Plain Layout
35244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35247 \begin_layout Plain Layout
35253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35256 \begin_layout Plain Layout
35258 \begin_inset Quotes erd
35266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35269 \begin_layout Plain Layout
35277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35280 \begin_layout Plain Layout
35286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35289 \begin_layout Plain Layout
35295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35298 \begin_layout Plain Layout
35318 \begin_layout Plain Layout
35328 \begin_layout Section
35329 Rotated and Scaled Boxes
35332 \begin_layout Standard
35333 To use the commands described in this section, the LaTeX-package
35338 \begin_inset Index idx
35341 \begin_layout Plain Layout
35342 LaTeX-packages ! graphicx
35347 needs to be loaded in the document preamble with the command
35350 \begin_layout Standard
35355 @ifundefined{rotatebox}
35356 \begin_inset Newline newline
35360 \begin_inset Phantom HPhantom
35363 \begin_layout Plain Layout
35366 \begin_inset space ~
35376 usepackage{graphicx}}{}
35379 \begin_layout Standard
35380 \begin_inset Note Greyedout
35383 \begin_layout Plain Layout
35388 Not all DVI-viewers are able to display rotated or scaled material.
35396 \begin_layout Standard
35397 \begin_inset Note Greyedout
35400 \begin_layout Plain Layout
35405 Floats are not allowed inside a rotated or scaled box.
35413 \begin_layout Subsection
35415 \begin_inset Index idx
35418 \begin_layout Plain Layout
35425 \begin_inset Index idx
35428 \begin_layout Plain Layout
35437 \begin_layout Standard
35438 To rotate material, you can put it into a rotated box.
35439 Such a box is created using the command
35445 in TeX-Code with the following scheme:
35448 \begin_layout Standard
35453 rotatebox[rotation origin]{rotation angle}{box content}
35456 \begin_layout Standard
35457 The rotation origin is specified in the form
35462 The following positions are possible:
35482 (top), along with meaningful combinations of the four base positions.
35487 means that the rotation origin is at the top left corner of the box.
35488 When no rotation origin is specified, the position
35493 The rotation angle is a number that can be negative that specifies the
35495 The rotation direction is counterclockwise.
35498 \begin_layout Standard
35499 In the following example the command
35503 rotatebox[origin=c]{60}{
35505 was inserted as TeX-Code before the text
35506 \begin_inset Quotes eld
35510 \begin_inset Quotes erd
35513 ; after the text the box was closed by a closing brace
35520 \begin_layout Standard
35525 \begin_layout Plain Layout
35529 rotatebox[origin=c]{60}{
35538 \begin_layout Plain Layout
35548 \begin_layout Standard
35549 The box content can also be another box or an inline formula:
35552 \begin_layout Standard
35557 \begin_layout Plain Layout
35561 rotatebox[origin=r]{-60}{
35567 \begin_inset Box Doublebox
35577 height_special "totalheight"
35580 \begin_layout Plain Layout
35590 \begin_layout Plain Layout
35601 \begin_layout Plain Layout
35605 rotatebox[origin=lb]{60}{
35611 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35618 \begin_layout Plain Layout
35628 \begin_layout Standard
35629 or an image or table:
35632 \begin_layout Standard
35637 \begin_layout Plain Layout
35641 rotatebox[origin=lb]{90}{
35647 \begin_inset Graphics
35648 filename clipart/platypus.eps
35658 \begin_layout Plain Layout
35665 with a rotated image
35669 \begin_layout Plain Layout
35673 rotatebox[origin=l]{-90}{
35679 \begin_inset Tabular
35680 <lyxtabular version="3" rows="2" columns="2">
35681 <features rotate="0" tabularvalignment="middle">
35682 <column alignment="center" valignment="top">
35683 <column alignment="center" valignment="top">
35685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35688 \begin_layout Plain Layout
35694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35697 \begin_layout Plain Layout
35705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35708 \begin_layout Plain Layout
35714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35717 \begin_layout Plain Layout
35732 \begin_layout Plain Layout
35740 \begin_inset Index idx
35743 \begin_layout Plain Layout
35750 \begin_inset Index idx
35753 \begin_layout Plain Layout
35754 Table Customization ! Rotating
35762 \begin_layout Subsection
35764 \begin_inset Index idx
35767 \begin_layout Plain Layout
35774 \begin_inset Index idx
35777 \begin_layout Plain Layout
35786 \begin_layout Standard
35787 To scale material the commands
35799 can be used as TeX-Code.
35802 \begin_layout Standard
35809 is used with the following scheme:
35812 \begin_layout Standard
35817 scalebox{horizontal}[vertical]{box content}
35820 \begin_layout Standard
35821 Horizontal and vertical are the corresponding scaling factors.
35822 If no vertical scaling factor is given, the horizontal factor will also
35823 be used as the vertical one.
35826 \begin_layout Standard
35833 creates for example a double size
35837 \begin_layout Plain Layout
35850 \begin_layout Plain Layout
35857 , compared with the document text size.
35860 \begin_layout Standard
35865 scalebox{2}[1]{Hello}
35867 on the other hand distorts the
35871 \begin_layout Plain Layout
35884 \begin_layout Plain Layout
35894 \begin_layout Standard
35895 If the scaling factor is negative, the box content will be mirrored.
35896 Therefore the command
35900 scalebox{-1}[1]{Hello}
35902 can be used to create mirror writing:
35906 \begin_layout Plain Layout
35919 \begin_layout Plain Layout
35929 \begin_layout Standard
35934 scalebox{1}[-1]{Hello}
35940 \begin_layout Plain Layout
35953 \begin_layout Plain Layout
35963 \begin_layout Standard
35968 scalebox{-1}[1]{box content}
35970 there exists the command
35971 \begin_inset Newline newline
35978 reflectbox{box content}
35983 \begin_layout Standard
35984 \begin_inset VSpace bigskip
35993 is used to scale the box to a defined width and height.
35994 The command scheme is:
35997 \begin_layout Standard
36002 resizebox{width}{height}{box content}
36005 \begin_layout Standard
36006 If one of the two command arguments given is an exclamation mark
36010 , the size is set so that the aspect ratio of the box content is kept.
36013 \begin_layout Standard
36018 resizebox{2cm}{1cm}{Hello}
36024 \begin_layout Plain Layout
36028 resizebox{2cm}{1cm}{
36037 \begin_layout Plain Layout
36045 \begin_inset Newline newline
36052 resizebox{2cm}{!}{Hello}
36058 \begin_layout Plain Layout
36071 \begin_layout Plain Layout
36081 \begin_layout Standard
36082 \begin_inset VSpace bigskip
36086 \begin_inset Note Greyedout
36089 \begin_layout Plain Layout
36106 are set to zero, no LaTeX-errors occur when exporting the document but
36107 the exported files can not or only partly be displayed.
36115 \begin_layout Standard
36116 \begin_inset VSpace bigskip
36122 \begin_layout Standard
36123 The boxes can be combined in any order.
36125 \begin_inset space \thinspace{}
36129 \begin_inset space \space{}
36133 \begin_inset Newline newline
36140 rotatebox[origin=c]{-45}{
36144 reflectbox{Hello}}}
36145 \begin_inset Newline newline
36153 \begin_layout Standard
36158 \begin_layout Plain Layout
36162 rotatebox[origin=c]{-45}{
36175 \begin_layout Plain Layout
36185 \begin_layout Standard
36187 Images, tables, and inline formulas are allowed as box content:
36190 \begin_layout Standard
36195 \begin_layout Plain Layout
36199 rotatebox[origin=c]{-30}{
36209 \begin_inset Graphics
36210 filename clipart/platypus.eps
36220 \begin_layout Plain Layout
36231 \begin_layout Plain Layout
36235 rotatebox[origin=c]{-45}{
36245 \begin_inset Tabular
36246 <lyxtabular version="3" rows="2" columns="2">
36247 <features rotate="0" tabularvalignment="middle">
36248 <column alignment="center" valignment="top">
36249 <column alignment="center" valignment="top">
36251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36254 \begin_layout Plain Layout
36260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36263 \begin_layout Plain Layout
36271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36274 \begin_layout Plain Layout
36280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36283 \begin_layout Plain Layout
36298 \begin_layout Plain Layout
36309 \begin_layout Plain Layout
36313 rotatebox[origin=c]{-45}{
36323 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36330 \begin_layout Plain Layout
36338 \begin_inset Index idx
36341 \begin_layout Plain Layout
36348 \begin_inset Index idx
36351 \begin_layout Plain Layout
36352 Table Customization ! Scaling
36360 \begin_layout Standard
36361 When the global formula style
36365 is used in the document
36369 \begin_layout Plain Layout
36371 \begin_inset Quotes eld
36375 \begin_inset Quotes erd
36378 is added to the document class options.
36383 , display style formulas can also be scaled.
36386 \begin_layout Chapter
36387 Objects Surrounded by Text
36388 \begin_inset Index idx
36391 \begin_layout Plain Layout
36400 \begin_layout Section
36402 \begin_inset CommandInset label
36404 name "sec:Wrap-Floats"
36409 \begin_inset Index idx
36412 \begin_layout Plain Layout
36413 Floats ! Wrap Floats
36419 \begin_inset Index idx
36422 \begin_layout Plain Layout
36423 Surrounded by text ! Wrap Floats
36431 \begin_layout Standard
36432 \begin_inset Wrap figure
36439 \begin_layout Plain Layout
36440 \begin_inset Graphics
36441 filename clipart/mobius.eps
36443 scaleBeforeRotation
36444 rotateOrigin center
36451 \begin_layout Plain Layout
36452 \begin_inset Caption Standard
36454 \begin_layout Plain Layout
36455 \begin_inset CommandInset label
36457 name "fig:This-is-a"
36461 This is a figure wrap float.
36471 This float type is used if you want to wrap text around a figure or table
36472 so that it only occupies some fraction of the column width.
36473 It can be inserted using the menu
36475 Insert\SpecialChar \menuseparator
36476 Floats\SpecialChar \menuseparator
36478 \begin_inset space ~
36482 \begin_inset space ~
36490 \begin_inset space ~
36494 \begin_inset space ~
36499 if the LaTeX-package
36504 \begin_inset Index idx
36507 \begin_layout Plain Layout
36508 LaTeX-packages ! wrapfig
36517 \begin_layout Plain Layout
36518 Installing a LaTeX-package is explained it in the
36521 \begin_inset space ~
36531 The settings of the float can be modified by right-clicking on the float
36533 The mandatory settings are the float
36546 that specifies how much the float is set into the paragraph
36547 \begin_inset space \thinspace{}
36551 \begin_inset space \thinspace{}
36554 page margin, and the
36557 \begin_inset space ~
36562 that specifies how many text lines the float will approximately need.
36563 The line span is often hard to approximate; so it is better only to use
36564 it when you encounter float placement problems.
36565 You can furthermore decide if LaTeX is allowed to let the float float within
36566 the paragraph or to surrounding paragraphs.
36568 \begin_inset space ~
36572 \begin_inset CommandInset ref
36574 reference "fig:This-is-a"
36578 is an example text wrap float with a width of 40
36579 \begin_inset space \thinspace{}
36583 \begin_inset space \thinspace{}
36586 cm overhang, set to the left.
36589 \begin_layout Standard
36590 \begin_inset Note Greyedout
36593 \begin_layout Plain Layout
36599 \begin_inset space ~
36602 wrap float floats are fragile! E.
36603 \begin_inset space \thinspace{}
36607 \begin_inset space \space{}
36610 having a figure too close to the bottom of the page can mess things up in
36611 such a way that the float does not appear in the output or that it is placed
36612 over some other text.
36620 \begin_layout Standard
36621 In general, the following applies for wrap floats:
36624 \begin_layout Itemize
36625 They should not be placed in paragraphs that run over a page break.
36626 That means that wrap floats are better inserted in their exact place when
36627 the document is almost finished and you are able to estimate where page
36628 breaks will appear.
36631 \begin_layout Itemize
36632 They should either be placed in their own paragraph before the paragraph
36633 where they should wrap into or within a paragraph.
36636 \begin_layout Itemize
36637 In consecutive paragraphs they may cause troubles, so ensure that there
36638 is a text paragraph between them as separator.
36641 \begin_layout Itemize
36642 They are not allowed in section headings or tables.
36645 \begin_layout Itemize
36646 Their numbering and referencing works as described in chap.
36647 \begin_inset space \thinspace{}
36651 \begin_inset CommandInset ref
36653 reference "chap:Floats"
36660 \begin_layout Section
36661 Surrounded Fixed Objects
36662 \begin_inset Index idx
36665 \begin_layout Plain Layout
36666 Surrounded by text ! Fixed objects
36674 \begin_layout Standard
36675 The wrap floats described in sec.
36676 \begin_inset space \thinspace{}
36680 \begin_inset CommandInset ref
36682 reference "sec:Wrap-Floats"
36686 have these positions in the paragraph:
36689 \begin_layout Standard
36692 \begin_inset Tabular
36693 <lyxtabular version="3" rows="2" columns="2">
36694 <features rotate="0" tabularvalignment="middle">
36695 <column alignment="center" valignment="top">
36696 <column alignment="center" valignment="top">
36698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36701 \begin_layout Plain Layout
36702 \begin_inset Graphics
36703 filename ../images/dialog-show-new-inset_graphics.png
36705 scaleBeforeRotation
36714 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36717 \begin_layout Plain Layout
36725 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36728 \begin_layout Plain Layout
36734 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36737 \begin_layout Plain Layout
36749 \begin_inset Tabular
36750 <lyxtabular version="3" rows="2" columns="2">
36751 <features rotate="0" tabularvalignment="middle">
36752 <column alignment="center" valignment="top">
36753 <column alignment="center" valignment="top">
36755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36758 \begin_layout Plain Layout
36764 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36767 \begin_layout Plain Layout
36768 \begin_inset Graphics
36769 filename ../images/dialog-show-new-inset_graphics.png
36771 scaleBeforeRotation
36782 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36785 \begin_layout Plain Layout
36791 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36794 \begin_layout Plain Layout
36808 \begin_layout Standard
36809 To get an object exactly at the position where it is inserted, for example
36810 to get one of these positions:
36811 \begin_inset VSpace defskip
36817 \begin_layout Standard
36820 \begin_inset Tabular
36821 <lyxtabular version="3" rows="2" columns="2">
36822 <features rotate="0" tabularvalignment="middle">
36823 <column alignment="center" valignment="top">
36824 <column alignment="center" valignment="top">
36826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36829 \begin_layout Plain Layout
36835 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36838 \begin_layout Plain Layout
36846 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36849 \begin_layout Plain Layout
36850 \begin_inset Graphics
36851 filename ../images/dialog-show-new-inset_graphics.png
36853 scaleBeforeRotation
36862 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36865 \begin_layout Plain Layout
36877 \begin_inset Tabular
36878 <lyxtabular version="3" rows="2" columns="2">
36879 <features rotate="0" tabularvalignment="middle">
36880 <column alignment="center" valignment="top">
36881 <column alignment="center" valignment="top">
36883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36886 \begin_layout Plain Layout
36892 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36895 \begin_layout Plain Layout
36903 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36906 \begin_layout Plain Layout
36912 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36915 \begin_layout Plain Layout
36916 \begin_inset Graphics
36917 filename ../images/dialog-show-new-inset_graphics.png
36919 scaleBeforeRotation
36934 \begin_inset Tabular
36935 <lyxtabular version="3" rows="2" columns="3">
36936 <features rotate="0" tabularvalignment="middle">
36937 <column alignment="center" valignment="top">
36938 <column alignment="center" valignment="top">
36939 <column alignment="center" valignment="top">
36941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36944 \begin_layout Plain Layout
36950 <cell alignment="center" valignment="top" topline="true" usebox="none">
36953 \begin_layout Plain Layout
36954 \begin_inset Graphics
36955 filename ../images/dialog-show-new-inset_graphics.png
36957 scaleBeforeRotation
36966 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36969 \begin_layout Plain Layout
36977 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36980 \begin_layout Plain Layout
36986 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36989 \begin_layout Plain Layout
36995 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36998 \begin_layout Plain Layout
37010 \begin_inset Tabular
37011 <lyxtabular version="3" rows="2" columns="3">
37012 <features rotate="0" tabularvalignment="middle">
37013 <column alignment="center" valignment="top">
37014 <column alignment="center" valignment="top">
37015 <column alignment="center" valignment="top">
37017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37020 \begin_layout Plain Layout
37026 <cell alignment="center" valignment="top" topline="true" usebox="none">
37029 \begin_layout Plain Layout
37035 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37038 \begin_layout Plain Layout
37046 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37049 \begin_layout Plain Layout
37055 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37058 \begin_layout Plain Layout
37059 \begin_inset Graphics
37060 filename ../images/dialog-show-new-inset_graphics.png
37062 scaleBeforeRotation
37071 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37074 \begin_layout Plain Layout
37088 \begin_layout Standard
37091 \begin_inset Tabular
37092 <lyxtabular version="3" rows="3" columns="2">
37093 <features rotate="0" tabularvalignment="middle">
37094 <column alignment="center" valignment="top">
37095 <column alignment="center" valignment="top">
37097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37100 \begin_layout Plain Layout
37106 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37109 \begin_layout Plain Layout
37117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37120 \begin_layout Plain Layout
37121 \begin_inset Graphics
37122 filename ../images/dialog-show-new-inset_graphics.png
37124 scaleBeforeRotation
37133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37136 \begin_layout Plain Layout
37144 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37147 \begin_layout Plain Layout
37153 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37156 \begin_layout Plain Layout
37168 \begin_inset Tabular
37169 <lyxtabular version="3" rows="3" columns="3">
37170 <features rotate="0" tabularvalignment="middle">
37171 <column alignment="center" valignment="top">
37172 <column alignment="center" valignment="top">
37173 <column alignment="center" valignment="top">
37175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37178 \begin_layout Plain Layout
37184 <cell alignment="center" valignment="top" topline="true" usebox="none">
37187 \begin_layout Plain Layout
37193 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37196 \begin_layout Plain Layout
37204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37207 \begin_layout Plain Layout
37213 <cell alignment="center" valignment="top" usebox="none">
37216 \begin_layout Plain Layout
37217 \begin_inset Graphics
37218 filename ../images/dialog-show-new-inset_graphics.png
37220 scaleBeforeRotation
37229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37232 \begin_layout Plain Layout
37240 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37243 \begin_layout Plain Layout
37249 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37252 \begin_layout Plain Layout
37258 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37261 \begin_layout Plain Layout
37273 \begin_inset Tabular
37274 <lyxtabular version="3" rows="3" columns="2">
37275 <features rotate="0" tabularvalignment="middle">
37276 <column alignment="center" valignment="top">
37277 <column alignment="center" valignment="top">
37279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37282 \begin_layout Plain Layout
37288 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37291 \begin_layout Plain Layout
37299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37302 \begin_layout Plain Layout
37308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37311 \begin_layout Plain Layout
37312 \begin_inset Graphics
37313 filename ../images/dialog-show-new-inset_graphics.png
37315 scaleBeforeRotation
37326 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37329 \begin_layout Plain Layout
37335 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37338 \begin_layout Plain Layout
37352 \begin_layout Standard
37354 you can use the LaTeX-package
37359 \begin_inset Index idx
37362 \begin_layout Plain Layout
37363 LaTeX-packages ! picinpar
37369 Here is an example:
37372 \begin_layout Standard
37376 \begin_layout Plain Layout
37386 \begin_inset Note Note
37389 \begin_layout Plain Layout
37390 The following section will only be displayed when the LaTeX-package
37402 \begin_layout Standard
37406 \begin_layout Plain Layout
37410 begin{window}[2,c,{
37416 \begin_inset Graphics
37417 filename clipart/mobius.eps
37420 scaleBeforeRotation
37421 rotateOrigin center
37429 \begin_layout Plain Layout
37434 \begin_layout Plain Layout
37443 It was in the spring of the year 1894 that all London was interested, and
37444 the fashionable world dismayed, by the murder of the Honourable Ronald
37445 Adair under most unusual and inexplicable circumstances.
37446 The public has already learned those particulars of the crime which
37452 \begin_layout Plain Layout
37463 came out in the police investigation, but a good deal was suppressed upon
37464 that occasion, since the case for the prosecution was so overwhelmingly
37465 strong that it was not necessary to bring forward all the facts.
37466 Only now, at the end of nearly ten years, am I allowed to supply those
37467 missing links which make up the whole of that remarkable chain.
37473 \begin_layout Plain Layout
37485 \begin_layout Standard
37489 \begin_layout Plain Layout
37498 Footnote of the paragraph with the fixed object.
37502 \begin_layout Plain Layout
37512 \begin_layout Standard
37513 Surrounded fixed objects are used to let text float around them, at which
37514 the object's position in the paragraph can be determined by the number
37516 In contrary to floats is it not possible to have a numbered caption.
37519 \begin_layout Standard
37520 A fixed object is inserted by adding the command
37523 \begin_layout Standard
37528 begin{window}[2,c,{
37531 \begin_layout Standard
37532 as TeX-Code at the beginning of the paragraph.
37533 The first parameter in the bracket, here '2', defines the number of lines
37534 above the object, the second, here 'c', the position of the object.
37535 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37536 Behind the command you insert the object.
37537 In this example an image with a width of 40
37538 \begin_inset space \thinspace{}
37541 % of the text column width was inserted.
37542 The object can also be a table, a box or an equation.
37543 Behind the object the command
37546 \begin_layout Standard
37549 },description text]
37550 \begin_inset Newline newline
37556 \begin_layout Standard
37559 \begin_inset Quotes eld
37567 \begin_inset Quotes erd
37570 is in the second line.
37571 The description text is optional.
37572 The text surrounding the object must be in the same paragraph as the object,
37573 so it must begin directly after the
37578 At the end of the paragraph insert the command:
37581 \begin_layout Standard
37589 \begin_layout Standard
37590 Within a paragraph with a fixed object, you cannot insert footnotes in the
37592 You have to use instead the command
37598 inside the paragraph and outside the command
37604 as described in sec.
37605 \begin_inset space \thinspace{}
37609 \begin_inset CommandInset ref
37611 reference "sec:Footnotes"
37618 \begin_layout Standard
37622 \begin_layout Plain Layout
37632 \begin_inset Note Note
37635 \begin_layout Plain Layout
37636 The following will be displayed when the LaTeX-package
37648 \begin_layout Standard
37649 You need to install the LaTeX-package
37653 to see the following part of this section in the output.
37656 \begin_layout Standard
37660 \begin_layout Plain Layout
37672 \begin_layout Section
37674 \begin_inset Index idx
37677 \begin_layout Plain Layout
37684 \begin_inset Index idx
37687 \begin_layout Plain Layout
37688 Surrounded by text ! Initials
37696 \begin_layout Standard
37697 To use initials, you must have the LaTeX-package
37702 \begin_inset Index idx
37705 \begin_layout Plain Layout
37706 LaTeX-packages ! lettrine
37711 installed and use the module
37715 in your document (menu
37717 Document\SpecialChar \menuseparator
37718 Settings\SpecialChar \menuseparator
37722 To insert an initial, use the style
37727 This style has a mandatory and two optional arguments.
37728 The arguments are inserted via the
37733 The mandatory argument
37737 contains the letter(s) that is the initial, the argument
37740 \begin_inset space ~
37744 \begin_inset space ~
37749 contains the rest of the word or text of the initial letter(s).
37754 contains parameters to modify the initial.
37755 For more information about the possible parameters see the documentation
37761 \begin_inset CommandInset citation
37768 The style itself contains the text that is surrounding the initial.
37769 The usual style is hereby that the word whose first letter is the initial,
37777 \begin_layout Standard
37778 Here are some examples:
37781 \begin_layout Standard
37785 \begin_layout Plain Layout
37795 \begin_inset Note Note
37798 \begin_layout Plain Layout
37799 The following section will only be displayed when the LaTeX-package
37811 \begin_layout Enumerate
37812 No optional argument, the initial is the letter 'I' in the math font
37813 \begin_inset Formula $\mathfrak{Fraktur}$
37820 \begin_layout Initial
37821 \begin_inset Argument 2
37824 \begin_layout Plain Layout
37825 \begin_inset Formula $\mathfrak{I}$
37834 \begin_inset Argument 3
37837 \begin_layout Plain Layout
37843 was in the spring of the year 1894 that all London was interested, and
37844 the fashionable world dismayed, by the murder of the Honourable Ronald
37845 Adair under most unusual and inexplicable circumstances.
37846 The public has already learned those particulars of the crime which came
37847 out in the police investigation, but a good deal was suppressed upon that
37848 occasion, since the case for the prosecution was so overwhelmingly strong
37849 that it was not necessary to bring forward all the facts.
37850 \begin_inset Newpage newpage
37857 \begin_layout Enumerate
37858 Only one line is surrounding the initial, which is formed by two letters
37859 in standard font and no text is printed in small caps:
37863 \begin_layout Initial
37864 \begin_inset Argument 1
37867 \begin_layout Plain Layout
37874 \begin_inset Argument 2
37877 \begin_layout Plain Layout
37883 was in the spring of the year 1894 that all London was interested, and
37884 the fashionable world dismayed, by the murder of the Honourable Ronald
37885 Adair under most unusual and inexplicable circumstances.
37886 The public has already learned those particulars of the crime which came
37887 out in the police investigation, but a good deal was suppressed upon that
37888 occasion, since the case for the prosecution was so overwhelmingly strong
37889 that it was not necessary to bring forward all the facts.
37893 \begin_layout Enumerate
37894 Magenta, hanging initial over 3
37895 \begin_inset space ~
37898 lines in the math font
37899 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37903 \begin_inset Quotes eld
37906 t was in the spring
37907 \begin_inset Quotes erd
37914 ; to color the initial, you must insert this command before the initial:
37915 \begin_inset Newline newline
37929 \begin_inset Newline newline
37937 \begin_inset Quotes eld
37941 \begin_inset Quotes erd
37945 \begin_inset Quotes eld
37949 \begin_inset Quotes erd
37953 \begin_inset Quotes eld
37957 \begin_inset Quotes erd
37961 \begin_inset Quotes eld
37965 \begin_inset Quotes erd
37969 \begin_inset Quotes eld
37973 \begin_inset Quotes erd
37977 \begin_inset Quotes eld
37981 \begin_inset Quotes erd
37985 \begin_inset Quotes eld
37989 \begin_inset Quotes erd
37993 \begin_inset Quotes eld
37997 \begin_inset Quotes erd
38000 , and add this command to the document preamble:
38001 \begin_inset Newline newline
38008 @ifundefined{textcolor}
38009 \begin_inset Newline newline
38013 \begin_inset space ~
38018 usepackage{color}}{}
38022 \begin_layout Standard
38026 \begin_layout Plain Layout
38040 \begin_inset Note Note
38043 \begin_layout Plain Layout
38044 makes the initial magenta
38052 \begin_layout Initial
38053 \begin_inset Argument 1
38056 \begin_layout Plain Layout
38057 lines=3, lhang=0.33, loversize=0.25
38063 \begin_inset Argument 2
38066 \begin_layout Plain Layout
38067 \begin_inset Formula $\mathcal{I}$
38076 \begin_inset Argument 3
38079 \begin_layout Plain Layout
38080 t was in the spring
38085 of the year 1894 that all London was interested, and the fashionable world
38086 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38087 and inexplicable circumstances.
38088 The public has already learned those particulars of the crime which came
38089 out in the police investigation, but a good deal was suppressed upon that
38090 occasion, since the case for the prosecution was so overwhelmingly strong
38091 that it was not necessary to bring forward all the facts.
38095 \begin_layout Standard
38099 \begin_layout Plain Layout
38109 \begin_inset Note Note
38112 \begin_layout Plain Layout
38113 The following will be displayed when the LaTeX-package
38125 \begin_layout Standard
38126 You need to install the LaTeX-package
38130 to see the following part of this section in the output.
38133 \begin_layout Standard
38137 \begin_layout Plain Layout
38149 \begin_layout Chapter
38150 External Document Parts
38151 \begin_inset Index idx
38154 \begin_layout Plain Layout
38155 External Document Parts
38163 \begin_layout Standard
38166 Insert\SpecialChar \menuseparator
38169 you can insert external material into your document.
38173 \begin_layout Description
38175 \begin_inset space ~
38178 Document Another LyX document; its content is directly inserted to your
38182 \begin_layout Description
38184 \begin_inset space ~
38187 Text A text document; each line is inserted in your document as a separate
38191 \begin_layout Description
38193 \begin_inset space ~
38197 \begin_inset space ~
38201 \begin_inset space ~
38204 Lines A text document; text lines are inserted in your document continuously
38205 but an empty text line creates a new paragraph.
38208 \begin_layout Description
38210 \begin_inset space ~
38213 Material Files in various formats.
38216 \begin_layout Description
38218 \begin_inset space ~
38221 Document LyX or LaTeX-documents.
38224 \begin_layout Section
38226 \begin_inset Index idx
38229 \begin_layout Plain Layout
38230 External Document Parts ! External Material
38238 \begin_layout Standard
38239 The external material feature allows you to insert files into your document
38240 without converting them to a format that can be read by the document output
38242 LyX takes care of the necessary conversions.
38243 This is similar to images that can be inserted in various image formats
38245 When you have enabled Instant Preview in LyX's preferences under
38248 \begin_inset space ~
38252 \begin_inset space ~
38255 feel\SpecialChar \menuseparator
38258 , the external material types Dia and Xfig are directly shown in LyX.
38261 \begin_layout Standard
38262 External material can be inserted via the
38266 dialog that is accessible with the menu
38268 Insert\SpecialChar \menuseparator
38269 File\SpecialChar \menuseparator
38271 \begin_inset space ~
38277 Currently the following file types (
38284 \begin_layout Description
38285 ChessDiagram This template supports chess position diagrams made with the
38289 \begin_inset CommandInset href
38292 target "http://en.wikipedia.org/wiki/XBoard"
38301 \begin_layout Description
38302 Date This inserts the date in the form
38307 This is a date inserted as external material:
38308 \begin_inset External
38315 \begin_inset space ~
38319 \begin_inset Note Note
38322 \begin_layout Plain Layout
38323 Remove the protected space when bug 4398 is fixed!
38329 \begin_inset Newline newline
38332 The date is not shown within LyX, only in the output.
38333 There are two other methods of inserting a date: Via menu
38335 Insert\SpecialChar \menuseparator
38338 and with the LaTeX command
38345 The different methods are compared in Table
38346 \begin_inset space ~
38350 \begin_inset CommandInset ref
38352 reference "tab:Comparison-of-the"
38359 \begin_layout Description
38360 Dia This template supports diagrams created with the program
38363 \begin_inset CommandInset href
38366 target "http://en.wikipedia.org/wiki/Dia_(software)"
38375 \begin_layout Description
38376 GnumericSpreadsheet With this template you can insert spreadsheets
38377 \begin_inset space \thinspace{}
38381 \begin_inset space \thinspace{}
38384 tables in the format of
38387 \begin_inset CommandInset href
38390 target "http://en.wikipedia.org/wiki/Gnumeric"
38397 \begin_inset CommandInset href
38399 name "OpenDocument"
38400 target "http://en.wikipedia.org/wiki/OpenDocument"
38405 \begin_inset CommandInset href
38407 name "Microsoft Office XML"
38408 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38413 \begin_inset CommandInset href
38415 name "Office Open XML"
38416 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38421 For this feature LyX must have found the program
38425 during its configuration.
38426 This program is part of Gnumeric, so that you must have Gnumeric installed,
38427 also if you don't have tables in the Gnumeric format.
38428 For examples and possible limitations have a look at LyX's example file
38436 \begin_layout Description
38437 LilyPond This template is used for music notation typeset with the program
38438 \begin_inset Newline linebreak
38444 \begin_inset CommandInset href
38447 target "http://en.wikipedia.org/wiki/LilyPond"
38454 For LyX's extended support for LilyPond have a look at LyX's example file
38462 \begin_layout Description
38463 PDFPages With this template you can insert PDF documents to your document.
38464 To specify the range of pages that should be included, use the option
38474 LaTeX and LyX options
38477 The argument of this option is a comma separated list, containing page
38478 numbers (insert as option
38482 ), ranges of page numbers (
38486 ) or any combination.
38487 To insert empty pages use {}.
38489 \begin_inset space \thinspace{}
38493 \begin_inset space ~
38498 pages={3,{},8-11,15}
38500 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38501 Page ranges are specified in the syntax
38510 This selects all pages from
38523 defaults to the first page; omitting
38527 defaults to the last page of the document.
38528 The last page can also be selected with the keyword
38533 (This is only permitted in a page range.) So
38537 will insert all pages of the document and
38541 will insert all pages in reverse order.
38542 If the pages option is not specified, only the first page of the PDF is
38544 \begin_inset Newline newline
38551 inserts the pages with their original size, if this option is not given,
38552 the pages will be resized to fith the width of the page of your document.
38557 you can specify the width and height of the input pages and their rotation.
38558 If another width than 100
38559 \begin_inset space \thinspace{}
38562 Scale% is used, the option
38566 will be overwritten.
38567 For more info and possible options, have a look into the documentation
38568 of the LaTeX-package
38573 \begin_inset CommandInset citation
38580 \begin_inset Index idx
38583 \begin_layout Plain Layout
38584 LaTeX-packages ! pdfpages
38590 \begin_inset Newline newline
38593 To use this template in a
38597 presentation you need to first insert an
38601 environment and in a subsequent paragraph a TeX-Code box containing the
38606 setbeamertemplate{background canvas}{}
38609 Then you can insert as many paragraphs containing the PDFPages template
38611 Behind the included PDF pages you can resume the Beamer presentation by
38612 beginning a new frame or by starting a new section.
38613 To avoid stray blank pages prior to the PDF pages, make sure to use the
38618 alignment for the paragraph containing the template.
38619 \begin_inset Newline newline
38622 Here is an included PDF which is rotated by -5°:
38623 \begin_inset External
38625 filename clipart/Abstract.pdf
38626 extra LaTeX "noautoscale, pages=-"
38628 rotateOrigin bottomleft
38635 \begin_layout Description
38636 RasterImage This can be used for bitmap images.
38637 The image can be treated in the
38641 dialog like the images that are usually included via the
38645 dialog as described in section
38646 \begin_inset space ~
38650 \begin_inset CommandInset ref
38652 reference "sec:Graphics-Dialog"
38657 The difference to the normal image input is that only raster images are
38658 allowed; that means that PDF and EPS-images are not supported.
38659 Here is an inserted raster image:
38660 \begin_inset External
38661 template RasterImage
38662 filename clipart/ToolbarEnvBox.png
38669 \begin_layout Description
38670 XFig This template supports images created with the program
38673 \begin_inset CommandInset href
38676 target "http://en.wikipedia.org/wiki/Xfig"
38685 \begin_layout Standard
38686 \begin_inset Float table
38692 \begin_layout Plain Layout
38693 \begin_inset Caption Standard
38695 \begin_layout Plain Layout
38696 \begin_inset CommandInset label
38698 name "tab:Comparison-of-the"
38702 Comparison of the date input methods.
38710 \begin_layout Plain Layout
38712 \begin_inset Tabular
38713 <lyxtabular version="3" rows="4" columns="4">
38714 <features rotate="0" tabularvalignment="middle">
38715 <column alignment="center" valignment="top">
38716 <column alignment="center" valignment="top">
38717 <column alignment="center" valignment="top">
38718 <column alignment="center" valignment="top">
38720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38723 \begin_layout Plain Layout
38729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38732 \begin_layout Plain Layout
38735 External Material\SpecialChar \menuseparator
38741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38744 \begin_layout Plain Layout
38747 Insert\SpecialChar \menuseparator
38753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38756 \begin_layout Plain Layout
38768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38771 \begin_layout Plain Layout
38777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38780 \begin_layout Plain Layout
38786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38789 \begin_layout Plain Layout
38795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38798 \begin_layout Plain Layout
38799 as TeX-Code inset box
38806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38809 \begin_layout Plain Layout
38815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38818 \begin_layout Plain Layout
38824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38827 \begin_layout Plain Layout
38833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38836 \begin_layout Plain Layout
38844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38847 \begin_layout Plain Layout
38853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38856 \begin_layout Plain Layout
38862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38865 \begin_layout Plain Layout
38871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38874 \begin_layout Plain Layout
38893 \begin_layout Standard
38894 When you use the option
38906 dialog, only the path to the inserted file is shown in the output.
38907 \begin_inset Newline newline
38910 External material is displayed in LyX either as a box like this:
38911 \begin_inset Graphics
38912 filename clipart/ExternalMaterialQt4.png
38914 scaleBeforeRotation
38918 or as image, depending on the option
38924 LaTeX and LyX options
38929 \begin_layout Standard
38936 manual explains how you can define your own templates.
38939 \begin_layout Section
38941 \begin_inset CommandInset label
38943 name "sec:Child-Documents"
38948 \begin_inset Index idx
38951 \begin_layout Plain Layout
38952 External Document Parts ! Child Documents
38958 \begin_inset Index idx
38961 \begin_layout Plain Layout
38970 \begin_layout Standard
38971 Child documents are used if you have a long document consisting of several
38972 larger parts or sections.
38973 For maintenance it is often useful and sometimes even required to split
38974 the document into several files that can be revised separately.
38975 The different documents are then the so called
38976 \begin_inset Quotes eld
38980 \begin_inset Quotes erd
38983 , and a master document connects them to print the full document or parts
38985 A child document inherits elements from its master, for example the LaTeX
38986 preamble, the bibliography, and labels for cross-references.
38989 \begin_layout Standard
38990 To be able to work on child documents without the need to open their master,
38991 specify in the child document the master in the menu
38993 Document\SpecialChar \menuseparator
38994 Settings\SpecialChar \menuseparator
38996 \begin_inset space ~
39002 This master document will then be used in the background by LyX when you
39003 edit the child document.
39006 \begin_layout Standard
39007 Included documents are displayed in LyX as a box like this:
39008 \begin_inset Graphics
39009 filename clipart/ChildDocumentQt4.png
39011 scaleBeforeRotation
39015 To include child documents in a master document use the menu
39017 Insert\SpecialChar \menuseparator
39018 File\SpecialChar \menuseparator
39020 \begin_inset space ~
39026 A dialog pops up where you can choose between four include methods:
39029 \begin_layout Description
39030 Include You can include LyX- and LaTeX-documents.
39039 dialog, the included document will be opened in LyX in a new file tab so
39040 that you can modify it.
39041 \begin_inset Newline newline
39047 \begin_layout Standard
39048 Here is a child document inserted using
39053 \begin_inset CommandInset include
39054 LatexCommand include
39055 filename "DummyDocument1.lyx"
39062 \begin_layout Standard
39063 The section numbering includes the sections of the included files in the
39064 order they are inserted in the master document.
39065 The included example document has for example a subsection that is numbered
39066 as a subsection of this section.
39067 Labels of included documents can be referenced: Subsection
39068 \begin_inset space ~
39072 \begin_inset CommandInset ref
39074 reference "sub:External-Subsection-1"
39081 \begin_layout Standard
39082 The preamble of the child document is ignored; only the preamble of the
39083 master document is used.
39084 Branches in child documents will be ignored by the master document when
39085 the master document does not have a branch with the same name.
39086 Included documents are inserted starting on a new page and ending with
39090 \begin_layout Standard
39091 \begin_inset Note Greyedout
39094 \begin_layout Plain Layout
39099 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39100 the document in case the child document uses another document class than
39101 the master document as this will lead to unexpected outputs.
39109 \begin_layout Description
39110 Input This method is very similar to the Include method.
39111 The differences are:
39115 \begin_layout Itemize
39116 Input files don't start with a new page and don't end with a page break.
39119 \begin_layout Itemize
39120 Input files can be previewed in LyX when
39123 \begin_inset space ~
39128 is enabled in LyX's preferences under
39131 \begin_inset space ~
39135 \begin_inset space ~
39138 feel\SpecialChar \menuseparator
39144 \begin_layout Itemize
39145 You cannot exclude Input files via the menu
39147 Document\SpecialChar \menuseparator
39148 Settings\SpecialChar \menuseparator
39155 \begin_layout Standard
39156 Here is a child document inserted using
39161 \begin_inset CommandInset include
39163 filename "DummyDocument2.lyx"
39170 \begin_layout Description
39171 Verbatim With this method any text file can be included.
39172 The file is shown in the output with its source code; no command used in
39173 the text is invoked.
39174 You can use the option
39176 Mark spaces in output
39178 that displays the character
39179 \begin_inset Quotes eld
39186 \begin_layout Plain Layout
39196 \begin_inset Quotes erd
39199 for every space character in the source code.
39200 The difference from the method via the menu
39202 Insert\SpecialChar \menuseparator
39203 File\SpecialChar \menuseparator
39205 \begin_inset space ~
39210 is that the document content is not shown in LyX.
39213 \begin_layout Standard
39214 Here is a child document inserted as Verbatim:
39215 \begin_inset CommandInset include
39216 LatexCommand verbatiminput
39217 filename "DummyTextDocument.txt"
39222 \begin_inset VSpace bigskip
39225 Here is a child document inserted as Verbatim using the
39227 Mark spaces in output
39230 \begin_inset CommandInset include
39231 LatexCommand verbatiminput*
39232 filename "DummyTextDocument.txt"
39239 \begin_layout Standard
39240 \begin_inset VSpace bigskip
39246 \begin_layout Standard
39247 \begin_inset Note Greyedout
39250 \begin_layout Plain Layout
39255 As you can see in the examples above, the text of the documents included
39260 is not broken at the end of the document lines.
39268 \begin_layout Description
39269 Listings This type is described in chapter
39270 \begin_inset space ~
39274 \begin_inset CommandInset ref
39276 reference "cha:Program-Code-Listings"
39283 \begin_layout Standard
39284 \begin_inset Note Greyedout
39287 \begin_layout Plain Layout
39292 Including the same document twice in a document using different methods
39293 could cause LaTeX-problems.
39301 \begin_layout Standard
39302 If you want to view/export only selected children of your master document,
39303 either because you want to save compiling time or because you want to distribut
39304 e single chapters of the book you are just writing, you can exclude children
39306 This is done via the menu
39308 Document\SpecialChar \menuseparator
39309 Settings\SpecialChar \menuseparator
39313 You can exclude\SpecialChar \slash{}
39314 include children by double-clicking on the
39318 column of the respective child document in the list (note that this only
39319 works for documents embedded via
39320 \begin_inset Quotes eld
39324 \begin_inset Quotes erd
39328 \begin_inset Quotes eld
39332 \begin_inset Quotes erd
39338 Maintain counters and references
39340 is enabled, LyX will assure that all page numbers, references etc.
39341 \begin_inset space ~
39344 are correct as if the whole document was processed.
39345 This is useful if you want the selected sub-documents to look exactly as
39346 in the context of the whole document.
39347 However, LyX needs to process the whole document in the background for
39349 So if you want to save compile time and if counters and references do not
39350 need to be correct, disable this checkbox.
39353 \begin_layout Standard
39354 Alternatively, you can put each included file into a branch.
39358 \begin_layout Plain Layout
39359 Branches are described in section
39372 By enabling\SpecialChar \slash{}
39373 disabling branches you can decide which included files will
39374 appear in the output.
39375 This has the advantage that it also works with Input'ed sub-documents.
39376 However, counters and references will not be maintained with this approach.
39379 \begin_layout Chapter
39380 Program Code Listings
39381 \begin_inset CommandInset label
39383 name "cha:Program-Code-Listings"
39388 \begin_inset Index idx
39391 \begin_layout Plain Layout
39398 \begin_inset Index idx
39401 \begin_layout Plain Layout
39408 \begin_inset Index idx
39411 \begin_layout Plain Layout
39420 \begin_layout Standard
39421 To include and typeset program code you can use the
39425 inset that can be inserted via the menu
39427 Insert\SpecialChar \menuseparator
39436 \begin_inset Index idx
39439 \begin_layout Plain Layout
39440 LaTeX-packages ! listings
39445 provides a powerful and flexible way to insert program source code into
39449 \begin_layout Standard
39450 Right-clicking on a listings inset opens the context menu containing where
39451 you can set the listings format.
39454 \begin_layout Standard
39455 By default, a listing starts a new paragraph in the output.
39456 The placement option
39459 \begin_inset space ~
39464 prints the listing inline like this:
39465 \begin_inset listings
39466 lstparams "language={C++}"
39470 \begin_layout Plain Layout
39478 \begin_inset Newline newline
39485 creates a listings float where you can specify the placement options
39486 \begin_inset Quotes eld
39494 \begin_inset Quotes erd
39498 \begin_inset Quotes eld
39506 \begin_inset Quotes erd
39510 \begin_inset Quotes eld
39518 \begin_inset Quotes erd
39522 \begin_inset Quotes eld
39530 \begin_inset Quotes erd
39533 corresponding to the float placement options described in section
39534 \begin_inset space ~
39538 \begin_inset CommandInset ref
39540 reference "sec:Float-Placement"
39545 The placement options can be mixed and are inserted without any separation,
39547 \begin_inset space \thinspace{}
39551 \begin_inset space \space{}
39555 \begin_inset Quotes eld
39563 \begin_inset Quotes erd
39568 \begin_inset Quotes eld
39572 \begin_inset Quotes erd
39575 has sometimes no effect, but you don't need to use the
39579 option in this case as also non-float listings can have captions and be
39583 \begin_layout Standard
39584 You can add captions to listings with the menu
39586 Insert\SpecialChar \menuseparator
39590 Listings can be referenced like floats: Listing
39591 \begin_inset space ~
39595 \begin_inset CommandInset ref
39597 reference "lst:Example-Listing"
39602 A list of listings which contains all listings with captions can be created
39605 Insert\SpecialChar \menuseparator
39607 \begin_inset space ~
39611 \begin_inset space ~
39614 TOC\SpecialChar \menuseparator
39618 The list entries are the listing caption and the listing number.
39621 \begin_layout Standard
39622 \begin_inset listings
39623 lstparams "language=Python"
39627 \begin_layout Plain Layout
39629 \begin_inset Caption Standard
39631 \begin_layout Plain Layout
39632 \begin_inset CommandInset label
39634 name "lst:Example-Listing"
39638 Example Listing float
39643 # Example listing float
39646 \begin_layout Plain Layout
39651 \begin_layout Plain Layout
39653 'this is a python function'
39656 \begin_layout Plain Layout
39666 \begin_layout Standard
39667 When you have set a programming language in the listings dialog, the keywords
39668 of this language will be recognized and specially typeset in the output.
39669 In the example listings the Python keyword
39670 \begin_inset Quotes eld
39674 \begin_inset Quotes erd
39677 is recognized and printed bold in the output.
39680 \begin_layout Standard
39681 \begin_inset Note Greyedout
39684 \begin_layout Plain Layout
39689 If you don't get bold keywords when using typewriter fonts, your
39693 font probably doesn't provide a bold shape.
39694 In this case select a different one in the menu
39696 Document\SpecialChar \menuseparator
39697 Settings\SpecialChar \menuseparator
39709 provide bold shapes.)
39717 \begin_layout Standard
39721 \begin_inset space ~
39726 of the listings dialog you can specify the line numbering style.
39727 You can insert a number to specify which lines are numbered in the field
39734 \begin_inset space \thinspace{}
39738 \begin_inset space \space{}
39742 \begin_inset Quotes eld
39746 \begin_inset Quotes erd
39749 , only every 3rd line will be numbered.
39752 \begin_layout Standard
39753 You can furthermore specify a range of lines; only these will then appear
39757 Extended character table
39759 should be used when you use national characters like the German umlauts
39761 \begin_inset Newline newline
39764 Here is an example listing with left line numbering, step
39765 \begin_inset Quotes eld
39769 \begin_inset Quotes erd
39773 \begin_inset Quotes eld
39777 \begin_inset Quotes erd
39781 \begin_inset Quotes eld
39784 Extended character table
39785 \begin_inset Quotes erd
39789 \begin_inset Quotes eld
39793 \begin_inset space ~
39797 \begin_inset space ~
39801 \begin_inset Quotes erd
39805 \begin_inset space \thinspace{}
39809 \begin_inset space \thinspace{}
39815 \begin_layout Standard
39816 \begin_inset listings
39817 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39821 \begin_layout Plain Layout
39826 \begin_layout Plain Layout
39828 'this is a python function'
39831 \begin_layout Plain Layout
39836 \begin_layout Plain Layout
39841 \begin_layout Plain Layout
39843 'This is a German word: Tschüß'
39846 \begin_layout Plain Layout
39851 \begin_layout Plain Layout
39856 \begin_layout Plain Layout
39858 'this is a python function'
39861 \begin_layout Plain Layout
39871 \begin_layout Standard
39872 When you have tabulators in your listing, you can specify the number of
39873 characters that are spanned by a tabulator in the field
39876 \begin_inset space ~
39884 \begin_layout Standard
39885 \begin_inset Note Greyedout
39888 \begin_layout Plain Layout
39893 Due to a bug in the
39897 package the line numbering is shifted by a line by every previous listing.
39898 That's the reason why the lines 2 and 5 are numbered in the above listing
39899 and not the lines 3 and 6.
39907 \begin_layout Standard
39908 \begin_inset VSpace bigskip
39914 \begin_layout Standard
39915 It is also possible to print lines from a file as listing.
39916 To do this, use the menu
39918 Insert\SpecialChar \menuseparator
39919 File\SpecialChar \menuseparator
39922 and choose the type
39930 \begin_layout Plain Layout
39931 The other child document types are described in section
39932 \begin_inset space ~
39936 \begin_inset CommandInset ref
39938 reference "sec:Child-Documents"
39947 In the child document dialog you can specify the listing parameters in
39949 To show a list of all available parameters, type in a question mark
39950 \begin_inset Quotes eld
39954 \begin_inset Quotes erd
39960 \begin_layout Standard
39961 To reference child document listings, write a label text into the corresponding
39962 field of the child document dialog.
39963 The label can then be referenced using the menu
39965 Insert\SpecialChar \menuseparator
39971 \begin_layout Standard
39973 \begin_inset space ~
39977 \begin_inset CommandInset ref
39979 reference "lst:file-listing"
39983 is an example for a listing of a file; there the lines 10
39984 \begin_inset space \thinspace{}
39988 \begin_inset space \thinspace{}
39991 15 of this LyX file are listed.
39994 \begin_layout Standard
39995 \begin_inset CommandInset include
39996 LatexCommand lstinputlisting
39997 filename "EmbeddedObjects.lyx"
39998 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40005 \begin_layout Standard
40006 \begin_inset VSpace bigskip
40012 \begin_layout Standard
40013 Inserting a formula into a listing can be done the following way:
40016 \begin_layout Enumerate
40017 Open the listings dialog and add
40018 \begin_inset Newline newline
40026 \begin_inset Newline newline
40029 to the field of the
40036 \begin_layout Enumerate
40037 Create a formula outside the listing
40040 \begin_layout Enumerate
40041 Copy the content of the formula (not the formula inset) to the clipboard
40051 \begin_layout Enumerate
40052 In the listing write
40053 \begin_inset Quotes eld
40061 \begin_inset Quotes erd
40064 and copy from the clipboard between the dollar-signs (shortcut
40073 \begin_layout Standard
40074 \begin_inset listings
40075 lstparams "language=Python,mathescape=true"
40079 \begin_layout Plain Layout
40081 \begin_inset Caption Standard
40083 \begin_layout Plain Layout
40084 Example Listing float containing a formula
40089 # Example listing float
40092 \begin_layout Plain Layout
40097 \begin_layout Plain Layout
40110 \begin_layout Plain Layout
40120 \begin_layout Standard
40121 \begin_inset VSpace bigskip
40127 \begin_layout Standard
40128 Global listings settings can be set in the
40130 Document\SpecialChar \menuseparator
40131 Settings\SpecialChar \menuseparator
40135 To get there a list of available options, type in a question mark
40136 \begin_inset Quotes eld
40140 \begin_inset Quotes erd
40146 \begin_layout Standard
40147 For more information about the
40151 package, we refer to its documentation
40152 \begin_inset CommandInset citation
40161 \begin_layout Standard
40162 \begin_inset Newpage newpage
40168 \begin_layout Chapter
40170 Units available in LyX
40171 \begin_inset Index idx
40174 \begin_layout Plain Layout
40181 \begin_inset CommandInset label
40183 name "cha:Units-available-in"
40190 \begin_layout Standard
40191 To understand the units described in this documentation, Table
40192 \begin_inset space ~
40196 \begin_inset CommandInset ref
40198 reference "tab:Units"
40202 explains all units available in LyX.
40205 \begin_layout Standard
40206 \begin_inset Float table
40212 \begin_layout Plain Layout
40213 \begin_inset Caption Standard
40215 \begin_layout Plain Layout
40216 \begin_inset CommandInset label
40230 \begin_layout Plain Layout
40231 \begin_inset VSpace medskip
40237 \begin_layout Plain Layout
40239 \begin_inset Tabular
40240 <lyxtabular version="3" rows="20" columns="2">
40241 <features rotate="0" tabularvalignment="middle">
40242 <column alignment="center" valignment="top">
40243 <column alignment="center" valignment="top">
40245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40248 \begin_layout Plain Layout
40254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40257 \begin_layout Plain Layout
40265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40268 \begin_layout Plain Layout
40274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40277 \begin_layout Plain Layout
40285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40288 \begin_layout Plain Layout
40294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40297 \begin_layout Plain Layout
40305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40308 \begin_layout Plain Layout
40314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40317 \begin_layout Plain Layout
40325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40328 \begin_layout Plain Layout
40334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40337 \begin_layout Plain Layout
40339 \begin_inset space \thinspace{}
40343 \begin_inset space \thinspace{}
40353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40356 \begin_layout Plain Layout
40362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40365 \begin_layout Plain Layout
40367 \begin_inset space \thinspace{}
40371 \begin_inset space \thinspace{}
40381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40384 \begin_layout Plain Layout
40390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40393 \begin_layout Plain Layout
40394 scaled point (65536
40395 \begin_inset space \thinspace{}
40399 \begin_inset space \thinspace{}
40409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40412 \begin_layout Plain Layout
40418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40421 \begin_layout Plain Layout
40423 \begin_inset space \thinspace{}
40427 \begin_inset space \thinspace{}
40437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40440 \begin_layout Plain Layout
40446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40449 \begin_layout Plain Layout
40451 \begin_inset space \thinspace{}
40455 \begin_inset Formula $\approx$
40459 \begin_inset space \thinspace{}
40469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40472 \begin_layout Plain Layout
40478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40481 \begin_layout Plain Layout
40483 \begin_inset space \thinspace{}
40487 \begin_inset space \thinspace{}
40497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40500 \begin_layout Plain Layout
40506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40509 \begin_layout Plain Layout
40510 % of original image width
40517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40520 \begin_layout Plain Layout
40526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40529 \begin_layout Plain Layout
40537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40540 \begin_layout Plain Layout
40546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40549 \begin_layout Plain Layout
40557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40560 \begin_layout Plain Layout
40566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40569 \begin_layout Plain Layout
40577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40580 \begin_layout Plain Layout
40586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40589 \begin_layout Plain Layout
40597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40600 \begin_layout Plain Layout
40606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40609 \begin_layout Plain Layout
40617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40620 \begin_layout Plain Layout
40626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40629 \begin_layout Plain Layout
40637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40640 \begin_layout Plain Layout
40646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40649 \begin_layout Plain Layout
40661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40664 \begin_layout Plain Layout
40670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40673 \begin_layout Plain Layout
40685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40688 \begin_layout Plain Layout
40694 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40697 \begin_layout Plain Layout
40699 \begin_inset space \thinspace{}
40703 \begin_inset space \thinspace{}
40724 \begin_layout Chapter
40725 Output File Formats with Graphics
40726 \begin_inset CommandInset label
40728 name "cha:Output-File-Formats"
40735 \begin_layout Section
40737 \begin_inset Index idx
40740 \begin_layout Plain Layout
40747 \begin_inset Index idx
40750 \begin_layout Plain Layout
40755 \begin_layout Plain Layout
40766 \begin_layout Plain Layout
40781 \begin_layout Standard
40782 This file type has the extension
40783 \begin_inset Quotes eld
40791 \begin_inset Quotes erd
40796 \begin_inset Quotes eld
40800 \begin_inset Quotes erd
40803 (DVI), because it is completely portable; you can move them from one machine
40804 to another without needing to do any sort of conversion.
40805 At the time when this file-format was developed, this was no matter of
40807 DVIs are used for quick previews and as pre-stage for other output formats,
40811 \begin_layout Standard
40812 \begin_inset Note Greyedout
40815 \begin_layout Plain Layout
40820 DVI-files do not contain images; they will only be a linked.
40825 So don't forget this, if you move your
40829 file to another computer.
40830 This property can also slow down your computer when you view the DVI, because
40831 the DVI-viewer has to convert the image in the background to make it visible
40832 when you scroll in the DVI.
40833 So it is recommended that you use PDF for files with many images.
40836 \begin_layout Standard
40837 You can export your document to DVI by using the menu
40839 File\SpecialChar \menuseparator
40840 Export\SpecialChar \menuseparator
40844 You can view your document as DVI via the
40851 \begin_layout Section
40853 \begin_inset CommandInset label
40855 name "sec:PostScript"
40860 \begin_inset Index idx
40863 \begin_layout Plain Layout
40864 File Formats ! PostScript
40870 \begin_inset Index idx
40873 \begin_layout Plain Layout
40878 \begin_layout Plain Layout
40889 \begin_layout Plain Layout
40904 \begin_layout Standard
40905 This file type has the extension
40906 \begin_inset Quotes eld
40914 \begin_inset Quotes erd
40918 PostScript was developed by the company
40922 as a printer language.
40923 The file therefore contains commands that the printer uses to print the
40925 PostScript can be seen as a
40926 \begin_inset Quotes eld
40929 programming language
40930 \begin_inset Quotes erd
40933 ; you can calculate with it and draw diagrams and images
40937 \begin_layout Plain Layout
40938 If you are interested to learn more about this, have a look at the LaTeX-package
40944 \begin_inset CommandInset citation
40956 Due to this ability, the files are often bigger than PDFs.
40959 \begin_layout Standard
40960 PostScript can only contain images in the format
40961 \begin_inset Quotes eld
40964 Encapsulated PostScript
40965 \begin_inset Quotes erd
40968 (EPS, file extension
40969 \begin_inset Quotes eld
40977 \begin_inset Quotes erd
40981 As LyX allows you to use any known image format in your document, it has
40982 to convert images in the background to EPS.
40984 \begin_inset space ~
40988 \begin_inset space ~
40991 images in your document, LyX has to do 50
40992 \begin_inset space ~
40995 conversions whenever you view or export your document.
40996 This will slow down your work flow with LyX drastically.
40997 So if you plan to use PostScript, you can insert your images directly as
40998 EPS to avoid this problem.
41001 \begin_layout Standard
41002 You can export your document to PostScript using the menu
41004 File\SpecialChar \menuseparator
41005 Export\SpecialChar \menuseparator
41009 You can view your document as PostScript via the
41016 \begin_layout Section
41018 \begin_inset Index idx
41021 \begin_layout Plain Layout
41028 \begin_inset Index idx
41031 \begin_layout Plain Layout
41040 \begin_layout Standard
41041 This file type has the extension
41042 \begin_inset Quotes eld
41050 \begin_inset Quotes erd
41055 \begin_inset Quotes eld
41058 Portable Document Format
41059 \begin_inset Quotes erd
41062 (PDF) was developed by
41066 as a derivative of PostScript.
41067 It is more compressed and it uses fewer commands than PostScript.
41069 \begin_inset Quotes eld
41073 \begin_inset Quotes erd
41076 implies, it can be processed at any computer system and the printed output
41077 looks exactly the same.
41080 \begin_layout Standard
41081 PDF can contain images in its own PDF format, in the format
41082 \begin_inset Quotes eld
41085 Joint Photographic Experts Group
41086 \begin_inset Quotes erd
41089 (JPG, file extension
41090 \begin_inset Quotes eld
41098 \begin_inset Quotes erd
41102 \begin_inset Quotes eld
41110 \begin_inset Quotes erd
41113 ), and in the format
41114 \begin_inset Quotes eld
41117 Portable Network Graphics
41118 \begin_inset Quotes erd
41121 (PNG, file extension
41122 \begin_inset Quotes eld
41130 \begin_inset Quotes erd
41134 Nevertheless you can use any other image format, because LyX converts them
41135 in the background to one of these formats.
41136 But as described in the section about PostScript, the image conversion
41137 will slow down your work flow.
41138 So it is recommended that you use images in one of the three mentioned
41142 \begin_layout Standard
41143 You can export your document to PDF via the menu
41145 File\SpecialChar \menuseparator
41148 in three different ways:
41151 \begin_layout Description
41153 \begin_inset space ~
41156 (ps2pdf) This uses the program
41160 that creates a PDF from a PostScript-version of your file.
41161 The PostScript-version is produced by the program
41165 which uses a DVI-version as intermediate step.
41166 So this export variant consists of three conversions.
41169 \begin_layout Description
41171 \begin_inset space ~
41174 (dvipdfm) This uses the program
41178 that converts your file in the background to DVI and in a second step to
41182 \begin_layout Description
41184 \begin_inset space ~
41187 (pdflatex) This uses the program
41191 that converts your file directly to PDF.
41194 \begin_layout Standard
41195 It is recommended that you use
41198 \begin_inset space ~
41207 supports all features of actual PDF-versions, is quick and works stable.
41212 is not under development and therefore a bit outdated.
41215 \begin_layout Standard
41216 You can view your document as PDF via the
41220 menu or by using a toolbar button.
41223 \begin_layout Chapter
41224 List of dvips color names
41225 \begin_inset CommandInset label
41227 name "chap:List-of-dvips-colornames"
41234 \begin_layout Standard
41235 \begin_inset Tabular
41236 <lyxtabular version="3" rows="17" columns="4">
41237 <features rotate="0" tabularvalignment="middle">
41238 <column alignment="left" valignment="top" width="0pt">
41239 <column alignment="left" valignment="top" width="0pt">
41240 <column alignment="left" valignment="top" width="0pt">
41241 <column alignment="left" valignment="top" width="0pt">
41243 <cell alignment="left" valignment="top" usebox="none">
41246 \begin_layout Plain Layout
41250 \begin_layout Plain Layout
41263 \begin_layout Plain Layout
41274 \begin_layout Plain Layout
41286 <cell alignment="left" valignment="top" usebox="none">
41289 \begin_layout Plain Layout
41293 \begin_layout Plain Layout
41306 \begin_layout Plain Layout
41317 \begin_layout Plain Layout
41329 <cell alignment="left" valignment="top" usebox="none">
41332 \begin_layout Plain Layout
41336 \begin_layout Plain Layout
41349 \begin_layout Plain Layout
41360 \begin_layout Plain Layout
41372 <cell alignment="left" valignment="top" usebox="none">
41375 \begin_layout Plain Layout
41379 \begin_layout Plain Layout
41392 \begin_layout Plain Layout
41403 \begin_layout Plain Layout
41417 <cell alignment="center" valignment="top" usebox="none">
41420 \begin_layout Plain Layout
41424 \begin_layout Plain Layout
41437 \begin_layout Plain Layout
41445 \begin_inset Phantom Phantom
41448 \begin_layout Plain Layout
41458 \begin_layout Plain Layout
41470 <cell alignment="center" valignment="top" usebox="none">
41473 \begin_layout Plain Layout
41477 \begin_layout Plain Layout
41490 \begin_layout Plain Layout
41498 \begin_inset Phantom Phantom
41501 \begin_layout Plain Layout
41511 \begin_layout Plain Layout
41523 <cell alignment="center" valignment="top" usebox="none">
41526 \begin_layout Plain Layout
41530 \begin_layout Plain Layout
41543 \begin_layout Plain Layout
41551 \begin_inset Phantom Phantom
41554 \begin_layout Plain Layout
41564 \begin_layout Plain Layout
41576 <cell alignment="center" valignment="top" usebox="none">
41579 \begin_layout Plain Layout
41583 \begin_layout Plain Layout
41596 \begin_layout Plain Layout
41604 \begin_inset Phantom Phantom
41607 \begin_layout Plain Layout
41617 \begin_layout Plain Layout
41631 <cell alignment="left" valignment="top" usebox="none">
41634 \begin_layout Plain Layout
41638 \begin_layout Plain Layout
41651 \begin_layout Plain Layout
41659 \begin_inset Phantom Phantom
41662 \begin_layout Plain Layout
41672 \begin_layout Plain Layout
41684 <cell alignment="left" valignment="top" usebox="none">
41687 \begin_layout Plain Layout
41691 \begin_layout Plain Layout
41704 \begin_layout Plain Layout
41712 \begin_inset Phantom Phantom
41715 \begin_layout Plain Layout
41725 \begin_layout Plain Layout
41737 <cell alignment="left" valignment="top" usebox="none">
41740 \begin_layout Plain Layout
41744 \begin_layout Plain Layout
41757 \begin_layout Plain Layout
41765 \begin_inset Phantom Phantom
41768 \begin_layout Plain Layout
41778 \begin_layout Plain Layout
41790 <cell alignment="left" valignment="top" usebox="none">
41793 \begin_layout Plain Layout
41797 \begin_layout Plain Layout
41810 \begin_layout Plain Layout
41818 \begin_inset Phantom Phantom
41821 \begin_layout Plain Layout
41831 \begin_layout Plain Layout
41845 <cell alignment="left" valignment="top" usebox="none">
41848 \begin_layout Plain Layout
41852 \begin_layout Plain Layout
41865 \begin_layout Plain Layout
41873 \begin_inset Phantom Phantom
41876 \begin_layout Plain Layout
41886 \begin_layout Plain Layout
41898 <cell alignment="left" valignment="top" usebox="none">
41901 \begin_layout Plain Layout
41905 \begin_layout Plain Layout
41918 \begin_layout Plain Layout
41926 \begin_inset Phantom Phantom
41929 \begin_layout Plain Layout
41939 \begin_layout Plain Layout
41951 <cell alignment="left" valignment="top" usebox="none">
41954 \begin_layout Plain Layout
41958 \begin_layout Plain Layout
41971 \begin_layout Plain Layout
41979 \begin_inset Phantom Phantom
41982 \begin_layout Plain Layout
41992 \begin_layout Plain Layout
42004 <cell alignment="left" valignment="top" usebox="none">
42007 \begin_layout Plain Layout
42011 \begin_layout Plain Layout
42024 \begin_layout Plain Layout
42032 \begin_inset Phantom Phantom
42035 \begin_layout Plain Layout
42045 \begin_layout Plain Layout
42059 <cell alignment="left" valignment="top" usebox="none">
42062 \begin_layout Plain Layout
42066 \begin_layout Plain Layout
42079 \begin_layout Plain Layout
42087 \begin_inset Phantom Phantom
42090 \begin_layout Plain Layout
42100 \begin_layout Plain Layout
42112 <cell alignment="left" valignment="top" usebox="none">
42115 \begin_layout Plain Layout
42119 \begin_layout Plain Layout
42132 \begin_layout Plain Layout
42140 \begin_inset Phantom Phantom
42143 \begin_layout Plain Layout
42153 \begin_layout Plain Layout
42165 <cell alignment="left" valignment="top" usebox="none">
42168 \begin_layout Plain Layout
42172 \begin_layout Plain Layout
42185 \begin_layout Plain Layout
42193 \begin_inset Phantom Phantom
42196 \begin_layout Plain Layout
42206 \begin_layout Plain Layout
42218 <cell alignment="left" valignment="top" usebox="none">
42221 \begin_layout Plain Layout
42225 \begin_layout Plain Layout
42238 \begin_layout Plain Layout
42246 \begin_inset Phantom Phantom
42249 \begin_layout Plain Layout
42259 \begin_layout Plain Layout
42273 <cell alignment="left" valignment="top" usebox="none">
42276 \begin_layout Plain Layout
42280 \begin_layout Plain Layout
42293 \begin_layout Plain Layout
42301 \begin_inset Phantom Phantom
42304 \begin_layout Plain Layout
42314 \begin_layout Plain Layout
42326 <cell alignment="left" valignment="top" usebox="none">
42329 \begin_layout Plain Layout
42333 \begin_layout Plain Layout
42346 \begin_layout Plain Layout
42354 \begin_inset Phantom Phantom
42357 \begin_layout Plain Layout
42367 \begin_layout Plain Layout
42379 <cell alignment="left" valignment="top" usebox="none">
42382 \begin_layout Plain Layout
42386 \begin_layout Plain Layout
42399 \begin_layout Plain Layout
42407 \begin_inset Phantom Phantom
42410 \begin_layout Plain Layout
42420 \begin_layout Plain Layout
42432 <cell alignment="left" valignment="top" usebox="none">
42435 \begin_layout Plain Layout
42439 \begin_layout Plain Layout
42452 \begin_layout Plain Layout
42460 \begin_inset Phantom Phantom
42463 \begin_layout Plain Layout
42473 \begin_layout Plain Layout
42487 <cell alignment="center" valignment="top" usebox="none">
42490 \begin_layout Plain Layout
42494 \begin_layout Plain Layout
42507 \begin_layout Plain Layout
42515 \begin_inset Phantom Phantom
42518 \begin_layout Plain Layout
42528 \begin_layout Plain Layout
42540 <cell alignment="center" valignment="top" usebox="none">
42543 \begin_layout Plain Layout
42547 \begin_layout Plain Layout
42560 \begin_layout Plain Layout
42568 \begin_inset Phantom Phantom
42571 \begin_layout Plain Layout
42581 \begin_layout Plain Layout
42593 <cell alignment="center" valignment="top" usebox="none">
42596 \begin_layout Plain Layout
42600 \begin_layout Plain Layout
42613 \begin_layout Plain Layout
42621 \begin_inset Phantom Phantom
42624 \begin_layout Plain Layout
42634 \begin_layout Plain Layout
42646 <cell alignment="center" valignment="top" usebox="none">
42649 \begin_layout Plain Layout
42653 \begin_layout Plain Layout
42666 \begin_layout Plain Layout
42674 \begin_inset Phantom Phantom
42677 \begin_layout Plain Layout
42687 \begin_layout Plain Layout
42701 <cell alignment="left" valignment="top" usebox="none">
42704 \begin_layout Plain Layout
42708 \begin_layout Plain Layout
42721 \begin_layout Plain Layout
42729 \begin_inset Phantom Phantom
42732 \begin_layout Plain Layout
42742 \begin_layout Plain Layout
42754 <cell alignment="left" valignment="top" usebox="none">
42757 \begin_layout Plain Layout
42761 \begin_layout Plain Layout
42774 \begin_layout Plain Layout
42782 \begin_inset Phantom Phantom
42785 \begin_layout Plain Layout
42795 \begin_layout Plain Layout
42807 <cell alignment="left" valignment="top" usebox="none">
42810 \begin_layout Plain Layout
42814 \begin_layout Plain Layout
42827 \begin_layout Plain Layout
42835 \begin_inset Phantom Phantom
42838 \begin_layout Plain Layout
42848 \begin_layout Plain Layout
42860 <cell alignment="left" valignment="top" usebox="none">
42863 \begin_layout Plain Layout
42867 \begin_layout Plain Layout
42880 \begin_layout Plain Layout
42888 \begin_inset Phantom Phantom
42891 \begin_layout Plain Layout
42901 \begin_layout Plain Layout
42915 <cell alignment="left" valignment="top" usebox="none">
42918 \begin_layout Plain Layout
42922 \begin_layout Plain Layout
42935 \begin_layout Plain Layout
42943 \begin_inset Phantom Phantom
42946 \begin_layout Plain Layout
42956 \begin_layout Plain Layout
42968 <cell alignment="left" valignment="top" usebox="none">
42971 \begin_layout Plain Layout
42975 \begin_layout Plain Layout
42988 \begin_layout Plain Layout
42996 \begin_inset Phantom Phantom
42999 \begin_layout Plain Layout
43009 \begin_layout Plain Layout
43021 <cell alignment="left" valignment="top" usebox="none">
43024 \begin_layout Plain Layout
43028 \begin_layout Plain Layout
43041 \begin_layout Plain Layout
43049 \begin_inset Phantom Phantom
43052 \begin_layout Plain Layout
43062 \begin_layout Plain Layout
43074 <cell alignment="left" valignment="top" usebox="none">
43077 \begin_layout Plain Layout
43081 \begin_layout Plain Layout
43094 \begin_layout Plain Layout
43102 \begin_inset Phantom Phantom
43105 \begin_layout Plain Layout
43115 \begin_layout Plain Layout
43129 <cell alignment="left" valignment="top" usebox="none">
43132 \begin_layout Plain Layout
43136 \begin_layout Plain Layout
43149 \begin_layout Plain Layout
43157 \begin_inset Phantom Phantom
43160 \begin_layout Plain Layout
43170 \begin_layout Plain Layout
43182 <cell alignment="left" valignment="top" usebox="none">
43185 \begin_layout Plain Layout
43189 \begin_layout Plain Layout
43202 \begin_layout Plain Layout
43210 \begin_inset Phantom Phantom
43213 \begin_layout Plain Layout
43223 \begin_layout Plain Layout
43235 <cell alignment="left" valignment="top" usebox="none">
43238 \begin_layout Plain Layout
43242 \begin_layout Plain Layout
43255 \begin_layout Plain Layout
43263 \begin_inset Phantom Phantom
43266 \begin_layout Plain Layout
43276 \begin_layout Plain Layout
43288 <cell alignment="left" valignment="top" usebox="none">
43291 \begin_layout Plain Layout
43295 \begin_layout Plain Layout
43308 \begin_layout Plain Layout
43316 \begin_inset Phantom Phantom
43319 \begin_layout Plain Layout
43329 \begin_layout Plain Layout
43343 <cell alignment="left" valignment="top" usebox="none">
43346 \begin_layout Plain Layout
43350 \begin_layout Plain Layout
43363 \begin_layout Plain Layout
43371 \begin_inset Phantom Phantom
43374 \begin_layout Plain Layout
43384 \begin_layout Plain Layout
43396 <cell alignment="left" valignment="top" usebox="none">
43399 \begin_layout Plain Layout
43403 \begin_layout Plain Layout
43416 \begin_layout Plain Layout
43424 \begin_inset Phantom Phantom
43427 \begin_layout Plain Layout
43437 \begin_layout Plain Layout
43449 <cell alignment="left" valignment="top" usebox="none">
43452 \begin_layout Plain Layout
43456 \begin_layout Plain Layout
43469 \begin_layout Plain Layout
43477 \begin_inset Phantom Phantom
43480 \begin_layout Plain Layout
43490 \begin_layout Plain Layout
43502 <cell alignment="left" valignment="top" usebox="none">
43505 \begin_layout Plain Layout
43509 \begin_layout Plain Layout
43522 \begin_layout Plain Layout
43530 \begin_inset Phantom Phantom
43533 \begin_layout Plain Layout
43543 \begin_layout Plain Layout
43557 <cell alignment="left" valignment="top" usebox="none">
43560 \begin_layout Plain Layout
43564 \begin_layout Plain Layout
43577 \begin_layout Plain Layout
43585 \begin_inset Phantom Phantom
43588 \begin_layout Plain Layout
43598 \begin_layout Plain Layout
43610 <cell alignment="left" valignment="top" usebox="none">
43613 \begin_layout Plain Layout
43617 \begin_layout Plain Layout
43630 \begin_layout Plain Layout
43638 \begin_inset Phantom Phantom
43641 \begin_layout Plain Layout
43651 \begin_layout Plain Layout
43663 <cell alignment="left" valignment="top" usebox="none">
43666 \begin_layout Plain Layout
43670 \begin_layout Plain Layout
43683 \begin_layout Plain Layout
43691 \begin_inset Phantom Phantom
43694 \begin_layout Plain Layout
43704 \begin_layout Plain Layout
43716 <cell alignment="left" valignment="top" usebox="none">
43719 \begin_layout Plain Layout
43723 \begin_layout Plain Layout
43736 \begin_layout Plain Layout
43744 \begin_inset Phantom Phantom
43747 \begin_layout Plain Layout
43757 \begin_layout Plain Layout
43771 <cell alignment="left" valignment="top" usebox="none">
43774 \begin_layout Plain Layout
43778 \begin_layout Plain Layout
43791 \begin_layout Plain Layout
43799 \begin_inset Phantom Phantom
43802 \begin_layout Plain Layout
43812 \begin_layout Plain Layout
43824 <cell alignment="left" valignment="top" usebox="none">
43827 \begin_layout Plain Layout
43831 \begin_layout Plain Layout
43844 \begin_layout Plain Layout
43852 \begin_inset Phantom Phantom
43855 \begin_layout Plain Layout
43865 \begin_layout Plain Layout
43877 <cell alignment="left" valignment="top" usebox="none">
43880 \begin_layout Plain Layout
43884 \begin_layout Plain Layout
43897 \begin_layout Plain Layout
43905 \begin_inset Phantom Phantom
43908 \begin_layout Plain Layout
43918 \begin_layout Plain Layout
43930 <cell alignment="left" valignment="top" usebox="none">
43933 \begin_layout Plain Layout
43937 \begin_layout Plain Layout
43950 \begin_layout Plain Layout
43958 \begin_inset Phantom Phantom
43961 \begin_layout Plain Layout
43971 \begin_layout Plain Layout
43985 <cell alignment="left" valignment="top" usebox="none">
43988 \begin_layout Plain Layout
43992 \begin_layout Plain Layout
44005 \begin_layout Plain Layout
44013 \begin_inset Phantom Phantom
44016 \begin_layout Plain Layout
44026 \begin_layout Plain Layout
44038 <cell alignment="left" valignment="top" usebox="none">
44041 \begin_layout Plain Layout
44045 \begin_layout Plain Layout
44058 \begin_layout Plain Layout
44066 \begin_inset Phantom Phantom
44069 \begin_layout Plain Layout
44079 \begin_layout Plain Layout
44091 <cell alignment="left" valignment="top" usebox="none">
44094 \begin_layout Plain Layout
44098 \begin_layout Plain Layout
44111 \begin_layout Plain Layout
44119 \begin_inset Phantom Phantom
44122 \begin_layout Plain Layout
44132 \begin_layout Plain Layout
44144 <cell alignment="left" valignment="top" usebox="none">
44147 \begin_layout Plain Layout
44151 \begin_layout Plain Layout
44164 \begin_layout Plain Layout
44172 \begin_inset Phantom Phantom
44175 \begin_layout Plain Layout
44185 \begin_layout Plain Layout
44199 <cell alignment="left" valignment="top" usebox="none">
44202 \begin_layout Plain Layout
44206 \begin_layout Plain Layout
44219 \begin_layout Plain Layout
44227 \begin_inset Phantom Phantom
44230 \begin_layout Plain Layout
44240 \begin_layout Plain Layout
44252 <cell alignment="left" valignment="top" usebox="none">
44255 \begin_layout Plain Layout
44259 \begin_layout Plain Layout
44272 \begin_layout Plain Layout
44280 \begin_inset Phantom Phantom
44283 \begin_layout Plain Layout
44293 \begin_layout Plain Layout
44305 <cell alignment="left" valignment="top" usebox="none">
44308 \begin_layout Plain Layout
44312 \begin_layout Plain Layout
44325 \begin_layout Plain Layout
44333 \begin_inset Phantom Phantom
44336 \begin_layout Plain Layout
44346 \begin_layout Plain Layout
44358 <cell alignment="left" valignment="top" usebox="none">
44361 \begin_layout Plain Layout
44365 \begin_layout Plain Layout
44378 \begin_layout Plain Layout
44386 \begin_inset Phantom Phantom
44389 \begin_layout Plain Layout
44399 \begin_layout Plain Layout
44413 <cell alignment="left" valignment="top" usebox="none">
44416 \begin_layout Plain Layout
44420 \begin_layout Plain Layout
44433 \begin_layout Plain Layout
44441 \begin_inset Phantom Phantom
44444 \begin_layout Plain Layout
44454 \begin_layout Plain Layout
44466 <cell alignment="left" valignment="top" usebox="none">
44469 \begin_layout Plain Layout
44473 \begin_layout Plain Layout
44486 \begin_layout Plain Layout
44494 \begin_inset Phantom Phantom
44497 \begin_layout Plain Layout
44507 \begin_layout Plain Layout
44519 <cell alignment="left" valignment="top" usebox="none">
44522 \begin_layout Plain Layout
44526 \begin_layout Plain Layout
44539 \begin_layout Plain Layout
44547 \begin_inset Phantom Phantom
44550 \begin_layout Plain Layout
44560 \begin_layout Plain Layout
44572 <cell alignment="left" valignment="top" usebox="none">
44575 \begin_layout Plain Layout
44579 \begin_layout Plain Layout
44592 \begin_layout Plain Layout
44600 \begin_inset Phantom Phantom
44603 \begin_layout Plain Layout
44613 \begin_layout Plain Layout
44627 <cell alignment="left" valignment="top" usebox="none">
44630 \begin_layout Plain Layout
44634 \begin_layout Plain Layout
44647 \begin_layout Plain Layout
44655 \begin_inset Phantom Phantom
44658 \begin_layout Plain Layout
44668 \begin_layout Plain Layout
44680 <cell alignment="left" valignment="top" usebox="none">
44683 \begin_layout Plain Layout
44689 <cell alignment="left" valignment="top" usebox="none">
44692 \begin_layout Plain Layout
44698 <cell alignment="left" valignment="top" usebox="none">
44701 \begin_layout Plain Layout
44715 \begin_layout Chapter
44716 Explanation of Equation
44717 \begin_inset space ~
44721 \begin_inset CommandInset ref
44728 \begin_inset CommandInset label
44730 name "cha:Explanation-of-Equation"
44737 \begin_layout Standard
44738 We can calculate the total width of
44743 \begin_inset Formula $W_{\mathrm{tot\, n}}$
44747 \begin_inset Formula
44749 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44755 \begin_inset Formula $W_{g\, n}$
44758 is the given width of all cells,
44764 is the LaTeX-length between the cell text and the cell border (its default
44766 \begin_inset space \thinspace{}
44776 is the thickness of the cell border line, the default is 0.4
44777 \begin_inset space \thinspace{}
44783 \begin_layout Standard
44785 \begin_inset space ~
44789 \begin_inset CommandInset ref
44791 reference "eq:Wtot_n"
44795 , the total width of a multicolumn
44796 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
44800 \begin_inset Formula
44802 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44810 \begin_layout Standard
44811 By setting equation
44812 \begin_inset space ~
44816 \begin_inset CommandInset ref
44818 reference "eq:Wtot_n"
44823 \begin_inset CommandInset ref
44825 reference "eq:Wtot_mult"
44829 equal we can calculate the needed given width
44830 \begin_inset Formula $W_{g\, n}$
44837 columns are spanned, so that each column has a total width of
44838 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
44842 \begin_inset Formula
44844 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44852 \begin_layout Bibliography
44853 \begin_inset CommandInset bibitem
44854 LatexCommand bibitem
44855 key "latexcompanion"
44859 Frank Mittelbach and Michel Goossens:
44861 The LaTeX Companion Second Edition.
44864 Addison-Wesley, 2004
44867 \begin_layout Bibliography
44868 \begin_inset CommandInset bibitem
44869 LatexCommand bibitem
44874 Helmut Kopka and Patrick W.
44877 A Guide to LaTeX Fourth Edition.
44880 Addison-Wesley, 2003
44883 \begin_layout Bibliography
44884 \begin_inset CommandInset bibitem
44885 LatexCommand bibitem
44892 LaTeX: A Document Preparation System.
44895 Addison-Wesley, second edition, 1994
44898 \begin_layout Bibliography
44899 \begin_inset CommandInset bibitem
44900 LatexCommand bibitem
44905 Documentation of the LaTeX-package
44908 \begin_inset CommandInset href
44911 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44918 \begin_inset Index idx
44921 \begin_layout Plain Layout
44922 LaTeX-packages ! arydshln
44930 \begin_layout Bibliography
44931 \begin_inset CommandInset bibitem
44932 LatexCommand bibitem
44937 Documentation of the LaTeX-package
44940 \begin_inset CommandInset href
44943 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44950 \begin_inset Index idx
44953 \begin_layout Plain Layout
44954 LaTeX-packages ! booktabs
44962 \begin_layout Bibliography
44963 \begin_inset CommandInset bibitem
44964 LatexCommand bibitem
44969 Documentation of the LaTeX-package
44972 \begin_inset CommandInset href
44975 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
44982 \begin_inset Index idx
44985 \begin_layout Plain Layout
44986 LaTeX-packages ! caption
44994 \begin_layout Bibliography
44995 \begin_inset CommandInset bibitem
44996 LatexCommand bibitem
45001 Documentation of the LaTeX-package
45004 \begin_inset CommandInset href
45007 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45014 \begin_inset Index idx
45017 \begin_layout Plain Layout
45018 LaTeX-packages ! diagbox
45026 \begin_layout Bibliography
45027 \begin_inset CommandInset bibitem
45028 LatexCommand bibitem
45033 Documentation of the LaTeX-package
45036 \begin_inset CommandInset href
45039 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45046 \begin_inset Index idx
45049 \begin_layout Plain Layout
45050 LaTeX-packages ! endfloat
45058 \begin_layout Bibliography
45059 \begin_inset CommandInset bibitem
45060 LatexCommand bibitem
45065 Documentation of the LaTeX-package
45068 \begin_inset CommandInset href
45071 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45078 \begin_inset Index idx
45081 \begin_layout Plain Layout
45082 LaTeX-packages ! footmisc
45090 \begin_layout Bibliography
45091 \begin_inset CommandInset bibitem
45092 LatexCommand bibitem
45097 Documentation of the LaTeX-package
45100 \begin_inset CommandInset href
45103 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45110 \begin_inset Index idx
45113 \begin_layout Plain Layout
45114 LaTeX-packages ! hyperref
45122 \begin_layout Bibliography
45123 \begin_inset CommandInset bibitem
45124 LatexCommand bibitem
45129 Documentation of the LaTeX-package
45132 \begin_inset CommandInset href
45135 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45142 \begin_inset Index idx
45145 \begin_layout Plain Layout
45146 LaTeX-packages ! hyperref
45154 \begin_layout Bibliography
45155 \begin_inset CommandInset bibitem
45156 LatexCommand bibitem
45161 Documentation of the LaTeX-package
45164 \begin_inset CommandInset href
45167 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf"
45174 \begin_inset Index idx
45177 \begin_layout Plain Layout
45178 LaTeX-packages ! KOMA-Script
45186 \begin_layout Bibliography
45187 \begin_inset CommandInset bibitem
45188 LatexCommand bibitem
45193 Documentation of the LaTeX-package
45196 \begin_inset CommandInset href
45199 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45206 \begin_inset CommandInset href
45209 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45214 \begin_inset Index idx
45217 \begin_layout Plain Layout
45218 LaTeX-packages ! lettrine
45226 \begin_layout Bibliography
45227 \begin_inset CommandInset bibitem
45228 LatexCommand bibitem
45233 Documentation of the LaTeX-package
45236 \begin_inset CommandInset href
45239 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45246 \begin_inset Index idx
45249 \begin_layout Plain Layout
45250 LaTeX-packages ! listings
45258 \begin_layout Bibliography
45259 \begin_inset CommandInset bibitem
45260 LatexCommand bibitem
45265 Documentation of the LaTeX-package
45268 \begin_inset CommandInset href
45271 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45278 \begin_inset Index idx
45281 \begin_layout Plain Layout
45282 LaTeX-packages ! marginnote
45290 \begin_layout Bibliography
45291 \begin_inset CommandInset bibitem
45292 LatexCommand bibitem
45297 Documentation of the LaTeX-package
45300 \begin_inset CommandInset href
45303 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45310 \begin_inset Index idx
45313 \begin_layout Plain Layout
45314 LaTeX-packages ! pdfpages
45322 \begin_layout Bibliography
45323 \begin_inset CommandInset bibitem
45324 LatexCommand bibitem
45329 Documentation of the LaTeX-package
45332 \begin_inset CommandInset href
45335 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45342 \begin_inset Index idx
45345 \begin_layout Plain Layout
45346 LaTeX-packages ! prettyref
45354 \begin_layout Bibliography
45355 \begin_inset CommandInset bibitem
45356 LatexCommand bibitem
45361 Web page of the LaTeX-package
45364 \begin_inset CommandInset href
45367 target "http://tug.org/PSTricks/"
45374 \begin_inset Index idx
45377 \begin_layout Plain Layout
45378 LaTeX-packages ! PSTricks
45386 \begin_layout Bibliography
45387 \begin_inset CommandInset bibitem
45388 LatexCommand bibitem
45393 Documentation of the LaTeX-package
45396 \begin_inset CommandInset href
45399 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45406 \begin_inset Index idx
45409 \begin_layout Plain Layout
45410 LaTeX-packages ! refstyle
45418 \begin_layout Bibliography
45419 \begin_inset CommandInset bibitem
45420 LatexCommand bibitem
45425 Documentation of the LaTeX-package
45428 \begin_inset CommandInset href
45431 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45438 \begin_inset Index idx
45441 \begin_layout Plain Layout
45442 LaTeX-packages ! sidecap
45450 \begin_layout Bibliography
45451 \begin_inset CommandInset bibitem
45452 LatexCommand bibitem
45458 \begin_inset CommandInset href
45461 target "http://wiki.lyx.org/LyX/NewInLyX20"
45465 about new features in
45472 \begin_layout Standard
45473 \begin_inset CommandInset index_print
45474 LatexCommand printindex