1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \origin /systemlyxdir/doc/
12 % set fonts for nicer pdf view
13 \IfFileExists{lmodern.sty}
14 {\usepackage{lmodern}}{}
16 \fi % end if pdflatex is used
18 % that links to image floats jumps
19 % to the beginning of the float and
21 \usepackage[figure]{hypcap}
23 % the pages of the TOC is numbered roman
24 % and a PDF-bookmark for the TOC is added
25 \let\myTOC\tableofcontents
26 \renewcommand\tableofcontents{%
28 \pdfbookmark[1]{\contentsname}{}
32 % provides caption formatting
33 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
35 % provides commands to set caption
36 % beside tables/images
37 \newcommand{\TabBesBeg}[1][1.0]{%
39 \let\MyEndtable\endtable
40 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
42 \newcommand{\TabBesEnd}{%
44 \let\endtable\MyEndtable}
46 \newcommand{\FigBesBeg}[1][1.0]{%
48 \let\MyEndfigure\endfigure
49 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
51 \newcommand{\FigBesEnd}{%
53 \let\endfigure\MyEndfigure}
55 % enables calculation of values,
58 % increase the bottom float placement fraction
59 \renewcommand{\bottomfraction}{0.5}
61 % avoids that floats are placed before their
62 % corresponding section starts
63 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
65 % speed up the longtable calculation
66 \setcounter{LTchunksize}{100}
68 % used for scaled and rotated boxes
69 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
71 % used for colored tables
72 \@ifundefined{textcolor}
73 {\usepackage{color}}{}
74 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
75 \definecolor{lightgrey}{gray}{0.8}
77 % check for package colortbl
78 % used for colored table cells
80 \IfFileExists{colortbl.sty}
81 {\usepackage{colortbl}
82 \setboolean{colortbl}{true}}
83 {\setboolean{colortbl}{false}}
85 % used to have extra space in table cells
86 \@ifundefined{extrarowheight}
87 {\usepackage{array}}{}
88 \setlength{\extrarowheight}{2pt}
90 % used for customized tables
93 {>{\centering\hspace{0pt}}m{#1}}
96 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
99 {>{\columncolor{#1}\hspace{0pt}}c}
101 \newcolumntype{V}{!{\vrule width 1.5pt}}
103 \newcolumntype{W}{!{\color{green}\vline}}
106 % insert additional vertical space of
107 % 1.5 mm between footnotes
109 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
111 % number algorithm floats within chapters
112 \numberwithin{algorithm}{chapter}
114 % ------------------------------------
115 % used to check for needed LaTeX packages
118 % check for package arydshln
119 % used for tables with dashed lines
120 \newboolean{arydshln}
121 \IfFileExists{arydshln.sty}
122 {\usepackage{arydshln}
123 \setboolean{arydshln}{true}}
124 {\setboolean{arydshln}{false}}
126 % check for package marginnote
127 % used for margin notes
128 \newboolean{marginnote}
129 \IfFileExists{marginnote.sty}
130 {\usepackage{marginnote}
131 \let\marginpar\marginnote
132 \setboolean{marginnote}{true}}
133 {\setboolean{marginnote}{false}}
135 % check for package sidecap
136 % used for captions on the side
138 \IfFileExists{sidecap.sty}
139 {\usepackage{sidecap}
140 \setboolean{sidecap}{true}}
141 {\setboolean{sidecap}{false}}
144 % used for surrounded fixed objects
145 \newboolean{picinpar}
146 \IfFileExists{picinpar.sty}
147 {\usepackage{picinpar}
148 \setboolean{picinpar}{true}}
149 {\setboolean{picinpar}{false}}
152 \newboolean{lettrine}
153 \IfFileExists{lettrine.sty}
154 {\usepackage{lettrine}
155 \setboolean{lettrine}{true}}
156 {\setboolean{lettrine}{false}}
160 \IfFileExists{diagbox.sty}
161 {\usepackage{diagbox}
162 \setboolean{diagbox}{true}}
163 {\setboolean{diagbox}{false}}
165 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames,table
166 \use_default_options false
170 \maintain_unincluded_children false
172 \language_package default
177 \font_typewriter default
179 \font_default_family default
180 \use_non_tex_fonts false
186 \default_output_format default
188 \bibtex_command default
189 \index_command default
193 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
194 \pdf_author "LyX Team, Uwe Stöhr"
195 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
196 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
198 \pdf_bookmarksnumbered true
199 \pdf_bookmarksopen true
200 \pdf_bookmarksopenlevel 1
201 \pdf_breaklinks false
205 \pdf_pdfusetitle false
206 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
209 \use_package amsmath 2
210 \use_package amssymb 2
211 \use_package cancel 0
213 \use_package mathdots 1
214 \use_package mathtools 0
215 \use_package mhchem 1
216 \use_package stackrel 0
217 \use_package stmaryrd 0
218 \use_package undertilde 0
220 \cite_engine_type default
224 \paperorientation portrait
228 \notefontcolor #0000ff
235 \paragraph_separation skip
237 \quotes_language english
240 \paperpagestyle default
241 \tracking_changes false
242 \output_changes false
245 \html_be_strict false
252 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
256 by the \SpecialChar LyX
261 \begin_layout Plain Layout
263 If you have comments or error corrections, please send them to the \SpecialChar LyX
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 \SpecialChar LaTeX
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/\SpecialChar LyX
346 /DocumentationDevelopment#EmbeddedObjects
354 \begin_layout Chapter
356 \begin_inset Index idx
359 \begin_layout Plain Layout
366 \begin_inset Index idx
369 \begin_layout Plain Layout
374 \begin_layout Plain Layout
385 \begin_layout Plain Layout
400 \begin_layout Section
402 \begin_inset Index idx
405 \begin_layout Plain Layout
406 Figures ! Graphics Dialog
412 \begin_inset CommandInset label
414 name "sec:Graphics-Dialog"
421 \begin_layout Standard
422 To insert an image into your document, place the cursor at the text position
423 you want and click on the toolbar icon
426 arg "dialog-show-new-inset graphics"
431 Insert\SpecialChar menuseparator
435 Then a dialog will appear to choose the file to load.
436 The image will appear in the output exactly at the position where it is
440 \begin_layout Standard
441 The graphics dialog can be called at any time by clicking on an image.
442 This dialog has three tabs:
445 \begin_layout Description
450 Here you can choose an image file and adjust its appearance in the output.
451 The available units for the image size are explained in appendix
456 \begin_inset CommandInset ref
458 reference "cha:Units-available-in"
463 \begin_inset Newline newline
467 \begin_inset Index idx
470 \begin_layout Plain Layout
476 You can rotate images counter-clockwise by setting a rotation angle and
478 The image will also be rotated inside \SpecialChar LyX
480 \begin_inset Newline newline
484 \begin_inset Index idx
487 \begin_layout Plain Layout
493 Images can be scaled by using a percentage value or by setting the width
494 and height explicitly.
495 If you set only the width or only the height, the other size will be determined
497 If you set both, then the image will be transformed to the given size,
498 possibly distorting it.
499 To prevent the image from distortion, use the option
501 Maintain aspect ratio
504 The image will then be scaled so that its width and height don't exceed
505 the specified dimensions.
506 \begin_inset Newline newline
509 Images can be opened in a program of your choice by right-clicking on it
510 and choosing the entry
519 The program can be set for every image format in the file format settings
524 \begin_layout Description
529 Alternatively to the usage of scaling units it is possible to set image
530 coordinates to adjust the height and width of the image in the output.
531 The coordinates can also be calculated automatically by pressing the button
561 will only print the image region within the given coordinates.
562 Normally you don't need to worry about image coordinates and can ignore
566 \begin_layout Description
585 In this tab you can modify the appearance of the image within \SpecialChar LyX
586 and \SpecialChar LaTeX
588 can specify additional \SpecialChar LaTeX
590 \begin_inset Newline newline
601 makes the image appear in the output only as a frame with the size of the
603 \begin_inset Newline newline
622 option only affects zipped EPS-graphics, e.
623 \begin_inset space \thinspace{}
627 \begin_inset space \space{}
635 When the option is used the images will not be unzipped on export, since
637 can handle them as they are.
638 \begin_inset Newline newline
641 Zipped EPS-graphics are useful to save disk space when you choose PostScript
642 as output format, see appendix
647 \begin_inset CommandInset ref
649 reference "sec:PostScript"
654 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
656 \begin_inset Newline newline
664 \begin_inset Newline newline
669 zgrep %%Bounding x.eps.gz > x.eps.bb
672 \begin_inset Newline newline
675 The second command creates the bounding box file
676 \begin_inset Quotes eld
680 \begin_inset Quotes erd
683 that is needed by \SpecialChar LaTeX
685 \begin_inset Newline newline
696 you can define or join an image settings group.
697 \begin_inset Index idx
700 \begin_layout Plain Layout
701 Figures ! Settings grouping
706 Images within such a group share their settings, so adjusting one image
707 of the group automatically also adjusts all other images of the group in
709 So you can for example change the size for a bunch of images without the
710 need to manually change each of them.
711 Joining an existing group can also be done using the context menu of the
712 image by checking the name of the desired group.
715 \begin_layout Standard
716 \begin_inset VSpace bigskip
722 \begin_layout Standard
723 This is an example image in EPS format
727 \begin_layout Plain Layout
728 Image formats are explained in section
733 \begin_inset CommandInset ref
735 reference "sec:Image-Formats"
744 within a separate, horizontally centered paragraph:
745 \begin_inset Separator parbreak
751 \begin_layout Standard
753 \begin_inset Graphics
754 filename clipart/mobius.eps
764 \begin_layout Standard
765 This is the same image like the one above but in draft mode:
766 \begin_inset Separator parbreak
772 \begin_layout Standard
774 \begin_inset Graphics
775 filename clipart/mobius.eps
786 \begin_layout Standard
787 \begin_inset Newpage newpage
793 \begin_layout Section
795 \begin_inset CommandInset label
797 name "sec:Figure-Floats"
802 \begin_inset Index idx
805 \begin_layout Plain Layout
812 \begin_inset Index idx
815 \begin_layout Plain Layout
824 \begin_layout Standard
825 For general explanations about floats, have a look at section
830 \begin_inset CommandInset ref
832 reference "sec:FloatIntroduction"
839 \begin_layout Standard
843 arg "float-insert figure"
848 Insert\SpecialChar menuseparator
849 Float\SpecialChar menuseparator
852 inserts a float with a caption that has the label
853 \begin_inset Quotes eld
861 \begin_inset Quotes erd
864 (# is the actual number).
865 You can insert the image above the caption, like in Figure
870 \begin_inset CommandInset ref
872 reference "fig:kill-plat"
876 or below the caption, like in Figure
881 \begin_inset CommandInset ref
883 reference "fig:escher"
888 More about caption placement is described in section
893 \begin_inset CommandInset ref
895 reference "sec:Caption-Placement"
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
910 \begin_inset Graphics
911 filename clipart/platypus.eps
921 \begin_layout Plain Layout
922 \begin_inset Caption Standard
924 \begin_layout Plain Layout
925 \begin_inset CommandInset label
931 A severely distorted platypus in a float.
944 \begin_layout Standard
945 \begin_inset Float figure
950 \begin_layout Plain Layout
951 \begin_inset Caption Standard
953 \begin_layout Plain Layout
954 \begin_inset CommandInset label
969 \begin_layout Plain Layout
971 \begin_inset Graphics
972 filename clipart/escher-lsd.eps
987 \begin_layout Standard
988 \begin_inset Index idx
991 \begin_layout Plain Layout
992 References ! to Figures
1002 \begin_inset CommandInset ref
1004 reference "fig:kill-plat"
1009 \begin_inset CommandInset ref
1011 reference "fig:escher"
1015 are examples of referenced figures.
1016 Figures can be referenced in the text by referencing their label.
1017 To do this insert a label in the caption using the menu
1019 Insert\SpecialChar menuseparator
1022 or the toolbar button
1029 You can now refer to the label using the menu
1031 Insert\SpecialChar menuseparator
1033 \begin_inset space ~
1038 or the toolbar button
1041 arg "dialog-show-new-inset ref"
1045 It is important to use references to floats, rather than using vague references
1047 \begin_inset Quotes eld
1051 \begin_inset Quotes erd
1054 , because \SpecialChar LaTeX
1055 will reposition the floats in the final document and it might
1057 \begin_inset Quotes eld
1061 \begin_inset Quotes erd
1065 \begin_inset Newline newline
1068 Referencing is explained in detail in section
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "sec:Referencing-Floats"
1082 \begin_layout Standard
1083 Normally only one image is inserted to a figure float, but sometimes you
1084 might want to use two images with separate subcaptions.
1085 This can be done by inserting image floats into existing image floats.
1086 Note that only the main caption of the float is added to the List of Figures.
1088 \begin_inset space ~
1092 \begin_inset CommandInset ref
1094 reference "fig:Two-distorted-images"
1098 is an example of a figure float with two images set side by side.
1099 You can also set the images one below the other.
1101 \begin_inset space ~
1105 \begin_inset CommandInset ref
1107 reference "fig:Undefinable-structure"
1112 \begin_inset CommandInset ref
1114 reference "fig:A-Platypus"
1121 \begin_layout Standard
1122 \begin_inset Float figure
1127 \begin_layout Plain Layout
1128 \begin_inset space \hfill{}
1132 \begin_inset Float figure
1137 \begin_layout Plain Layout
1138 \begin_inset Caption Standard
1140 \begin_layout Plain Layout
1141 \begin_inset CommandInset label
1143 name "fig:Undefinable-structure"
1147 Undefinable structure.
1155 \begin_layout Plain Layout
1156 \begin_inset Graphics
1157 filename clipart/escher-lsd.eps
1170 \begin_inset space \hfill{}
1174 \begin_inset Float figure
1179 \begin_layout Plain Layout
1180 \begin_inset Caption Standard
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:A-Platypus"
1197 \begin_layout Plain Layout
1198 \begin_inset Graphics
1199 filename clipart/platypus.eps
1212 \begin_inset space \hfill{}
1218 \begin_layout Plain Layout
1219 \begin_inset Caption Standard
1221 \begin_layout Plain Layout
1222 \begin_inset CommandInset label
1224 name "fig:Two-distorted-images"
1228 Two distorted images.
1229 Both images are in the image settings group named
1230 \begin_inset Quotes eld
1234 \begin_inset Quotes erd
1250 \begin_layout Standard
1251 \begin_inset Newpage newpage
1257 \begin_layout Section
1259 \begin_inset CommandInset label
1261 name "sec:Image-Formats"
1266 \begin_inset Index idx
1269 \begin_layout Plain Layout
1276 \begin_inset Index idx
1279 \begin_layout Plain Layout
1280 Figures ! Image Formats
1288 \begin_layout Standard
1289 You can insert images in any known file format.
1290 But as explained in appendix
1291 \begin_inset space ~
1295 \begin_inset CommandInset ref
1297 reference "cha:Output-File-Formats"
1301 , each output document format allows only a few image formats.
1303 uses therefore the program
1307 in the background to convert the images to the right format.
1308 To increase your work flow by avoiding these conversions in the background,
1309 you could choose to use only the image formats that can directly be embedded
1310 in the output file format.
1311 The output file formats are explained in appendix
1312 \begin_inset space ~
1316 \begin_inset CommandInset ref
1318 reference "cha:Output-File-Formats"
1325 \begin_layout Standard
1326 Similar to fonts there are two types of image formats:
1329 \begin_layout Description
1331 \begin_inset space ~
1334 images consist of pixel values, often in a compressed form.
1335 They are therefore not fully scalable and look pixelated in large zooms.
1336 Well-known bitmap image formats are
1337 \begin_inset Quotes eld
1340 Graphics Interchange Format
1341 \begin_inset Quotes erd
1344 (GIF, file extension
1345 \begin_inset Quotes eld
1353 \begin_inset Quotes erd
1357 \begin_inset Index idx
1360 \begin_layout Plain Layout
1365 \begin_layout Plain Layout
1376 \begin_layout Plain Layout
1389 \begin_inset Quotes eld
1392 Portable Network Graphics
1393 \begin_inset Quotes erd
1396 (PNG, file extension
1397 \begin_inset Quotes eld
1405 \begin_inset Quotes erd
1409 \begin_inset Index idx
1412 \begin_layout Plain Layout
1417 \begin_layout Plain Layout
1428 \begin_layout Plain Layout
1441 \begin_inset Quotes eld
1444 Joint Photographic Experts Group
1445 \begin_inset Quotes erd
1448 (JPG, file extension
1449 \begin_inset Quotes eld
1457 \begin_inset Quotes erd
1461 \begin_inset Quotes eld
1469 \begin_inset Quotes erd
1473 \begin_inset Index idx
1476 \begin_layout Plain Layout
1481 \begin_layout Plain Layout
1492 \begin_layout Plain Layout
1507 \begin_layout Description
1509 \begin_inset space ~
1512 images consist of vectors and can therefore be scaled to any size without
1514 The scaling ability is necessary if you want to create presentations, because
1515 presentations are always scaled by the video projector.
1516 Scaling is also useful for online documents to let the user zoom into diagrams.
1517 \begin_inset Newline newline
1520 Well-known scalable image formats are
1521 \begin_inset Quotes eld
1524 Scalable Vector Graphics
1525 \begin_inset Quotes erd
1528 (SVG, file extension
1529 \begin_inset Quotes eld
1537 \begin_inset Quotes erd
1541 \begin_inset Index idx
1544 \begin_layout Plain Layout
1549 \begin_layout Plain Layout
1560 \begin_layout Plain Layout
1573 \begin_inset Quotes eld
1576 Encapsulated PostScript
1577 \begin_inset Quotes erd
1580 (EPS, file extension
1581 \begin_inset Quotes eld
1589 \begin_inset Quotes erd
1593 \begin_inset Index idx
1596 \begin_layout Plain Layout
1601 \begin_layout Plain Layout
1612 \begin_layout Plain Layout
1625 \begin_inset Quotes eld
1628 Portable Document Format
1629 \begin_inset Quotes erd
1632 (PDF, file extension
1633 \begin_inset Quotes eld
1641 \begin_inset Quotes erd
1645 \begin_inset Index idx
1648 \begin_layout Plain Layout
1655 \begin_inset Quotes eld
1659 \begin_inset Quotes erd
1662 (WMF, file extension
1663 \begin_inset Quotes eld
1671 \begin_inset Quotes erd
1675 \begin_inset Index idx
1678 \begin_layout Plain Layout
1683 \begin_layout Plain Layout
1694 \begin_layout Plain Layout
1708 \begin_inset Quotes eld
1712 \begin_inset Quotes erd
1715 , because you can convert any bitmap image to a PDF or EPS-image and the
1716 result will still be a bitmap image.
1717 In such cases only a header with the image properties is added to the original
1722 \begin_layout Plain Layout
1723 In the case of PDF, the original image is additionally compressed.
1729 The PDF-files generated by
1733 are for example bitmap images.
1736 \begin_layout Standard
1737 Normally it is not possible to convert a bitmap image into a scalable one,
1739 Only the image formats PDF and EPS can directly be embedded to PDF and
1740 PostScript output files, respectively.
1741 SVG and WMF-images are recalculated to bitmaps when the output file is
1742 generated because there is currently no adequate WMF/SVG
1743 \begin_inset Formula $\to$
1746 PDF/EPS converter available.
1749 \begin_layout Chapter
1751 \begin_inset Index idx
1754 \begin_layout Plain Layout
1763 \begin_layout Section
1765 \begin_inset Index idx
1768 \begin_layout Plain Layout
1769 Table ! Introduction
1777 \begin_layout Standard
1778 You can insert a table using either the toolbar button
1781 arg "tabular-insert"
1786 Insert\SpecialChar menuseparator
1790 The toolbar button offers you a graphical selection: move the mouse to
1791 set the column/row number of the table that should be created and then
1792 press a mouse button.
1793 When you use the menu to create a table, a dialog will appear, asking you
1794 for the number of rows and columns.
1795 \begin_inset Newline newline
1798 The default table has lines around any cell and the first row appears separated
1799 from the rest of the table.
1800 This separation occurs due to a double line: The cells of the first row
1801 have a line below them and the cells of the second row have a line above
1803 Here is an example table:
1804 \begin_inset Separator parbreak
1810 \begin_layout Standard
1812 \begin_inset Tabular
1813 <lyxtabular version="3" rows="4" columns="4">
1814 <features tabularvalignment="middle">
1815 <column alignment="center" valignment="top">
1816 <column alignment="center" valignment="top">
1817 <column alignment="center" valignment="top">
1818 <column alignment="center" valignment="top">
1820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1823 \begin_layout Plain Layout
1829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1832 \begin_layout Plain Layout
1847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1850 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1859 \begin_layout Plain Layout
1867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1870 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1897 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1906 \begin_layout Plain Layout
1914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1917 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1935 \begin_layout Plain Layout
1941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1944 \begin_layout Plain Layout
1950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1953 \begin_layout Plain Layout
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Plain Layout
1979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1982 \begin_layout Plain Layout
1988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1991 \begin_layout Plain Layout
1997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2000 \begin_layout Plain Layout
2014 \begin_layout Section
2016 \begin_inset Index idx
2019 \begin_layout Plain Layout
2028 \begin_layout Standard
2029 You can alter a table by clicking on it with the right mouse button, which
2030 brings up the context menu.
2031 Under the menu entry
2035 you can adjust the settings of that cell and row/column respectively where
2036 the cursor is currently placed.
2039 More\SpecialChar menuseparator
2042 opens the table dialog where you can adjust more things.
2043 Most of the dialog options also work on selections.
2044 This means if you select more cells, columns or rows, the action is done
2045 for the whole selection.
2046 Note that there is a difference between selecting the
2050 of the cell, and the cell itself.
2051 \begin_inset Newline newline
2054 With the dialog option
2057 \begin_inset space ~
2062 every change you make in the dialog is directly applied.
2063 If you move the cursor to another table cell the dialog will then also
2064 be updated with the parameters of the new cell.
2065 If you change length values in the dialog you must press
2069 to get the change applied.
2070 \begin_inset Newline newline
2073 You can alter tables with the following tabs of the table dialog:
2076 \begin_layout Description
2080 \begin_inset space ~
2085 Here you can set the table width
2086 \begin_inset Index idx
2089 \begin_layout Plain Layout
2095 , and the horizontal alignment and the width of the current column.
2099 \begin_inset space ~
2103 \begin_inset space ~
2108 is described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "subsec:Special-Cell-Alignment"
2120 When you have set a width you can also adjust the vertical alignment of
2122 A given width will allow the cell to have line breaks and multiple paragraphs
2124 \begin_inset space \thinspace{}
2128 \begin_inset CommandInset ref
2130 reference "subsec:Multiple-Lines-in"
2135 If you set no width, the column is as wide as the content of its widest
2137 \begin_inset Newline newline
2140 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2142 \begin_inset space \thinspace{}
2146 \begin_inset CommandInset ref
2148 reference "subsec:Multicolumns"
2152 or the cells of one column as multirow cell, see sec.
2153 \begin_inset space \thinspace{}
2157 \begin_inset CommandInset ref
2159 reference "subsec:Multirows"
2164 \begin_inset Newline newline
2167 The rotate check boxes rotate the current cell, a selection, or the whole
2168 table counter-clockwise by 90
2169 \begin_inset space \thinspace{}
2173 The rotation is not shown within \SpecialChar LyX
2174 , only in the output.
2175 For more information see sec.
2176 \begin_inset space \thinspace{}
2180 \begin_inset CommandInset ref
2182 reference "sec:Rotated-Table-Cells"
2187 \begin_inset Newline newline
2191 \begin_inset Note Greyedout
2194 \begin_layout Plain Layout
2199 Not all DVI-viewers are able to display rotations.
2205 \begin_inset Newline newline
2208 The table-wide vertical alignment is used for tables within text lines:
2209 \begin_inset Newline newline
2212 A line with tables with different alignments:
2213 \begin_inset Tabular
2214 <lyxtabular version="3" rows="2" columns="2">
2215 <features tabularvalignment="top">
2216 <column alignment="center" valignment="top" width="0pt">
2217 <column alignment="center" valignment="top">
2219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2222 \begin_layout Plain Layout
2228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2231 \begin_layout Plain Layout
2248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2251 \begin_layout Plain Layout
2266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2269 \begin_layout Plain Layout
2281 \begin_inset Tabular
2282 <lyxtabular version="3" rows="2" columns="2">
2283 <features tabularvalignment="middle">
2284 <column alignment="center" valignment="top">
2285 <column alignment="center" valignment="top">
2287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2290 \begin_layout Plain Layout
2296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2299 \begin_layout Plain Layout
2316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2319 \begin_layout Plain Layout
2334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2337 \begin_layout Plain Layout
2349 \begin_inset Tabular
2350 <lyxtabular version="3" rows="2" columns="2">
2351 <features tabularvalignment="bottom">
2352 <column alignment="center" valignment="top" width="0pt">
2353 <column alignment="center" valignment="top">
2355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2358 \begin_layout Plain Layout
2364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2367 \begin_layout Plain Layout
2384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2387 \begin_layout Plain Layout
2402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2405 \begin_layout Plain Layout
2417 \begin_inset Newline newline
2420 It is also possible to enter a \SpecialChar LaTeX
2421 -argument which is needed for special table
2422 formattings, see sec.
2423 \begin_inset space \thinspace{}
2427 \begin_inset CommandInset ref
2429 reference "subsec:Multicolumn-Calculations"
2434 \begin_inset CommandInset ref
2436 reference "sec:Colored-Tables"
2443 \begin_layout Description
2448 In this tab you can add and delete border lines for the current row/column.
2449 \begin_inset Newline newline
2452 Using the style option
2456 will convert the table to a formal table as described in sec.
2457 \begin_inset space \thinspace{}
2461 \begin_inset CommandInset ref
2463 reference "sec:Formal-Tables"
2468 \begin_inset Newline newline
2471 You can also add space here to table rows as described in sec.
2472 \begin_inset space \thinspace{}
2476 \begin_inset CommandInset ref
2478 reference "subsec:Row-Spacing"
2485 \begin_layout Description
2490 This tab is to make a table a so called
2491 \begin_inset Quotes eld
2499 \begin_inset Quotes erd
2502 that can run over several pages.
2504 \begin_inset space ~
2508 \begin_inset CommandInset ref
2510 reference "sec:Longtables"
2515 \begin_inset CommandInset ref
2517 reference "sec:Special-Longtable-Issues"
2521 describe the longtable features in detail.
2524 \begin_layout Section
2526 \begin_inset Index idx
2529 \begin_layout Plain Layout
2538 \begin_layout Standard
2539 The table toolbar is an alternative to the table dialog to be able to alter
2541 It should normally appear at the bottom of \SpecialChar LyX
2542 's main window when the cursor
2544 You can alternatively switch it on to appear always, by right-clicking
2549 \begin_layout Standard
2550 The toolbar has the following icons:
2553 \begin_layout Labeling
2554 \labelwidthstring 00.00.0000
2557 arg "inset-modify tabular append-row"
2560 adds a row below the current cell or selection
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2567 arg "inset-modify tabular append-column"
2570 adds a column right beside the current cell or selection
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2577 arg "inset-modify tabular delete-row"
2580 deletes the current row or selection
2583 \begin_layout Labeling
2584 \labelwidthstring 00.00.0000
2587 arg "inset-modify tabular delete-column"
2590 deletes the current column or selection
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2597 arg "inset-modify tabular move-row-up"
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2607 arg "inset-modify tabular move-column-left"
2610 moves the column to the left
2613 \begin_layout Labeling
2614 \labelwidthstring 00.00.0000
2617 arg "inset-modify tabular move-row-down"
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2627 arg "inset-modify tabular move-column-right"
2630 moves the column to the right
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2637 arg "inset-modify tabular toggle-line-top"
2640 adds a line at the top of the current cell / row or of a selection
2643 \begin_layout Labeling
2644 \labelwidthstring 00.00.0000
2647 arg "inset-modify tabular toggle-line-bottom"
2650 adds a line at the bottom of the current cell / row or of a selection
2653 \begin_layout Labeling
2654 \labelwidthstring 00.00.0000
2657 arg "inset-modify tabular toggle-line-left"
2660 adds a line at the left side of the current cell / row or of a selection
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2667 arg "inset-modify tabular toggle-line-right"
2670 adds a line at the right side of the current cell / row or of a selection
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2677 arg "inset-modify tabular set-all-lines"
2680 adds lines around the current or selected cells - if the current cell no
2681 multicolumn cell this also affects the current row and column
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2688 arg "inset-modify tabular unset-all-lines"
2691 deletes all lines of the current or selected cells - if the current cell
2692 no multicolumn cell this also affects the current row and column
2695 \begin_layout Labeling
2696 \labelwidthstring 00.00.0000
2699 arg "inset-modify tabular m-align-left"
2702 left-aligns the content of the current cell / column
2705 \begin_layout Labeling
2706 \labelwidthstring 00.00.0000
2709 arg "inset-modify tabular m-align-center"
2712 centers the content of the current cell / column horizontally
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2719 arg "inset-modify tabular m-align-right"
2722 right-aligns the content of the current cell / column
2725 \begin_layout Labeling
2726 \labelwidthstring 00.00.0000
2729 arg "inset-modify tabular align-decimal"
2732 aligns the content of the current column at a character
2735 \begin_layout Labeling
2736 \labelwidthstring 00.00.0000
2739 arg "inset-modify tabular m-valign-top"
2742 aligns the content of the current cell vertically to the top
2745 \begin_layout Labeling
2746 \labelwidthstring 00.00.0000
2749 arg "inset-modify tabular m-valign-middle"
2752 centers the content of the current cell vertically
2755 \begin_layout Labeling
2756 \labelwidthstring 00.00.0000
2759 arg "inset-modify tabular m-valign-bottom"
2762 aligns the content of the current cell vertically to the bottom
2765 \begin_layout Labeling
2766 \labelwidthstring 00.00.0000
2769 arg "inset-modify tabular set-rotate-cell"
2772 rotates the current cell or selection counter-clockwise by 90°
2775 \begin_layout Labeling
2776 \labelwidthstring 00.00.0000
2779 arg "inset-modify tabular set-rotate-tabular"
2782 rotates the whole table counter-clockwise by 90°
2785 \begin_layout Labeling
2786 \labelwidthstring 00.00.0000
2789 arg "inset-modify tabular multicolumn"
2792 sets the current cell or selection as a multicolumn
2795 \begin_layout Labeling
2796 \labelwidthstring 00.00.0000
2799 arg "inset-modify tabular multirow"
2802 sets the current cell or selection as a multirow
2805 \begin_layout Standard
2806 \begin_inset Note Greyedout
2809 \begin_layout Plain Layout
2814 For the output the vertical alignment of the first cell in a row is used
2815 for all following cells in the row.
2823 \begin_layout Section
2825 \begin_inset Index idx
2828 \begin_layout Plain Layout
2837 \begin_layout Standard
2838 In addition to the table dialog and toolbar, the menu
2840 Edit\SpecialChar menuseparator
2843 allows you to add and delete border lines for the current row/column and
2844 to set the current selection as multicolumn.
2845 The menu is only available when the cursor is inside a table.
2848 \begin_layout Section
2850 \begin_inset CommandInset label
2852 name "sec:Table-Floats"
2857 \begin_inset Index idx
2860 \begin_layout Plain Layout
2867 \begin_inset Index idx
2870 \begin_layout Plain Layout
2879 \begin_layout Standard
2880 For general explanations about floats, have a look at section
2881 \begin_inset space ~
2885 \begin_inset CommandInset ref
2887 reference "sec:FloatIntroduction"
2894 \begin_layout Standard
2895 \begin_inset Float table
2901 \begin_layout Plain Layout
2902 \begin_inset Caption Standard
2904 \begin_layout Plain Layout
2905 \begin_inset CommandInset label
2907 name "tab:a table float"
2919 \begin_layout Plain Layout
2921 \begin_inset Tabular
2922 <lyxtabular version="3" rows="3" columns="3">
2923 <features tabularvalignment="middle">
2924 <column alignment="center" valignment="top" width="0pt">
2925 <column alignment="center" valignment="top" width="0pt">
2926 <column alignment="center" valignment="top" width="0pt">
2928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2931 \begin_layout Plain Layout
2946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2949 \begin_layout Plain Layout
2964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2967 \begin_layout Plain Layout
2984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2987 \begin_layout Plain Layout
3002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3005 \begin_layout Plain Layout
3020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3023 \begin_layout Plain Layout
3040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3043 \begin_layout Plain Layout
3053 \begin_inset Formula $\int x^{2}dx$
3061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3064 \begin_layout Plain Layout
3074 \begin_inset Formula $\left[\begin{array}{cc}
3085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3088 \begin_layout Plain Layout
3098 \begin_inset Formula $1+1=2$
3119 \begin_layout Standard
3120 Table floats can be inserted using the menu
3122 Insert\SpecialChar menuseparator
3123 Float\SpecialChar menuseparator
3126 or the toolbar button
3129 arg "float-insert table"
3135 \begin_layout Standard
3136 The float appears as a collapsible box with a caption that has the label
3138 \begin_inset Quotes eld
3142 \begin_inset space ~
3146 \begin_inset Quotes erd
3149 (# is the actual table number).
3150 You can insert tables in the float above or below the caption.
3153 \begin_layout Standard
3155 \begin_inset space ~
3159 \begin_inset CommandInset ref
3161 reference "tab:a table float"
3165 is an example table within a table float.
3168 \begin_layout Standard
3169 Having the caption above the table is the common rule that is unfortunately
3170 not supported in \SpecialChar LaTeX
3171 's standard classes.
3172 This means that, if you are using the document classes
3188 , there will be no space between the caption and the table.
3189 To insert the needed space, add the following option to the load command
3190 of the \SpecialChar LaTeX
3196 \begin_inset Index idx
3199 \begin_layout Plain Layout
3206 in your document preamble
3210 \begin_layout Plain Layout
3211 For more information have a look at section
3212 \begin_inset space ~
3216 \begin_inset CommandInset ref
3218 reference "sec:Caption-Placement"
3230 \begin_layout Standard
3236 \begin_layout Standard
3241 , which is described in section
3242 \begin_inset space ~
3246 \begin_inset CommandInset ref
3248 reference "sec:Caption-Formatting"
3252 , is used to adjust the caption format.
3255 \begin_layout Standard
3256 \begin_inset Index idx
3259 \begin_layout Plain Layout
3260 References ! to Tables
3265 Tables can be cross-referenced in the text by referencing their label.
3266 To do this insert a label in the caption using the menu
3268 Insert\SpecialChar menuseparator
3271 or the toolbar button
3278 You can now refer to the label using the menu
3280 Insert\SpecialChar menuseparator
3282 \begin_inset space ~
3287 or the toolbar button
3290 arg "dialog-show-new-inset ref"
3294 \begin_inset Newline newline
3297 Referencing is explained in detail in section
3298 \begin_inset space ~
3302 \begin_inset CommandInset ref
3304 reference "sec:Referencing-Floats"
3311 \begin_layout Section
3313 \begin_inset CommandInset label
3315 name "sec:Longtables"
3320 \begin_inset Index idx
3323 \begin_layout Plain Layout
3330 \begin_inset Index idx
3333 \begin_layout Plain Layout
3342 \begin_layout Standard
3343 If the table is too long to fit on one page, you can use the option
3346 \begin_inset space ~
3350 \begin_inset space ~
3359 of the table dialog to split the table automatically over more pages.
3360 Doing this enables the following options:
3363 \begin_layout Description
3364 Header: The current row is defined to be a header row that appears on all
3365 pages of the longtable; except for the first page, if
3368 \begin_inset space ~
3374 This is therefore called the main header.
3377 \begin_layout Description
3379 \begin_inset space ~
3382 header: The current row is defined to be a header row that appears on the
3383 first page of the longtable.
3386 \begin_layout Description
3387 Footer: The current row is defined to be a footer row that appears on all
3388 pages of the longtable; except for the last page, if
3391 \begin_inset space ~
3399 \begin_layout Description
3401 \begin_inset space ~
3404 footer: The current row is defined to be a footer row that appears on the
3405 last page of the longtable.
3408 \begin_layout Description
3409 Caption: The current row contains the table caption.
3410 The row is reset as single column and a caption is inserted.
3411 More about longtable captions is explained in sec.
3412 \begin_inset space \thinspace{}
3416 \begin_inset CommandInset ref
3418 reference "subsec:Longtable-Captions"
3425 \begin_layout Standard
3426 You can also specify a row where the table is split.
3427 See the following longtable to see how it works:
3428 \begin_inset Separator parbreak
3434 \begin_layout Standard
3436 \begin_inset Tabular
3437 <lyxtabular version="3" rows="69" columns="3">
3438 <features islongtable="true" longtabularalignment="center">
3439 <column alignment="left" valignment="top" width="0cm">
3440 <column alignment="left" valignment="top" width="0pt">
3441 <column alignment="center" valignment="top" width="0pt">
3442 <row endfirsthead="true">
3443 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3446 \begin_layout Plain Layout
3449 Example Phone List (ignore the names)
3454 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3457 \begin_layout Plain Layout
3463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3466 \begin_layout Plain Layout
3473 <row endfirsthead="true">
3474 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3477 \begin_layout Plain Layout
3485 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3488 \begin_layout Plain Layout
3494 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3497 \begin_layout Plain Layout
3506 <row endhead="true">
3507 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3510 \begin_layout Plain Layout
3518 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3521 \begin_layout Plain Layout
3527 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3530 \begin_layout Plain Layout
3537 <row endhead="true">
3538 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3541 \begin_layout Plain Layout
3549 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3552 \begin_layout Plain Layout
3558 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3561 \begin_layout Plain Layout
3570 <row endfoot="true">
3571 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3574 \begin_layout Plain Layout
3575 continued on next page
3580 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3583 \begin_layout Plain Layout
3589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3592 \begin_layout Plain Layout
3600 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3603 \begin_layout Plain Layout
3611 <cell alignment="center" valignment="top" usebox="none">
3614 \begin_layout Plain Layout
3620 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3623 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3634 \begin_layout Plain Layout
3642 <cell alignment="center" valignment="top" usebox="none">
3645 \begin_layout Plain Layout
3651 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3654 \begin_layout Plain Layout
3662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3665 \begin_layout Plain Layout
3673 <cell alignment="center" valignment="top" usebox="none">
3676 \begin_layout Plain Layout
3682 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3685 \begin_layout Plain Layout
3693 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3696 \begin_layout Plain Layout
3704 <cell alignment="center" valignment="top" usebox="none">
3707 \begin_layout Plain Layout
3713 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3716 \begin_layout Plain Layout
3724 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3727 \begin_layout Plain Layout
3735 <cell alignment="center" valignment="top" usebox="none">
3738 \begin_layout Plain Layout
3744 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3747 \begin_layout Plain Layout
3755 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3758 \begin_layout Plain Layout
3766 <cell alignment="center" valignment="top" usebox="none">
3769 \begin_layout Plain Layout
3775 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3778 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3789 \begin_layout Plain Layout
3797 <cell alignment="center" valignment="top" usebox="none">
3800 \begin_layout Plain Layout
3806 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3809 \begin_layout Plain Layout
3817 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3820 \begin_layout Plain Layout
3828 <cell alignment="center" valignment="top" usebox="none">
3831 \begin_layout Plain Layout
3837 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3840 \begin_layout Plain Layout
3848 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3851 \begin_layout Plain Layout
3859 <cell alignment="center" valignment="top" usebox="none">
3862 \begin_layout Plain Layout
3868 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3871 \begin_layout Plain Layout
3879 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3882 \begin_layout Plain Layout
3890 <cell alignment="center" valignment="top" usebox="none">
3893 \begin_layout Plain Layout
3899 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3902 \begin_layout Plain Layout
3910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3913 \begin_layout Plain Layout
3921 <cell alignment="center" valignment="top" usebox="none">
3924 \begin_layout Plain Layout
3930 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3933 \begin_layout Plain Layout
3941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3944 \begin_layout Plain Layout
3952 <cell alignment="center" valignment="top" usebox="none">
3955 \begin_layout Plain Layout
3961 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3964 \begin_layout Plain Layout
3972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3975 \begin_layout Plain Layout
3983 <cell alignment="center" valignment="top" usebox="none">
3986 \begin_layout Plain Layout
3992 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3995 \begin_layout Plain Layout
4003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4006 \begin_layout Plain Layout
4014 <cell alignment="center" valignment="top" usebox="none">
4017 \begin_layout Plain Layout
4023 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4026 \begin_layout Plain Layout
4034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4037 \begin_layout Plain Layout
4045 <cell alignment="center" valignment="top" usebox="none">
4048 \begin_layout Plain Layout
4054 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4057 \begin_layout Plain Layout
4065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4068 \begin_layout Plain Layout
4076 <cell alignment="center" valignment="top" usebox="none">
4079 \begin_layout Plain Layout
4085 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4088 \begin_layout Plain Layout
4096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4099 \begin_layout Plain Layout
4107 <cell alignment="center" valignment="top" usebox="none">
4110 \begin_layout Plain Layout
4116 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4119 \begin_layout Plain Layout
4127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4130 \begin_layout Plain Layout
4138 <cell alignment="center" valignment="top" usebox="none">
4141 \begin_layout Plain Layout
4147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4150 \begin_layout Plain Layout
4158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4161 \begin_layout Plain Layout
4169 <cell alignment="center" valignment="top" usebox="none">
4172 \begin_layout Plain Layout
4178 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4181 \begin_layout Plain Layout
4189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4192 \begin_layout Plain Layout
4200 <cell alignment="center" valignment="top" usebox="none">
4203 \begin_layout Plain Layout
4209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4212 \begin_layout Plain Layout
4220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4223 \begin_layout Plain Layout
4231 <cell alignment="center" valignment="top" usebox="none">
4234 \begin_layout Plain Layout
4240 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4243 \begin_layout Plain Layout
4251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4254 \begin_layout Plain Layout
4262 <cell alignment="center" valignment="top" usebox="none">
4265 \begin_layout Plain Layout
4271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4274 \begin_layout Plain Layout
4282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4285 \begin_layout Plain Layout
4293 <cell alignment="center" valignment="top" usebox="none">
4296 \begin_layout Plain Layout
4302 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4305 \begin_layout Plain Layout
4313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4316 \begin_layout Plain Layout
4324 <cell alignment="center" valignment="top" usebox="none">
4327 \begin_layout Plain Layout
4333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4336 \begin_layout Plain Layout
4344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4347 \begin_layout Plain Layout
4355 <cell alignment="center" valignment="top" usebox="none">
4358 \begin_layout Plain Layout
4364 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4367 \begin_layout Plain Layout
4375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4378 \begin_layout Plain Layout
4386 <cell alignment="center" valignment="top" usebox="none">
4389 \begin_layout Plain Layout
4395 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4398 \begin_layout Plain Layout
4406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4409 \begin_layout Plain Layout
4417 <cell alignment="center" valignment="top" usebox="none">
4420 \begin_layout Plain Layout
4426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4429 \begin_layout Plain Layout
4437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4440 \begin_layout Plain Layout
4448 <cell alignment="center" valignment="top" usebox="none">
4451 \begin_layout Plain Layout
4457 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4460 \begin_layout Plain Layout
4468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4471 \begin_layout Plain Layout
4479 <cell alignment="center" valignment="top" usebox="none">
4482 \begin_layout Plain Layout
4488 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4491 \begin_layout Plain Layout
4499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4502 \begin_layout Plain Layout
4510 <cell alignment="center" valignment="top" usebox="none">
4513 \begin_layout Plain Layout
4519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4522 \begin_layout Plain Layout
4530 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4533 \begin_layout Plain Layout
4541 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4544 \begin_layout Plain Layout
4550 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4553 \begin_layout Plain Layout
4561 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4564 \begin_layout Plain Layout
4570 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4573 \begin_layout Plain Layout
4579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4582 \begin_layout Plain Layout
4590 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4593 \begin_layout Plain Layout
4601 <cell alignment="center" valignment="top" usebox="none">
4604 \begin_layout Plain Layout
4610 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4613 \begin_layout Plain Layout
4621 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4624 \begin_layout Plain Layout
4632 <cell alignment="center" valignment="top" usebox="none">
4635 \begin_layout Plain Layout
4641 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4644 \begin_layout Plain Layout
4652 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4655 \begin_layout Plain Layout
4663 <cell alignment="center" valignment="top" usebox="none">
4666 \begin_layout Plain Layout
4672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4675 \begin_layout Plain Layout
4683 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4686 \begin_layout Plain Layout
4694 <cell alignment="center" valignment="top" usebox="none">
4697 \begin_layout Plain Layout
4703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4706 \begin_layout Plain Layout
4714 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4717 \begin_layout Plain Layout
4725 <cell alignment="center" valignment="top" usebox="none">
4728 \begin_layout Plain Layout
4734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4737 \begin_layout Plain Layout
4745 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4748 \begin_layout Plain Layout
4756 <cell alignment="center" valignment="top" usebox="none">
4759 \begin_layout Plain Layout
4765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4768 \begin_layout Plain Layout
4776 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4779 \begin_layout Plain Layout
4787 <cell alignment="center" valignment="top" usebox="none">
4790 \begin_layout Plain Layout
4796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4799 \begin_layout Plain Layout
4807 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4810 \begin_layout Plain Layout
4818 <cell alignment="center" valignment="top" usebox="none">
4821 \begin_layout Plain Layout
4827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4830 \begin_layout Plain Layout
4838 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4841 \begin_layout Plain Layout
4849 <cell alignment="center" valignment="top" usebox="none">
4852 \begin_layout Plain Layout
4858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4861 \begin_layout Plain Layout
4869 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4872 \begin_layout Plain Layout
4880 <cell alignment="center" valignment="top" usebox="none">
4883 \begin_layout Plain Layout
4889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4892 \begin_layout Plain Layout
4900 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4903 \begin_layout Plain Layout
4911 <cell alignment="center" valignment="top" usebox="none">
4914 \begin_layout Plain Layout
4920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4923 \begin_layout Plain Layout
4931 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4934 \begin_layout Plain Layout
4942 <cell alignment="center" valignment="top" usebox="none">
4945 \begin_layout Plain Layout
4951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4954 \begin_layout Plain Layout
4962 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4965 \begin_layout Plain Layout
4973 <cell alignment="center" valignment="top" usebox="none">
4976 \begin_layout Plain Layout
4982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4985 \begin_layout Plain Layout
4993 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4996 \begin_layout Plain Layout
5004 <cell alignment="center" valignment="top" usebox="none">
5007 \begin_layout Plain Layout
5013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5016 \begin_layout Plain Layout
5024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5027 \begin_layout Plain Layout
5035 <cell alignment="center" valignment="top" usebox="none">
5038 \begin_layout Plain Layout
5044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5047 \begin_layout Plain Layout
5055 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5058 \begin_layout Plain Layout
5066 <cell alignment="center" valignment="top" usebox="none">
5069 \begin_layout Plain Layout
5075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5078 \begin_layout Plain Layout
5086 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5089 \begin_layout Plain Layout
5097 <cell alignment="center" valignment="top" usebox="none">
5100 \begin_layout Plain Layout
5106 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5109 \begin_layout Plain Layout
5117 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5120 \begin_layout Plain Layout
5128 <cell alignment="center" valignment="top" usebox="none">
5131 \begin_layout Plain Layout
5137 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5140 \begin_layout Plain Layout
5148 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5151 \begin_layout Plain Layout
5159 <cell alignment="center" valignment="top" usebox="none">
5162 \begin_layout Plain Layout
5168 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5171 \begin_layout Plain Layout
5179 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5182 \begin_layout Plain Layout
5190 <cell alignment="center" valignment="top" usebox="none">
5193 \begin_layout Plain Layout
5199 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5202 \begin_layout Plain Layout
5210 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5213 \begin_layout Plain Layout
5221 <cell alignment="center" valignment="top" usebox="none">
5224 \begin_layout Plain Layout
5230 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5233 \begin_layout Plain Layout
5241 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5244 \begin_layout Plain Layout
5252 <cell alignment="center" valignment="top" usebox="none">
5255 \begin_layout Plain Layout
5261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5264 \begin_layout Plain Layout
5272 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5275 \begin_layout Plain Layout
5283 <cell alignment="center" valignment="top" usebox="none">
5286 \begin_layout Plain Layout
5292 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5295 \begin_layout Plain Layout
5303 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5306 \begin_layout Plain Layout
5314 <cell alignment="center" valignment="top" usebox="none">
5317 \begin_layout Plain Layout
5323 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5326 \begin_layout Plain Layout
5334 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5337 \begin_layout Plain Layout
5345 <cell alignment="center" valignment="top" usebox="none">
5348 \begin_layout Plain Layout
5354 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5357 \begin_layout Plain Layout
5365 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5368 \begin_layout Plain Layout
5376 <cell alignment="center" valignment="top" usebox="none">
5379 \begin_layout Plain Layout
5385 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5388 \begin_layout Plain Layout
5396 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5399 \begin_layout Plain Layout
5407 <cell alignment="center" valignment="top" usebox="none">
5410 \begin_layout Plain Layout
5416 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5419 \begin_layout Plain Layout
5427 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5450 \begin_layout Plain Layout
5458 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5461 \begin_layout Plain Layout
5469 <cell alignment="center" valignment="top" usebox="none">
5472 \begin_layout Plain Layout
5478 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5481 \begin_layout Plain Layout
5489 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5492 \begin_layout Plain Layout
5500 <cell alignment="center" valignment="top" usebox="none">
5503 \begin_layout Plain Layout
5509 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5512 \begin_layout Plain Layout
5520 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5523 \begin_layout Plain Layout
5531 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5534 \begin_layout Plain Layout
5540 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5543 \begin_layout Plain Layout
5550 <row endlastfoot="true">
5551 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5554 \begin_layout Plain Layout
5560 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5563 \begin_layout Plain Layout
5569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5572 \begin_layout Plain Layout
5587 \begin_layout Plain Layout
5591 addtocounter{table}{-1}
5597 \begin_inset Note Note
5600 \begin_layout Plain Layout
5601 See the first greyed-out note in section
5602 \begin_inset space ~
5606 \begin_inset CommandInset ref
5608 reference "subsec:Longtable-Captions"
5612 for an explanation of this command.
5620 \begin_layout Subsection
5621 Footnotes in Longtables
5622 \begin_inset CommandInset label
5624 name "subsec:Footnotes-in-Longtables"
5629 \begin_inset Index idx
5632 \begin_layout Plain Layout
5633 Longtables ! Footnotes
5641 \begin_layout Standard
5642 Footnotes can be inserted to every longtable cell.
5643 They appear at the bottom of the page where the table cell with the footnote
5646 \begin_inset space ~
5650 \begin_inset CommandInset ref
5652 reference "tab:DiffCaptions"
5656 has for example a footnote.
5659 \begin_layout Subsection
5661 \begin_inset Index idx
5664 \begin_layout Plain Layout
5665 Longtables ! Alignment
5673 \begin_layout Standard
5674 The horizontal alignment of longtables can be set in the table settings
5676 For left- and right-alignment the table will be directly at the page border.
5677 To add space between the table and the border one has to set the alignment
5678 to center and change the value of the \SpecialChar LaTeX
5691 by inserting this line as \SpecialChar TeX
5692 -Code before the longtable:
5695 \begin_layout Standard
5705 \begin_layout Standard
5706 The value can have any of the units listed in Table
5707 \begin_inset space ~
5711 \begin_inset CommandInset ref
5713 reference "tab:Units"
5724 controls the horizontal distance from the left page border to the longtable,
5731 the distance from the right side.
5732 The default value for both lengths is
5738 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5742 \begin_layout Standard
5743 The following longtable was centered and
5759 \begin_layout Plain Layout
5775 \begin_layout Standard
5776 \begin_inset Tabular
5777 <lyxtabular version="3" rows="5" columns="5">
5778 <features islongtable="true" longtabularalignment="center">
5779 <column alignment="center" valignment="top">
5780 <column alignment="center" valignment="top" width="0pt">
5781 <column alignment="center" valignment="top">
5782 <column alignment="center" valignment="top">
5783 <column alignment="center" valignment="top">
5785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5788 \begin_layout Plain Layout
5794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5797 \begin_layout Plain Layout
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Plain Layout
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5824 \begin_layout Plain Layout
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5835 \begin_layout Plain Layout
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5844 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5853 \begin_layout Plain Layout
5859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5862 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5871 \begin_layout Plain Layout
5879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5882 \begin_layout Plain Layout
5888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5891 \begin_layout Plain Layout
5897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5900 \begin_layout Plain Layout
5906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5909 \begin_layout Plain Layout
5915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5918 \begin_layout Plain Layout
5926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5929 \begin_layout Plain Layout
5935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5938 \begin_layout Plain Layout
5944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5947 \begin_layout Plain Layout
5953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5956 \begin_layout Plain Layout
5962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5965 \begin_layout Plain Layout
5973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5976 \begin_layout Plain Layout
5982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5985 \begin_layout Plain Layout
5991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5994 \begin_layout Plain Layout
6000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6003 \begin_layout Plain Layout
6009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6012 \begin_layout Plain Layout
6027 \begin_layout Plain Layout
6044 \begin_layout Plain Layout
6048 addtocounter{table}{-1}
6054 \begin_inset Note Note
6057 \begin_layout Plain Layout
6058 See the first greyed-out note in section
6059 \begin_inset space ~
6063 \begin_inset CommandInset ref
6065 reference "subsec:Longtable-Captions"
6069 for an explanation of this command.
6077 \begin_layout Subsection
6079 \begin_inset Index idx
6082 \begin_layout Plain Layout
6083 Longtables ! Captions
6089 \begin_inset CommandInset label
6091 name "subsec:Longtable-Captions"
6098 \begin_layout Standard
6099 A longtable cannot be put into a table float because floats can only be
6101 But the caption environment of floats can also be used for longtables when
6102 you use the longtable option
6106 as described in sec.
6107 \begin_inset space \thinspace{}
6111 \begin_inset CommandInset ref
6113 reference "sec:Longtables"
6118 Only one table row should contain a caption, either a header or a footer
6122 \begin_layout Standard
6123 Here is a short longtable to see how it works:
6126 \begin_layout Standard
6127 \begin_inset Tabular
6128 <lyxtabular version="3" rows="6" columns="5">
6129 <features islongtable="true" longtabularalignment="center">
6130 <column alignment="center" valignment="top">
6131 <column alignment="center" valignment="top">
6132 <column alignment="center" valignment="top">
6133 <column alignment="center" valignment="top">
6134 <column alignment="center" valignment="top">
6135 <row endfirsthead="true" caption="true">
6136 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6139 \begin_layout Plain Layout
6140 \begin_inset Caption Standard
6142 \begin_layout Plain Layout
6143 Longtable with caption
6144 \begin_inset Argument 1
6147 \begin_layout Plain Layout
6163 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6166 \begin_layout Plain Layout
6172 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6175 \begin_layout Plain Layout
6181 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6193 \begin_layout Plain Layout
6201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6204 \begin_layout Plain Layout
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Plain Layout
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6240 \begin_layout Plain Layout
6248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6251 \begin_layout Plain Layout
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6269 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6287 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6298 \begin_layout Plain Layout
6304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6307 \begin_layout Plain Layout
6313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6316 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6334 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6345 \begin_layout Plain Layout
6351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6354 \begin_layout Plain Layout
6360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6363 \begin_layout Plain Layout
6369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6372 \begin_layout Plain Layout
6378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6381 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6392 \begin_layout Plain Layout
6398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6401 \begin_layout Plain Layout
6407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6410 \begin_layout Plain Layout
6416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6419 \begin_layout Plain Layout
6425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6428 \begin_layout Plain Layout
6442 \begin_layout Standard
6443 \begin_inset VSpace medskip
6447 \begin_inset Note Greyedout
6450 \begin_layout Plain Layout
6454 \begin_inset space ~
6459 The table number is increased for every longtable, even if you did not
6460 set a caption for it.
6461 For this reason you could have the case that e.
6462 \begin_inset space \thinspace{}
6466 \begin_inset space \space{}
6470 \begin_inset space ~
6474 \begin_inset space ~
6477 2.1 in the list of tables if there are two longtables without captions.
6478 To avoid this you can add the following command in \SpecialChar TeX
6479 -Code after every longtable
6483 \begin_layout Plain Layout
6488 addtocounter{table}{-1}
6491 \begin_layout Plain Layout
6492 This is not needed when none of your longtables has a caption and you add
6493 the following code to the document preamble:
6496 \begin_layout Plain Layout
6506 \begin_inset Newline newline
6517 addtocounter{table}{-1}}
6525 \begin_layout Standard
6526 \begin_inset Note Greyedout
6529 \begin_layout Plain Layout
6533 \begin_inset space ~
6543 \begin_inset Index idx
6546 \begin_layout Plain Layout
6548 -packages ! hyperref
6561 dialog to link cross-references, the link to a longtable caption will always
6562 point to the beginning of the document.
6570 \begin_layout Subsubsection
6571 References to Longtables
6572 \begin_inset Index idx
6575 \begin_layout Plain Layout
6576 Longtables ! References
6584 \begin_layout Standard
6585 \begin_inset Tabular
6586 <lyxtabular version="3" rows="6" columns="5">
6587 <features islongtable="true" longtabularalignment="center">
6588 <column alignment="center" valignment="top">
6589 <column alignment="center" valignment="top">
6590 <column alignment="center" valignment="top">
6591 <column alignment="center" valignment="top">
6592 <column alignment="center" valignment="top">
6593 <row endfirsthead="true" caption="true">
6594 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6597 \begin_layout Plain Layout
6598 \begin_inset Caption Standard
6600 \begin_layout Plain Layout
6601 Referenced longtable
6602 \begin_inset CommandInset label
6604 name "tab:RefExample"
6618 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6621 \begin_layout Plain Layout
6627 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6630 \begin_layout Plain Layout
6636 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6648 \begin_layout Plain Layout
6656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6695 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6742 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6771 \begin_layout Plain Layout
6777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6780 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6789 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6818 \begin_layout Plain Layout
6824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6827 \begin_layout Plain Layout
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6836 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6865 \begin_layout Plain Layout
6871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6874 \begin_layout Plain Layout
6880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6883 \begin_layout Plain Layout
6897 \begin_layout Standard
6898 To reference a longtable, insert a label into the caption.
6901 \begin_layout Standard
6902 This is a reference to Table
6903 \begin_inset space ~
6907 \begin_inset CommandInset ref
6909 reference "tab:RefExample"
6916 \begin_layout Standard
6917 The caption layout can be set together with all other captions of your document
6918 using the \SpecialChar LaTeX
6924 \begin_inset Index idx
6927 \begin_layout Plain Layout
6935 \begin_inset space ~
6939 \begin_inset CommandInset ref
6941 reference "sec:Caption-Formatting"
6948 \begin_layout Subsubsection
6950 \begin_inset Index idx
6953 \begin_layout Plain Layout
6954 Longtables ! Caption Width
6962 \begin_layout Standard
6963 The maximal width of caption lines is defined by the length
6970 Its default value is 4
6971 \begin_inset space \thinspace{}
6975 To change it add the following command to your document preamble or as
6977 -Code into your document before the longtable that should be affected
6980 \begin_layout Standard
6990 \begin_layout Standard
6991 where the width could have one of the units listed in appendix
6992 \begin_inset space ~
6996 \begin_inset CommandInset ref
6998 reference "cha:Units-available-in"
7005 \begin_layout Standard
7006 The following tables show the difference:
7009 \begin_layout Standard
7010 \begin_inset Tabular
7011 <lyxtabular version="3" rows="6" columns="5">
7012 <features islongtable="true" longtabularalignment="center">
7013 <column alignment="center" valignment="top">
7014 <column alignment="center" valignment="top">
7015 <column alignment="center" valignment="top">
7016 <column alignment="center" valignment="top">
7017 <column alignment="center" valignment="top">
7018 <row endfirsthead="true" caption="true">
7019 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7022 \begin_layout Plain Layout
7023 \begin_inset Caption Standard
7025 \begin_layout Plain Layout
7026 long full title with default width long full title with default width long
7027 full title with default width
7028 \begin_inset Argument 1
7031 \begin_layout Plain Layout
7032 caption with default width
7047 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7050 \begin_layout Plain Layout
7056 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7077 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7088 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7124 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7135 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7171 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7182 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7218 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7229 \begin_layout Plain Layout
7235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7238 \begin_layout Plain Layout
7244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7247 \begin_layout Plain Layout
7253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7256 \begin_layout Plain Layout
7262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7265 \begin_layout Plain Layout
7273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7276 \begin_layout Plain Layout
7282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7285 \begin_layout Plain Layout
7291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7294 \begin_layout Plain Layout
7300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7303 \begin_layout Plain Layout
7309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7312 \begin_layout Plain Layout
7326 \begin_layout Standard
7330 \begin_layout Plain Layout
7342 \begin_inset Tabular
7343 <lyxtabular version="3" rows="6" columns="5">
7344 <features islongtable="true" longtabularalignment="center">
7345 <column alignment="center" valignment="top">
7346 <column alignment="center" valignment="top">
7347 <column alignment="center" valignment="top">
7348 <column alignment="center" valignment="top">
7349 <column alignment="center" valignment="top">
7350 <row endfirsthead="true" caption="true">
7351 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7354 \begin_layout Plain Layout
7355 \begin_inset Caption Standard
7357 \begin_layout Plain Layout
7358 long full title with width set to 5
7359 \begin_inset space \thinspace{}
7362 cm long full title with width set to 5
7363 \begin_inset space \thinspace{}
7366 cm long full title with width set to 5
7367 \begin_inset space \thinspace{}
7371 \begin_inset Argument 1
7374 \begin_layout Plain Layout
7376 \begin_inset space \thinspace{}
7380 \begin_inset space \thinspace{}
7384 \begin_inset space \thinspace{}
7402 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7405 \begin_layout Plain Layout
7411 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7414 \begin_layout Plain Layout
7420 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7423 \begin_layout Plain Layout
7429 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7432 \begin_layout Plain Layout
7440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7443 \begin_layout Plain Layout
7449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7452 \begin_layout Plain Layout
7458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7461 \begin_layout Plain Layout
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Plain Layout
7476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7479 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7490 \begin_layout Plain Layout
7496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7499 \begin_layout Plain Layout
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7508 \begin_layout Plain Layout
7514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7526 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7537 \begin_layout Plain Layout
7543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7555 \begin_layout Plain Layout
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7564 \begin_layout Plain Layout
7570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7573 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7584 \begin_layout Plain Layout
7590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7593 \begin_layout Plain Layout
7599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7602 \begin_layout Plain Layout
7608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7611 \begin_layout Plain Layout
7617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7620 \begin_layout Plain Layout
7628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7631 \begin_layout Plain Layout
7637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7640 \begin_layout Plain Layout
7646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7649 \begin_layout Plain Layout
7655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7658 \begin_layout Plain Layout
7664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7667 \begin_layout Plain Layout
7681 \begin_layout Standard
7685 \begin_layout Plain Layout
7699 \begin_layout Standard
7700 \begin_inset Note Greyedout
7703 \begin_layout Plain Layout
7708 When the \SpecialChar LaTeX
7714 \begin_inset Index idx
7717 \begin_layout Plain Layout
7724 is used, as in this document, the full page width is used for the caption
7725 when you use the default value of 4
7726 \begin_inset space \thinspace{}
7736 To get in this case exactly a 4
7737 \begin_inset space \thinspace{}
7740 in wide caption, you can either use a value slightly different from 4.0
7741 \begin_inset space \thinspace{}
7745 \begin_inset space \thinspace{}
7749 \begin_inset space \space{}
7753 \begin_inset space \thinspace{}
7756 in, or the \SpecialChar LaTeX
7761 captionsetup{width=value}
7763 that is provided by the
7775 \begin_layout Subsubsection
7776 Different Captions for Table Pages
7777 \begin_inset Index idx
7780 \begin_layout Plain Layout
7781 Longtables ! Different Captions for Pages
7789 \begin_layout Standard
7790 When the table captions for the following pages should differ from the one
7791 of the first table page, mark a empty row as header which contains a caption.
7792 Then right-click on the caption and select in the context menu
7795 \begin_inset space ~
7802 \begin_inset space ~
7806 \begin_inset CommandInset ref
7808 reference "tab:DiffCaptions"
7812 is an example of a longtable with different heading where the second caption
7813 does not include the table number.
7814 \begin_inset Separator parbreak
7820 \begin_layout Standard
7822 \begin_inset Tabular
7823 <lyxtabular version="3" rows="59" columns="3">
7824 <features islongtable="true" longtabularalignment="center">
7825 <column alignment="left" valignment="top" width="0cm">
7826 <column alignment="left" valignment="top" width="0pt">
7827 <column alignment="center" valignment="top" width="0pt">
7828 <row endfirsthead="true" caption="true">
7829 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7832 \begin_layout Plain Layout
7833 \begin_inset Caption Standard
7835 \begin_layout Plain Layout
7837 \begin_inset CommandInset label
7839 name "tab:DiffCaptions"
7844 \begin_inset Argument 1
7847 \begin_layout Plain Layout
7863 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7866 \begin_layout Plain Layout
7872 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7875 \begin_layout Plain Layout
7882 <row endfirsthead="true">
7883 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7886 \begin_layout Plain Layout
7889 Example Phone List (ignore the names)
7894 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7897 \begin_layout Plain Layout
7903 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7906 \begin_layout Plain Layout
7913 <row endfirsthead="true">
7914 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7917 \begin_layout Plain Layout
7925 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7928 \begin_layout Plain Layout
7934 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7937 \begin_layout Plain Layout
7946 <row endhead="true" caption="true">
7947 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7950 \begin_layout Plain Layout
7951 \begin_inset Caption LongTableNoNumber
7953 \begin_layout Plain Layout
7954 Continued Example Phone List
7964 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7973 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7976 \begin_layout Plain Layout
7983 <row endhead="true">
7984 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7998 \begin_layout Plain Layout
8004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8007 \begin_layout Plain Layout
8014 <row endhead="true">
8015 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8029 \begin_layout Plain Layout
8035 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8038 \begin_layout Plain Layout
8047 <row endfoot="true">
8048 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8051 \begin_layout Plain Layout
8052 continued on next page
8057 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8060 \begin_layout Plain Layout
8066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8069 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8091 \begin_layout Plain Layout
8097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8100 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8122 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8131 \begin_layout Plain Layout
8139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8142 \begin_layout Plain Layout
8150 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8153 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8162 \begin_layout Plain Layout
8170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8173 \begin_layout Plain Layout
8181 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8184 \begin_layout Plain Layout
8190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8193 \begin_layout Plain Layout
8201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8204 \begin_layout Plain Layout
8212 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8215 \begin_layout Plain Layout
8221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8224 \begin_layout Plain Layout
8232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8235 \begin_layout Plain Layout
8243 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8246 \begin_layout Plain Layout
8252 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8255 \begin_layout Plain Layout
8263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8266 \begin_layout Plain Layout
8274 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8277 \begin_layout Plain Layout
8283 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8286 \begin_layout Plain Layout
8294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8297 \begin_layout Plain Layout
8305 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8308 \begin_layout Plain Layout
8314 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8317 \begin_layout Plain Layout
8325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8328 \begin_layout Plain Layout
8336 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8339 \begin_layout Plain Layout
8345 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8348 \begin_layout Plain Layout
8356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8359 \begin_layout Plain Layout
8367 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8370 \begin_layout Plain Layout
8376 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8379 \begin_layout Plain Layout
8387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8390 \begin_layout Plain Layout
8398 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8401 \begin_layout Plain Layout
8407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8410 \begin_layout Plain Layout
8418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8421 \begin_layout Plain Layout
8429 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8432 \begin_layout Plain Layout
8438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8452 \begin_layout Plain Layout
8460 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8463 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8483 \begin_layout Plain Layout
8491 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8494 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8514 \begin_layout Plain Layout
8523 \begin_layout Plain Layout
8534 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8537 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8546 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8568 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8577 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8599 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8608 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8630 \begin_layout Plain Layout
8636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8639 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8670 \begin_layout Plain Layout
8678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8681 \begin_layout Plain Layout
8689 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8692 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8701 \begin_layout Plain Layout
8709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8712 \begin_layout Plain Layout
8720 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8723 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8732 \begin_layout Plain Layout
8740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8743 \begin_layout Plain Layout
8751 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8754 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8763 \begin_layout Plain Layout
8771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8774 \begin_layout Plain Layout
8782 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8785 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8794 \begin_layout Plain Layout
8802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8805 \begin_layout Plain Layout
8813 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8816 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8825 \begin_layout Plain Layout
8833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8836 \begin_layout Plain Layout
8844 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8847 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8856 \begin_layout Plain Layout
8864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8867 \begin_layout Plain Layout
8875 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8878 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8887 \begin_layout Plain Layout
8895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8898 \begin_layout Plain Layout
8906 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8909 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8918 \begin_layout Plain Layout
8926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8929 \begin_layout Plain Layout
8937 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8940 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8949 \begin_layout Plain Layout
8957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8960 \begin_layout Plain Layout
8968 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8971 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8980 \begin_layout Plain Layout
8988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8991 \begin_layout Plain Layout
8999 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9002 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9011 \begin_layout Plain Layout
9019 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9022 \begin_layout Plain Layout
9030 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9033 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9042 \begin_layout Plain Layout
9050 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9053 \begin_layout Plain Layout
9059 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9062 \begin_layout Plain Layout
9068 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9071 \begin_layout Plain Layout
9079 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9093 \begin_layout Plain Layout
9099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9102 \begin_layout Plain Layout
9110 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9124 \begin_layout Plain Layout
9130 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9133 \begin_layout Plain Layout
9141 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9155 \begin_layout Plain Layout
9161 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9164 \begin_layout Plain Layout
9172 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9186 \begin_layout Plain Layout
9192 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9195 \begin_layout Plain Layout
9203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9217 \begin_layout Plain Layout
9223 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9226 \begin_layout Plain Layout
9234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9248 \begin_layout Plain Layout
9254 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9257 \begin_layout Plain Layout
9265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9279 \begin_layout Plain Layout
9285 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9288 \begin_layout Plain Layout
9296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9299 \begin_layout Plain Layout
9307 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9310 \begin_layout Plain Layout
9316 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9319 \begin_layout Plain Layout
9327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9330 \begin_layout Plain Layout
9338 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9341 \begin_layout Plain Layout
9347 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9350 \begin_layout Plain Layout
9358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9361 \begin_layout Plain Layout
9369 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9372 \begin_layout Plain Layout
9378 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9381 \begin_layout Plain Layout
9389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9392 \begin_layout Plain Layout
9400 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9403 \begin_layout Plain Layout
9409 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9412 \begin_layout Plain Layout
9420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9423 \begin_layout Plain Layout
9431 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9434 \begin_layout Plain Layout
9440 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9443 \begin_layout Plain Layout
9451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9454 \begin_layout Plain Layout
9462 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9465 \begin_layout Plain Layout
9471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9474 \begin_layout Plain Layout
9482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9485 \begin_layout Plain Layout
9493 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9496 \begin_layout Plain Layout
9502 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9505 \begin_layout Plain Layout
9513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9516 \begin_layout Plain Layout
9524 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9527 \begin_layout Plain Layout
9533 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9536 \begin_layout Plain Layout
9544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9547 \begin_layout Plain Layout
9555 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9558 \begin_layout Plain Layout
9564 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9567 \begin_layout Plain Layout
9575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9578 \begin_layout Plain Layout
9586 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9589 \begin_layout Plain Layout
9595 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9598 \begin_layout Plain Layout
9606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9609 \begin_layout Plain Layout
9617 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9620 \begin_layout Plain Layout
9626 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9629 \begin_layout Plain Layout
9637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9640 \begin_layout Plain Layout
9648 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9651 \begin_layout Plain Layout
9657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9660 \begin_layout Plain Layout
9668 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9671 \begin_layout Plain Layout
9679 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9682 \begin_layout Plain Layout
9688 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9691 \begin_layout Plain Layout
9705 \begin_layout Section
9706 Special Longtable Issues
9707 \begin_inset CommandInset label
9709 name "sec:Special-Longtable-Issues"
9716 \begin_layout Subsection
9717 Longtable Calculation
9718 \begin_inset Index idx
9721 \begin_layout Plain Layout
9722 Longtables ! Calculation
9730 \begin_layout Standard
9732 calculates the height of table pages and their page breaks using so called
9734 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9736 The default value was historically set to only 20 table rows.
9737 If you are using longtables with many pages this may slow down the creation
9739 You can safely increase the chunk size to values of 100-1000 by adding
9740 this command line to your document preamble:
9743 \begin_layout Standard
9748 setcounter{LTchunksize}{100}
9751 \begin_layout Subsection
9752 Floats and Longtables
9753 \begin_inset Index idx
9756 \begin_layout Plain Layout
9765 \begin_layout Standard
9766 There might be problems when a float appears on the same page where a longtable
9768 To avoid such a situation, insert a
9769 \begin_inset Quotes eld
9773 \begin_inset Quotes erd
9778 Insert\SpecialChar menuseparator
9779 Formatting\SpecialChar menuseparator
9781 \begin_inset space ~
9786 ) before your longtable.
9789 \begin_layout Subsection
9791 \begin_inset Index idx
9794 \begin_layout Plain Layout
9795 Longtables ! Forced Page Breaks
9803 \begin_layout Standard
9804 By default tables are only broken between rows.
9805 If you have a cell with multiples lines and want to have a page break within
9806 the cell, insert the new line command
9807 \begin_inset Quotes eld
9819 \begin_inset Quotes erd
9823 -Code at the point of the cell where it can be broken.
9832 command you have to insert in \SpecialChar TeX
9834 \begin_inset Quotes eld
9842 \begin_inset Quotes erd
9845 characters as the number of the following table columns.
9850 is the character to separate table cells.
9851 Write in \SpecialChar TeX
9856 the content of the corresponding following cell and delete the content
9858 \begin_inset Newline newline
9869 command, insert as many
9873 characters as the number of table columns before the current column.
9875 \begin_inset space ~
9879 \begin_inset CommandInset ref
9881 reference "tab:ForcedPagebreak"
9885 the cell that should be broken is in the second column followed by another
9887 Therefore the following command was inserted in the cell as \SpecialChar TeX
9890 \begin_inset Quotes eld
9898 \begin_inset Quotes erd
9904 \begin_layout Standard
9914 \begin_inset Newline newline
9920 \begin_layout Standard
9922 \begin_inset Quotes eld
9926 \begin_inset Quotes erd
9929 in the third column of the row was deleted.
9936 is only needed when a page break should definitely occur at this position,
9937 otherwise it would be a conditional break.
9938 If your footer row of the longtable has for a certain reason no upper line
9939 but you would have a horizontal line where the cell is broken, use this
9943 \begin_layout Standard
9951 \begin_inset Newline newline
9959 \begin_layout Standard
9960 When the cell to be broken is in the last column, the command
9963 \begin_layout Standard
9973 \begin_layout Standard
9974 must be inserted as \SpecialChar TeX
9975 -Code at the beginning of the cell.
9976 This ensures that the part of the cell that will be displayed on the new
9977 page appears with the full width.
9978 \begin_inset Separator parbreak
9984 \begin_layout Standard
9986 \begin_inset Tabular
9987 <lyxtabular version="3" rows="38" columns="3">
9988 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9989 <column alignment="left" valignment="top" width="0cm">
9990 <column alignment="left" valignment="top" width="3cm">
9991 <column alignment="center" valignment="top" width="0pt">
9992 <row endfirsthead="true" caption="true">
9993 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9996 \begin_layout Plain Layout
9997 \begin_inset Caption Standard
9999 \begin_layout Plain Layout
10000 Table with forced page break in table cell
10001 \begin_inset CommandInset label
10003 name "tab:ForcedPagebreak"
10008 \begin_inset Argument 1
10011 \begin_layout Plain Layout
10012 Table with forced page break in table cell
10027 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10030 \begin_layout Plain Layout
10036 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10039 \begin_layout Plain Layout
10046 <row endfirsthead="true">
10047 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10050 \begin_layout Plain Layout
10053 Example Phone List (ignore the names)
10058 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10061 \begin_layout Plain Layout
10067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10070 \begin_layout Plain Layout
10077 <row endfirsthead="true">
10078 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10081 \begin_layout Plain Layout
10089 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10092 \begin_layout Plain Layout
10098 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10101 \begin_layout Plain Layout
10110 <row endhead="true">
10111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10114 \begin_layout Plain Layout
10118 \begin_layout Plain Layout
10122 caption*{Continued Example Phone List}
10136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10155 <row endhead="true">
10156 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10186 <row endhead="true">
10187 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10219 <row endfoot="true">
10220 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10223 \begin_layout Plain Layout
10224 continued on next page
10229 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10548 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10551 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10562 \begin_layout Plain Layout
10570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10573 \begin_layout Plain Layout
10579 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10582 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10593 \begin_layout Plain Layout
10601 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10604 \begin_layout Plain Layout
10610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10613 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10624 \begin_layout Plain Layout
10632 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10641 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10644 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10655 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10675 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10686 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10706 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10717 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10737 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10748 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10765 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10768 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10779 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10799 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10810 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10827 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10830 \begin_layout Plain Layout
10838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10841 \begin_layout Plain Layout
10849 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10852 \begin_layout Plain Layout
10858 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10861 \begin_layout Plain Layout
10869 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10872 \begin_layout Plain Layout
10880 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10883 \begin_layout Plain Layout
10889 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10892 \begin_layout Plain Layout
10900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10903 \begin_layout Plain Layout
10911 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10914 \begin_layout Plain Layout
10920 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10923 \begin_layout Plain Layout
10931 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10934 \begin_layout Plain Layout
10942 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10945 \begin_layout Plain Layout
10947 Fürst von Montecompatri, 11.
10948 Fürst von Sulmona und Vivaro, 10.
10949 Fürst von Rossano, 5.
10950 Herzog von Canemorte, 11.
10951 Herzog von Palombara, 5.
10952 Herzog von Castelchiodato,
10956 \begin_layout Plain Layout
10967 \begin_layout Plain Layout
10975 Herzog von Poggionativo, 11.
10976 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10977 Graf von Valinfreda, 11.
10978 Baron von Cropalati, 11.
10979 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
10995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10998 \begin_layout Plain Layout
11006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11009 \begin_layout Plain Layout
11015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11018 \begin_layout Plain Layout
11026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11029 \begin_layout Plain Layout
11037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11040 \begin_layout Plain Layout
11046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11049 \begin_layout Plain Layout
11057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11060 \begin_layout Plain Layout
11068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11071 \begin_layout Plain Layout
11077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11080 \begin_layout Plain Layout
11088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11091 \begin_layout Plain Layout
11099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11102 \begin_layout Plain Layout
11108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11111 \begin_layout Plain Layout
11119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11122 \begin_layout Plain Layout
11130 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11133 \begin_layout Plain Layout
11139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11142 \begin_layout Plain Layout
11150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11153 \begin_layout Plain Layout
11161 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11164 \begin_layout Plain Layout
11170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11173 \begin_layout Plain Layout
11181 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11184 \begin_layout Plain Layout
11192 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11195 \begin_layout Plain Layout
11201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11204 \begin_layout Plain Layout
11212 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11215 \begin_layout Plain Layout
11223 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11226 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11235 \begin_layout Plain Layout
11249 \begin_layout Section
11250 Multiple Lines, Columns and Rows
11253 \begin_layout Subsection
11254 Multiple Lines in Table Cells
11255 \begin_inset CommandInset label
11257 name "subsec:Multiple-Lines-in"
11262 \begin_inset Index idx
11265 \begin_layout Plain Layout
11266 Multiple Lines in Table Cells
11272 \begin_inset Index idx
11275 \begin_layout Plain Layout
11284 \begin_layout Standard
11286 \begin_inset Float table
11292 \begin_layout Plain Layout
11293 \begin_inset Caption Standard
11295 \begin_layout Plain Layout
11296 \begin_inset CommandInset label
11298 name "tab:Table-with-multiple"
11302 Table with multiple lines in cells
11310 \begin_layout Plain Layout
11312 \begin_inset Tabular
11313 <lyxtabular version="3" rows="3" columns="3">
11314 <features tabularvalignment="middle">
11315 <column alignment="center" valignment="middle" width="2.5cm">
11316 <column alignment="center" valignment="middle">
11317 <column alignment="center" valignment="middle">
11319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11322 \begin_layout Plain Layout
11324 \begin_inset Newline linebreak
11332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11335 \begin_layout Plain Layout
11341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11344 \begin_layout Plain Layout
11352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11355 \begin_layout Plain Layout
11361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11364 \begin_layout Plain Layout
11370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11373 \begin_layout Plain Layout
11381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11384 \begin_layout Plain Layout
11390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11393 \begin_layout Plain Layout
11399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11402 \begin_layout Plain Layout
11421 \begin_layout Standard
11422 Setting a fixed width for a column enables you to enter text as a paragraph
11423 with multiple lines and hyphenation.
11426 \begin_layout Standard
11428 \begin_inset space ~
11432 \begin_inset CommandInset ref
11434 reference "tab:Table-with-multiple"
11438 , create a 3×3 table, mark the first cell and right-click on it.
11439 In the appearing table dialog we set a cell width of 2.5
11440 \begin_inset space \thinspace{}
11443 cm and choose centered for the vertical and horizontal alignment.
11444 The vertical alignment is used for all cells of the row.
11445 As our text is smaller than 2.5
11446 \begin_inset space \thinspace{}
11449 cm, only one line will appear.
11450 To get two lines, a justified line break (shortcut
11453 arg "newline-insert linebreak"
11457 If the text is wider than the set cell width, it will automatically be
11458 broken to several lines.
11461 \begin_layout Standard
11462 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11463 by \SpecialChar LaTeX
11464 if it is the first entry.
11465 Therefore you need to insert something to prevent the word not being the
11467 So add a horizontal space of 0
11468 \begin_inset space \thinspace{}
11471 pt before the word.
11472 As the space is zero, it doesn't change the output.
11474 \begin_inset space ~
11478 \begin_inset CommandInset ref
11480 reference "tab:Table-with-and"
11487 \begin_layout Standard
11488 \begin_inset Float table
11494 \begin_layout Plain Layout
11495 \begin_inset Caption Standard
11497 \begin_layout Plain Layout
11498 \begin_inset CommandInset label
11500 name "tab:Table-with-and"
11504 Table with and without hyphenation
11512 \begin_layout Plain Layout
11513 \begin_inset space \hfill{}
11517 \begin_inset Tabular
11518 <lyxtabular version="3" rows="3" columns="3">
11519 <features tabularvalignment="middle">
11520 <column alignment="center" valignment="middle" width="2.5cm">
11521 <column alignment="center" valignment="middle">
11522 <column alignment="center" valignment="middle">
11524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11527 \begin_layout Plain Layout
11528 verylongtablecellword
11533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11536 \begin_layout Plain Layout
11542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11545 \begin_layout Plain Layout
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11556 \begin_layout Plain Layout
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Plain Layout
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11574 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11585 \begin_layout Plain Layout
11591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11594 \begin_layout Plain Layout
11600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11603 \begin_layout Plain Layout
11615 \begin_inset space \hfill{}
11619 \begin_inset Tabular
11620 <lyxtabular version="3" rows="3" columns="3">
11621 <features tabularvalignment="middle">
11622 <column alignment="center" valignment="middle" width="2.5cm">
11623 <column alignment="center" valignment="middle">
11624 <column alignment="center" valignment="middle">
11626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11629 \begin_layout Plain Layout
11630 \begin_inset space \hspace{}
11634 verylongtablecellword
11639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11642 \begin_layout Plain Layout
11648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11651 \begin_layout Plain Layout
11659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11662 \begin_layout Plain Layout
11668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11671 \begin_layout Plain Layout
11677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11680 \begin_layout Plain Layout
11688 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11691 \begin_layout Plain Layout
11697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11700 \begin_layout Plain Layout
11706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11709 \begin_layout Plain Layout
11721 \begin_inset space \hfill{}
11732 \begin_layout Subsection
11734 \begin_inset CommandInset label
11736 name "subsec:Multicolumns"
11741 \begin_inset Index idx
11744 \begin_layout Plain Layout
11751 \begin_inset Index idx
11754 \begin_layout Plain Layout
11755 Table ! Multicolumns
11763 \begin_layout Subsubsection
11767 \begin_layout Standard
11768 To merge cells over multiple columns, select as many cells within a row
11769 as you want to merge and use either the table-toolbar button
11772 arg "inset-modify tabular multicolumn"
11777 Edit\SpecialChar menuseparator
11778 Table\SpecialChar menuseparator
11781 , or right click on the marked cells and choose
11785 in the context menu.
11788 \begin_layout Standard
11789 Multicolumns have there own cell settings.
11790 That means changing cell borders, cell alignment, and the width only affects
11792 Here is an example table with a multicolumn cell in the first row and one
11793 in the last row without the upper border:
11794 \begin_inset Separator parbreak
11800 \begin_layout Standard
11802 \begin_inset Tabular
11803 <lyxtabular version="3" rows="3" columns="4">
11804 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11805 <column alignment="center" valignment="top" width="0pt">
11806 <column alignment="center" valignment="middle">
11807 <column alignment="center" valignment="top" width="0in">
11808 <column alignment="center" valignment="top" width="0pt">
11810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11813 \begin_layout Plain Layout
11819 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11822 \begin_layout Plain Layout
11828 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11831 \begin_layout Plain Layout
11837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11840 \begin_layout Plain Layout
11848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11851 \begin_layout Plain Layout
11866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11869 \begin_layout Plain Layout
11875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11878 \begin_layout Plain Layout
11884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11887 \begin_layout Plain Layout
11895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11898 \begin_layout Plain Layout
11904 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11907 \begin_layout Plain Layout
11913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11916 \begin_layout Plain Layout
11922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11925 \begin_layout Plain Layout
11939 \begin_layout Subsubsection
11940 Multicolumn Calculations
11941 \begin_inset CommandInset label
11943 name "subsec:Multicolumn-Calculations"
11948 \begin_inset Index idx
11951 \begin_layout Plain Layout
11952 Multicolumns ! Calculations
11960 \begin_layout Standard
11962 supports multicolumns directly, but we have to take account of the cell
11963 width of the columns spanned by the multicolumn cell.
11966 \begin_layout Standard
11967 \begin_inset Float table
11973 \begin_layout Plain Layout
11974 \begin_inset Caption Standard
11976 \begin_layout Plain Layout
11977 \begin_inset CommandInset label
11979 name "tab:Table-with-centered"
11983 Table with centered multicolumn text above two columns that have exactly
11984 half the width of the multicolumn cell
11985 \begin_inset Argument 1
11988 \begin_layout Plain Layout
11989 Perfect multicolumn table
12002 \begin_layout Plain Layout
12004 \begin_inset Tabular
12005 <lyxtabular version="3" rows="3" columns="3">
12006 <features tabularvalignment="middle">
12007 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
12008 <column alignment="center" valignment="middle">
12009 <column alignment="center" valignment="top">
12011 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
12014 \begin_layout Plain Layout
12015 multiple lines multicolumn
12020 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12023 \begin_layout Plain Layout
12029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12032 \begin_layout Plain Layout
12040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12043 \begin_layout Plain Layout
12049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12052 \begin_layout Plain Layout
12058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12061 \begin_layout Plain Layout
12069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12072 \begin_layout Plain Layout
12078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12081 \begin_layout Plain Layout
12087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12090 \begin_layout Plain Layout
12109 \begin_layout Standard
12110 To create for example Table
12111 \begin_inset space ~
12115 \begin_inset CommandInset ref
12117 reference "tab:Table-with-centered"
12121 , mark the first two cells in the first row of a 3×3 table and right-click
12123 Now choose for this cell
12132 \begin_inset space \thinspace{}
12135 cm in the table dialog.
12136 The merged columns should have exactly half the width of the multicolumn
12137 cell, so that you would set a width of 1.25
12138 \begin_inset space \thinspace{}
12141 cm for the first column.
12142 The second column has then automatically a width of 1.25
12143 \begin_inset space \thinspace{}
12146 cm (multicolumn width - width of first column).
12147 This was done for Table
12148 \begin_inset space ~
12152 \begin_inset CommandInset ref
12154 reference "tab:Table-without-half"
12161 \begin_layout Standard
12162 \begin_inset Float table
12167 \begin_layout Plain Layout
12168 \begin_inset Caption Standard
12170 \begin_layout Plain Layout
12171 \begin_inset CommandInset label
12173 name "tab:Table-without-half"
12177 Table where the spanned table columns are not exactly half the width of
12178 the multicolumn cell
12179 \begin_inset Argument 1
12182 \begin_layout Plain Layout
12183 Imperfect multicolumn table
12196 \begin_layout Plain Layout
12198 \begin_inset Tabular
12199 <lyxtabular version="3" rows="3" columns="3">
12200 <features tabularvalignment="middle">
12201 <column alignment="center" valignment="top" width="1.25cm">
12202 <column alignment="center" valignment="top">
12203 <column alignment="center" valignment="top">
12205 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12208 \begin_layout Plain Layout
12209 multiple lines multicolumn
12214 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12217 \begin_layout Plain Layout
12223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12226 \begin_layout Plain Layout
12234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12237 \begin_layout Plain Layout
12243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12246 \begin_layout Plain Layout
12252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12255 \begin_layout Plain Layout
12263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12266 \begin_layout Plain Layout
12272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12275 \begin_layout Plain Layout
12281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12284 \begin_layout Plain Layout
12303 \begin_layout Standard
12304 You can see that the first column is not half the width of the multicolumn
12305 cell, it is a bit bigger.
12306 The reason is that the specified width of a cell
12307 \begin_inset Formula $W_{g}$
12310 is not its total width
12311 \begin_inset Formula $W_{\mathrm{tot}}$
12314 because a cell is always a bit larger than specified.
12316 \begin_inset space ~
12320 \begin_inset CommandInset ref
12322 reference "cha:Explanation-of-Equation"
12326 explains this in detail.
12329 \begin_layout Standard
12331 \begin_inset Formula $W_{g\,n}$
12334 which the user needs to set when
12338 columns are spanned can be calculated, so that each column has a total
12340 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12344 \begin_inset Formula
12346 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12354 \begin_layout Standard
12355 In our case we have
12356 \begin_inset Formula $n=2$
12360 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12363 cm and the default values for the lengths, so that equation
12364 \begin_inset CommandInset ref
12371 \begin_inset Formula
12373 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12381 \begin_layout Standard
12382 To enable calculations in \SpecialChar LaTeX
12383 , the \SpecialChar LaTeX
12388 must be loaded with the document preamble line
12389 \begin_inset Index idx
12392 \begin_layout Plain Layout
12402 \begin_layout Standard
12410 \begin_layout Standard
12412 does not allow you to calculate lengths in the
12416 field of the table dialog.
12417 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12420 Here is an overview about the arguments:
12423 \begin_layout Itemize
12428 creates cell with a fixed width, its text is vertically top-aligned
12431 \begin_layout Itemize
12436 creates cell with a fixed width, its text is vertically centered
12439 \begin_layout Itemize
12444 creates cell with a fixed width, its text is vertically bottom-aligned
12447 \begin_layout Standard
12448 By entering a \SpecialChar LaTeX
12449 -argument, all cell settings set in the table dialog are overwritt
12453 \begin_layout Standard
12454 \begin_inset Note Greyedout
12457 \begin_layout Plain Layout
12462 Due to a bug, \SpecialChar LyX
12463 shows the overwritten settings anyway.
12471 \begin_layout Standard
12472 As the text should be horizontally centered, the command
12479 You can now enter the following \SpecialChar LaTeX
12480 -argument for the first spanned column:
12483 \begin_layout Standard
12488 centering}m{1.25cm-6.2pt}
12491 \begin_layout Standard
12496 means, that the commands inside the braces are applied before the cell
12500 \begin_layout Standard
12501 Although we have chosen centered alignment for the text of the multicolumn
12502 cell, it is still left aligned.
12503 This is because \SpecialChar LyX
12504 only applies the alignment to single columns.
12505 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12509 \begin_layout Standard
12517 \begin_layout Subsection
12519 \begin_inset CommandInset label
12521 name "subsec:Multirows"
12526 \begin_inset Index idx
12529 \begin_layout Plain Layout
12536 \begin_inset Index idx
12539 \begin_layout Plain Layout
12548 \begin_layout Standard
12549 To merge cells over multiple rows, select as many cells within a column
12550 as you want to merge and use either the table-toolbar button
12553 arg "inset-modify tabular multirow"
12558 Edit\SpecialChar menuseparator
12559 Table\SpecialChar menuseparator
12562 , or right click on the marked cells and choose
12566 in the context menu.
12569 \begin_layout Standard
12570 Here is an example table with a multirow in the first column:
12571 \begin_inset Separator parbreak
12577 \begin_layout Standard
12579 \begin_inset Tabular
12580 <lyxtabular version="3" rows="3" columns="3">
12581 <features tabularvalignment="middle">
12582 <column alignment="center" valignment="top" width="0pt">
12583 <column alignment="center" valignment="top">
12584 <column alignment="center" valignment="top">
12586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12589 \begin_layout Plain Layout
12595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12598 \begin_layout Plain Layout
12604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12607 \begin_layout Plain Layout
12615 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12618 \begin_layout Plain Layout
12624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12627 \begin_layout Plain Layout
12633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12636 \begin_layout Plain Layout
12644 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12647 \begin_layout Plain Layout
12653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12656 \begin_layout Plain Layout
12662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12665 \begin_layout Plain Layout
12679 \begin_layout Standard
12680 The width of multirow cells is set by setting the width and alignment for
12686 shifts the content of the multirow up/down if the offset is positive/negative.
12689 \begin_layout Standard
12690 If the column of a multirow cell has no explicit width, the multirow cell
12691 inherits the alignment of the column.
12692 Otherwise it is by default left-aligned.
12693 To override the default, renew the command
12702 \begin_layout Standard
12714 \begin_layout Standard
12715 in the document preamble.
12716 Then all entries of multirow cells in the document are centered.
12717 If centering is only needed for several tables, you can renew the command
12718 in a \SpecialChar TeX
12719 -Code box just before the table instead of the preamble.
12720 If the text should be right-aligned, replace
12733 To return to left-alignment
12742 \begin_layout Standard
12743 This is an example table with a right-aligned multirow cell that has a vertical
12745 \begin_inset space \thinspace{}
12749 \begin_inset space \thinspace{}
12753 \begin_inset Separator parbreak
12759 \begin_layout Standard
12765 \begin_layout Plain Layout
12779 \begin_inset Tabular
12780 <lyxtabular version="3" rows="4" columns="3">
12781 <features tabularvalignment="middle">
12782 <column alignment="center" valignment="top" width="3cm">
12783 <column alignment="center" valignment="top">
12784 <column alignment="center" valignment="top">
12786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12798 \begin_layout Plain Layout
12804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12807 \begin_layout Plain Layout
12815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12818 \begin_layout Plain Layout
12824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12827 \begin_layout Plain Layout
12833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12836 \begin_layout Plain Layout
12844 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12847 \begin_layout Plain Layout
12853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12856 \begin_layout Plain Layout
12862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12865 \begin_layout Plain Layout
12873 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12876 \begin_layout Plain Layout
12882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12885 \begin_layout Plain Layout
12891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12894 \begin_layout Plain Layout
12909 \begin_layout Plain Layout
12925 \begin_layout Standard
12926 To start a new line in a multirow you can use a forced line break (shortcut
12930 arg "newline-insert newline"
12933 ) but this will not respect the cell lines as demonstrated in this table:
12934 \begin_inset Separator parbreak
12940 \begin_layout Standard
12943 \begin_inset Tabular
12944 <lyxtabular version="3" rows="3" columns="2">
12945 <features tabularvalignment="middle">
12946 <column alignment="left" valignment="middle" width="2cm">
12947 <column alignment="center" valignment="top">
12949 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12952 \begin_layout Plain Layout
12954 \begin_inset Newline newline
12958 \begin_inset Newline newline
12966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12969 \begin_layout Plain Layout
12977 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12980 \begin_layout Plain Layout
12986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12989 \begin_layout Plain Layout
12997 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13000 \begin_layout Plain Layout
13006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13009 \begin_layout Plain Layout
13023 \begin_layout Standard
13024 Therefore be careful with forced line breaks.
13027 \begin_layout Subsection
13028 Cells with diagonal line(s)
13031 \begin_layout Standard
13032 To tell the reader what is meant by column and row headings in a table,
13033 it is helpful to split the first cell of the table by one or two diagonal
13035 This can be achieved by loading the \SpecialChar LaTeX
13041 \begin_inset Index idx
13044 \begin_layout Plain Layout
13046 -packages ! picinpar
13051 in the document preamble.
13052 The package provides the command
13058 that is inserted as \SpecialChar TeX
13059 -Code and that can take 2 or 3
13060 \begin_inset space ~
13066 \begin_layout Standard
13071 diagbox[options]{lower left}{upper right}
13074 \begin_layout Standard
13079 diagbox[options]{lower left}{upper left}{upper right}
13082 \begin_layout Standard
13083 The first scheme divides the cell by a single diagonal line and the arguments
13084 are placed below and above this line.
13085 The second scheme divides the cell by 2
13086 \begin_inset space ~
13092 \begin_layout Standard
13096 \begin_layout Plain Layout
13106 \begin_inset Note Note
13109 \begin_layout Plain Layout
13110 The following section will only be displayed when the \SpecialChar LaTeX
13123 \begin_layout Standard
13124 Here is an example table where
13130 is used in the 2-argument scheme in the first cell:
13131 \begin_inset VSpace medskip
13137 \begin_layout Standard
13139 \begin_inset Tabular
13140 <lyxtabular version="3" rows="4" columns="4">
13141 <features tabularvalignment="middle">
13142 <column alignment="center" valignment="top">
13143 <column alignment="center" valignment="top">
13144 <column alignment="center" valignment="top">
13145 <column alignment="center" valignment="top">
13147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13150 \begin_layout Plain Layout
13154 \begin_layout Plain Layout
13167 \begin_layout Plain Layout
13178 \begin_layout Plain Layout
13190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13193 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13202 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13211 \begin_layout Plain Layout
13219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13222 \begin_layout Plain Layout
13228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13231 \begin_layout Plain Layout
13237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13240 \begin_layout Plain Layout
13246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13249 \begin_layout Plain Layout
13257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13260 \begin_layout Plain Layout
13266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13269 \begin_layout Plain Layout
13275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13278 \begin_layout Plain Layout
13284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13287 \begin_layout Plain Layout
13295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13298 \begin_layout Plain Layout
13304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13307 \begin_layout Plain Layout
13313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13316 \begin_layout Plain Layout
13322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13325 \begin_layout Plain Layout
13337 \begin_inset VSpace medskip
13343 \begin_layout Standard
13344 The 3-argument scheme is for example useful for cross-tables of sports leagues
13346 \begin_inset Separator parbreak
13352 \begin_layout Standard
13355 \begin_inset Tabular
13356 <lyxtabular version="3" rows="4" columns="4">
13357 <features tabularvalignment="middle">
13358 <column alignment="center" valignment="top" width="0pt">
13359 <column alignment="center" valignment="top">
13360 <column alignment="center" valignment="top">
13361 <column alignment="center" valignment="top">
13363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13370 \begin_layout Plain Layout
13383 \begin_layout Plain Layout
13394 \begin_layout Plain Layout
13405 \begin_layout Plain Layout
13417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13420 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13438 \begin_layout Plain Layout
13446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13449 \begin_layout Plain Layout
13455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13458 \begin_layout Plain Layout
13464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13467 \begin_layout Plain Layout
13473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13476 \begin_layout Plain Layout
13484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13487 \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" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13514 \begin_layout Plain Layout
13522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13525 \begin_layout Plain Layout
13531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13534 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13543 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13552 \begin_layout Plain Layout
13566 \begin_layout Standard
13567 For larger cross-tables one might use split cells in 2 or every corner of
13568 the table like in this example:
13569 \begin_inset Separator parbreak
13575 \begin_layout Standard
13578 \begin_inset Tabular
13579 <lyxtabular version="3" rows="5" columns="5">
13580 <features tabularvalignment="middle">
13581 <column alignment="center" valignment="top" width="0pt">
13582 <column alignment="center" valignment="top">
13583 <column alignment="center" valignment="top">
13584 <column alignment="center" valignment="top">
13585 <column alignment="center" valignment="top">
13587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13590 \begin_layout Plain Layout
13594 \begin_layout Plain Layout
13607 \begin_layout Plain Layout
13618 \begin_layout Plain Layout
13629 \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" bottomline="true" leftline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13668 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13671 \begin_layout Plain Layout
13675 \begin_layout Plain Layout
13688 \begin_layout Plain Layout
13699 \begin_layout Plain Layout
13710 \begin_layout Plain Layout
13724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13727 \begin_layout Plain Layout
13733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13736 \begin_layout Plain Layout
13742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13745 \begin_layout Plain Layout
13751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13754 \begin_layout Plain Layout
13760 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13763 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13774 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13783 \begin_layout Plain Layout
13789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13792 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13801 \begin_layout Plain Layout
13807 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13810 \begin_layout Plain Layout
13818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13821 \begin_layout Plain Layout
13827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13830 \begin_layout Plain Layout
13836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13839 \begin_layout Plain Layout
13845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13848 \begin_layout Plain Layout
13854 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13857 \begin_layout Plain Layout
13865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13868 \begin_layout Plain Layout
13872 \begin_layout Plain Layout
13885 \begin_layout Plain Layout
13896 \begin_layout Plain Layout
13907 \begin_layout Plain Layout
13919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13922 \begin_layout Plain Layout
13928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13931 \begin_layout Plain Layout
13937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13940 \begin_layout Plain Layout
13946 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13949 \begin_layout Plain Layout
13953 \begin_layout Plain Layout
13966 \begin_layout Plain Layout
13977 \begin_layout Plain Layout
13988 \begin_layout Plain Layout
14008 \begin_layout Standard
14009 To rotate the diagonal lines, the command option
14034 and represent a point of a compass.
14039 is for example the south-west corner.
14040 Thus in the lower left cell of the above table the command
14043 \begin_layout Standard
14048 diagbox[dir=SW]{Team home}{Result}{Team away}
14051 \begin_layout Standard
14053 If no direction is given, it will be NW.
14056 \begin_layout Standard
14057 The necessary width of split cells is automatically calculated.
14058 Thus if you set a fixed column width smaller than the calculated one, the
14059 cell's content will protrude the cell borders:
14060 \begin_inset Separator parbreak
14066 \begin_layout Standard
14069 \begin_inset Tabular
14070 <lyxtabular version="3" rows="2" columns="2">
14071 <features tabularvalignment="middle">
14072 <column alignment="center" valignment="top" width="3cm">
14073 <column alignment="center" valignment="top">
14075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14078 \begin_layout Plain Layout
14082 \begin_layout Plain Layout
14095 \begin_layout Plain Layout
14106 \begin_layout Plain Layout
14118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14121 \begin_layout Plain Layout
14129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14132 \begin_layout Plain Layout
14138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14141 \begin_layout Plain Layout
14155 \begin_layout Standard
14156 If you need a certain width for columns with a split cell, use the command
14161 (replace '3cm' by the width you need).
14162 In the following table the width of the first column is set to 4
14163 \begin_inset space \thinspace{}
14174 \begin_inset space \thinspace{}
14178 \begin_inset space \thinspace{}
14183 tabcolsep is necessary because the overall width is the width for the text
14184 (in this case the 4
14185 \begin_inset space \thinspace{}
14188 cm) plus two times the separation of the text and the cell border.
14189 The calculation of the width cannot be done in the command option of
14195 so one needs to create a new length which can be used later.
14196 This is done with the \SpecialChar TeX
14200 \begin_layout Standard
14208 \begin_inset Newline newline
14220 \begin_layout Standard
14224 \begin_layout Plain Layout
14233 \begin_layout Plain Layout
14249 \begin_layout Standard
14250 To enable calculations in \SpecialChar LaTeX
14251 one needs to load the package
14256 \begin_inset Index idx
14259 \begin_layout Plain Layout
14266 in the document preamble.
14269 \begin_layout Standard
14270 In this table you can now use the command
14273 \begin_layout Standard
14283 \begin_layout Standard
14285 \begin_inset Separator parbreak
14291 \begin_layout Standard
14294 \begin_inset Tabular
14295 <lyxtabular version="3" rows="2" columns="2">
14296 <features tabularvalignment="middle">
14297 <column alignment="center" valignment="top" width="4cm">
14298 <column alignment="center" valignment="top">
14300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14303 \begin_layout Plain Layout
14307 \begin_layout Plain Layout
14322 \begin_layout Plain Layout
14333 \begin_layout Plain Layout
14345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14348 \begin_layout Plain Layout
14356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14359 \begin_layout Plain Layout
14365 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14368 \begin_layout Plain Layout
14382 \begin_layout Standard
14383 Note that the split cell needs to be the widest one in the column.
14384 Otherwise the length of the diagonal line cannot be calculated correctly
14385 like in this table:
14386 \begin_inset Separator parbreak
14392 \begin_layout Standard
14395 \begin_inset Tabular
14396 <lyxtabular version="3" rows="2" columns="2">
14397 <features tabularvalignment="middle">
14398 <column alignment="center" valignment="top" width="0pt">
14399 <column alignment="center" valignment="top">
14401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14404 \begin_layout Plain Layout
14408 \begin_layout Plain Layout
14421 \begin_layout Plain Layout
14432 \begin_layout Plain Layout
14444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14447 \begin_layout Plain Layout
14455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14458 \begin_layout Plain Layout
14464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14467 \begin_layout Plain Layout
14481 \begin_layout Standard
14482 In this case use the
14493 It is then not necessary to add 2
14495 tabcolsep because the cell width is now the width of the column.
14496 In this table a width of 3
14497 \begin_inset space \thinspace{}
14501 \begin_inset Separator parbreak
14507 \begin_layout Standard
14510 \begin_inset Tabular
14511 <lyxtabular version="3" rows="2" columns="2">
14512 <features tabularvalignment="middle">
14513 <column alignment="center" valignment="top" width="0pt">
14514 <column alignment="center" valignment="top">
14516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14519 \begin_layout Plain Layout
14523 \begin_layout Plain Layout
14527 diagbox[width=3cm]{
14536 \begin_layout Plain Layout
14547 \begin_layout Plain Layout
14559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14562 \begin_layout Plain Layout
14570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14573 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14582 \begin_layout Plain Layout
14596 \begin_layout Standard
14597 For multiple text lines in split cells one needs some extra height to fit
14598 the text to the cell.
14599 This can be achieved with the
14609 (replace '3cm' by the height you need).
14610 In the following table the command
14613 \begin_layout Standard
14618 diagbox[width=3cm,height=1.4cm]{A
14629 \begin_layout Standard
14630 is used in the first cell.
14639 creates hereby the line break.
14643 \begin_layout Plain Layout
14644 Breaking lines with
14648 is only possible when the column has a fixed width.
14654 \begin_inset Separator parbreak
14660 \begin_layout Standard
14663 \begin_inset Tabular
14664 <lyxtabular version="3" rows="2" columns="2">
14665 <features tabularvalignment="middle">
14666 <column alignment="center" valignment="top">
14667 <column alignment="center" valignment="top">
14669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14672 \begin_layout Plain Layout
14676 \begin_layout Plain Layout
14680 diagbox[width=3cm,height=1.4cm]{
14689 \begin_layout Plain Layout
14704 \begin_layout Plain Layout
14715 \begin_layout Plain Layout
14730 \begin_layout Plain Layout
14742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14745 \begin_layout Plain Layout
14753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14756 \begin_layout Plain Layout
14762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14765 \begin_layout Plain Layout
14779 \begin_layout Standard
14783 \begin_layout Plain Layout
14793 \begin_inset Note Note
14796 \begin_layout Plain Layout
14797 The following will be displayed when the \SpecialChar LaTeX
14810 \begin_layout Standard
14811 You need to install the \SpecialChar LaTeX
14816 to see the following part of this section in the output.
14819 \begin_layout Standard
14823 \begin_layout Plain Layout
14835 \begin_layout Standard
14836 For more info about the \SpecialChar LaTeX
14841 , see its documentation,
14842 \begin_inset CommandInset citation
14851 \begin_layout Section
14853 \begin_inset CommandInset label
14855 name "sec:Formal-Tables"
14860 \begin_inset Index idx
14863 \begin_layout Plain Layout
14872 \begin_layout Standard
14873 Tables are often typeset in books similar to Table
14874 \begin_inset space ~
14878 \begin_inset CommandInset ref
14880 reference "tab:Example-booktabs-table"
14885 This kind of tables is called
14886 \begin_inset Quotes eld
14894 \begin_inset Quotes erd
14898 To make a table a formal table use the option
14906 tab of the table dialog.
14909 \begin_layout Standard
14910 \begin_inset Float table
14916 \begin_layout Plain Layout
14917 \begin_inset Caption Standard
14919 \begin_layout Plain Layout
14920 \begin_inset CommandInset label
14922 name "tab:Example-booktabs-table"
14926 Example booktabs-table
14934 \begin_layout Plain Layout
14936 \begin_inset Tabular
14937 <lyxtabular version="3" rows="8" columns="4">
14938 <features booktabs="true" tabularvalignment="middle">
14939 <column alignment="center" valignment="top">
14940 <column alignment="center" valignment="top">
14941 <column alignment="center" valignment="top">
14942 <column alignment="center" valignment="top">
14944 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14947 \begin_layout Plain Layout
14953 <cell alignment="center" valignment="top" topline="true" usebox="none">
14956 \begin_layout Plain Layout
14958 \begin_inset space \thinspace{}
14966 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14969 \begin_layout Plain Layout
14971 \begin_inset space \thinspace{}
14979 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14982 \begin_layout Plain Layout
14990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14993 \begin_layout Plain Layout
14997 \begin_layout Plain Layout
15010 \begin_layout Plain Layout
15019 Detector thickness in µm
15024 <cell alignment="center" valignment="top" usebox="none">
15027 \begin_layout Plain Layout
15033 <cell alignment="center" valignment="top" usebox="none">
15036 \begin_layout Plain Layout
15042 <cell alignment="center" valignment="top" usebox="none">
15045 \begin_layout Plain Layout
15053 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
15056 \begin_layout Plain Layout
15062 <cell alignment="center" valignment="top" topline="true" usebox="none">
15065 \begin_layout Plain Layout
15071 <cell alignment="center" valignment="top" topline="true" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" topline="true" usebox="none">
15083 \begin_layout Plain Layout
15090 <row topspace="default">
15091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15094 \begin_layout Plain Layout
15095 Spatial resolution in µm
15100 <cell alignment="center" valignment="top" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15128 <row topspace="default">
15129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15132 \begin_layout Plain Layout
15134 \begin_inset Formula $f_{\mathrm{max}}$
15142 <cell alignment="center" valignment="top" usebox="none">
15145 \begin_layout Plain Layout
15151 <cell alignment="center" valignment="top" usebox="none">
15154 \begin_layout Plain Layout
15160 <cell alignment="center" valignment="top" usebox="none">
15163 \begin_layout Plain Layout
15170 <row topspace="default">
15171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15174 \begin_layout Plain Layout
15178 \begin_layout Plain Layout
15182 cmidrule[2pt](l{10pt}){1-1}
15187 LSF-spatial resolution
15192 <cell alignment="center" valignment="top" usebox="none">
15195 \begin_layout Plain Layout
15201 <cell alignment="center" valignment="top" usebox="none">
15204 \begin_layout Plain Layout
15210 <cell alignment="center" valignment="top" usebox="none">
15213 \begin_layout Plain Layout
15221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15224 \begin_layout Plain Layout
15230 <cell alignment="center" valignment="top" usebox="none">
15233 \begin_layout Plain Layout
15239 <cell alignment="center" valignment="top" usebox="none">
15242 \begin_layout Plain Layout
15248 <cell alignment="center" valignment="top" usebox="none">
15251 \begin_layout Plain Layout
15259 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15262 \begin_layout Plain Layout
15268 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15271 \begin_layout Plain Layout
15277 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15280 \begin_layout Plain Layout
15286 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15289 \begin_layout Plain Layout
15308 \begin_layout Standard
15309 Spaces to table rows can be added using the
15313 tab of the table dialog as described in section
15314 \begin_inset space ~
15318 \begin_inset CommandInset ref
15320 reference "subsec:Row-Spacing"
15327 \begin_layout Standard
15328 Unlike normal tables, formal tables have no vertical table lines.
15329 The horizontal table lines can be set as for normal tables but they appear
15330 with different widths in the output:
15331 \begin_inset Newline newline
15334 The first and the last table line have a default width of 0.08
15335 \begin_inset space \thinspace{}
15338 em while the other lines have a default width of 0.05
15339 \begin_inset space \thinspace{}
15345 \begin_layout Standard
15346 The default widths can be changed with the following preamble lines
15349 \begin_layout Standard
15359 \begin_inset Newline newline
15371 \begin_layout Standard
15372 This example is for the first line, the so called
15377 If you want to change the width for the last line, replace
15386 To change the width for the other lines replace
15395 You can use all units listed in appendix
15396 \begin_inset space ~
15400 \begin_inset CommandInset ref
15402 reference "cha:Units-available-in"
15409 \begin_layout Standard
15410 Lines that do not span all table columns can be created by setting a table
15411 line for multicolumn cells.
15413 will then internally use the command
15419 to create this line.
15423 \begin_layout Standard
15428 cmidrule[height](trim){startcol-endcol}
15431 \begin_layout Standard
15438 are currently not supported by \SpecialChar LyX
15439 so you have to use \SpecialChar TeX
15440 -Code to be able to
15448 s can manually be created by inserting the command as \SpecialChar TeX
15450 cell entry of the first cell of a row.
15451 The line is then drawn in the output above the current row.
15454 \begin_layout Standard
15455 The default for the optional
15460 \begin_inset space \thinspace{}
15468 is the number of the column where the line starts and
15472 the column number where the line ends.
15477 always needs to be specified, also when the line should span only one column.
15478 The optional parameter
15495 Using for example the parameter
15499 means that the line is trimmed from its left end by 2
15500 \begin_inset space \thinspace{}
15504 If you don't specify the
15508 the line is trimmed by the default of 0.5
15509 \begin_inset space \thinspace{}
15515 \begin_layout Standard
15516 \begin_inset VSpace bigskip
15520 \begin_inset space ~
15524 \begin_inset CommandInset ref
15526 reference "tab:Example-booktabs-table"
15530 was created using the commands
15533 \begin_layout Standard
15543 \begin_layout Standard
15544 at the beginning of the second row and
15547 \begin_layout Standard
15552 cmidrule[2pt](l{10pt}){1-1}
15555 \begin_layout Standard
15559 \begin_layout Standard
15560 \begin_inset VSpace bigskip
15566 \begin_layout Standard
15567 You might want to have overlapping
15574 \begin_inset space ~
15578 \begin_inset CommandInset ref
15580 reference "tab:Special-booktabs-table"
15585 This can be achieved with the \SpecialChar TeX
15589 \begin_layout Standard
15597 \begin_layout Standard
15598 The command that was used for the second row of Table
15599 \begin_inset space ~
15603 \begin_inset CommandInset ref
15605 reference "tab:Special-booktabs-table"
15612 \begin_layout Standard
15626 \begin_layout Standard
15627 The command for the sixth row is
15630 \begin_layout Standard
15642 \begin_layout Standard
15643 \begin_inset VSpace bigskip
15649 \begin_layout Standard
15650 If you are in any way not satisfied with the border line spacing, you can
15651 use the following command to produce lines that span over all table columns
15656 \begin_layout Standard
15661 specialrule{width}{space above}{space below}
15664 \begin_layout Standard
15665 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15672 \begin_inset CommandInset citation
15679 \begin_inset Index idx
15682 \begin_layout Plain Layout
15684 -packages ! booktabs
15692 \begin_layout Standard
15693 \begin_inset Float table
15699 \begin_layout Plain Layout
15700 \begin_inset Caption Standard
15702 \begin_layout Plain Layout
15703 \begin_inset CommandInset label
15705 name "tab:Special-booktabs-table"
15709 Special booktabs-table
15717 \begin_layout Plain Layout
15719 \begin_inset Tabular
15720 <lyxtabular version="3" rows="8" columns="4">
15721 <features booktabs="true" tabularvalignment="middle">
15722 <column alignment="center" valignment="top">
15723 <column alignment="center" valignment="top">
15724 <column alignment="center" valignment="top">
15725 <column alignment="center" valignment="top">
15727 <cell alignment="center" valignment="top" topline="true" usebox="none">
15730 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" usebox="none">
15739 \begin_layout Plain Layout
15741 \begin_inset space \thinspace{}
15749 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15752 \begin_layout Plain Layout
15754 \begin_inset space \thinspace{}
15762 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15765 \begin_layout Plain Layout
15773 <cell alignment="center" valignment="top" usebox="none">
15776 \begin_layout Plain Layout
15780 \begin_layout Plain Layout
15793 \begin_layout Plain Layout
15806 \begin_layout Plain Layout
15819 \begin_layout Plain Layout
15828 Detector thickness in µm
15833 <cell alignment="center" valignment="top" usebox="none">
15836 \begin_layout Plain Layout
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15851 <cell alignment="center" valignment="top" usebox="none">
15854 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" topline="true" usebox="none">
15865 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" usebox="none">
15892 \begin_layout Plain Layout
15899 <row topspace="default">
15900 <cell alignment="center" valignment="top" usebox="none">
15903 \begin_layout Plain Layout
15904 Spatial resolution in µm
15909 <cell alignment="center" valignment="top" usebox="none">
15912 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" usebox="none">
15930 \begin_layout Plain Layout
15937 <row topspace="default">
15938 <cell alignment="center" valignment="top" usebox="none">
15941 \begin_layout Plain Layout
15943 \begin_inset Formula $f_{\mathrm{max}}$
15951 <cell alignment="center" valignment="top" usebox="none">
15954 \begin_layout Plain Layout
15960 <cell alignment="center" valignment="top" usebox="none">
15963 \begin_layout Plain Layout
15969 <cell alignment="center" valignment="top" usebox="none">
15972 \begin_layout Plain Layout
15980 <cell alignment="center" valignment="top" topline="true" usebox="none">
15983 \begin_layout Plain Layout
15987 \begin_layout Plain Layout
16000 \begin_layout Plain Layout
16009 LSF-spatial resolution
16014 <cell alignment="center" valignment="top" topline="true" usebox="none">
16017 \begin_layout Plain Layout
16023 <cell alignment="center" valignment="top" topline="true" usebox="none">
16026 \begin_layout Plain Layout
16032 <cell alignment="center" valignment="top" topline="true" usebox="none">
16035 \begin_layout Plain Layout
16043 <cell alignment="center" valignment="top" usebox="none">
16046 \begin_layout Plain Layout
16052 <cell alignment="center" valignment="top" usebox="none">
16055 \begin_layout Plain Layout
16061 <cell alignment="center" valignment="top" usebox="none">
16064 \begin_layout Plain Layout
16070 <cell alignment="center" valignment="top" usebox="none">
16073 \begin_layout Plain Layout
16081 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16084 \begin_layout Plain Layout
16090 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16093 \begin_layout Plain Layout
16099 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16102 \begin_layout Plain Layout
16108 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16111 \begin_layout Plain Layout
16130 \begin_layout Section
16131 Vertical Table Alignment
16132 \begin_inset Index idx
16135 \begin_layout Plain Layout
16144 \begin_layout Standard
16145 To align tables vertically in a text line, the table must be inside a box.
16146 The box can then be vertically aligned as described in section
16147 \begin_inset space ~
16151 \begin_inset CommandInset ref
16153 reference "sec:Box-Dialog"
16160 \begin_layout Standard
16161 In the following example the tables are inside a minipage
16165 \begin_layout Plain Layout
16166 Minipages are described in section
16167 \begin_inset space ~
16171 \begin_inset CommandInset ref
16173 reference "sec:Minipages"
16182 box that has a width of 15
16183 \begin_inset space \thinspace{}
16189 \begin_layout Itemize
16191 \begin_inset Box Frameless
16201 height_special "totalheight"
16206 backgroundcolor "none"
16209 \begin_layout Plain Layout
16210 \begin_inset Tabular
16211 <lyxtabular version="3" rows="3" columns="3">
16212 <features tabularvalignment="middle">
16213 <column alignment="center" valignment="top">
16214 <column alignment="center" valignment="top">
16215 <column alignment="center" valignment="top">
16217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16220 \begin_layout Plain Layout
16226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16229 \begin_layout Plain Layout
16235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16238 \begin_layout Plain Layout
16246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16249 \begin_layout Plain Layout
16255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16258 \begin_layout Plain Layout
16264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16267 \begin_layout Plain Layout
16275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16278 \begin_layout Plain Layout
16284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16287 \begin_layout Plain Layout
16293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16296 \begin_layout Plain Layout
16316 \begin_layout Plain Layout
16328 \begin_inset Box Frameless
16338 height_special "totalheight"
16343 backgroundcolor "none"
16346 \begin_layout Plain Layout
16347 \begin_inset Tabular
16348 <lyxtabular version="3" rows="3" columns="3">
16349 <features tabularvalignment="middle">
16350 <column alignment="center" valignment="top">
16351 <column alignment="center" valignment="top">
16352 <column alignment="center" valignment="top">
16354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16357 \begin_layout Plain Layout
16363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16366 \begin_layout Plain Layout
16372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16375 \begin_layout Plain Layout
16383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16386 \begin_layout Plain Layout
16392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16395 \begin_layout Plain Layout
16401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16404 \begin_layout Plain Layout
16412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16415 \begin_layout Plain Layout
16421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16424 \begin_layout Plain Layout
16430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16433 \begin_layout Plain Layout
16453 \begin_layout Plain Layout
16463 \begin_layout Itemize
16465 \begin_inset Box Frameless
16475 height_special "totalheight"
16480 backgroundcolor "none"
16483 \begin_layout Plain Layout
16484 \begin_inset Tabular
16485 <lyxtabular version="3" rows="3" columns="3">
16486 <features tabularvalignment="middle">
16487 <column alignment="center" valignment="top">
16488 <column alignment="center" valignment="top">
16489 <column alignment="center" valignment="top">
16491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16494 \begin_layout Plain Layout
16500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16503 \begin_layout Plain Layout
16509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16512 \begin_layout Plain Layout
16520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16523 \begin_layout Plain Layout
16529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16532 \begin_layout Plain Layout
16538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16541 \begin_layout Plain Layout
16549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16552 \begin_layout Plain Layout
16558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16561 \begin_layout Plain Layout
16567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16570 \begin_layout Plain Layout
16589 \begin_layout Itemize
16591 \begin_inset Box Frameless
16601 height_special "totalheight"
16606 backgroundcolor "none"
16609 \begin_layout Plain Layout
16610 \begin_inset Tabular
16611 <lyxtabular version="3" rows="3" columns="3">
16612 <features tabularvalignment="middle">
16613 <column alignment="center" valignment="top">
16614 <column alignment="center" valignment="top">
16615 <column alignment="center" valignment="top">
16617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16620 \begin_layout Plain Layout
16626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16629 \begin_layout Plain Layout
16635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16638 \begin_layout Plain Layout
16646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16649 \begin_layout Plain Layout
16655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16658 \begin_layout Plain Layout
16664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16667 \begin_layout Plain Layout
16675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16678 \begin_layout Plain Layout
16684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16687 \begin_layout Plain Layout
16693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16696 \begin_layout Plain Layout
16716 \begin_layout Plain Layout
16728 \begin_inset Box Frameless
16738 height_special "totalheight"
16743 backgroundcolor "none"
16746 \begin_layout Plain Layout
16747 \begin_inset Tabular
16748 <lyxtabular version="3" rows="3" columns="3">
16749 <features tabularvalignment="middle">
16750 <column alignment="center" valignment="top">
16751 <column alignment="center" valignment="top">
16752 <column alignment="center" valignment="top">
16754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16757 \begin_layout Plain Layout
16763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16766 \begin_layout Plain Layout
16772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16775 \begin_layout Plain Layout
16783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16786 \begin_layout Plain Layout
16792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16795 \begin_layout Plain Layout
16801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16804 \begin_layout Plain Layout
16812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16815 \begin_layout Plain Layout
16821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16824 \begin_layout Plain Layout
16830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16833 \begin_layout Plain Layout
16853 \begin_layout Plain Layout
16863 \begin_layout Standard
16864 As you will see, the content of the first and last table row is not correctly
16866 To get this alignment, the minipage box must be set into a raisebox
16870 \begin_layout Plain Layout
16871 Raiseboxes are described in section
16872 \begin_inset space ~
16876 \begin_inset CommandInset ref
16878 reference "subsec:Vertical-Alignment"
16888 In the example above the second table in the first item is aligned using
16889 the \SpecialChar TeX
16893 \begin_layout Standard
16903 \begin_layout Standard
16905 After the box the closing brace
16909 is inserted as \SpecialChar TeX
16911 For the second table in the last item the command
16914 \begin_layout Standard
16924 \begin_layout Standard
16928 \begin_layout Standard
16929 \begin_inset Note Greyedout
16932 \begin_layout Plain Layout
16937 The alignment of the table row content to the surrounding text line is
16939 The required value for the
16945 command for this alignment depends on the document font, the font size,
16946 and the table line thickness.
16954 \begin_layout Section
16956 \begin_inset CommandInset label
16958 name "sec:Colored-Tables"
16963 \begin_inset Index idx
16966 \begin_layout Plain Layout
16975 \begin_layout Subsection
16977 \begin_inset Index idx
16980 \begin_layout Plain Layout
16981 Table Color ! for Cells
16987 \begin_inset Index idx
16990 \begin_layout Plain Layout
16991 Color ! for Table Cells
16999 \begin_layout Standard
17000 \begin_inset Float table
17006 \begin_layout Plain Layout
17007 \begin_inset Caption Standard
17009 \begin_layout Plain Layout
17010 \begin_inset CommandInset label
17012 name "tab:Table-colored-without"
17016 Table colored without using the package
17021 \begin_inset Argument 1
17024 \begin_layout Plain Layout
17025 Table without colortbl
17038 \begin_layout Plain Layout
17040 \begin_inset Tabular
17041 <lyxtabular version="3" rows="3" columns="3">
17042 <features tabularvalignment="middle">
17043 <column alignment="center" valignment="top">
17044 <column alignment="center" valignment="top">
17045 <column alignment="center" valignment="top">
17047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17050 \begin_layout Plain Layout
17058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17061 \begin_layout Plain Layout
17069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17072 \begin_layout Plain Layout
17082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17085 \begin_layout Plain Layout
17093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17096 \begin_layout Plain Layout
17104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17107 \begin_layout Plain Layout
17117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17120 \begin_layout Plain Layout
17128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17131 \begin_layout Plain Layout
17139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17142 \begin_layout Plain Layout
17163 \begin_layout Standard
17164 If you only need colored text, mark the cells and choose a color in the
17168 \begin_inset space ~
17173 dialog (toolbar button
17176 arg "dialog-show character"
17180 This was used to create Table
17181 \begin_inset space ~
17185 \begin_inset CommandInset ref
17187 reference "tab:Table-colored-without"
17192 In any other case you have to use the \SpecialChar LaTeX
17198 \begin_inset Index idx
17201 \begin_layout Plain Layout
17203 -packages ! colortbl
17211 \begin_layout Standard
17215 \begin_layout Plain Layout
17225 \begin_inset Note Note
17228 \begin_layout Plain Layout
17229 The following section part will only be displayed when the \SpecialChar LaTeX
17242 \begin_layout Standard
17243 To create colored tables,
17247 must be loaded in the preamble with the line
17250 \begin_layout Standard
17255 usepackage{colortbl}
17258 \begin_layout Standard
17259 The color of a column is adjusted with the command
17262 \begin_layout Standard
17267 columncolor{name of color}
17270 \begin_layout Standard
17276 More about the command
17280 is contained in section
17281 \begin_inset space ~
17285 \begin_inset CommandInset ref
17287 reference "subsec:Multicolumn-Calculations"
17294 \begin_layout Standard
17295 The following color names are predefined:
17298 \begin_layout Standard
17332 \begin_layout Standard
17333 \begin_inset VSpace medskip
17339 \begin_layout Standard
17340 If you add the options
17343 \begin_layout Standard
17346 usenames,dvipsnames
17349 \begin_layout Standard
17350 to the document class options in the document settings, you can additionally
17352 \begin_inset space ~
17356 These colors are listed in appendix
17357 \begin_inset space ~
17361 \begin_inset CommandInset ref
17363 reference "chap:List-of-dvips-colornames"
17368 One of these colors,
17372 , is used as example in Table
17373 \begin_inset space ~
17377 \begin_inset CommandInset ref
17379 reference "tab:Table-colored-using"
17386 \begin_layout Standard
17387 \begin_inset VSpace medskip
17393 \begin_layout Standard
17394 You can also define your own color with the command
17397 \begin_layout Standard
17402 definecolor{color name}{color model}{color values}
17405 \begin_layout Standard
17406 The color model can be
17409 \begin_layout Labeling
17410 \labelwidthstring 00.00.0000
17411 cmyk: cyan, magenta, yellow, black
17414 \begin_layout Labeling
17415 \labelwidthstring 00.00.0000
17416 rgb: red, green blue
17419 \begin_layout Labeling
17420 \labelwidthstring 00.00.0000
17424 \begin_layout Standard
17425 and the color values are comma separated numbers between 0 and 1 describing
17426 the factor for the corresponding color of the color model.
17429 \begin_layout Standard
17431 \begin_inset space \thinspace{}
17435 \begin_inset space \space{}
17442 " in the preamble with
17445 \begin_layout Standard
17450 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17453 \begin_layout Standard
17461 \begin_layout Standard
17466 definecolor{lightgray}{gray}{0.8}
17469 \begin_layout Standard
17470 \begin_inset VSpace medskip
17476 \begin_layout Standard
17477 Lines are colored with the command
17480 \begin_layout Standard
17485 rowcolor{name of color}
17488 \begin_layout Standard
17489 and cells are colored with the command
17492 \begin_layout Standard
17497 cellcolor{name of color}
17500 \begin_layout Standard
17501 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17505 \begin_layout Standard
17506 To color characters in the table, mark the cells and use the
17509 \begin_inset space ~
17515 If a cell contains \SpecialChar TeX
17516 -Code mark only the characters, otherwise the colored
17518 -Code will cause \SpecialChar LaTeX
17522 \begin_layout Standard
17523 \begin_inset Note Greyedout
17526 \begin_layout Plain Layout
17531 Not all DVI-viewers are able to display self-defined colors.
17539 \begin_layout Standard
17540 \begin_inset VSpace bigskip
17546 \begin_layout Standard
17548 \begin_inset space ~
17552 \begin_inset CommandInset ref
17554 reference "tab:Table-colored-using"
17558 do the following: The color of the first column should be
17566 \begin_layout Standard
17571 columncolor{darkgreen}
17576 \begin_layout Standard
17577 as \SpecialChar LaTeX
17578 -argument for this column.
17579 The first row should be light blue, therefore the \SpecialChar TeX
17583 \begin_layout Standard
17591 \begin_layout Standard
17592 is inserted to the first cell of this row.
17593 Note that this overwrites the column color for the first cell.
17594 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17599 \begin_layout Standard
17607 \begin_layout Standard
17608 The characters could now be colored using the menu
17610 Edit\SpecialChar menuseparator
17612 \begin_inset space ~
17620 \begin_layout Standard
17621 \begin_inset Float table
17627 \begin_layout Plain Layout
17628 \begin_inset Caption Standard
17630 \begin_layout Plain Layout
17631 \begin_inset CommandInset label
17633 name "tab:Table-colored-using"
17637 Table colored using the package
17642 \begin_inset Argument 1
17645 \begin_layout Plain Layout
17646 Table with colortbl
17659 \begin_layout Plain Layout
17661 \begin_inset Tabular
17662 <lyxtabular version="3" rows="3" columns="3">
17663 <features tabularvalignment="middle">
17664 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17665 <column alignment="center" valignment="top">
17666 <column alignment="center" valignment="top">
17668 <cell alignment="center" valignment="top" usebox="none">
17671 \begin_layout Plain Layout
17675 \begin_layout Plain Layout
17691 <cell alignment="center" valignment="top" usebox="none">
17694 \begin_layout Plain Layout
17702 <cell alignment="center" valignment="top" usebox="none">
17705 \begin_layout Plain Layout
17715 <cell alignment="center" valignment="top" usebox="none">
17718 \begin_layout Plain Layout
17726 <cell alignment="center" valignment="top" usebox="none">
17729 \begin_layout Plain Layout
17737 <cell alignment="center" valignment="top" usebox="none">
17740 \begin_layout Plain Layout
17750 <cell alignment="center" valignment="top" usebox="none">
17753 \begin_layout Plain Layout
17761 <cell alignment="center" valignment="top" usebox="none">
17764 \begin_layout Plain Layout
17772 <cell alignment="center" valignment="top" usebox="none">
17775 \begin_layout Plain Layout
17779 \begin_layout Plain Layout
17808 \begin_layout Standard
17812 \begin_layout Plain Layout
17822 \begin_inset Note Note
17825 \begin_layout Plain Layout
17826 The following will be displayed when the \SpecialChar LaTeX
17839 \begin_layout Standard
17840 You need to install the package
17844 to see the content of this section in the output.
17847 \begin_layout Standard
17851 \begin_layout Plain Layout
17863 \begin_layout Subsection
17865 \begin_inset Index idx
17868 \begin_layout Plain Layout
17869 Table Color ! for Rows
17875 \begin_inset Index idx
17878 \begin_layout Plain Layout
17879 Color ! for Table Rows
17887 \begin_layout Standard
17888 In case every second table row needs to be colored there is an alternative
17889 to the method described in the previous section: One loads the package
17895 \begin_inset Index idx
17898 \begin_layout Plain Layout
17904 \begin_layout Plain Layout
17918 in the document preamble with the command
17921 \begin_layout Standard
17926 usepackage[table]{xcolor}
17929 \begin_layout Standard
17934 automatically loads also the package
17939 \begin_inset Index idx
17942 \begin_layout Plain Layout
17944 -packages ! colortbl
17953 must be installed in your \SpecialChar LaTeX
17954 -distribution, otherwise you get \SpecialChar LaTeX
17958 \begin_layout Standard
17962 \begin_layout Plain Layout
17972 \begin_inset Note Note
17975 \begin_layout Plain Layout
17976 The following section part will only be displayed when the \SpecialChar LaTeX
17989 \begin_layout Standard
17990 The table rows are colored with the command
17993 \begin_layout Standard
17998 rowcolors[commands]{row number}{odd row color}{even row color}
18001 \begin_layout Standard
18002 that is either inserted in the document preamble or as \SpecialChar TeX
18004 first table to be colored.
18006 \begin_inset space ~
18009 number is the number of the first row which should be colored according
18010 to the odd row color.
18011 commands can be additional commands that are executed before every table
18013 So for example the command
18016 \begin_layout Standard
18021 rowcolors{1}{white}{lightgray}
18024 \begin_layout Standard
18025 leads to the coloring scheme of Table
18026 \begin_inset space ~
18030 \begin_inset CommandInset ref
18032 reference "tab:Table-rowcolors"
18040 \begin_layout Standard
18047 hline]{1}{lightgray}{cyan}
18050 \begin_layout Standard
18051 leads to the coloring scheme of Table
18052 \begin_inset space ~
18056 \begin_inset CommandInset ref
18058 reference "tab:Table-rowcolors-2"
18064 \begin_inset space ~
18068 \begin_inset space ~
18072 \begin_inset space ~
18076 \begin_inset space ~
18079 color are left empty, no color will be used so that the command
18082 \begin_layout Standard
18090 \begin_layout Standard
18091 deletes all colors.
18098 affects all tables following that command.
18101 \begin_layout Standard
18105 \begin_layout Plain Layout
18109 rowcolors{1}{white}{lightgray}
18117 \begin_layout Standard
18118 \begin_inset Float table
18124 \begin_layout Plain Layout
18125 \begin_inset Caption Standard
18127 \begin_layout Plain Layout
18128 \begin_inset CommandInset label
18130 name "tab:Table-rowcolors"
18134 Table where every second row is colored light gray.
18142 \begin_layout Plain Layout
18144 \begin_inset Tabular
18145 <lyxtabular version="3" rows="4" columns="3">
18146 <features tabularvalignment="middle">
18147 <column alignment="center" valignment="top">
18148 <column alignment="center" valignment="top" width="0pt">
18149 <column alignment="center" valignment="top" width="0pt">
18151 <cell alignment="center" valignment="top" usebox="none">
18154 \begin_layout Plain Layout
18160 <cell alignment="center" valignment="top" usebox="none">
18163 \begin_layout Plain Layout
18169 <cell alignment="center" valignment="top" usebox="none">
18172 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" usebox="none">
18183 \begin_layout Plain Layout
18189 <cell alignment="center" valignment="top" usebox="none">
18192 \begin_layout Plain Layout
18198 <cell alignment="center" valignment="top" usebox="none">
18201 \begin_layout Plain Layout
18209 <cell alignment="center" valignment="top" usebox="none">
18212 \begin_layout Plain Layout
18218 <cell alignment="center" valignment="top" usebox="none">
18221 \begin_layout Plain Layout
18227 <cell alignment="center" valignment="top" usebox="none">
18230 \begin_layout Plain Layout
18238 <cell alignment="center" valignment="top" usebox="none">
18241 \begin_layout Plain Layout
18247 <cell alignment="center" valignment="top" usebox="none">
18250 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" usebox="none">
18259 \begin_layout Plain Layout
18278 \begin_layout Standard
18282 \begin_layout Plain Layout
18288 hline]{1}{lightgray}{cyan}
18296 \begin_layout Standard
18297 \begin_inset Float table
18303 \begin_layout Plain Layout
18304 \begin_inset Caption Standard
18306 \begin_layout Plain Layout
18307 \begin_inset CommandInset label
18309 name "tab:Table-rowcolors-2"
18313 Table where every second row is colored cyan and at which there is a line
18322 \begin_layout Plain Layout
18324 \begin_inset Tabular
18325 <lyxtabular version="3" rows="4" columns="3">
18326 <features tabularvalignment="middle">
18327 <column alignment="center" valignment="top">
18328 <column alignment="center" valignment="top">
18329 <column alignment="center" valignment="top" width="0pt">
18331 <cell alignment="center" valignment="top" usebox="none">
18334 \begin_layout Plain Layout
18340 <cell alignment="center" valignment="top" usebox="none">
18343 \begin_layout Plain Layout
18349 <cell alignment="center" valignment="top" usebox="none">
18352 \begin_layout Plain Layout
18360 <cell alignment="center" valignment="top" usebox="none">
18363 \begin_layout Plain Layout
18369 <cell alignment="center" valignment="top" usebox="none">
18372 \begin_layout Plain Layout
18378 <cell alignment="center" valignment="top" usebox="none">
18381 \begin_layout Plain Layout
18389 <cell alignment="center" valignment="top" usebox="none">
18392 \begin_layout Plain Layout
18398 <cell alignment="center" valignment="top" usebox="none">
18401 \begin_layout Plain Layout
18407 <cell alignment="center" valignment="top" usebox="none">
18410 \begin_layout Plain Layout
18418 <cell alignment="center" valignment="top" usebox="none">
18421 \begin_layout Plain Layout
18427 <cell alignment="center" valignment="top" usebox="none">
18430 \begin_layout Plain Layout
18436 <cell alignment="center" valignment="top" usebox="none">
18439 \begin_layout Plain Layout
18458 \begin_layout Standard
18462 \begin_layout Plain Layout
18472 \begin_inset Note Note
18475 \begin_layout Plain Layout
18476 turns off the row coloring
18484 \begin_layout Standard
18488 \begin_layout Plain Layout
18498 \begin_inset Note Note
18501 \begin_layout Plain Layout
18502 The following will be displayed when the \SpecialChar LaTeX
18515 \begin_layout Standard
18516 You need to install the package
18520 to see the content of this section in the output.
18523 \begin_layout Standard
18527 \begin_layout Plain Layout
18539 \begin_layout Subsection
18541 \begin_inset Index idx
18544 \begin_layout Plain Layout
18545 Table Color ! for Lines
18551 \begin_inset Index idx
18554 \begin_layout Plain Layout
18555 Color ! for Table Lines
18563 \begin_layout Standard
18564 As described in section
18565 \begin_inset space ~
18569 \begin_inset CommandInset ref
18571 reference "subsec:Line-Thickness"
18575 , the line thickness for all lines in a table can be adjusted with the length
18584 \begin_inset space \thinspace{}
18587 pt for all tables of this section.
18591 \begin_layout Plain Layout
18597 arrayrulewidth}{1.5pt}
18605 \begin_layout Standard
18606 To color vertical lines for example with green, create the following column
18607 format in the document preamble, according to the description in section
18608 \begin_inset space ~
18612 \begin_inset CommandInset ref
18614 reference "subsec:Customized-Format"
18621 \begin_layout Standard
18626 newcolumntype{W}{!{
18633 \begin_layout Standard
18635 \begin_inset space ~
18639 \begin_inset CommandInset ref
18641 reference "tab:Table-with-vertical-colored"
18645 the \SpecialChar LaTeX
18650 was used for the last column and
18654 for the other columns.
18657 \begin_layout Standard
18658 If you want to have several colors, define more column formats.
18661 \begin_layout Standard
18662 \begin_inset Float table
18668 \begin_layout Plain Layout
18669 \begin_inset Caption Standard
18671 \begin_layout Plain Layout
18672 \begin_inset CommandInset label
18674 name "tab:Table-with-vertical-colored"
18678 Table with colored vertical lines
18686 \begin_layout Plain Layout
18688 \begin_inset Tabular
18689 <lyxtabular version="3" rows="3" columns="3">
18690 <features tabularvalignment="middle">
18691 <column alignment="center" valignment="top" special="Wc">
18692 <column alignment="center" valignment="top" special="Wc">
18693 <column alignment="center" valignment="top" special="WcW">
18695 <cell alignment="center" valignment="top" topline="true" usebox="none">
18698 \begin_layout Plain Layout
18704 <cell alignment="center" valignment="top" topline="true" usebox="none">
18707 \begin_layout Plain Layout
18713 <cell alignment="center" valignment="top" topline="true" usebox="none">
18716 \begin_layout Plain Layout
18724 <cell alignment="center" valignment="top" topline="true" usebox="none">
18727 \begin_layout Plain Layout
18733 <cell alignment="center" valignment="top" topline="true" usebox="none">
18736 \begin_layout Plain Layout
18742 <cell alignment="center" valignment="top" topline="true" usebox="none">
18745 \begin_layout Plain Layout
18753 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18756 \begin_layout Plain Layout
18762 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18765 \begin_layout Plain Layout
18771 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18774 \begin_layout Plain Layout
18793 \begin_layout Standard
18794 \begin_inset VSpace bigskip
18797 To color horizontal lines for example with red, as in Table
18798 \begin_inset space ~
18802 \begin_inset CommandInset ref
18804 reference "tab:Table-with-horizontal-colored"
18808 , insert these commands in \SpecialChar TeX
18809 -Code before the table or table float:
18812 \begin_layout Standard
18822 \begin_inset Newline newline
18830 \begin_inset Newline newline
18834 \begin_inset Phantom HPhantom
18837 \begin_layout Plain Layout
18840 \begin_inset space ~
18850 arrayrulecolor{red}
18854 arrayrulecolor{black}}
18857 \begin_layout Standard
18861 \begin_layout Plain Layout
18872 \begin_layout Plain Layout
18881 \begin_layout Plain Layout
18885 arrayrulecolor{red}
18889 arrayrulecolor{black}}
18895 \begin_inset Float table
18901 \begin_layout Plain Layout
18902 \begin_inset Caption Standard
18904 \begin_layout Plain Layout
18905 \begin_inset CommandInset label
18907 name "tab:Table-with-horizontal-colored"
18911 Table with colored horizontal lines
18919 \begin_layout Plain Layout
18921 \begin_inset Tabular
18922 <lyxtabular version="3" rows="3" columns="3">
18923 <features tabularvalignment="middle">
18924 <column alignment="center" valignment="top">
18925 <column alignment="center" valignment="top">
18926 <column alignment="center" valignment="top">
18928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18940 \begin_layout Plain Layout
18946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18949 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18969 \begin_layout Plain Layout
18975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18978 \begin_layout Plain Layout
18986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18989 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18998 \begin_layout Plain Layout
19004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19007 \begin_layout Plain Layout
19026 \begin_layout Standard
19027 To return to the default line color black, insert this command in \SpecialChar TeX
19029 after the table or table float:
19032 \begin_layout Standard
19044 \begin_layout Standard
19046 \begin_inset space ~
19050 \begin_inset CommandInset ref
19052 reference "tab:Table-with-colored"
19056 is an example with colored vertical and horizontal lines.
19059 \begin_layout Standard
19060 \begin_inset Float table
19066 \begin_layout Plain Layout
19067 \begin_inset Caption Standard
19069 \begin_layout Plain Layout
19070 \begin_inset CommandInset label
19072 name "tab:Table-with-colored"
19076 Table with colored lines
19084 \begin_layout Plain Layout
19086 \begin_inset Tabular
19087 <lyxtabular version="3" rows="3" columns="3">
19088 <features tabularvalignment="middle">
19089 <column alignment="center" valignment="top" special="Wc">
19090 <column alignment="center" valignment="top" special="Wc">
19091 <column alignment="center" valignment="top" special="WcW">
19093 <cell alignment="center" valignment="top" topline="true" usebox="none">
19096 \begin_layout Plain Layout
19102 <cell alignment="center" valignment="top" topline="true" usebox="none">
19105 \begin_layout Plain Layout
19111 <cell alignment="center" valignment="top" topline="true" usebox="none">
19114 \begin_layout Plain Layout
19122 <cell alignment="center" valignment="top" topline="true" usebox="none">
19125 \begin_layout Plain Layout
19131 <cell alignment="center" valignment="top" topline="true" usebox="none">
19134 \begin_layout Plain Layout
19140 <cell alignment="center" valignment="top" topline="true" usebox="none">
19143 \begin_layout Plain Layout
19150 <row topspace="default">
19151 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19154 \begin_layout Plain Layout
19160 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19163 \begin_layout Plain Layout
19169 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19172 \begin_layout Plain Layout
19191 \begin_layout Standard
19195 \begin_layout Plain Layout
19211 \begin_layout Standard
19215 \begin_layout Plain Layout
19221 arrayrulewidth}{0.4pt}
19229 \begin_layout Section
19230 Rotated Table Cells
19231 \begin_inset CommandInset label
19233 name "sec:Rotated-Table-Cells"
19238 \begin_inset Index idx
19241 \begin_layout Plain Layout
19242 Table ! Rotated Cells
19248 \begin_inset Index idx
19251 \begin_layout Plain Layout
19260 \begin_layout Standard
19261 \begin_inset Note Greyedout
19264 \begin_layout Plain Layout
19269 Not all DVI-viewers are able to display rotations.
19277 \begin_layout Standard
19279 \begin_inset space ~
19283 \begin_inset CommandInset ref
19285 reference "tab:Table-with-rotated-multi"
19289 is an example where 3
19290 \begin_inset space ~
19293 cells were rotated by 45
19294 \begin_inset space \thinspace{}
19300 \begin_layout Standard
19301 \begin_inset Float table
19307 \begin_layout Plain Layout
19308 \begin_inset Caption Standard
19310 \begin_layout Plain Layout
19311 \begin_inset CommandInset label
19313 name "tab:Table-with-rotated"
19317 Table with rotated cells in the first row.
19325 \begin_layout Plain Layout
19328 \begin_inset Tabular
19329 <lyxtabular version="3" rows="2" columns="3">
19330 <features tabularvalignment="middle">
19331 <column alignment="center" valignment="top" width="0pt">
19332 <column alignment="center" valignment="top" width="0pt">
19333 <column alignment="center" valignment="top" width="0pt">
19335 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19338 \begin_layout Plain Layout
19344 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19347 \begin_layout Plain Layout
19353 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19356 \begin_layout Plain Layout
19364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19367 \begin_layout Plain Layout
19373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19376 \begin_layout Plain Layout
19382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19385 \begin_layout Plain Layout
19404 \begin_layout Standard
19405 \begin_inset Note Greyedout
19408 \begin_layout Plain Layout
19413 Line breaks (shortcut
19416 arg "newline-insert newline"
19419 ) are not allowed in rotated cells.
19427 \begin_layout Standard
19428 If you want to rotate table cells containing line breaks, you have to put
19429 the cell content into a minipage or a parbox.
19433 \begin_layout Plain Layout
19434 For more about these boxes see sec.
19435 \begin_inset space \thinspace{}
19439 \begin_inset CommandInset ref
19441 reference "sec:Minipages"
19446 \begin_inset CommandInset ref
19448 reference "sec:Parboxes"
19457 If you rotate this cell by 90
19458 \begin_inset space \thinspace{}
19461 ° the width of the box is the height of the cell.
19463 \begin_inset space ~
19467 \begin_inset CommandInset ref
19469 reference "tab:Table-with-rotated-multi"
19473 is an example for a rotated multiline cell where the box width was set
19475 \begin_inset space \thinspace{}
19481 \begin_layout Standard
19482 \begin_inset Float table
19487 \begin_layout Plain Layout
19488 \begin_inset Caption Standard
19490 \begin_layout Plain Layout
19491 \begin_inset CommandInset label
19493 name "tab:Table-with-rotated-multi"
19497 Table with rotated multiline cell.
19505 \begin_layout Plain Layout
19508 \begin_inset Tabular
19509 <lyxtabular version="3" rows="2" columns="3">
19510 <features tabularvalignment="middle">
19511 <column alignment="center" valignment="top">
19512 <column alignment="center" valignment="top" width="0pt">
19513 <column alignment="center" valignment="top">
19515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19518 \begin_layout Plain Layout
19524 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19527 \begin_layout Plain Layout
19528 \begin_inset Box Frameless
19538 height_special "totalheight"
19543 backgroundcolor "none"
19546 \begin_layout Plain Layout
19548 \begin_inset Newline newline
19561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19564 \begin_layout Plain Layout
19572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19575 \begin_layout Plain Layout
19581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19584 \begin_layout Plain Layout
19590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19593 \begin_layout Plain Layout
19612 \begin_layout Section
19613 Table Width Calculation
19614 \begin_inset CommandInset label
19616 name "sec:Table-Width-Calculation"
19623 \begin_layout Standard
19624 For wide tables it is sometimes difficult to assure that the table does
19625 not protrude over the page margin.
19626 Setting a fixed width for every column of the table is the solution, but
19627 what amount of space is needed for each column?
19630 \begin_layout Standard
19632 \begin_inset Formula $W_{\mathrm{table}}$
19635 can be calculated: Every column has the width of the specified column width
19637 \begin_inset Formula $W_{\mathrm{column}}$
19640 (that the content of the column can consume) plus two times the separation
19641 between the column content and the column border (\SpecialChar LaTeX
19649 \begin_inset space \thinspace{}
19652 pt) plus the width of a border line (\SpecialChar LaTeX
19660 \begin_inset space \thinspace{}
19664 \begin_inset Formula $n$
19668 \begin_inset space ~
19671 columns have the same width, the table width is
19672 \begin_inset Formula
19674 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19682 \begin_layout Standard
19683 The available width for a table is the space between the page margins or
19684 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19692 If all table columns should have the same width and
19693 \begin_inset Formula $W_{\mathrm{table}}$
19697 \begin_inset space \thinspace{}
19703 \begin_inset Formula $W_{\mathrm{column}}$
19706 can easily be calculated.
19709 \begin_layout Standard
19710 To be able to perform calculations you need to load the \SpecialChar LaTeX
19716 \begin_inset Index idx
19719 \begin_layout Plain Layout
19726 in the document preamble.
19727 To set the width in the table dialog you have to use the field
19733 The command scheme for this field is the same that is explained in section
19734 \begin_inset space ~
19738 \begin_inset CommandInset ref
19740 reference "subsec:Multicolumn-Calculations"
19746 \begin_inset space \thinspace{}
19749 columns with an uniform width and centered text, enter there for each column
19753 \begin_layout Standard
19760 columnwidth-62.4pt)/5}
19763 \begin_layout Standard
19765 \begin_inset space \thinspace{}
19768 columns where 2 should have 0.75
19769 \begin_inset space ~
19772 times the width than the 3 others, the calculation is
19773 \begin_inset Formula
19775 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19776 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19777 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19778 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19786 \begin_layout Standard
19787 In the table therefore the command
19790 \begin_layout Standard
19797 columnwidth-62.4pt)/
19802 \begin_layout Standard
19803 is used for the wider columns and
19806 \begin_layout Standard
19813 columnwidth-62.4pt)/
19820 \begin_layout Standard
19821 for the smaller ones:
19824 \begin_layout Standard
19825 \begin_inset Tabular
19826 <lyxtabular version="3" rows="2" columns="5">
19827 <features tabularvalignment="middle">
19828 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19829 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19830 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19831 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19832 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19837 \begin_layout Plain Layout
19843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19846 \begin_layout Plain Layout
19852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19855 \begin_layout Plain Layout
19861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19864 \begin_layout Plain Layout
19870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19873 \begin_layout Plain Layout
19881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19884 \begin_layout Plain Layout
19885 111111 1111111 111111 111111111 11111 11111 1111
19890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19893 \begin_layout Plain Layout
19899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19902 \begin_layout Plain Layout
19903 2222 22222 222222 222222222 2222222 22 22222
19908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19911 \begin_layout Plain Layout
19917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19920 \begin_layout Plain Layout
19921 333333 333333 333333 33333 3333333 333
19934 \begin_layout Section
19935 Table Customization
19936 \begin_inset Index idx
19939 \begin_layout Plain Layout
19940 Table Customization
19946 \begin_inset Index idx
19949 \begin_layout Plain Layout
19950 Table ! Customization
19958 \begin_layout Subsection
19960 \begin_inset CommandInset label
19962 name "subsec:Row-Spacing"
19967 \begin_inset Index idx
19970 \begin_layout Plain Layout
19971 Table Customization ! Row Spacing
19979 \begin_layout Standard
19980 You can add vertical space to table rows in the
19984 tab of the table dialog.
19985 You find there three possibilities:
19988 \begin_layout Description
19990 \begin_inset space ~
19994 \begin_inset space ~
19997 row will add space above the characters of the table row.
19998 If the table is a formal table
20002 \begin_layout Plain Layout
20003 Formal tables are explained in section
20004 \begin_inset space ~
20008 \begin_inset CommandInset ref
20010 reference "sec:Formal-Tables"
20020 will insert as default 0.5
20021 \begin_inset space \thinspace{}
20025 For normal tables the inserted space will unfortunately destroy the vertical
20026 table lines as in the following table:
20027 \begin_inset VSpace medskip
20031 \begin_inset Newline newline
20035 \begin_inset space \hspace*{}
20040 \begin_inset space \hfill{}
20044 \begin_inset Tabular
20045 <lyxtabular version="3" rows="3" columns="1">
20046 <features tabularvalignment="middle">
20047 <column alignment="center" valignment="top">
20049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20052 \begin_layout Plain Layout
20059 <row topspace="3mm">
20060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20063 \begin_layout Plain Layout
20065 \begin_inset space \thinspace{}
20068 mm space top of row
20075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20078 \begin_layout Plain Layout
20090 \begin_inset space \hfill{}
20094 \begin_inset space \hspace*{}
20099 \begin_inset VSpace medskip
20103 \begin_inset Newline newline
20106 So inserting space in the top of row for normal tables is only useful when
20107 you don't have vertical lines.
20110 \begin_layout Description
20112 \begin_inset space ~
20116 \begin_inset space ~
20119 row will add space below the characters of the table row.
20120 If the table is a formal table \SpecialChar LyX
20121 will insert as default 0.5
20122 \begin_inset space \thinspace{}
20125 em space, for normal tables the default size is 2
20126 \begin_inset space \thinspace{}
20132 \begin_layout Description
20134 \begin_inset space ~
20137 rows adds space between the current and the following row.
20138 If the table is a formal table \SpecialChar LyX
20139 will insert as default 0.5
20140 \begin_inset space \thinspace{}
20144 For normal tables the inserted space will unfortunately destroy the vertical
20145 table lines as in the following table:
20146 \begin_inset VSpace medskip
20150 \begin_inset Newline newline
20154 \begin_inset space \hspace*{}
20159 \begin_inset space \hfill{}
20163 \begin_inset Tabular
20164 <lyxtabular version="3" rows="3" columns="1">
20165 <features tabularvalignment="middle">
20166 <column alignment="center" valignment="top">
20168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20171 \begin_layout Plain Layout
20178 <row interlinespace="3mm">
20179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20182 \begin_layout Plain Layout
20183 \begin_inset Formula $\downarrow$
20187 \begin_inset space \thinspace{}
20190 mm space between row
20191 \begin_inset Formula $\downarrow$
20201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20204 \begin_layout Plain Layout
20205 \begin_inset Formula $\uparrow$
20209 \begin_inset space \thinspace{}
20212 mm space between row
20213 \begin_inset Formula $\uparrow$
20227 \begin_inset space \hfill{}
20231 \begin_inset space \hspace*{}
20236 \begin_inset VSpace medskip
20240 \begin_inset Newline newline
20243 So inserting space between rows for normal tables is only useful when you
20244 don't have vertical lines.
20247 \begin_layout Standard
20248 \begin_inset VSpace bigskip
20251 When you want to add extra height to all cells of all tables, you can do
20252 this with the following preamble lines:
20255 \begin_layout Standard
20260 @ifundefined{extrarowheight}
20261 \begin_inset Newline newline
20265 \begin_inset Phantom HPhantom
20268 \begin_layout Plain Layout
20271 \begin_inset space ~
20281 usepackage{array}}{}
20282 \begin_inset Newline newline
20289 extrarowheight}{height}
20292 \begin_layout Standard
20293 But this has the disadvantage that the cell texts are no longer exactly
20294 vertically centered.
20299 will be loaded automatically by \SpecialChar LyX
20300 when you use self defined table formats.
20301 To avoid that it being loaded twice the command
20307 is used in the above command.)
20310 \begin_layout Standard
20311 If you are using font sizes larger than the normal size, the table borders
20312 are often too close to the letters.
20313 This can be corrected by inserting the command
20319 in \SpecialChar TeX
20320 -Code at the beginning of a table row.
20322 \begin_inset space ~
20326 \begin_inset CommandInset ref
20328 reference "tab:Vertical-alignment-of"
20332 illustrates the effect.
20335 \begin_layout Standard
20337 \begin_inset Float table
20343 \begin_layout Plain Layout
20344 \begin_inset Caption Standard
20346 \begin_layout Plain Layout
20347 \begin_inset CommandInset label
20349 name "tab:Vertical-alignment-of"
20353 Vertical alignment of text with large font sizes.
20361 \begin_layout Plain Layout
20362 \begin_inset space \hfill{}
20366 \begin_inset Float table
20371 \begin_layout Plain Layout
20372 \begin_inset Caption Standard
20374 \begin_layout Plain Layout
20383 \begin_layout Plain Layout
20386 \begin_inset Tabular
20387 <lyxtabular version="3" rows="6" columns="1">
20388 <features tabularvalignment="middle">
20389 <column alignment="left" valignment="top">
20391 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20394 \begin_layout Plain Layout
20402 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20405 \begin_layout Plain Layout
20415 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20418 \begin_layout Plain Layout
20428 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20431 \begin_layout Plain Layout
20441 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20444 \begin_layout Plain Layout
20454 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20457 \begin_layout Plain Layout
20476 \begin_inset space \hfill{}
20480 \begin_inset Float table
20485 \begin_layout Plain Layout
20486 \begin_inset Caption Standard
20488 \begin_layout Plain Layout
20489 Table using the command
20503 \begin_layout Plain Layout
20506 \begin_inset Tabular
20507 <lyxtabular version="3" rows="6" columns="1">
20508 <features tabularvalignment="middle">
20509 <column alignment="left" valignment="top">
20511 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20514 \begin_layout Plain Layout
20522 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20525 \begin_layout Plain Layout
20531 \begin_layout Plain Layout
20547 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20550 \begin_layout Plain Layout
20556 \begin_layout Plain Layout
20572 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20575 \begin_layout Plain Layout
20581 \begin_layout Plain Layout
20597 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20600 \begin_layout Plain Layout
20606 \begin_layout Plain Layout
20622 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20625 \begin_layout Plain Layout
20631 \begin_layout Plain Layout
20658 \begin_inset space \hfill{}
20669 \begin_layout Subsection
20670 Special Cell Alignment
20671 \begin_inset CommandInset label
20673 name "subsec:Special-Cell-Alignment"
20678 \begin_inset Index idx
20681 \begin_layout Plain Layout
20682 Table Customization ! Special Cell Alignment
20690 \begin_layout Standard
20691 Sometimes it looks better when the cell entries of a column are aligned
20692 with a special character, e.
20693 \begin_inset space \thinspace{}
20697 \begin_inset space \space{}
20700 with the decimal separator as in Table
20701 \begin_inset space ~
20705 \begin_inset CommandInset ref
20707 reference "tab:Table-cells-align"
20712 This alignment is achieved by setting the cursor into the column and then
20713 either pressing the toolbar button
20716 arg "inset-modify tabular align-decimal"
20719 or setting the alignment in the table settings to
20722 \begin_inset space ~
20726 \begin_inset space ~
20732 The alignment character can be a character of your choice and is specified
20733 in the table settings.
20736 \begin_layout Standard
20737 \begin_inset Float table
20743 \begin_layout Plain Layout
20744 \begin_inset Caption Standard
20746 \begin_layout Plain Layout
20747 \begin_inset CommandInset label
20749 name "tab:Table-cells-align"
20753 Table cells of a column aligned with the decimal separator.
20761 \begin_layout Plain Layout
20763 \begin_inset Tabular
20764 <lyxtabular version="3" rows="4" columns="1">
20765 <features booktabs="true" tabularvalignment="middle">
20766 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20771 \begin_layout Plain Layout
20779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20782 \begin_layout Plain Layout
20790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20793 \begin_layout Plain Layout
20801 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20804 \begin_layout Plain Layout
20823 \begin_layout Standard
20824 \begin_inset Float table
20830 \begin_layout Plain Layout
20831 \begin_inset Caption Standard
20833 \begin_layout Plain Layout
20834 \begin_inset CommandInset label
20836 name "tab:Table-align-operator"
20840 Table cells of a column aligned with the operators.
20848 \begin_layout Plain Layout
20850 \begin_inset Tabular
20851 <lyxtabular version="3" rows="4" columns="2">
20852 <features booktabs="true" tabularvalignment="middle">
20853 <column alignment="right" valignment="top" width="0pt">
20854 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20856 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20859 \begin_layout Plain Layout
20865 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20868 \begin_layout Plain Layout
20876 <cell alignment="center" valignment="top" usebox="none">
20879 \begin_layout Plain Layout
20880 \begin_inset Formula $12\,+$
20888 <cell alignment="center" valignment="top" usebox="none">
20891 \begin_layout Plain Layout
20892 \begin_inset Formula $\,6$
20902 <cell alignment="center" valignment="top" usebox="none">
20905 \begin_layout Plain Layout
20906 \begin_inset Formula $0\,-$
20914 <cell alignment="center" valignment="top" usebox="none">
20917 \begin_layout Plain Layout
20918 \begin_inset Formula $\,68$
20928 <cell alignment="center" valignment="top" usebox="none">
20931 \begin_layout Plain Layout
20932 \begin_inset Formula $-123\,/$
20940 <cell alignment="center" valignment="top" usebox="none">
20943 \begin_layout Plain Layout
20944 \begin_inset Formula $\,0$
20965 \begin_layout Standard
20966 For alignments at characters in formulas this method does not work because
20967 the field to specify the alignment character does not allow formulas.
20968 In this case one need to use the method from Table
20969 \begin_inset space ~
20973 \begin_inset CommandInset ref
20975 reference "tab:Table-align-operator"
20980 This table was created with a 4×2 table.
20981 The heading is a centered multicolumn.
20982 The first column is right-aligned and contains the first part including
20984 The second column is left aligned and contains the rest.
20985 A small space was added at the beginning of each cell of the second column
20986 to get the space that is usually around operators.
20987 To omit the space that is normally between two table columns, the following
20989 -argument was used for the second column:
20992 \begin_layout Standard
20998 \begin_layout Standard
21000 \begin_inset space ~
21004 \begin_inset CommandInset ref
21006 reference "tab:Several-table-cell"
21010 shows some example alignments.
21011 For the alignment with the relation sign, a small space was added like
21012 for the second column of Table
21013 \begin_inset space ~
21017 \begin_inset CommandInset ref
21019 reference "tab:Table-align-operator"
21026 \begin_layout Standard
21027 \begin_inset Float table
21033 \begin_layout Plain Layout
21034 \begin_inset Caption Standard
21036 \begin_layout Plain Layout
21037 \begin_inset CommandInset label
21039 name "tab:Several-table-cell"
21043 Several table cell alignments.
21051 \begin_layout Plain Layout
21053 \begin_inset Tabular
21054 <lyxtabular version="3" rows="4" columns="6">
21055 <features tabularvalignment="middle">
21056 <column alignment="right" valignment="top">
21057 <column alignment="left" valignment="top" special="@{}l">
21058 <column alignment="right" valignment="top">
21059 <column alignment="left" valignment="top" special="@{}l">
21060 <column alignment="right" valignment="top">
21061 <column alignment="left" valignment="top" special="@{}l">
21063 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21066 \begin_layout Plain Layout
21072 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21075 \begin_layout Plain Layout
21081 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21084 \begin_layout Plain Layout
21090 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21093 \begin_layout Plain Layout
21099 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21102 \begin_layout Plain Layout
21108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21111 \begin_layout Plain Layout
21119 <cell alignment="center" valignment="top" usebox="none">
21122 \begin_layout Plain Layout
21128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21131 \begin_layout Plain Layout
21133 \begin_inset space \thinspace{}
21141 <cell alignment="center" valignment="top" usebox="none">
21144 \begin_layout Plain Layout
21145 \begin_inset Formula $10\cdot$
21153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21156 \begin_layout Plain Layout
21157 \begin_inset Formula $10^{\mbox{-}17}$
21165 <cell alignment="center" valignment="top" usebox="none">
21168 \begin_layout Plain Layout
21169 \begin_inset Formula $\Gamma(t)\propto$
21177 <cell alignment="center" valignment="top" usebox="none">
21180 \begin_layout Plain Layout
21181 \begin_inset Formula $\:\Upsilon(t)$
21191 <cell alignment="center" valignment="top" usebox="none">
21194 \begin_layout Plain Layout
21200 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21203 \begin_layout Plain Layout
21205 \begin_inset space \thinspace{}
21213 <cell alignment="center" valignment="top" usebox="none">
21216 \begin_layout Plain Layout
21217 \begin_inset Formula $5.78\cdot$
21225 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21228 \begin_layout Plain Layout
21229 \begin_inset Formula $10^{7}$
21237 <cell alignment="center" valignment="top" usebox="none">
21240 \begin_layout Plain Layout
21241 \begin_inset Formula $A\ne$
21249 <cell alignment="center" valignment="top" usebox="none">
21252 \begin_layout Plain Layout
21253 \begin_inset Formula $\:B_{\mathrm{red}}$
21263 <cell alignment="center" valignment="top" usebox="none">
21266 \begin_layout Plain Layout
21272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21275 \begin_layout Plain Layout
21277 \begin_inset space \thinspace{}
21285 <cell alignment="center" valignment="top" usebox="none">
21288 \begin_layout Plain Layout
21290 \begin_inset Formula $33.5\cdot$
21298 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21301 \begin_layout Plain Layout
21302 \begin_inset Formula $10^{4}$
21310 <cell alignment="center" valignment="top" usebox="none">
21313 \begin_layout Plain Layout
21314 \begin_inset Formula $\sin(\alpha)\ge$
21322 <cell alignment="center" valignment="top" usebox="none">
21325 \begin_layout Plain Layout
21326 \begin_inset Formula $\:\sin(\beta)$
21347 \begin_layout Subsection
21348 Customized Cell/Column Format
21349 \begin_inset CommandInset label
21351 name "subsec:Customized-Format"
21356 \begin_inset Index idx
21359 \begin_layout Plain Layout
21360 Table Customization ! Cell/Column Format
21368 \begin_layout Standard
21369 Calculating the required width for normal columns as described in section
21370 \begin_inset space ~
21374 \begin_inset CommandInset ref
21376 reference "sec:Table-Width-Calculation"
21380 or for spanned columns as described in section
21381 \begin_inset space ~
21385 \begin_inset CommandInset ref
21387 reference "subsec:Multicolumn-Calculations"
21391 is very annoying if you have several tables where a calculation is necessary.
21392 To make life easier, you can define a cell/column format in the preamble,
21393 that can be used in all tables of the document.
21394 The format is defined with the command
21397 \begin_layout Standard
21402 newcolumntype{name of format}[number of arguments]{commands}
21405 \begin_layout Standard
21406 The format name may only consist of one letter.
21431 are predefined and cannot be used.
21432 But all letters are allowed as capitals.
21435 \begin_layout Standard
21436 \begin_inset VSpace medskip
21442 \begin_layout Standard
21443 For vertically and horizontally centered multicolumn cells with a fixed
21444 width you can define the cell format
21447 \begin_layout Standard
21452 newcolumntype{M}[1]{>{
21459 \begin_layout Standard
21466 avoids the problem of hyphenating the first word, as described in section
21467 \begin_inset space ~
21471 \begin_inset CommandInset ref
21473 reference "subsec:Multiple-Lines-in"
21478 Now you can simply enter
21481 \begin_layout Standard
21487 \begin_layout Standard
21493 in the table dialog to create a multicolumn.
21496 \begin_layout Standard
21497 \begin_inset VSpace bigskip
21503 \begin_layout Standard
21504 For cells spanned by a multicolumn cell, you can define the format
21507 \begin_layout Standard
21512 newcolumntype{S}[2]{>{
21517 \begin_inset Newline newline
21521 \begin_inset Phantom HPhantom
21524 \begin_layout Plain Layout
21538 arrayrulewidth)*(1-#2))/#2}}
21541 \begin_layout Standard
21542 This format uses equation
21543 \begin_inset CommandInset ref
21549 to calculate the required width so that each spanned cell has the same
21553 \begin_layout Standard
21557 \begin_layout Standard
21560 S{width of multicolumn cell}{number of spanned columns}
21563 \begin_layout Standard
21564 as \SpecialChar LaTeX
21565 -argument of the column.
21568 \begin_layout Standard
21569 \begin_inset VSpace bigskip
21575 \begin_layout Standard
21576 For colored columns, you can define
21579 \begin_layout Standard
21584 newcolumntype{K}[1]{>{
21591 \begin_layout Standard
21593 \begin_inset Quotes eld
21597 \begin_inset Quotes erd
21600 at the end creates a column with a flexible width whose text is horizontally
21605 \begin_layout Standard
21611 \begin_layout Standard
21612 as \SpecialChar LaTeX
21616 \begin_layout Standard
21617 \begin_inset VSpace bigskip
21623 \begin_layout Standard
21625 \begin_inset space ~
21629 \begin_inset CommandInset ref
21631 reference "tab:Table-using-user-defined"
21635 use the \SpecialChar LaTeX
21639 \begin_layout Standard
21645 \begin_layout Standard
21646 for the first column and the multicolumn,
21649 \begin_layout Standard
21655 \begin_layout Standard
21656 for the last column, and
21659 \begin_layout Standard
21665 \begin_layout Standard
21666 for the cells in the second column.
21669 \begin_layout Standard
21670 \begin_inset Float table
21676 \begin_layout Plain Layout
21677 \begin_inset Caption Standard
21679 \begin_layout Plain Layout
21680 \begin_inset CommandInset label
21682 name "tab:Table-using-user-defined"
21686 Table using user-defined table formats
21694 \begin_layout Plain Layout
21696 \begin_inset Tabular
21697 <lyxtabular version="3" rows="3" columns="4">
21698 <features tabularvalignment="middle">
21699 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21700 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21701 <column alignment="center" valignment="middle">
21702 <column alignment="center" valignment="middle" special="K{red}">
21704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21707 \begin_layout Plain Layout
21708 verylongtablecellword
21713 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21716 \begin_layout Plain Layout
21717 multiple lines multicolumn
21722 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21725 \begin_layout Plain Layout
21731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21734 \begin_layout Plain Layout
21742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21745 \begin_layout Plain Layout
21751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21754 \begin_layout Plain Layout
21760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21763 \begin_layout Plain Layout
21769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21772 \begin_layout Plain Layout
21780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21783 \begin_layout Plain Layout
21789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21792 \begin_layout Plain Layout
21798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21801 \begin_layout Plain Layout
21807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21810 \begin_layout Plain Layout
21829 \begin_layout Subsection
21831 \begin_inset CommandInset label
21833 name "subsec:Line-Thickness"
21838 \begin_inset Index idx
21841 \begin_layout Plain Layout
21842 Table Customization ! Line Thickness
21850 \begin_layout Standard
21851 The line thickness for all lines in a table can be adjusted with the length
21859 To set for example a line thickness of 1.5
21860 \begin_inset space \thinspace{}
21864 \begin_inset space ~
21868 \begin_inset CommandInset ref
21870 reference "tab:Table-with-1.5"
21874 , insert the command
21877 \begin_layout Standard
21884 arrayrulewidth}{1.5pt}
21887 \begin_layout Standard
21888 in \SpecialChar TeX
21889 -Code before the table or table float.
21890 The changed thickness is valid for all subsequent tables.
21891 To use the default value again, set
21898 \begin_inset space \thinspace{}
21901 pt in \SpecialChar TeX
21902 -Code after the table or table float.
21905 \begin_layout Standard
21909 \begin_layout Plain Layout
21915 arrayrulewidth}{1.5pt}
21921 \begin_inset Float table
21926 \begin_layout Plain Layout
21927 \begin_inset Caption Standard
21929 \begin_layout Plain Layout
21930 \begin_inset CommandInset label
21932 name "tab:Table-with-1.5"
21937 \begin_inset space \thinspace{}
21948 \begin_layout Plain Layout
21950 \begin_inset Tabular
21951 <lyxtabular version="3" rows="3" columns="3">
21952 <features tabularvalignment="middle">
21953 <column alignment="center" valignment="top">
21954 <column alignment="center" valignment="top">
21955 <column alignment="center" valignment="top">
21957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21960 \begin_layout Plain Layout
21966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21969 \begin_layout Plain Layout
21975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21978 \begin_layout Plain Layout
21986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21989 \begin_layout Plain Layout
21995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21998 \begin_layout Plain Layout
22004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22007 \begin_layout Plain Layout
22015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22018 \begin_layout Plain Layout
22024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22027 \begin_layout Plain Layout
22033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22036 \begin_layout Plain Layout
22056 \begin_layout Plain Layout
22062 arrayrulewidth}{0.4pt}
22070 \begin_layout Standard
22071 \begin_inset VSpace bigskip
22074 To set the line thickness to 1.5
22075 \begin_inset space \thinspace{}
22078 pt only for horizontal lines, as in Table
22079 \begin_inset space ~
22083 \begin_inset CommandInset ref
22085 reference "tab:Table-with-horizontal"
22089 , insert these commands in \SpecialChar TeX
22090 -Code before the table or table float:
22093 \begin_layout Standard
22103 \begin_inset Newline newline
22111 \begin_inset Newline newline
22120 arrayrulewidth 1.5pt}
22121 \begin_inset Newline newline
22132 arrayrulewidth 0.4pt}}
22135 \begin_layout Standard
22136 To return to the default line thickness, insert this command in \SpecialChar TeX
22138 the table or table float:
22141 \begin_layout Standard
22153 \begin_layout Standard
22157 \begin_layout Plain Layout
22168 \begin_layout Plain Layout
22177 \begin_layout Plain Layout
22185 arrayrulewidth 1.5pt}
22188 \begin_layout Plain Layout
22198 arrayrulewidth 0.4pt}}
22204 \begin_inset Float table
22209 \begin_layout Plain Layout
22210 \begin_inset Caption Standard
22212 \begin_layout Plain Layout
22213 \begin_inset CommandInset label
22215 name "tab:Table-with-horizontal"
22220 \begin_inset space \thinspace{}
22223 pt thick horizontal lines
22231 \begin_layout Plain Layout
22233 \begin_inset Tabular
22234 <lyxtabular version="3" rows="3" columns="3">
22235 <features tabularvalignment="middle">
22236 <column alignment="center" valignment="top">
22237 <column alignment="center" valignment="top">
22238 <column alignment="center" valignment="top">
22240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22243 \begin_layout Plain Layout
22249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22252 \begin_layout Plain Layout
22258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22261 \begin_layout Plain Layout
22269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22272 \begin_layout Plain Layout
22278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22281 \begin_layout Plain Layout
22287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22290 \begin_layout Plain Layout
22298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22301 \begin_layout Plain Layout
22307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22310 \begin_layout Plain Layout
22316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22319 \begin_layout Plain Layout
22339 \begin_layout Plain Layout
22355 \begin_layout Standard
22356 \begin_inset VSpace bigskip
22359 To set the line thickness to 1.5
22360 \begin_inset space \thinspace{}
22363 pt only for vertical lines, create the following column format in the document
22364 preamble, according to the description in section
22365 \begin_inset space ~
22369 \begin_inset CommandInset ref
22371 reference "subsec:Customized-Format"
22378 \begin_layout Standard
22383 newcolumntype{V}{!{
22385 vrule width 1.5pt}}
22388 \begin_layout Standard
22390 \begin_inset space ~
22394 \begin_inset CommandInset ref
22396 reference "tab:Table-with-vertical"
22400 the \SpecialChar LaTeX
22404 \begin_layout Standard
22410 \begin_layout Standard
22411 was used for the last column and
22414 \begin_layout Standard
22420 \begin_layout Standard
22421 for the other columns.
22424 \begin_layout Standard
22425 \begin_inset Float table
22430 \begin_layout Plain Layout
22431 \begin_inset Caption Standard
22433 \begin_layout Plain Layout
22434 \begin_inset CommandInset label
22436 name "tab:Table-with-vertical"
22441 \begin_inset space \thinspace{}
22444 pt thick vertical lines
22452 \begin_layout Plain Layout
22454 \begin_inset Tabular
22455 <lyxtabular version="3" rows="3" columns="3">
22456 <features tabularvalignment="middle">
22457 <column alignment="center" valignment="top" special="Vc">
22458 <column alignment="center" valignment="top" special="Vc">
22459 <column alignment="center" valignment="top" special="VcV">
22461 <cell alignment="center" valignment="top" topline="true" usebox="none">
22464 \begin_layout Plain Layout
22470 <cell alignment="center" valignment="top" topline="true" usebox="none">
22473 \begin_layout Plain Layout
22479 <cell alignment="center" valignment="top" topline="true" usebox="none">
22482 \begin_layout Plain Layout
22490 <cell alignment="center" valignment="top" topline="true" usebox="none">
22493 \begin_layout Plain Layout
22499 <cell alignment="center" valignment="top" topline="true" usebox="none">
22502 \begin_layout Plain Layout
22508 <cell alignment="center" valignment="top" topline="true" usebox="none">
22511 \begin_layout Plain Layout
22519 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22522 \begin_layout Plain Layout
22528 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22531 \begin_layout Plain Layout
22537 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22540 \begin_layout Plain Layout
22559 \begin_layout Subsection
22561 \begin_inset Index idx
22564 \begin_layout Plain Layout
22565 Table Customization ! Dashed Lines
22573 \begin_layout Standard
22577 \begin_layout Plain Layout
22587 \begin_inset Note Note
22590 \begin_layout Plain Layout
22591 The following section will only be displayed when the \SpecialChar LaTeX
22604 \begin_layout Standard
22605 \begin_inset Float table
22611 \begin_layout Plain Layout
22612 \begin_inset Caption Standard
22614 \begin_layout Plain Layout
22615 \begin_inset CommandInset label
22617 name "tab:Table-with-dashed"
22621 Table with dashed lines
22629 \begin_layout Plain Layout
22631 \begin_inset Tabular
22632 <lyxtabular version="3" rows="5" columns="5">
22633 <features tabularvalignment="middle">
22634 <column alignment="center" valignment="top">
22635 <column alignment="center" valignment="top">
22636 <column alignment="center" valignment="top" special=":c">
22637 <column alignment="center" valignment="top">
22638 <column alignment="center" valignment="top">
22640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22643 \begin_layout Plain Layout
22649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22652 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22661 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22679 \begin_layout Plain Layout
22687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22690 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22699 \begin_layout Plain Layout
22705 <cell alignment="center" valignment="top" topline="true" usebox="none">
22708 \begin_layout Plain Layout
22714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22717 \begin_layout Plain Layout
22723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22726 \begin_layout Plain Layout
22734 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22737 \begin_layout Plain Layout
22741 \begin_layout Plain Layout
22755 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22785 \begin_layout Plain Layout
22793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22796 \begin_layout Plain Layout
22800 \begin_layout Plain Layout
22814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22817 \begin_layout Plain Layout
22823 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22826 \begin_layout Plain Layout
22832 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22835 \begin_layout Plain Layout
22841 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22844 \begin_layout Plain Layout
22852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22855 \begin_layout Plain Layout
22861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22864 \begin_layout Plain Layout
22870 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22873 \begin_layout Plain Layout
22879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22882 \begin_layout Plain Layout
22888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22891 \begin_layout Plain Layout
22910 \begin_layout Standard
22912 does not natively support dashed lines, so you have to use \SpecialChar TeX
22914 As a prerequisite the \SpecialChar LaTeX
22920 \begin_inset Index idx
22923 \begin_layout Plain Layout
22925 -packages ! arydshln
22930 must be loaded in the document preamble with the command
22933 \begin_layout Standard
22938 usepackage{arydshln}
22941 \begin_layout Standard
22942 To make a vertical line dashed, enter the colon
22943 \begin_inset Quotes eld
22947 \begin_inset Quotes erd
22950 together with the character for the horizontal alignment as \SpecialChar LaTeX
22952 the table cell dialog.
22955 \begin_layout Standard
22956 For a horizontal dashed line add the command
22959 \begin_layout Standard
22967 \begin_layout Standard
22968 in \SpecialChar TeX
22969 -Code as first element of the first cell in the table row.
22972 \begin_layout Standard
22973 For dashed multicolumn lines use the command
22976 \begin_layout Standard
22981 cdashline{line number
22986 \begin_layout Standard
22987 in \SpecialChar TeX
22988 -Code as the first element of the first cell in the table row.
22989 If you have for example a multicolumn spanning columns 2 to 4 and you want
22990 to have a dashed line above, add the command
22993 \begin_layout Standard
23001 \begin_layout Standard
23002 as the first element of the first cell in the row of the multicolumn.
23005 \begin_layout Standard
23006 \begin_inset VSpace bigskip
23012 \begin_layout Standard
23014 \begin_inset space ~
23018 \begin_inset CommandInset ref
23020 reference "tab:Table-with-dashed"
23025 \begin_inset Quotes eld
23033 \begin_inset Quotes erd
23036 as \SpecialChar LaTeX
23037 -argument of the third column.
23038 The \SpecialChar TeX
23045 was inserted in the first cell of the third row and the \SpecialChar TeX
23047 \begin_inset Newline newline
23056 was inserted in the first cell of the fourth row.
23059 \begin_layout Standard
23060 \begin_inset VSpace bigskip
23066 \begin_layout Standard
23067 Tables with dashed lines can also be colored as shown by Table
23068 \begin_inset space ~
23072 \begin_inset CommandInset ref
23074 reference "tab:Colored-table-with"
23081 \begin_layout Standard
23085 \begin_layout Plain Layout
23091 arrayrulewidth}{1pt}
23097 \begin_inset Note Note
23100 \begin_layout Plain Layout
23101 thicker lines for better visualization of the line color
23109 \begin_layout Standard
23113 \begin_layout Plain Layout
23117 dashgapcolor{green}
23123 \begin_inset Note Note
23126 \begin_layout Plain Layout
23127 color gaps between dashes green
23135 \begin_layout Standard
23139 \begin_layout Plain Layout
23150 \begin_layout Plain Layout
23159 \begin_layout Plain Layout
23163 arrayrulecolor{red}
23167 arrayrulecolor{black}}
23173 \begin_inset Note Note
23176 \begin_layout Plain Layout
23177 color horizontal, dashed lines red
23185 \begin_layout Standard
23189 \begin_layout Plain Layout
23200 \begin_layout Plain Layout
23209 \begin_layout Plain Layout
23213 arrayrulecolor{yellow}
23217 arrayrulecolor{black}}
23223 \begin_inset Note Note
23226 \begin_layout Plain Layout
23227 color partial horizontal, dashed lines yellow
23235 \begin_layout Standard
23236 \begin_inset Float table
23242 \begin_layout Plain Layout
23243 \begin_inset Caption Standard
23245 \begin_layout Plain Layout
23246 \begin_inset CommandInset label
23248 name "tab:Colored-table-with"
23252 Colored table with dashed lines
23260 \begin_layout Plain Layout
23262 \begin_inset Tabular
23263 <lyxtabular version="3" rows="5" columns="5">
23264 <features tabularvalignment="middle">
23265 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23266 <column alignment="center" valignment="top" width="0pt">
23267 <column alignment="center" valignment="top" width="0pt" special=":c">
23268 <column alignment="center" valignment="top">
23269 <column alignment="center" valignment="top">
23271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23274 \begin_layout Plain Layout
23280 <cell alignment="center" valignment="top" topline="true" usebox="none">
23283 \begin_layout Plain Layout
23289 <cell alignment="center" valignment="top" topline="true" usebox="none">
23292 \begin_layout Plain Layout
23298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23301 \begin_layout Plain Layout
23307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23310 \begin_layout Plain Layout
23318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23321 \begin_layout Plain Layout
23327 <cell alignment="center" valignment="top" topline="true" usebox="none">
23330 \begin_layout Plain Layout
23336 <cell alignment="center" valignment="top" topline="true" usebox="none">
23339 \begin_layout Plain Layout
23345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23348 \begin_layout Plain Layout
23354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23357 \begin_layout Plain Layout
23365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23368 \begin_layout Plain Layout
23372 \begin_layout Plain Layout
23385 \begin_layout Plain Layout
23399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23402 \begin_layout Plain Layout
23408 <cell alignment="center" valignment="top" usebox="none">
23411 \begin_layout Plain Layout
23417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23420 \begin_layout Plain Layout
23426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23429 \begin_layout Plain Layout
23437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23440 \begin_layout Plain Layout
23444 \begin_layout Plain Layout
23458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23461 \begin_layout Plain Layout
23467 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23470 \begin_layout Plain Layout
23476 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23479 \begin_layout Plain Layout
23485 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23488 \begin_layout Plain Layout
23496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23499 \begin_layout Plain Layout
23505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23508 \begin_layout Plain Layout
23514 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23517 \begin_layout Plain Layout
23523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23526 \begin_layout Plain Layout
23532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23535 \begin_layout Plain Layout
23539 \begin_layout Plain Layout
23566 \begin_layout Standard
23570 \begin_layout Plain Layout
23584 \begin_inset Note Note
23587 \begin_layout Plain Layout
23596 \begin_layout Standard
23600 \begin_layout Plain Layout
23614 \begin_inset Note Note
23617 \begin_layout Plain Layout
23626 \begin_layout Standard
23630 \begin_layout Plain Layout
23640 \begin_inset Note Note
23643 \begin_layout Plain Layout
23652 \begin_layout Standard
23656 \begin_layout Plain Layout
23662 arrayrulewidth}{0.4pt}
23668 \begin_inset Note Note
23671 \begin_layout Plain Layout
23680 \begin_layout Standard
23681 The coloring of lines, columns and lines works as decribed in section
23682 \begin_inset space ~
23686 \begin_inset CommandInset ref
23688 reference "sec:Colored-Tables"
23693 Coloring horizontal lines works analogically as described there as well,
23694 one only needs to replace in the commands
23718 ; so one uses the command
23721 \begin_layout Standard
23731 \begin_inset Newline newline
23739 \begin_inset Newline newline
23743 \begin_inset Phantom HPhantom
23746 \begin_layout Plain Layout
23747 \begin_inset space ~
23757 arrayrulecolor{red}
23761 arrayrulecolor{black}}
23764 \begin_layout Standard
23774 \begin_layout Standard
23784 \begin_inset Newline newline
23792 \begin_inset Newline newline
23796 \begin_inset Phantom HPhantom
23799 \begin_layout Plain Layout
23800 \begin_inset space ~
23810 arrayrulecolor{red}
23814 arrayrulecolor{black}}
23817 \begin_layout Standard
23818 To get back the black line color, one needs to insert the following commands
23819 as \SpecialChar TeX
23820 -Code behind the table:
23823 \begin_layout Standard
23831 \begin_layout Standard
23843 \begin_layout Standard
23851 \begin_layout Standard
23863 \begin_layout Standard
23864 To color the gaps between the dashes the command
23867 \begin_layout Standard
23872 dashgapcolor{color}
23875 \begin_layout Standard
23876 can be used in front of a table as \SpecialChar TeX
23878 color is hereby the name of a defined color.
23882 \begin_layout Standard
23890 \begin_layout Standard
23891 unsets the changes made by
23900 \begin_layout Standard
23901 \begin_inset Note Greyedout
23904 \begin_layout Plain Layout
23910 : If there are multiple commands in a cell, the command of
23914 needs to be the first one in the cell.
23920 \begin_inset space ~
23924 \begin_inset CommandInset ref
23926 reference "tab:Colored-table-with"
23950 \begin_layout Standard
23951 \begin_inset Note Greyedout
23954 \begin_layout Plain Layout
23960 The \SpecialChar LaTeX
23965 must be loaded in the document preamble before the \SpecialChar LaTeX
23971 \begin_inset Index idx
23974 \begin_layout Plain Layout
23976 -packages ! colortbl
23989 \begin_layout Standard
23993 \begin_layout Plain Layout
24003 \begin_inset Note Note
24006 \begin_layout Plain Layout
24007 The following will be displayed when the \SpecialChar LaTeX
24020 \begin_layout Standard
24021 You need to install the package
24025 to see the content of this section in the output.
24028 \begin_layout Standard
24032 \begin_layout Plain Layout
24044 \begin_layout Standard
24045 For more information about dashed lines see the documentation of
24050 \begin_inset CommandInset citation
24059 \begin_layout Chapter
24061 \begin_inset CommandInset label
24068 \begin_inset Index idx
24071 \begin_layout Plain Layout
24080 \begin_layout Section
24082 \begin_inset CommandInset label
24084 name "sec:FloatIntroduction"
24089 \begin_inset Index idx
24092 \begin_layout Plain Layout
24093 Floats ! Introduction
24101 \begin_layout Standard
24102 A float is a block of text associated with some sort of label, which doesn't
24103 have a fixed location.
24105 \begin_inset Quotes eld
24109 \begin_inset Quotes erd
24112 forward or backward a page or two, to wherever it fits best.
24120 \begin_inset space ~
24125 are also floats because they can float to the next page when there are
24126 too many notes on the page.
24129 \begin_layout Standard
24130 Floats allow a high quality layout.
24131 Images and tables can be spread evenly among the pages to avoid white space
24132 and pages without text.
24133 As the floating often destroys the context between the text and the image/table
24134 , every float can be referenced in the text.
24135 Floats are therefore numbered.
24136 Referencing is described in section
24137 \begin_inset space ~
24141 \begin_inset CommandInset ref
24143 reference "sec:Referencing-Floats"
24150 \begin_layout Standard
24151 To insert a float, use the menu
24153 Insert\SpecialChar menuseparator
24159 arg "float-insert figure"
24165 arg "float-insert table"
24173 inset, a box with a label.
24174 The label will automatically be translated to the document language in
24176 After the label you can insert the caption text.
24177 The image or table is inserted above or below the caption in a separate
24178 paragraph within the float.
24179 More about the caption placement is contained in section
24180 \begin_inset space ~
24184 \begin_inset CommandInset ref
24186 reference "sec:Caption-Placement"
24191 To keep your \SpecialChar LyX
24192 -document readable, you can open and close the float box by
24193 left-clicking on the box label.
24194 A closed float box looks like this:
24195 \begin_inset Graphics
24196 filename clipart/floatQt4.png
24198 scaleBeforeRotation
24202 – a gray button with a red label.
24205 \begin_layout Standard
24206 It is recommended that you insert floats as separate standard paragraphs
24207 to avoid possible \SpecialChar LaTeX
24208 -errors that can occur when the surrounding text is specially
24212 \begin_layout Standard
24213 Existing figures or tables can be put into a float by highlighting them
24214 and then pressing the corresponding toolbar button for a new float.
24217 \begin_layout Section
24221 \begin_layout Standard
24222 Besides figure and table floats that are described in sections
24223 \begin_inset space ~
24227 \begin_inset CommandInset ref
24229 reference "sec:Figure-Floats"
24234 \begin_inset CommandInset ref
24236 reference "sec:Table-Floats"
24240 respectively, \SpecialChar LyX
24241 offers the float types
24250 The latter are explained in sec.
24251 \begin_inset space \thinspace{}
24255 \begin_inset CommandInset ref
24257 reference "sec:Wrap-Floats"
24264 \begin_layout Subsection
24266 \begin_inset Index idx
24269 \begin_layout Plain Layout
24270 Floats ! Algorithms
24278 \begin_layout Standard
24279 \begin_inset Float algorithm
24285 \begin_layout Plain Layout
24286 \begin_inset Caption Standard
24288 \begin_layout Plain Layout
24289 \begin_inset CommandInset label
24291 name "alg:Example-Algorithm-float"
24295 Example Algorithm float
24303 \begin_layout LyX-Code
24305 \begin_inset Newline newline
24308 Sum:= Sum + A(I); /*comment*/
24309 \begin_inset Newline newline
24313 \begin_inset VSpace -4mm
24324 \begin_layout Standard
24325 This float type is inserted with the menu
24327 Insert\SpecialChar menuseparator
24328 Float\SpecialChar menuseparator
24332 It is used for program codes and descriptions of algorithms and can be
24333 seen as an alternative to program code listings that are explained in chapter
24334 \begin_inset space ~
24338 \begin_inset CommandInset ref
24340 reference "cha:Program-Code-Listings"
24345 A possible environment for algorithms is the
24350 , described in \SpecialChar LyX
24357 \begin_inset space ~
24361 \begin_inset CommandInset ref
24363 reference "alg:Example-Algorithm-float"
24367 is an example of an algorithm float where -4
24368 \begin_inset space \thinspace{}
24371 mm vertical space was added at the end of the float to have the bottom rule
24372 exactly below the last text line.
24375 \begin_layout Standard
24376 The float label is not automatically translated into the document language.
24377 If your document is not in English, you have to do this manually by adding
24378 the following line to the document preamble
24383 \begin_layout Standard
24388 floatname{algorithm}{your
24389 \begin_inset space ~
24395 \begin_layout Standard
24399 \begin_inset space ~
24405 \begin_inset Quotes eld
24413 \begin_inset Quotes erd
24419 \begin_layout Standard
24420 To insert the list of algorithms you can use the menu
24422 Insert\SpecialChar menuseparator
24424 \begin_inset space \thinspace{}
24428 \begin_inset space \thinspace{}
24431 TOC\SpecialChar menuseparator
24434 when your document has the same language as \SpecialChar LyX
24436 In other cases use this command in \SpecialChar TeX
24440 \begin_layout Standard
24445 listof{algorithm}{your
24446 \begin_inset space ~
24452 \begin_layout Standard
24456 \begin_inset space ~
24462 \begin_inset Quotes eld
24470 \begin_inset Quotes erd
24476 \begin_layout Standard
24477 Algorithm floats are not by default numbered in the scheme
24478 \begin_inset Quotes eld
24482 \begin_inset Quotes erd
24485 as is the case for table and figure floats in many document-classes.
24486 To number algorithm floats in the same scheme, add this command to your
24490 \begin_layout Standard
24495 numberwithin{algorithm}{chapter}
24498 \begin_layout Standard
24499 To be able to use the command
24508 \begin_inset space ~
24513 in the document settings the option
24516 \begin_inset space ~
24520 \begin_inset space ~
24524 \begin_inset space ~
24532 \begin_layout Section
24534 \begin_inset Index idx
24537 \begin_layout Plain Layout
24546 \begin_layout Standard
24547 Floats are usually numbered either independently from the sections the floats
24548 are in, or in the scheme
24549 \begin_inset Quotes eld
24553 \begin_inset Quotes erd
24557 \begin_inset Quotes eld
24561 \begin_inset Quotes erd
24565 This depends on the document class used.
24568 \begin_layout Standard
24569 To change section-independent numbering, you can use this command in the
24573 \begin_layout Standard
24585 \begin_layout Standard
24592 is the command that prints the table number.
24593 For figure floats, the command would be
24606 in the command above prints the table number as a small roman number.
24609 \begin_layout Standard
24610 To change the numbering scheme for example to
24611 \begin_inset Quotes eld
24615 \begin_inset Quotes erd
24618 , use this command in the preamble:
24621 \begin_layout Standard
24626 numberwithin{table}{subsection}
24629 \begin_layout Standard
24630 To be able to use the command
24639 \begin_inset space ~
24644 in the document settings the option
24647 \begin_inset space ~
24651 \begin_inset space ~
24655 \begin_inset space ~
24663 \begin_layout Standard
24664 Please also have a look at section
24665 \begin_inset space ~
24669 \begin_inset CommandInset ref
24671 reference "subsec:Footnote-Numbering"
24675 for the details and important notes about the numbering commands.
24678 \begin_layout Section
24680 \begin_inset CommandInset label
24682 name "sec:Referencing-Floats"
24687 \begin_inset Index idx
24690 \begin_layout Plain Layout
24691 Floats ! References
24697 \begin_inset Index idx
24700 \begin_layout Plain Layout
24701 References ! to Floats
24709 \begin_layout Standard
24710 To reference a float, insert a label into its caption using the menu
24712 Insert\SpecialChar menuseparator
24715 or the toolbar button
24722 A grey label box like this one:
24723 \begin_inset Graphics
24724 filename clipart/labelQt4.png
24726 scaleBeforeRotation
24730 will be inserted and the label window pops up asking for the label text.
24732 offers as text the first words of the caption with a prefix.
24733 The prefix depends on the float type, e.
24734 \begin_inset space \thinspace{}
24738 \begin_inset space \space{}
24741 for figure floats the prefix will be "
24748 \begin_layout Standard
24749 The label is used as anchor and name for the reference.
24750 You can refer to the label using the menu
24752 Insert\SpecialChar menuseparator
24755 or the toolbar button
24758 arg "dialog-show-new-inset ref"
24762 The cross-reference window appears showing all labels of the document.
24763 If you have multiple \SpecialChar LyX
24764 -documents opened, choose the one you are working
24765 on from the drop-list at the top of the dialog.
24766 You can now sort the labels alphabetically and then choose one.
24767 A grey cross-reference box like this one:
24768 \begin_inset Graphics
24769 filename clipart/referenceQt4.png
24771 scaleBeforeRotation
24776 At the position of the cross-reference box the float number will appear
24780 \begin_layout Standard
24781 It is recommended that you use a protected space between the cross-reference
24782 name and its number to avoid line breaks between them.
24783 If a cross-reference refers to a non-existing label, you will see two question
24784 marks in the output instead of the reference.
24787 \begin_layout Standard
24788 You can change labels at any time by clicking on the label box.
24789 References to the changed label will automatically update their links to
24790 the new label text.
24793 \begin_layout Standard
24797 \begin_inset space ~
24801 \begin_inset space ~
24806 in the cross-reference window sets the cursor before the referred label.
24807 The button text changes then to Go
24808 \begin_inset space ~
24811 Back and you can use it to set the cursor back to the cross-reference.
24814 \begin_layout Subsection
24815 Cross-Reference Formats
24816 \begin_inset CommandInset label
24818 name "subsec:Cross-Reference-Formats"
24823 \begin_inset Index idx
24826 \begin_layout Plain Layout
24827 References ! Formats
24835 \begin_layout Standard
24836 There are six varieties of cross-references:
24839 \begin_layout Description
24840 <reference>: prints the float number, this is the default:
24841 \begin_inset CommandInset ref
24843 reference "fig:Two-distorted-images"
24850 \begin_layout Description
24851 (<reference>): prints the float number within two parentheses, this is the
24852 style normally used to reference formulas, especially when the reference
24854 \begin_inset Quotes eld
24858 \begin_inset Quotes erd
24862 \begin_inset CommandInset ref
24871 \begin_layout Description
24872 <page>: prints the page number: Page
24873 \begin_inset space ~
24877 \begin_inset CommandInset ref
24878 LatexCommand pageref
24879 reference "fig:Two-distorted-images"
24886 \begin_layout Description
24888 \begin_inset space ~
24892 \begin_inset space ~
24895 <page>: prints the text "on page" and the page number:
24896 \begin_inset CommandInset ref
24897 LatexCommand vpageref
24898 reference "fig:Two-distorted-images"
24905 \begin_layout Description
24907 \begin_inset space ~
24911 \begin_inset space ~
24915 \begin_inset space ~
24918 <page>: prints the float number, the text "on page", and the page number:
24920 \begin_inset CommandInset ref
24922 reference "fig:Two-distorted-images"
24929 \begin_layout Description
24931 \begin_inset space ~
24934 reference: prints a self-defined cross-reference format.
24935 \begin_inset Newline newline
24939 \begin_inset Note Greyedout
24942 \begin_layout Plain Layout
24947 This feature is only available when you have the \SpecialChar LaTeX
24957 \begin_inset Index idx
24960 \begin_layout Plain Layout
24962 -packages ! prettyref
24968 \begin_inset Index idx
24971 \begin_layout Plain Layout
24973 -packages ! refstyle
24984 \begin_inset Newline newline
24987 You can select which \SpecialChar LaTeX
24988 -package should be used for this feature by setting
24991 Use refstyle (not prettyref) for cross-references
24995 Document\SpecialChar menuseparator
24996 Settings\SpecialChar menuseparator
25000 The format is specified by adding the command
25012 (refstyle) to the preamble of the document.
25013 For example redefining all references to figures (which have the label
25015 \begin_inset Quotes eld
25023 \begin_inset Quotes erd
25026 ) can be done with this command
25027 \begin_inset Newline newline
25034 newref{fig}{refcmd={Image on page
25039 \begin_inset Newline newline
25042 For more information about the format, have a look at the package documentations
25044 \begin_inset CommandInset citation
25046 key "prettyref,refstyle"
25053 \begin_layout Description
25055 \begin_inset space ~
25058 reference: prints the caption of the reference:
25059 \begin_inset CommandInset ref
25060 LatexCommand nameref
25061 reference "fig:Two-distorted-images"
25068 \begin_layout Standard
25073 will not print the page number if the label is on the previous, the same,
25076 \begin_inset space \thinspace{}
25080 \begin_inset space \space{}
25084 \begin_inset Quotes eld
25092 \begin_inset Quotes erd
25098 <reference> on page <page>
25100 will not print anything about the page if the label is on the same page.
25103 \begin_layout Standard
25104 The number and current page of the part of the document referred to in the
25105 output is automatically calculated by \SpecialChar LaTeX
25107 The varieties are adjusted in the field
25111 of the cross-reference window that appears when you click on the cross-referenc
25115 \begin_layout Standard
25116 \begin_inset Note Greyedout
25119 \begin_layout Plain Layout
25124 It is recommended to use the \SpecialChar LaTeX
25130 \begin_inset Index idx
25133 \begin_layout Plain Layout
25135 -packages ! refstyle
25145 \begin_inset Index idx
25148 \begin_layout Plain Layout
25150 -packages ! prettyref
25155 does not know all of \SpecialChar LyX
25156 's possible label shortcuts
25160 \begin_layout Plain Layout
25161 \begin_inset Quotes eld
25165 \begin_inset Quotes erd
25168 is for example \SpecialChar LyX
25169 's shortcut for labels in figure captions.
25174 and is not internationalized.
25182 \begin_layout Standard
25183 \begin_inset Note Greyedout
25186 \begin_layout Plain Layout
25191 Due to a bug in the \SpecialChar LaTeX
25196 version 1.4w, some cross-reference formats will cause \SpecialChar LaTeX
25197 errors for document
25198 languages that make the period character active (like French).
25199 For a workaround, see
25200 \begin_inset Newline newline
25204 \begin_inset CommandInset href
25206 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25218 \begin_layout Subsection
25219 Automatic Reference Naming
25220 \begin_inset Index idx
25223 \begin_layout Plain Layout
25224 References ! Automatic Reference Naming
25232 \begin_layout Standard
25233 The \SpecialChar LaTeX
25239 \begin_inset Index idx
25242 \begin_layout Plain Layout
25244 -packages ! hyperref
25249 , that is enabled in the
25257 dialog, provides a very useful feature that cross-references automatically
25258 include the name of the referenced floats (or text parts like
25263 So you will save having to write e.
25264 \begin_inset space \thinspace{}
25268 \begin_inset space \space{}
25272 \begin_inset Quotes eld
25276 \begin_inset Quotes erd
25279 before every reference to a figure.
25280 To use this feature, enable
25284 and insert this line to the \SpecialChar LaTeX
25288 \begin_layout Standard
25304 \begin_layout Standard
25305 When you prefer other reference names than the default ones, for example
25306 you want instead of
25307 \begin_inset Quotes eld
25311 \begin_inset Quotes erd
25315 \begin_inset Quotes eld
25319 \begin_inset space \thinspace{}
25323 \begin_inset Quotes eld
25326 , you can redefine the name by inserting this in the preamble:
25329 \begin_layout Standard
25340 sectionautorefname}
25341 \begin_inset Newline newline
25345 \begin_inset Phantom HPhantom
25348 \begin_layout Plain Layout
25351 \begin_inset space ~
25364 \begin_layout Standard
25365 When you are using another document language than English, replace
25366 \begin_inset Newline newline
25381 , where *** is the name of the language used.
25384 \begin_layout Standard
25385 To get automatic names, but not for certain reference types, for example
25386 not for equations, use this preamble code:
25389 \begin_layout Standard
25400 equationautorefname}[1]{}}
25403 \begin_layout Standard
25404 More about this topic can be found in
25409 \begin_inset CommandInset citation
25418 \begin_layout Standard
25419 \begin_inset Note Greyedout
25422 \begin_layout Plain Layout
25427 Automatic reference naming cannot be used when you use cross-references
25431 \begin_inset space ~
25436 style, as described in section
25437 \begin_inset space ~
25441 \begin_inset CommandInset ref
25443 reference "subsec:Cross-Reference-Formats"
25455 \begin_layout Standard
25460 manual is an example where automatic reference naming is used.
25463 \begin_layout Subsection
25465 \begin_inset CommandInset label
25467 name "subsec:Reference-Position"
25472 \begin_inset Index idx
25475 \begin_layout Plain Layout
25476 References ! Reference Position
25484 \begin_layout Standard
25490 \begin_inset Index idx
25493 \begin_layout Plain Layout
25495 -packages ! hyperref
25508 dialog to link cross-references in the output, you will see that clicking
25509 on an image float reference jumps to the image label.
25510 The caption will be the first text part on the screen, so that you cannot
25511 see the image without scrolling.
25512 This is because the reference link anchor is placed at the position of
25514 With the use of the package
25519 \begin_inset Index idx
25522 \begin_layout Plain Layout
25529 , which is part of the \SpecialChar LaTeX
25535 \begin_inset Index idx
25538 \begin_layout Plain Layout
25540 -packages ! oberdiek
25545 , the link anchor is placed at the beginning of a float.
25546 To use this feature for figure floats, load
25550 in the document preamble with the line
25553 \begin_layout Standard
25558 usepackage[figure]{hypcap}
25561 \begin_layout Standard
25566 for all float types but this is not recommended for stability reasons.
25567 For more information, have a look at
25572 \begin_inset CommandInset citation
25581 \begin_layout Standard
25582 \begin_inset Note Greyedout
25585 \begin_layout Plain Layout
25594 has no effect on references to subfigures.
25602 \begin_layout Section
25604 \begin_inset CommandInset label
25606 name "sec:Float-Placement"
25611 \begin_inset Index idx
25614 \begin_layout Plain Layout
25623 \begin_layout Standard
25624 Right-clicking on a float-box and clicking on
25628 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25630 positioning the float.
25631 \begin_inset Newline newline
25637 \begin_inset space ~
25642 is only useful for two-column documents: If you select it, the float will
25643 span both columns on the page instead of being confined to just one.
25644 \begin_inset Newline newline
25650 \begin_inset space ~
25655 is used to rotate floats, see section
25656 \begin_inset CommandInset ref
25658 reference "sec:Rotated-Floats"
25665 \begin_layout Standard
25666 You can use one or more of the following options in the float dialog to
25667 set the placement for a particular float when you uncheck the option
25670 \begin_inset space ~
25674 \begin_inset space ~
25682 \begin_layout Description
25684 \begin_inset space ~
25688 \begin_inset space ~
25691 possible try to place the float on the position where it has been inserted
25694 \begin_layout Description
25696 \begin_inset space ~
25700 \begin_inset space ~
25703 page try to place the float at the top of the current page
25706 \begin_layout Description
25708 \begin_inset space ~
25712 \begin_inset space ~
25715 page try to place the float at the bottom of the current page
25718 \begin_layout Description
25720 \begin_inset space ~
25724 \begin_inset space ~
25727 floats try to place the float on its own page
25730 \begin_layout Standard
25731 The order of the above option is
25735 used by \SpecialChar LaTeX
25737 That means, if you use the default placement, \SpecialChar LaTeX
25741 \begin_inset space ~
25745 \begin_inset space ~
25753 \begin_inset space ~
25757 \begin_inset space ~
25762 , and then the others.
25763 If you do not use the default, \SpecialChar LaTeX
25764 will try only the checked options but in
25767 \begin_inset space ~
25770 placements is possible the procedure is internally repeated trying to put
25771 the float on the following page.
25774 \begin_layout Standard
25775 By default, each option has its own rules:
25778 \begin_layout Labeling
25779 \labelwidthstring 00.00.0000
25783 \begin_inset space ~
25787 \begin_inset space ~
25792 only floats occupying less than 70
25793 \begin_inset space \thinspace{}
25796 % of the page can be placed at the top of a page (
25805 \begin_layout Labeling
25806 \labelwidthstring 00.00.0000
25810 \begin_inset space ~
25814 \begin_inset space ~
25819 : only floats occupying less than 30
25820 \begin_inset space \thinspace{}
25823 % of the page can be placed at the bottom of a page.
25833 \begin_layout Labeling
25834 \labelwidthstring 00.00.0000
25838 \begin_inset space ~
25842 \begin_inset space ~
25847 : only if more than 50
25848 \begin_inset space \thinspace{}
25851 % of the page is occupied by floats, several floats can be set together
25862 \begin_layout Standard
25863 If you don't like these rules, you can ignore them by using the additional
25867 \begin_inset space ~
25872 \begin_inset space ~
25878 \begin_inset Newline newline
25881 You can also redefine the rules with \SpecialChar LaTeX
25882 -commands that are given in parentheses
25883 after the rules description above.
25884 To increase for example the often too small default of the bottom-rule
25886 \begin_inset space \thinspace{}
25889 % of the page, add this line to your document preamble:
25892 \begin_layout Standard
25899 bottomfraction}{0.5}
25902 \begin_layout Standard
25903 Sometimes you might need, under all circumstances, a float to be placed
25904 exactly at the position where it is inserted.
25905 For this case you can use the option
25908 \begin_inset space ~
25914 Use this option very rarely and only if the document is almost ready to
25915 be printed, because the float is then no longer able to
25916 \begin_inset Quotes eld
25920 \begin_inset Quotes erd
25923 when you change your document and this will often destroy the page layout.
25926 \begin_layout Standard
25927 There are no placement options for text wrap floats, because they are always
25928 surrounded by the text of a certain paragraph.
25929 \begin_inset VSpace bigskip
25935 \begin_layout Standard
25936 Sometimes you have the problem that a float is placed at the top of a page
25937 while its corresponding section starts at the middle of the page, so that
25938 the reader could think the float is part of the previous section.
25939 To avoid this the \SpecialChar LaTeX
25947 It suppresses a given float placement for the page where it is inserted
25948 and can therefore be used to avoid floats being set before a section starts.
25949 To get this, add these commands to your document preamble:
25952 \begin_layout Standard
25962 \begin_inset Newline newline
25976 \begin_layout Standard
25977 You can define the same for all section headings, like chapters and subsections.
25978 This definition is not recommended to be used for small text parts like
25979 subsubsections because \SpecialChar LaTeX
25980 may then have problems finding a suitable placement.
25983 \begin_layout Standard
25984 \begin_inset VSpace bigskip
25987 In some cases it is required to have all figures/tables at the end of the
25989 For this purpose the \SpecialChar LaTeX
25995 \begin_inset Index idx
25998 \begin_layout Plain Layout
26000 -packages ! endfloat
26006 It puts all figure and table floats at the end of the document into their
26008 At the original float position a text hint like
26009 \begin_inset Quotes eld
26015 \begin_inset space ~
26021 \begin_inset Quotes erd
26025 The endfloat-package is loaded in the preamble with the line
26028 \begin_layout Standard
26033 usepackage[options]{endfloat}
26036 \begin_layout Standard
26037 There are various package options to format the created figure/table sections.
26038 For more information we refer you to the
26043 \begin_inset CommandInset citation
26050 \begin_inset Newline newline
26054 \begin_inset Note Greyedout
26057 \begin_layout Plain Layout
26062 doesn't provide an automatic translation for the text hint, you have to
26063 do this manually, see section
26064 \begin_inset space ~
26068 \begin_inset CommandInset citation
26080 \begin_inset Newline newline
26084 \begin_inset Note Greyedout
26087 \begin_layout Plain Layout
26092 There is currently a bug in
26096 when the caption contains a German
26097 \begin_inset Quotes eld
26101 \begin_inset Quotes erd
26105 Use in this case the command
26106 \begin_inset Quotes eld
26116 \begin_inset Quotes erd
26119 in \SpecialChar TeX
26121 \begin_inset Quotes eld
26125 \begin_inset Quotes erd
26136 \begin_layout Standard
26137 \begin_inset VSpace bigskip
26140 For more details about float placements, have a look at \SpecialChar LaTeX
26142 \begin_inset CommandInset citation
26144 key "latexcompanion,latexguide,latexbook"
26151 \begin_layout Section
26153 \begin_inset CommandInset label
26155 name "sec:Rotated-Floats"
26160 \begin_inset Index idx
26163 \begin_layout Plain Layout
26172 \begin_layout Standard
26173 Especially for wide tables you might have floats rotated.
26174 To rotate a whole float including the caption, right-click on the float-box
26178 \begin_inset space ~
26186 \begin_layout Standard
26187 Rotated floats are always placed on a page of their own (or column of their
26188 own; in case you have a multi-column document).
26189 You can let them span several columns using the float settings option
26192 \begin_inset space ~
26198 Floats are rotated so that you can read them from the outside margin.
26199 To force a certain rotation direction for all pages, you can add either
26208 to the document class options.
26211 \begin_layout Standard
26212 Referencing rotated floats is the same as for normal floats, the caption
26213 format is also the same: Table
26214 \begin_inset space ~
26218 \begin_inset CommandInset ref
26220 reference "tab:Rotated-table"
26224 is an example of a rotated table float.
26227 \begin_layout Standard
26228 \begin_inset Note Greyedout
26231 \begin_layout Plain Layout
26236 Not all DVI-viewers are able to display rotated floats.
26244 \begin_layout Standard
26245 \begin_inset Float table
26250 \begin_layout Plain Layout
26251 \begin_inset Caption Standard
26253 \begin_layout Plain Layout
26254 \begin_inset CommandInset label
26256 name "tab:Rotated-table"
26268 \begin_layout Plain Layout
26270 \begin_inset Tabular
26271 <lyxtabular version="3" rows="1" columns="5">
26272 <features tabularvalignment="middle">
26273 <column alignment="center" valignment="top">
26274 <column alignment="center" valignment="top">
26275 <column alignment="center" valignment="top">
26276 <column alignment="center" valignment="top">
26277 <column alignment="center" valignment="top">
26279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26282 \begin_layout Plain Layout
26288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26291 \begin_layout Plain Layout
26297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26300 \begin_layout Plain Layout
26306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26309 \begin_layout Plain Layout
26315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26318 \begin_layout Plain Layout
26337 \begin_layout Section
26339 \begin_inset Index idx
26342 \begin_layout Plain Layout
26351 \begin_layout Standard
26352 Subfloats are for example used when a figure consists of several images.
26353 They are created by inserting a float into an existing float.
26354 The placement of the subfloats can be controlled in the same way as for
26355 paragraphs as shown in table
26356 \begin_inset space ~
26360 \begin_inset CommandInset ref
26362 reference "tab:Two-subtables-side"
26367 \begin_inset CommandInset ref
26369 reference "tab:Two-subtables-upon"
26376 \begin_layout Standard
26377 Referencing subfloats works as for normal floats: Table
26378 \begin_inset space ~
26382 \begin_inset CommandInset ref
26384 reference "tab:This-is-subtable-a"
26389 \begin_inset CommandInset ref
26391 reference "tab:This-is-subtable-b"
26395 are subtables of table
26396 \begin_inset space ~
26400 \begin_inset CommandInset ref
26402 reference "tab:Two-subtables-side"
26409 \begin_layout Standard
26410 \begin_inset Float table
26415 \begin_layout Plain Layout
26416 \begin_inset Caption Standard
26418 \begin_layout Plain Layout
26419 \begin_inset CommandInset label
26421 name "tab:Two-subtables-side"
26425 Two subtables placed side by side.
26433 \begin_layout Plain Layout
26435 \begin_inset space \hfill{}
26439 \begin_inset Float table
26444 \begin_layout Plain Layout
26445 \begin_inset Caption Standard
26447 \begin_layout Plain Layout
26448 \begin_inset CommandInset label
26450 name "tab:This-is-subtable-a"
26454 This is subtable a.
26462 \begin_layout Plain Layout
26464 \begin_inset Tabular
26465 <lyxtabular version="3" rows="1" columns="5">
26466 <features tabularvalignment="middle">
26467 <column alignment="center" valignment="top">
26468 <column alignment="center" valignment="top">
26469 <column alignment="center" valignment="top">
26470 <column alignment="center" valignment="top">
26471 <column alignment="center" valignment="top">
26473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26476 \begin_layout Plain Layout
26482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26485 \begin_layout Plain Layout
26491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26494 \begin_layout Plain Layout
26500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26503 \begin_layout Plain Layout
26509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26512 \begin_layout Plain Layout
26529 \begin_inset space \hfill{}
26533 \begin_inset Float table
26538 \begin_layout Plain Layout
26539 \begin_inset Caption Standard
26541 \begin_layout Plain Layout
26542 \begin_inset CommandInset label
26544 name "tab:This-is-subtable-b"
26548 This is subtable b.
26556 \begin_layout Plain Layout
26558 \begin_inset Tabular
26559 <lyxtabular version="3" rows="1" columns="5">
26560 <features tabularvalignment="middle">
26561 <column alignment="center" valignment="top">
26562 <column alignment="center" valignment="top">
26563 <column alignment="center" valignment="top">
26564 <column alignment="center" valignment="top">
26565 <column alignment="center" valignment="top">
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" usebox="none">
26597 \begin_layout Plain Layout
26603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26606 \begin_layout Plain Layout
26623 \begin_inset space \hfill{}
26634 \begin_layout Standard
26635 \begin_inset Float table
26640 \begin_layout Plain Layout
26641 \begin_inset Caption Standard
26643 \begin_layout Plain Layout
26644 \begin_inset CommandInset label
26646 name "tab:Two-subtables-upon"
26650 Two subtables placed one above the other.
26651 (a) table with 4 cells, (b) table with 5 cells.
26659 \begin_layout Plain Layout
26661 \begin_inset Float table
26666 \begin_layout Plain Layout
26667 \begin_inset Caption Standard
26669 \begin_layout Plain Layout
26678 \begin_layout Plain Layout
26680 \begin_inset Tabular
26681 <lyxtabular version="3" rows="1" columns="4">
26682 <features tabularvalignment="middle">
26683 <column alignment="center" valignment="top">
26684 <column alignment="center" valignment="top">
26685 <column alignment="center" valignment="top">
26686 <column alignment="center" valignment="top">
26688 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26691 \begin_layout Plain Layout
26697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26700 \begin_layout Plain Layout
26706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26709 \begin_layout Plain Layout
26715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26718 \begin_layout Plain Layout
26737 \begin_layout Plain Layout
26739 \begin_inset Float table
26744 \begin_layout Plain Layout
26745 \begin_inset Caption Standard
26747 \begin_layout Plain Layout
26756 \begin_layout Plain Layout
26758 \begin_inset Tabular
26759 <lyxtabular version="3" rows="1" columns="5">
26760 <features tabularvalignment="middle">
26761 <column alignment="center" valignment="top">
26762 <column alignment="center" valignment="top">
26763 <column alignment="center" valignment="top">
26764 <column alignment="center" valignment="top">
26765 <column alignment="center" valignment="top">
26767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26770 \begin_layout Plain Layout
26776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26779 \begin_layout Plain Layout
26785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26788 \begin_layout Plain Layout
26794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26797 \begin_layout Plain Layout
26803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26806 \begin_layout Plain Layout
26830 \begin_layout Section
26831 Floats Side by Side
26832 \begin_inset Index idx
26835 \begin_layout Plain Layout
26836 Floats ! Side by side
26844 \begin_layout Standard
26845 To place floats side by side, as in Figures
26846 \begin_inset space ~
26850 \begin_inset CommandInset ref
26852 reference "fig:Float-left"
26857 \begin_inset CommandInset ref
26859 reference "fig:Float-right"
26868 In it two minipage boxes are inserted.
26872 \begin_layout Plain Layout
26873 Minipages are explained in section
26874 \begin_inset space ~
26878 \begin_inset CommandInset ref
26880 reference "sec:Minipages"
26889 The width is set to 45
26890 \begin_inset space \thinspace{}
26894 \begin_inset space \thinspace{}
26897 column% and the box alignment to
26902 The minipage boxes contain the image and the caption in the same way as
26903 they are in a float.
26904 The only difference is that the image unit
26907 \begin_inset space ~
26911 \begin_inset space ~
26916 is now calculated according to the width of the minipage boxes.
26919 \begin_layout Standard
26920 \begin_inset Float figure
26925 \begin_layout Plain Layout
26926 \begin_inset Box Frameless
26936 height_special "totalheight"
26941 backgroundcolor "none"
26944 \begin_layout Plain Layout
26946 \begin_inset Graphics
26947 filename clipart/mobius.eps
26950 scaleBeforeRotation
26957 \begin_layout Plain Layout
26958 \begin_inset Caption Standard
26960 \begin_layout Plain Layout
26961 \begin_inset CommandInset label
26963 name "fig:Float-left"
26967 Float on the left side.
26978 \begin_inset space \hfill{}
26982 \begin_inset Box Frameless
26992 height_special "totalheight"
26997 backgroundcolor "none"
27000 \begin_layout Plain Layout
27002 \begin_inset Graphics
27003 filename clipart/platypus.eps
27006 scaleBeforeRotation
27013 \begin_layout Plain Layout
27014 \begin_inset Caption Standard
27016 \begin_layout Plain Layout
27017 \begin_inset CommandInset label
27019 name "fig:Float-right"
27023 Float on the right side.
27036 \begin_layout Plain Layout
27045 \begin_layout Section
27047 \begin_inset Index idx
27050 \begin_layout Plain Layout
27051 Caption ! Formatting
27057 \begin_inset Index idx
27060 \begin_layout Plain Layout
27061 Floats ! Caption Formatting
27067 \begin_inset CommandInset label
27069 name "sec:Caption-Formatting"
27076 \begin_layout Standard
27081 environment is the default paragraph environment for
27086 On the \SpecialChar LyX
27087 screen captions appear as a label, e.
27088 \begin_inset space \thinspace{}
27092 \begin_inset space \space{}
27096 \begin_inset Quotes eld
27104 \begin_inset Quotes erd
27107 followed by the caption text.
27109 \begin_inset Quotes eld
27113 \begin_inset Quotes erd
27116 is the actual reference number.
27117 By default the label and the number are in the same font as the caption
27118 text and a colon follows the number to divide the label from the text.
27119 This caption format is suitable for many but not all documents.
27123 \begin_layout Standard
27124 To change the default caption format, load the \SpecialChar LaTeX
27130 \begin_inset Index idx
27133 \begin_layout Plain Layout
27135 -packages ! caption
27140 in the document preamble with this line:
27143 \begin_layout Standard
27148 usepackage[format definition]{caption}
27151 \begin_layout Standard
27152 To have for example the label and the number in sans-serif, bold font and
27153 the table captions always above the table as in this document, use the
27157 \begin_layout Standard
27162 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27165 \begin_layout Standard
27166 You can also define different caption formats for the different float types.
27167 In this case load the
27171 package without format specific options and define the different formats
27172 with the help of the command
27175 \begin_layout Standard
27180 captionsetup[float type]{format definition}
27183 \begin_layout Standard
27184 in the document preamble.
27185 For example the caption formats of Figure
27186 \begin_inset space ~
27190 \begin_inset CommandInset ref
27192 reference "fig:This-is-an-fig"
27197 \begin_inset space ~
27201 \begin_inset CommandInset ref
27203 reference "tab:This-is-an-tab"
27207 can be created using these commands in the document preamble:
27210 \begin_layout Standard
27215 usepackage[tableposition=top]{caption}
27218 \begin_inset Newline newline
27225 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27226 \begin_inset Newline newline
27230 \begin_inset Phantom HPhantom
27233 \begin_layout Plain Layout
27238 captionsetup[figure]{
27244 \begin_inset Newline newline
27249 captionsetup[table]{labelfont={bf,sf}}
27252 \begin_layout Standard
27253 \begin_inset Note Greyedout
27256 \begin_layout Plain Layout
27265 has no effect when a
27270 \begin_inset Index idx
27273 \begin_layout Plain Layout
27275 -packages ! KOMA-Script
27280 document class is used.
27281 In this case the document class option
27283 captions=tableheading
27293 \begin_layout Standard
27294 For more information about the package
27298 we refer to its documentation
27299 \begin_inset CommandInset citation
27308 \begin_layout Standard
27309 To change the label name from e.
27310 \begin_inset space \thinspace{}
27314 \begin_inset space \space{}
27318 \begin_inset Quotes eld
27322 \begin_inset Quotes erd
27326 \begin_inset Quotes eld
27330 \begin_inset Quotes erd
27333 use this preamble command:
27336 \begin_layout Standard
27343 fnum@figure}{Image~
27348 \begin_layout Standard
27355 inserts the figure number and
27358 \begin_inset Quotes eld
27364 \begin_inset Quotes erd
27367 creates a protected space.
27370 \begin_layout Standard
27371 \begin_inset VSpace bigskip
27379 \begin_inset Index idx
27382 \begin_layout Plain Layout
27384 -packages ! KOMA-Script
27391 article (KOMA-Script)
27399 letter (KOMA-Script)
27403 report (KOMA-Script)
27406 \begin_inset space \thinspace{}
27409 ), you can alternatively to the
27417 's built-in command
27424 For example, to have the caption label in bold, add this command to your
27428 \begin_layout Standard
27433 setkomafont{captionlabel}{
27438 \begin_layout Standard
27439 For more information about
27450 \begin_inset CommandInset citation
27459 \begin_layout Standard
27463 \begin_layout Plain Layout
27467 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27474 \begin_inset Note Note
27477 \begin_layout Plain Layout
27478 The caption format is changed only for this example.
27486 \begin_layout Standard
27487 \begin_inset Float figure
27493 \begin_layout Plain Layout
27495 \begin_inset Graphics
27496 filename clipart/mobius.eps
27499 scaleBeforeRotation
27506 \begin_layout Plain Layout
27507 \begin_inset Caption Standard
27509 \begin_layout Plain Layout
27510 \begin_inset CommandInset label
27512 name "fig:This-is-an-fig"
27516 This is an example figure caption that is longer than one line to show the
27517 different caption format.
27518 Here a self-defined caption format is used.
27531 \begin_layout Standard
27535 \begin_layout Plain Layout
27539 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27548 \begin_layout Standard
27549 \begin_inset Float table
27555 \begin_layout Plain Layout
27556 \begin_inset Caption Standard
27558 \begin_layout Plain Layout
27559 \begin_inset CommandInset label
27561 name "tab:This-is-an-tab"
27565 This is an example table caption that is longer than one line to show the
27566 different caption format.
27567 Here the standard caption format for tables in this document is used.
27575 \begin_layout Plain Layout
27577 \begin_inset Tabular
27578 <lyxtabular version="3" rows="1" columns="5">
27579 <features tabularvalignment="middle">
27580 <column alignment="center" valignment="top">
27581 <column alignment="center" valignment="top">
27582 <column alignment="center" valignment="top">
27583 <column alignment="center" valignment="top">
27584 <column alignment="center" valignment="top">
27586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27589 \begin_layout Plain Layout
27595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27598 \begin_layout Plain Layout
27604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27607 \begin_layout Plain Layout
27613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27616 \begin_layout Plain Layout
27622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27625 \begin_layout Plain Layout
27644 \begin_layout Section
27646 \begin_inset Index idx
27649 \begin_layout Plain Layout
27650 Caption ! Placement
27656 \begin_inset Index idx
27659 \begin_layout Plain Layout
27660 Floats ! Caption Placement
27666 \begin_inset CommandInset label
27668 name "sec:Caption-Placement"
27675 \begin_layout Standard
27676 The common caption placement rule is:
27679 \begin_layout Description
27680 Figure: Caption is set below the figure
27683 \begin_layout Description
27684 Table: Caption is set above the table
27687 \begin_layout Standard
27688 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27691 That means if you are using the document classes
27707 there will be no space between the caption and the table.
27708 To insert the necessary space, load the \SpecialChar LaTeX
27714 \begin_inset Index idx
27717 \begin_layout Plain Layout
27719 -packages ! caption
27724 in your document preamble with the option
27728 \begin_layout Plain Layout
27730 \begin_inset space ~
27734 \begin_inset CommandInset ref
27736 reference "sec:Caption-Formatting"
27740 for more information of the package
27752 \begin_layout Standard
27758 \begin_layout Standard
27764 \begin_inset Index idx
27767 \begin_layout Plain Layout
27769 -packages ! KOMA-Script
27776 article (KOMA-Script)
27784 letter (KOMA-Script)
27788 report (KOMA-Script)
27791 \begin_inset space \thinspace{}
27794 ), you can alternatively to the
27798 package set the document class option
27802 \begin_layout Plain Layout
27803 That option is used in this document.
27811 \begin_layout Standard
27814 captions=tableheading
27817 \begin_layout Standard
27818 In documents with a KOMA-Script document class you can also right-click
27819 on a caption and mark in the context menu if this should be a caption above
27820 or below the table/figure.
27821 This way you can override the document-wide caption placement for certain
27824 \begin_inset space ~
27828 \begin_inset CommandInset ref
27830 reference "tab:A-caption-marked"
27834 is an example where the caption is marked a being below the table while
27836 For comparison the caption in Table
27837 \begin_inset space ~
27841 \begin_inset CommandInset ref
27843 reference "tab:A-standard-table"
27850 \begin_layout Standard
27851 \begin_inset Float table
27856 \begin_layout Plain Layout
27857 \begin_inset Caption Below
27859 \begin_layout Plain Layout
27860 \begin_inset CommandInset label
27862 name "tab:A-caption-marked"
27866 A caption marked as being below the table.
27874 \begin_layout Plain Layout
27876 \begin_inset Tabular
27877 <lyxtabular version="3" rows="3" columns="3">
27878 <features tabularvalignment="middle">
27879 <column alignment="center" valignment="top" width="0pt">
27880 <column alignment="center" valignment="top" width="0pt">
27881 <column alignment="center" valignment="top" width="0pt">
27883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27886 \begin_layout Plain Layout
27892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27895 \begin_layout Plain Layout
27901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27904 \begin_layout Plain Layout
27912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27915 \begin_layout Plain Layout
27921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27924 \begin_layout Plain Layout
27930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27933 \begin_layout Plain Layout
27941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27944 \begin_layout Plain Layout
27945 \begin_inset Formula $\int x^{2}dx$
27953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27956 \begin_layout Plain Layout
27957 \begin_inset Formula $\left[\begin{array}{cc}
27960 \end{array}\right]$
27968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27971 \begin_layout Plain Layout
27972 \begin_inset Formula $1+1=2$
27993 \begin_layout Standard
27994 \begin_inset Float table
27999 \begin_layout Plain Layout
28000 \begin_inset Caption Standard
28002 \begin_layout Plain Layout
28003 \begin_inset CommandInset label
28005 name "tab:A-standard-table"
28009 A standard table caption.
28017 \begin_layout Plain Layout
28019 \begin_inset Tabular
28020 <lyxtabular version="3" rows="3" columns="3">
28021 <features tabularvalignment="middle">
28022 <column alignment="center" valignment="top" width="0pt">
28023 <column alignment="center" valignment="top" width="0pt">
28024 <column alignment="center" valignment="top" width="0pt">
28026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28029 \begin_layout Plain Layout
28035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28038 \begin_layout Plain Layout
28044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28047 \begin_layout Plain Layout
28055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28058 \begin_layout Plain Layout
28064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28067 \begin_layout Plain Layout
28073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28076 \begin_layout Plain Layout
28084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28087 \begin_layout Plain Layout
28088 \begin_inset Formula $\int x^{2}dx$
28096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28099 \begin_layout Plain Layout
28100 \begin_inset Formula $\left[\begin{array}{cc}
28103 \end{array}\right]$
28111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28114 \begin_layout Plain Layout
28115 \begin_inset Formula $1+1=2$
28136 \begin_layout Standard
28137 \begin_inset VSpace bigskip
28140 It is also possible to set the caption beside a figure or table.
28141 To get this the \SpecialChar LaTeX
28147 \begin_inset Index idx
28150 \begin_layout Plain Layout
28152 -packages ! sidecap
28157 has to be loaded in the document preamble with the line
28160 \begin_layout Standard
28165 usepackage[option]{sidecap}
28168 \begin_layout Standard
28169 If you set no option, the caption is placed on the side of the outer page
28170 margin – to the right on odd pages, to the left on even pages.
28171 You can change the placement to inner margin with the option
28176 To force the placement always to the right or left, use the option
28187 \begin_layout Standard
28191 \begin_layout Plain Layout
28201 \begin_inset Note Note
28204 \begin_layout Plain Layout
28205 The following section will only be displayed when the \SpecialChar LaTeX
28218 \begin_layout Standard
28219 To place in \SpecialChar LyX
28220 the caption of a float on the side, it is necessary to add
28221 these commands to the document preamble:
28224 \begin_layout Standard
28226 \begin_inset CommandInset line
28237 \begin_layout Standard
28244 TabBesBeg}[1][1.0]{%
28245 \begin_inset Newline newline
28249 \begin_inset Phantom HPhantom
28252 \begin_layout Plain Layout
28253 \begin_inset space ~
28268 \begin_inset Newline newline
28272 \begin_inset Phantom HPhantom
28275 \begin_layout Plain Layout
28278 \begin_inset space ~
28293 \begin_inset Newline newline
28297 \begin_inset Phantom HPhantom
28300 \begin_layout Plain Layout
28303 \begin_inset space ~
28313 renewenvironment{table}[1]{
28315 begin{SCtable}[#1]##1}{
28320 \begin_layout Standard
28328 \begin_inset Newline newline
28332 \begin_inset Phantom HPhantom
28335 \begin_layout Plain Layout
28336 \begin_inset space ~
28351 \begin_inset Newline newline
28355 \begin_inset Phantom HPhantom
28358 \begin_layout Plain Layout
28359 \begin_inset space ~
28376 \begin_layout Standard
28383 FigBesBeg}[1][1.0]{%
28384 \begin_inset Newline newline
28388 \begin_inset Phantom HPhantom
28391 \begin_layout Plain Layout
28392 \begin_inset space ~
28407 \begin_inset Newline newline
28411 \begin_inset Phantom HPhantom
28414 \begin_layout Plain Layout
28415 \begin_inset space ~
28430 \begin_inset Newline newline
28434 \begin_inset Phantom HPhantom
28437 \begin_layout Plain Layout
28438 \begin_inset space ~
28448 renewenvironment{figure}[1]{
28450 begin{SCfigure}[#1]##1}{
28455 \begin_layout Standard
28463 \begin_inset Newline newline
28467 \begin_inset Phantom HPhantom
28470 \begin_layout Plain Layout
28471 \begin_inset space ~
28486 \begin_inset Newline newline
28490 \begin_inset Phantom HPhantom
28493 \begin_layout Plain Layout
28494 \begin_inset space ~
28511 \begin_layout Standard
28513 \begin_inset CommandInset line
28524 \begin_layout Standard
28525 The commands allow you to redefine the floats so that the caption is set
28527 For figure floats use the command
28530 \begin_layout Standard
28538 \begin_layout Standard
28539 in \SpecialChar TeX
28540 -Code before the float.
28541 And insert the command
28544 \begin_layout Standard
28552 \begin_layout Standard
28553 in \SpecialChar TeX
28554 -Code at the point where you want to get back to the original float definitio
28558 \begin_layout Standard
28559 For table floats use the corresponding commands
28562 \begin_layout Standard
28576 \begin_layout Standard
28578 \begin_inset space ~
28582 \begin_inset CommandInset ref
28584 reference "fig:cap-beside-fig"
28589 \begin_inset space ~
28593 \begin_inset CommandInset ref
28595 reference "tab:cap-beside-tab"
28599 are examples where the caption is set beside.
28602 \begin_layout Standard
28603 You can see in the examples that the caption text appears at the top of
28604 the floats for table floats and at the bottom for figure floats.
28605 To change this, you can use the command
28608 \begin_layout Standard
28613 sidecaptionvpos{float type}{placement}
28616 \begin_layout Standard
28617 in the document preamble or in \SpecialChar TeX
28618 -Code before the float.
28619 The float type is either
28627 , the placement can be
28628 \begin_inset Quotes eld
28636 \begin_inset Quotes erd
28640 \begin_inset Quotes eld
28648 \begin_inset Quotes erd
28652 \begin_inset Quotes eld
28660 \begin_inset Quotes erd
28664 To have for example the caption of figure floats vertically centered, use
28668 \begin_layout Standard
28673 sidecaptionvpos{figure}{c}
28676 \begin_layout Standard
28677 This was used for Figure
28678 \begin_inset space ~
28682 \begin_inset CommandInset ref
28684 reference "fig:cap-beside-fig-2"
28691 \begin_layout Standard
28692 \begin_inset VSpace medskip
28698 \begin_layout Standard
28699 The default caption width is the width of the image/table.
28700 For thin image/tables, like in Table
28701 \begin_inset space ~
28705 \begin_inset CommandInset ref
28707 reference "tab:cap-beside-tab"
28711 , this leads to captions that are too thin.
28712 You can increase the width by specifying a factor that will be multiplied
28713 with the image/table width to get the caption width.
28714 The caption width will automatically be recalculated in case it would protrude
28715 over the page or column margin due to the specified width.
28720 can either be given as optional argument for
28729 \begin_layout Standard
28737 \begin_layout Standard
28738 or in the definition of
28748 with another value.
28749 If you do the latter, your factor will be the default if
28755 is used without an argument.
28757 \begin_inset space ~
28761 \begin_inset CommandInset ref
28763 reference "tab:cap-beside-tab-wider"
28767 the factor 5 was used.
28770 \begin_layout Standard
28771 \begin_inset Note Greyedout
28774 \begin_layout Plain Layout
28779 For floats with captions set beside, you cannot use the float placement
28783 \begin_inset space ~
28788 because it is not supported by
28800 \begin_layout Standard
28801 \begin_inset VSpace medskip
28804 For more information about the package
28808 we refer to its documentation
28809 \begin_inset CommandInset citation
28818 \begin_layout Standard
28819 \begin_inset Note Greyedout
28822 \begin_layout Plain Layout
28827 The \SpecialChar LaTeX
28833 \begin_inset Index idx
28836 \begin_layout Plain Layout
28843 , described in section
28844 \begin_inset space ~
28848 \begin_inset CommandInset ref
28850 reference "subsec:Reference-Position"
28854 , has no effect on floats with the caption set beside.
28862 \begin_layout Standard
28866 \begin_layout Plain Layout
28878 \begin_layout Standard
28879 \begin_inset Float figure
28884 \begin_layout Plain Layout
28885 \begin_inset Graphics
28886 filename clipart/escher-lsd.eps
28888 scaleBeforeRotation
28895 \begin_layout Plain Layout
28896 \begin_inset Caption Standard
28898 \begin_layout Plain Layout
28899 \begin_inset CommandInset label
28901 name "fig:cap-beside-fig"
28905 This is a caption beside a figure.
28918 \begin_layout Standard
28922 \begin_layout Plain Layout
28934 \begin_layout Standard
28938 \begin_layout Plain Layout
28950 \begin_layout Standard
28951 \begin_inset Float table
28956 \begin_layout Plain Layout
28957 \begin_inset Caption Standard
28959 \begin_layout Plain Layout
28960 \begin_inset CommandInset label
28962 name "tab:cap-beside-tab"
28966 This is a caption beside a table.
28974 \begin_layout Plain Layout
28975 \begin_inset Tabular
28976 <lyxtabular version="3" rows="4" columns="5">
28977 <features tabularvalignment="middle">
28978 <column alignment="center" valignment="top">
28979 <column alignment="center" valignment="top">
28980 <column alignment="center" valignment="top">
28981 <column alignment="center" valignment="top">
28982 <column alignment="center" valignment="top">
28984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28987 \begin_layout Plain Layout
28993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28996 \begin_layout Plain Layout
29002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29005 \begin_layout Plain Layout
29011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29014 \begin_layout Plain Layout
29020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29023 \begin_layout Plain Layout
29031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29034 \begin_layout Plain Layout
29040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29043 \begin_layout Plain Layout
29049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29052 \begin_layout Plain Layout
29058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29061 \begin_layout Plain Layout
29067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29070 \begin_layout Plain Layout
29078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29081 \begin_layout Plain Layout
29087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29090 \begin_layout Plain Layout
29096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29099 \begin_layout Plain Layout
29105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29108 \begin_layout Plain Layout
29114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29117 \begin_layout Plain Layout
29125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29128 \begin_layout Plain Layout
29134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29137 \begin_layout Plain Layout
29143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29146 \begin_layout Plain Layout
29152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29155 \begin_layout Plain Layout
29161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29164 \begin_layout Plain Layout
29183 \begin_layout Standard
29187 \begin_layout Plain Layout
29199 \begin_layout Standard
29203 \begin_layout Plain Layout
29216 \begin_layout Plain Layout
29220 sidecaptionvpos{figure}{c}
29226 \begin_inset Float figure
29231 \begin_layout Plain Layout
29232 \begin_inset Graphics
29233 filename clipart/escher-lsd.eps
29235 scaleBeforeRotation
29242 \begin_layout Plain Layout
29243 \begin_inset Caption Standard
29245 \begin_layout Plain Layout
29246 \begin_inset CommandInset label
29248 name "fig:cap-beside-fig-2"
29252 This is a vertically centered caption beside a figure.
29265 \begin_layout Standard
29269 \begin_layout Plain Layout
29281 \begin_layout Standard
29285 \begin_layout Plain Layout
29297 \begin_layout Standard
29298 \begin_inset Float table
29303 \begin_layout Plain Layout
29304 \begin_inset Caption Standard
29306 \begin_layout Plain Layout
29307 \begin_inset CommandInset label
29309 name "tab:cap-beside-tab-wider"
29313 This caption is wider than the one in Table
29314 \begin_inset space ~
29318 \begin_inset CommandInset ref
29320 reference "tab:cap-beside-tab"
29332 \begin_layout Plain Layout
29333 \begin_inset Tabular
29334 <lyxtabular version="3" rows="4" columns="5">
29335 <features tabularvalignment="middle">
29336 <column alignment="center" valignment="top">
29337 <column alignment="center" valignment="top">
29338 <column alignment="center" valignment="top">
29339 <column alignment="center" valignment="top">
29340 <column alignment="center" valignment="top">
29342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29345 \begin_layout Plain Layout
29351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29354 \begin_layout Plain Layout
29360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29363 \begin_layout Plain Layout
29369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29372 \begin_layout Plain Layout
29378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29381 \begin_layout Plain Layout
29389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29392 \begin_layout Plain Layout
29398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29401 \begin_layout Plain Layout
29407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29410 \begin_layout Plain Layout
29416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29419 \begin_layout Plain Layout
29425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29428 \begin_layout Plain Layout
29436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29439 \begin_layout Plain Layout
29445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29448 \begin_layout Plain Layout
29454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29457 \begin_layout Plain Layout
29463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29466 \begin_layout Plain Layout
29472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29475 \begin_layout Plain Layout
29483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29486 \begin_layout Plain Layout
29492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29495 \begin_layout Plain Layout
29501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29504 \begin_layout Plain Layout
29510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29513 \begin_layout Plain Layout
29519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29522 \begin_layout Plain Layout
29541 \begin_layout Standard
29545 \begin_layout Plain Layout
29557 \begin_layout Standard
29561 \begin_layout Plain Layout
29571 \begin_inset Note Note
29574 \begin_layout Plain Layout
29575 The following will be displayed when the \SpecialChar LaTeX
29588 \begin_layout Standard
29589 You need to install the \SpecialChar LaTeX
29594 to see the following part of this section in the output.
29597 \begin_layout Standard
29601 \begin_layout Plain Layout
29613 \begin_layout Section
29615 \begin_inset Index idx
29618 \begin_layout Plain Layout
29619 Floats ! Float Lists
29627 \begin_layout Standard
29628 Similar to the table of contents where the sections of the document are
29629 listed, there are listings for all float types, like the figures of the
29631 You can insert them via the
29633 Insert\SpecialChar menuseparator
29635 \begin_inset space ~
29639 \begin_inset space ~
29647 \begin_layout Standard
29648 The list entries are the float captions or its short title, the float number,
29649 and the page number where they appear in the document.
29652 \begin_layout Standard
29653 You can find the list of figures and tables at the end of this document.
29656 \begin_layout Chapter
29660 \begin_layout Section
29663 \begin_inset Index idx
29666 \begin_layout Plain Layout
29667 Notes ! \SpecialChar LyX
29676 \begin_layout Standard
29677 Notes are inserted with the toolbar button
29685 Insert\SpecialChar menuseparator
29689 There are three types of notes:
29692 \begin_layout Description
29695 \begin_inset space ~
29698 Note This note type is for internal notes that won't appear in the output.
29699 Its note-box looks like this:
29700 \begin_inset Newline newline
29704 \begin_inset Newline newline
29708 \begin_inset Graphics
29709 filename clipart/LyXNoteImageQt4.png
29712 scaleBeforeRotation
29717 \begin_inset Note Note
29720 \begin_layout Plain Layout
29721 This is text in a note box that doesn't appear in the output.
29729 \begin_layout Description
29730 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29732 when you export the document to \SpecialChar LaTeX
29735 File\SpecialChar menuseparator
29736 Export\SpecialChar menuseparator
29738 (pdflatex) / (plain)
29741 Its note-box looks like this:
29742 \begin_inset Newline newline
29746 \begin_inset Newline newline
29750 \begin_inset Graphics
29751 filename clipart/CommentNoteImageQt4.png
29754 scaleBeforeRotation
29759 \begin_inset Note Comment
29762 \begin_layout Plain Layout
29763 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29772 \begin_layout Description
29774 \begin_inset space ~
29777 Out This note will appear in the output as grey text.
29778 Its note-box looks like this:
29779 \begin_inset Newline newline
29783 \begin_inset Newline newline
29787 \begin_inset Graphics
29788 filename clipart/GreyedOutNoteImageQt4.png
29791 scaleBeforeRotation
29796 \begin_inset Newline newline
29803 \begin_layout Plain Layout
29807 renewenvironment{lyxgreyedout}
29810 \begin_layout Plain Layout
29814 textcolor[gray]{0.8}
29824 \begin_inset Note Greyedout
29827 \begin_layout Plain Layout
29832 \begin_layout Plain Layout
29833 This is an example footnote within a greyed out note.
29838 of a comment that appears in the output as grey text.
29847 \begin_layout Plain Layout
29851 renewenvironment{lyxgreyedout}
29854 \begin_layout Plain Layout
29868 \begin_inset Note Note
29871 \begin_layout Plain Layout
29872 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29874 because greyed out notes are redefined in the preamble of this document,
29875 as described below, to have blue text.
29881 \begin_inset Newline newline
29885 \begin_inset Newline newline
29888 As you can see in the example, the first line of greyed out notes is a bit
29889 indented and greyed out notes can have footnotes.
29892 \begin_layout Standard
29893 \begin_inset VSpace bigskip
29896 When you use the toolbar button
29906 \begin_inset space ~
29912 You can switch between the three note types by right-clicking on the note-box.
29917 If you want to turn existing text into a note, mark it and click on the
29931 To change a note to text, press the backspace key when the cursor is in
29932 the first position of a note, or press the delete key when the cursor is
29933 in the very last position of the note, respectively.
29936 \begin_layout Standard
29937 \begin_inset VSpace bigskip
29940 You can change the text color of the greyed out notes in the menu
29942 Document\SpecialChar menuseparator
29943 Settings\SpecialChar menuseparator
29949 \begin_layout Section
29951 \begin_inset CommandInset label
29953 name "sec:Footnotes"
29958 \begin_inset Index idx
29961 \begin_layout Plain Layout
29968 \begin_inset Index idx
29971 \begin_layout Plain Layout
29980 \begin_layout Standard
29981 Footnotes can be inserted using the toolbar button
29984 arg "footnote-insert"
29989 Insert\SpecialChar menuseparator
29993 You will then see the following footnote-box:
29994 \begin_inset Graphics
29995 filename clipart/footnoteQt4.png
29997 scaleBeforeRotation
30005 where you can enter the footnote text.
30006 If you want to turn existing text into a footnote, mark it and click on
30032 key when the cursor is in the first position of a
30044 key when the cursor is in the very last position of the
30055 \begin_layout Standard
30056 Here is an example footnote:
30064 \begin_layout Plain Layout
30065 \begin_inset CommandInset label
30067 name "foot:This-is-an"
30071 This is an example footnote.
30084 \begin_layout Plain Layout
30088 newcounter{MyRepeatFoot}
30091 \begin_layout Plain Layout
30095 setcounter{MyRepeatFoot}{
30105 \begin_layout Standard
30106 The footnote will appear in the output as a superscript number at the text
30107 position where the footnote box is placed.
30108 The footnote text is placed at the bottom of the current page.
30109 The footnote number is calculated by \SpecialChar LaTeX
30110 ; the numbers are consecutive.
30111 Whether the footnote number is reset for every chapter depends on your
30115 \begin_layout Standard
30116 Footnotes can be referenced like floats: Insert a label into the footnote
30117 and cross-reference this label in the text as described in section
30118 \begin_inset space ~
30122 \begin_inset CommandInset ref
30124 reference "sec:Referencing-Floats"
30129 \begin_inset Newline newline
30132 This is a cross-reference of Footnote
30133 \begin_inset space ~
30137 \begin_inset CommandInset ref
30139 reference "foot:This-is-an"
30146 \begin_layout Standard
30147 \begin_inset VSpace defskip
30150 Footnotes in title environments are usually not numbered with symbols and
30151 they cannot contain several paragraphs.
30152 See for example the footnote in the titling of this document.
30155 \begin_layout Standard
30156 \begin_inset VSpace defskip
30159 Footnotes in tables are not printed by \SpecialChar LaTeX
30160 due to technical reasons.
30161 However there exists another method to print them: Instead of the footnote
30168 is inserted as \SpecialChar TeX
30170 The text of the footnote is entered as an argument of the \SpecialChar TeX
30179 \begin_inset Newline newline
30182 This was done for the following table with the command
30185 \begin_layout Standard
30192 Printed table footnote.
30197 \begin_layout Standard
30198 \begin_inset Tabular
30199 <lyxtabular version="3" rows="2" columns="1">
30200 <features tabularvalignment="middle">
30201 <column alignment="center" valignment="top">
30203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30206 \begin_layout Plain Layout
30207 This an example text.
30211 \begin_layout Plain Layout
30212 This footnote will not be printed!
30224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30227 \begin_layout Plain Layout
30228 This an example text.
30232 \begin_layout Plain Layout
30255 \begin_layout Plain Layout
30264 Printed table footnote.
30268 \begin_layout Plain Layout
30278 \begin_layout Standard
30279 Footnotes in longtables are described in section
30280 \begin_inset space ~
30284 \begin_inset CommandInset ref
30286 reference "subsec:Footnotes-in-Longtables"
30293 \begin_layout Standard
30294 Footnotes in minipage boxes are printed, but inside the box and with a different
30295 numbering because a minipage box is like a page inside a page.
30296 (For more about minipages, see section
30297 \begin_inset space ~
30301 \begin_inset CommandInset ref
30303 reference "sec:Minipages"
30307 .) To get a footnote in the minipage that is output at the bottom of the
30308 page like normal footnotes, also use the method of
30323 \begin_layout Standard
30324 \begin_inset Box Frameless
30334 height_special "totalheight"
30339 backgroundcolor "none"
30342 \begin_layout Plain Layout
30343 This an example text in a minipage.
30347 \begin_layout Plain Layout
30348 Footnote in the minipage.
30356 \begin_layout Plain Layout
30357 This an example text in a minipage.
30361 \begin_layout Plain Layout
30378 \begin_layout Standard
30382 \begin_layout Plain Layout
30391 Footnote outside the minipage.
30395 \begin_layout Plain Layout
30405 \begin_layout Standard
30406 \begin_inset VSpace defskip
30412 \begin_layout Standard
30413 To refer to the same footnote several times without printing the footnote
30414 text every time, use the command
30418 footnotemark[number]
30420 in \SpecialChar TeX
30422 \begin_inset Newline newline
30425 As you do not know the number of the repeating footnote while you are writing
30426 the text, you have to store its number.
30427 For the following footnote mark example, these commands were inserted in
30429 -code after Footnote
30430 \begin_inset space ~
30434 \begin_inset CommandInset ref
30436 reference "foot:This-is-an"
30440 to store the footnote number:
30443 \begin_layout Standard
30448 newcounter{MyRepeatFoot}
30449 \begin_inset Newline newline
30454 setcounter{MyRepeatFoot}{
30459 \begin_layout Standard
30460 The footnote mark was then created with this command:
30463 \begin_layout Standard
30473 \begin_layout Standard
30474 Here is a repeated footnote:
30482 \begin_layout Plain Layout
30496 \begin_layout Standard
30497 If you want to repeat the previous footnote, you can omit the storage of
30498 the footnote number and just use this command instead:
30501 \begin_layout Standard
30511 \begin_layout Standard
30512 Here is another repeated footnote:
30520 \begin_layout Plain Layout
30534 \begin_layout Subsection
30536 \begin_inset CommandInset label
30538 name "subsec:Footnote-Numbering"
30543 \begin_inset Index idx
30546 \begin_layout Plain Layout
30547 Footnotes ! Numbering
30555 \begin_layout Standard
30556 To reset the footnote number back to 1 after each section
30558 , add this command to your document preamble:
30561 \begin_layout Standard
30566 @addtoreset{footnote}{section}
30569 \begin_layout Standard
30570 \begin_inset VSpace bigskip
30573 The following preamble command changes the footnote numbering style to small
30577 \begin_layout Standard
30589 \begin_layout Standard
30593 \begin_layout Plain Layout
30606 This is a footnote with roman numbering:
30610 \begin_layout Plain Layout
30611 This is an example footnote with roman numbering.
30619 \begin_layout Standard
30620 To change the numbering style to capital roman numerals replace in the command
30635 \begin_inset Quotes eld
30639 \begin_inset Quotes erd
30642 footnotes with capital or small Latin letters use
30656 \begin_inset Quotes eld
30660 \begin_inset Quotes erd
30663 footnotes with symbols use
30672 \begin_layout Standard
30673 \begin_inset Note Greyedout
30676 \begin_layout Plain Layout
30681 You can only number 26 footnotes with Latin letters, because this numbering
30682 is limited to single letters.
30688 \begin_inset Newline newline
30692 \begin_inset Note Greyedout
30695 \begin_layout Plain Layout
30700 You can only number 9 footnotes with symbols.
30708 \begin_layout Standard
30709 To return to the default numbering style after you have changed to another
30722 in the command above.
30726 \begin_layout Plain Layout
30742 \begin_layout Standard
30743 \begin_inset VSpace bigskip
30749 \begin_layout Standard
30750 If you want to have footnotes numbered in the scheme
30751 \begin_inset Quotes eld
30755 \begin_inset Quotes erd
30758 , add the following command to your document preamble:
30761 \begin_layout Standard
30766 numberwithin{footnote}{chapter}
30769 \begin_layout Standard
30770 To be able to use the command
30779 \begin_inset space ~
30784 in the document settings the option
30787 \begin_inset space ~
30791 \begin_inset space ~
30795 \begin_inset space ~
30803 \begin_layout Standard
30807 \begin_layout Plain Layout
30811 numberwithin{footnote}{chapter}
30816 This is another example footnote:
30822 \begin_layout Plain Layout
30823 This is a footnote numbered in the scheme
30824 \begin_inset Quotes eld
30828 \begin_inset Quotes erd
30842 \begin_layout Plain Layout
30858 \begin_layout Standard
30859 \begin_inset Note Greyedout
30862 \begin_layout Plain Layout
30873 always prints out the footnote number as arabic number; previous redefinitions
30874 to get non-arabic numbers are overwritten.
30882 \begin_layout Standard
30883 So to get for example the scheme
30884 \begin_inset Quotes eld
30890 \begin_inset Quotes erd
30893 , use this command instead of
30902 \begin_layout Standard
30916 \begin_layout Subsection
30918 \begin_inset Index idx
30921 \begin_layout Plain Layout
30922 Footnotes ! Placement
30930 \begin_layout Standard
30931 If you have several footnotes in one page, they appear without vertical
30932 space between them at the bottom of the page.
30933 To make them more readable you can e.
30934 \begin_inset space \thinspace{}
30938 \begin_inset space \space{}
30942 \begin_inset space \thinspace{}
30945 mm space with the following preamble command:
30948 \begin_layout Standard
30958 \begin_inset Newline newline
30972 \begin_layout Standard
30973 \begin_inset VSpace bigskip
30976 In a two-column document the footnotes appear at the bottom of every column,
30978 \begin_inset space ~
30982 \begin_inset CommandInset ref
30984 reference "fig:Standard-footnote-placement"
30989 If the footnotes should only appear at the bottom of the right column,
30991 \begin_inset space ~
30995 \begin_inset CommandInset ref
30997 reference "fig:Footnote-placement-in"
31001 , use the \SpecialChar LaTeX
31007 \begin_inset Index idx
31010 \begin_layout Plain Layout
31012 -packages ! ftnright
31017 with this command in the document preamble:
31020 \begin_layout Standard
31025 usepackage{ftnright}
31028 \begin_layout Standard
31029 \begin_inset Float figure
31035 \begin_layout Plain Layout
31039 \begin_layout Plain Layout
31049 \begin_inset Graphics
31050 filename clipart/without_fntright.pdf
31052 scaleBeforeRotation
31060 \begin_layout Plain Layout
31070 \begin_layout Plain Layout
31071 \begin_inset Caption Standard
31073 \begin_layout Plain Layout
31074 \begin_inset CommandInset label
31076 name "fig:Standard-footnote-placement"
31080 Standard footnote placement in two-column documents.
31093 \begin_layout Standard
31094 \begin_inset Float figure
31100 \begin_layout Plain Layout
31104 \begin_layout Plain Layout
31114 \begin_inset Graphics
31115 filename clipart/with_fntright.pdf
31117 scaleBeforeRotation
31125 \begin_layout Plain Layout
31135 \begin_layout Plain Layout
31136 \begin_inset Caption Standard
31138 \begin_layout Plain Layout
31139 \begin_inset CommandInset label
31141 name "fig:Footnote-placement-in"
31145 Footnote placement in two-column documents when the \SpecialChar LaTeX
31163 \begin_layout Standard
31164 \begin_inset VSpace bigskip
31167 In some scientific literature it is usual to collect the footnotes and print
31168 them in a separate paragraph at the end of a section, as in Figure
31169 \begin_inset space ~
31173 \begin_inset CommandInset ref
31175 reference "fig:Endnotes"
31180 They are then called
31181 \begin_inset Quotes eld
31185 \begin_inset Quotes erd
31189 \begin_inset Index idx
31192 \begin_layout Plain Layout
31198 To use endnotes instead of footnotes in your document, load in the menu
31201 Document\SpecialChar menuseparator
31202 Settings\SpecialChar menuseparator
31208 \begin_inset space ~
31212 \begin_inset space ~
31218 To insert the collected footnotes, insert the command
31221 \begin_layout Standard
31229 \begin_layout Standard
31230 in \SpecialChar TeX
31231 -Code at the end of a section or chapter.
31234 \begin_layout Standard
31235 \begin_inset Float figure
31240 \begin_layout Plain Layout
31245 \begin_layout Plain Layout
31255 \begin_inset Graphics
31256 filename clipart/endnotes.pdf
31257 scaleBeforeRotation
31265 \begin_layout Plain Layout
31275 \begin_layout Plain Layout
31276 \begin_inset Caption Standard
31278 \begin_layout Plain Layout
31279 \begin_inset CommandInset label
31281 name "fig:Endnotes"
31285 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31299 \begin_layout Standard
31300 \begin_inset VSpace medskip
31303 The paragraph heading for the endnotes isn't automatically translated into
31304 the document language, this must be done manually.
31305 The following preamble command translates the default English
31306 \begin_inset Quotes eld
31310 \begin_inset Quotes erd
31314 \begin_inset Quotes eld
31318 \begin_inset Quotes erd
31324 \begin_layout Standard
31331 notesname}{Anmerkungen}
31334 \begin_layout Standard
31335 \begin_inset VSpace medskip
31338 The numbering of endnotes can be changed like the footnote numbering as
31339 described in section
31340 \begin_inset space ~
31344 \begin_inset CommandInset ref
31346 reference "subsec:Footnote-Numbering"
31350 ; just replace the command
31363 To reset the endnote number use the command
31369 as described in section
31370 \begin_inset space ~
31374 \begin_inset CommandInset ref
31376 reference "subsec:Footnote-Numbering"
31380 and replace the command parameter
31391 \begin_layout Standard
31392 For endnotes there is the command
31396 endnotemark[number]
31398 similar to the command
31404 , that is described in section
31405 \begin_inset space ~
31409 \begin_inset CommandInset ref
31411 reference "sec:Footnotes"
31418 \begin_layout Standard
31419 \begin_inset VSpace bigskip
31422 Footnotes can also be placed in the page margin and the footnote text alignment
31423 can be changed, see the \SpecialChar LaTeX
31429 \begin_inset Index idx
31432 \begin_layout Plain Layout
31434 -packages ! footmisc
31440 \begin_inset CommandInset citation
31446 for more information about this.
31449 \begin_layout Standard
31450 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31452 \begin_inset CommandInset citation
31454 key "latexcompanion,latexguide,latexbook"
31464 \begin_inset Index idx
31467 \begin_layout Plain Layout
31469 -packages ! KOMA-Script
31474 document class, you can adjust all footnote settings using class-specific
31476 \begin_inset CommandInset citation
31485 \begin_layout Section
31487 \begin_inset Index idx
31490 \begin_layout Plain Layout
31491 Notes ! Margin Notes
31499 \begin_layout Standard
31500 Margin notes look and behave in \SpecialChar LyX
31502 They are inserted via the menu
31504 Insert\SpecialChar menuseparator
31506 \begin_inset space ~
31511 or the toolbar button
31514 arg "marginalnote-insert"
31528 \begin_inset Quotes eld
31532 \begin_inset Quotes erd
31535 appears where you can enter the text of the margin note.
31538 \begin_layout Standard
31539 At the side is an example margin note.
31544 \begin_inset Marginal
31547 \begin_layout Plain Layout
31548 This is a margin note.
31556 \begin_layout Standard
31557 Margin notes appear at the right side in single-sided documents.
31558 In double-sided documents they appear in the outer margin – left on even
31559 pages, right on odd pages.
31560 The text of margin notes is aligned opposite to the outer margin – right-aligne
31561 d when the note appears in the left margin.
31562 The first line of the margin note is placed at the position of the text
31563 line where it is inserted in the document.
31566 \begin_layout Standard
31567 \begin_inset VSpace bigskip
31570 To place the margin note in the inner margin, add the command
31573 \begin_layout Standard
31581 \begin_layout Standard
31582 in \SpecialChar TeX
31583 -Code before a margin note.
31584 The new placement is valid for all subsequent margin notes.
31589 \begin_layout Plain Layout
31599 \begin_inset Marginal
31602 \begin_layout Plain Layout
31603 This is a margin note in the inner margin.
31611 \begin_inset Newline newline
31617 \begin_inset Note Greyedout
31620 \begin_layout Plain Layout
31625 There is often not enough space in the inner margin so that the notes are
31626 not correctly displayed in the output.
31634 \begin_layout Standard
31635 To return to the default placement insert the command
31638 \begin_layout Standard
31646 \begin_layout Standard
31647 in \SpecialChar TeX
31652 \begin_layout Plain Layout
31662 \begin_inset Note Greyedout
31665 \begin_layout Plain Layout
31670 The command is ignored when it is within a paragraph where also the command
31685 \begin_layout Standard
31686 \begin_inset VSpace bigskip
31693 \begin_inset Marginal
31696 \begin_layout Plain Layout
31697 AVeryLongMarginParWord that isn't hyphenated.
31705 Similar to the case described in section
31706 \begin_inset space ~
31710 \begin_inset CommandInset ref
31712 reference "subsec:Multiple-Lines-in"
31716 , long words cannot be hyphenated when they are the first word in a margin
31718 To avoid this, insert 0
31719 \begin_inset space \thinspace{}
31722 pt horizontal space before the word
31727 \begin_inset Marginal
31730 \begin_layout Plain Layout
31731 \begin_inset space \hspace*{}
31735 AVeryLongMarginParWord that is hyphenated.
31743 \begin_layout Standard
31744 \begin_inset VSpace bigskip
31750 \begin_layout Standard
31751 \begin_inset Note Greyedout
31754 \begin_layout Plain Layout
31759 Margin notes can normally not be used inside tables, floats, and footnotes.
31767 \begin_layout Standard
31768 \begin_inset VSpace bigskip
31774 \begin_layout Standard
31778 \begin_layout Plain Layout
31788 \begin_inset Note Note
31791 \begin_layout Plain Layout
31792 The following section will only be displayed when the \SpecialChar LaTeX
31805 \begin_layout Standard
31806 This restriction can be evaded by using the \SpecialChar LaTeX
31812 \begin_inset Index idx
31815 \begin_layout Plain Layout
31817 -packages ! marginnote
31823 By adding these two lines to your document preamble, the command used by
31825 for margin notes is redefined to use the command provided by the
31832 \begin_layout Standard
31837 usepackage{marginnote}
31838 \begin_inset Newline newline
31850 \begin_layout Standard
31851 This is also used in this document because
31855 has another useful feature: You can set a vertical offset for the note.
31856 This is often needed when too many margin notes are too close together
31857 or for a better page layout.
31858 The offset is set in \SpecialChar LyX
31859 as \SpecialChar TeX
31860 -Code directly after the margin note in the scheme
31863 \begin_layout Standard
31869 \begin_layout Standard
31870 where the offset is a length with one of the units listed in Table
31871 \begin_inset space ~
31875 \begin_inset CommandInset ref
31877 reference "tab:Units"
31882 A negative value shifts the note up, a positive value shifts it down.
31886 For example the margin note beside this text line is shifted up 1.5
31887 \begin_inset space \thinspace{}
31890 cm with the \SpecialChar TeX
31892 \begin_inset Quotes eld
31902 \begin_inset Quotes erd
31906 \begin_inset Marginal
31909 \begin_layout Plain Layout
31910 This margin note is shifted up 1.5
31911 \begin_inset space \thinspace{}
31914 cm from its original position.
31926 \begin_layout Plain Layout
31936 \begin_layout Standard
31937 \begin_inset VSpace medskip
31944 you can also change the alignment of the text in the margin note.
31945 For example the commands
31948 \begin_layout Standard
31955 raggedleftmarginnote}{
31958 \begin_inset Newline newline
31965 raggedrightmarginnote}{
31970 \begin_layout Standard
31971 set the alignment to centered.
31976 raggedleftmarginnote
31978 denotes margin notes that appear at the left side.
31985 \begin_layout Plain Layout
31991 raggedleftmarginnote}{
31996 \begin_layout Plain Layout
32002 raggedrightmarginnote}{
32010 \begin_inset Marginal
32013 \begin_layout Plain Layout
32014 The text of this margin note is centered.
32025 \begin_layout Standard
32032 raggedleftmarginnote}{
32035 \begin_inset Newline newline
32042 raggedrightmarginnote}{
32051 \begin_layout Plain Layout
32057 raggedleftmarginnote}{
32062 \begin_layout Plain Layout
32068 raggedrightmarginnote}{
32078 \begin_layout Standard
32079 \begin_inset VSpace medskip
32082 For the other features of
32086 refer to its documentation
32087 \begin_inset CommandInset citation
32096 \begin_layout Standard
32097 \begin_inset VSpace bigskip
32100 You can adjust the layout of margin notes by changing its definition.
32101 To create for example a header for all margin notes with the underlined,
32102 sans-serif, and bold header text
32103 \begin_inset Quotes eld
32115 \begin_inset Quotes erd
32118 , add this to your document preamble:
32121 \begin_layout Standard
32131 \begin_inset Newline newline
32141 \begin_inset Newline newline
32145 \begin_inset Phantom HPhantom
32148 \begin_layout Plain Layout
32151 \begin_inset space ~
32167 underbar{Attention!}}}%
32168 \begin_inset Newline newline
32172 \begin_inset Phantom HPhantom
32175 \begin_layout Plain Layout
32178 \begin_inset space ~
32195 \begin_layout Standard
32202 \begin_layout Plain Layout
32213 \begin_layout Plain Layout
32224 \begin_layout Plain Layout
32232 underbar{Attention!}}}%
32235 \begin_layout Plain Layout
32249 \begin_inset Marginal
32252 \begin_layout Plain Layout
32253 This is a margin note with a defined heading.
32265 \begin_layout Plain Layout
32279 \begin_layout Plain Layout
32296 \begin_inset Note Note
32299 \begin_layout Plain Layout
32300 The margin note format is changed only for this example.
32308 \begin_layout Standard
32312 \begin_layout Plain Layout
32322 \begin_inset Note Note
32325 \begin_layout Plain Layout
32326 The following will be displayed when the \SpecialChar LaTeX
32339 \begin_layout Standard
32340 You need to install the \SpecialChar LaTeX
32345 to see the following part of this section in the output.
32348 \begin_layout Standard
32352 \begin_layout Plain Layout
32364 \begin_layout Chapter
32368 \begin_layout Section
32370 \begin_inset Index idx
32373 \begin_layout Plain Layout
32374 Boxes ! Introduction
32382 \begin_layout Standard
32383 Boxes are used to format a block of text.
32384 Boxes can be used to write documents with multiple languages, see section
32385 \begin_inset space ~
32389 \begin_inset CommandInset ref
32391 reference "sec:Minipages"
32395 , to frame texts, see section
32396 \begin_inset space ~
32400 \begin_inset CommandInset ref
32402 reference "sec:Decoration"
32406 , to prevent words from being hyphenated, see section
32407 \begin_inset space ~
32411 \begin_inset CommandInset ref
32413 reference "sec:Prevent-Hyphenation"
32417 , to align text, see section
32418 \begin_inset space ~
32422 \begin_inset CommandInset ref
32424 reference "subsec:Vertical-Alignment"
32428 , or to set the background color of texts, see section
32429 \begin_inset space ~
32433 \begin_inset CommandInset ref
32435 reference "sec:Colored-Boxes"
32442 \begin_layout Standard
32443 Boxes can be inserted with the menu
32445 Insert\SpecialChar menuseparator
32448 or the toolbar button
32451 arg "box-insert Frameless"
32455 A grey box with the label
32460 \begin_inset Graphics
32461 filename clipart/BoxInsetDefaultQt4.png
32463 scaleBeforeRotation
32468 The box type can be specified by right-clicking on the box and selecting
32474 The box dialog offers the
32477 \begin_inset space ~
32499 is the default for new boxes and is explained in section
32500 \begin_inset space ~
32504 \begin_inset CommandInset ref
32506 reference "sec:Minipages"
32514 is described in section
32515 \begin_inset space ~
32519 \begin_inset CommandInset ref
32521 reference "sec:Parboxes"
32530 \begin_inset CommandInset ref
32532 reference "sec:Prevent-Hyphenation"
32539 \begin_layout Standard
32540 Boxes are not numbered and can therefore not be referenced like floats or
32544 \begin_layout Standard
32545 \begin_inset Note Greyedout
32548 \begin_layout Plain Layout
32553 Boxes must not be the item in an
32569 \begin_layout Standard
32570 \begin_inset Note Greyedout
32573 \begin_layout Plain Layout
32578 For an unknown reason you can only set the
32581 \begin_inset space ~
32590 when you use a framed box.
32594 \begin_inset space ~
32599 type and without frames are explained in section
32600 \begin_inset space ~
32604 \begin_inset CommandInset ref
32606 reference "sec:Prevent-Hyphenation"
32618 \begin_layout Section
32620 \begin_inset CommandInset label
32622 name "sec:Box-Dialog"
32627 \begin_inset Index idx
32630 \begin_layout Plain Layout
32639 \begin_layout Subsection
32641 \begin_inset Index idx
32644 \begin_layout Plain Layout
32653 \begin_layout Standard
32654 In the box dialog you can adjust the box geometry in the fields
32663 The available units for the geometry are explained in Table
32664 \begin_inset space ~
32668 \begin_inset CommandInset ref
32670 reference "tab:Units"
32679 offers the following additional sizes:
32682 \begin_layout Description
32683 Depth This is the plain text
32684 \begin_inset Quotes eld
32688 \begin_inset Quotes erd
32692 It ignores the total depth when there are multiple text lines in the box:
32693 \begin_inset Newline newline
32697 \begin_inset Newline newline
32701 \begin_inset Newline newline
32705 \begin_inset Box Boxed
32715 height_special "depth"
32720 backgroundcolor "none"
32723 \begin_layout Plain Layout
32725 Box height set to 1
32726 \begin_inset space \thinspace{}
32735 \begin_inset Newline newline
32739 \begin_inset Newline newline
32745 \begin_layout Description
32746 Height This is the height of the text that is inside the box.
32748 \begin_inset space \thinspace{}
32752 \begin_inset space \space{}
32755 2 for this size will set the box height to 2
32756 \begin_inset space ~
32759 times the text height:
32760 \begin_inset Box Boxed
32770 height_special "height"
32775 backgroundcolor "none"
32778 \begin_layout Plain Layout
32780 Box height set to 2
32781 \begin_inset space \thinspace{}
32792 \begin_layout Description
32794 \begin_inset space ~
32797 Height This is the Height
32798 \begin_inset space \thinspace{}
32802 \begin_inset space \thinspace{}
32806 \begin_inset Box Boxed
32816 height_special "totalheight"
32821 backgroundcolor "none"
32824 \begin_layout Plain Layout
32826 Box height set to 1
32827 \begin_inset space \thinspace{}
32831 \begin_inset space ~
32842 \begin_layout Description
32843 Width This sets the width of the box as height:
32844 \begin_inset Box Boxed
32854 height_special "width"
32859 backgroundcolor "none"
32862 \begin_layout Plain Layout
32864 Box height set to 1
32865 \begin_inset space \thinspace{}
32876 \begin_layout Subsection
32878 \begin_inset Index idx
32881 \begin_layout Plain Layout
32890 \begin_layout Standard
32891 When you have chosen an
32894 \begin_inset space ~
32899 , the vertical box alignment can be:
32902 \begin_layout Description
32903 Top This is an example text line.
32905 \begin_inset Box Boxed
32915 height_special "totalheight"
32920 backgroundcolor "none"
32923 \begin_layout Plain Layout
32925 This box is top-aligned.
32930 This is an example text line.
32933 \begin_layout Description
32934 Middle This is an example text line.
32936 \begin_inset Box Boxed
32946 height_special "totalheight"
32951 backgroundcolor "none"
32954 \begin_layout Plain Layout
32956 This box is middle-aligned.
32961 This is an example text line.
32964 \begin_layout Description
32965 Bottom This is an example text line.
32967 \begin_inset Box Boxed
32977 height_special "totalheight"
32982 backgroundcolor "none"
32985 \begin_layout Plain Layout
32987 This box is bottom-aligned.
32992 This is an example text line.
32995 \begin_layout Standard
32996 \begin_inset Note Greyedout
32999 \begin_layout Plain Layout
33004 The vertical box alignment can be lost in the output when you have two
33005 boxes in a line and one has e.
33006 \begin_inset space \thinspace{}
33010 \begin_inset space \space{}
33013 a shadow and the other one not.
33021 \begin_layout Standard
33022 The horizontal box alignment can be set via \SpecialChar LyX
33023 's paragraph dialog when you
33024 set the box into its own paragraph.
33027 \begin_layout Standard
33028 \begin_inset VSpace bigskip
33031 When you have chosen an
33034 \begin_inset space ~
33039 , the box content can be aligned vertically to:
33042 \begin_layout Description
33043 top This is an example text line.
33045 \begin_inset Box Boxed
33055 height_special "totalheight"
33060 backgroundcolor "none"
33063 \begin_layout Plain Layout
33065 This box text is top-aligned.
33070 This is an example text line.
33073 \begin_layout Description
33074 middle This is an example text line.
33076 \begin_inset Box Boxed
33086 height_special "totalheight"
33091 backgroundcolor "none"
33094 \begin_layout Plain Layout
33096 This box text is middle-aligned.
33101 This is an example text line.
33104 \begin_layout Description
33105 bottom This is an example text line.
33107 \begin_inset Box Boxed
33117 height_special "totalheight"
33122 backgroundcolor "none"
33125 \begin_layout Plain Layout
33127 This box text is bottom-aligned.
33132 This is an example text line.
33135 \begin_layout Description
33136 stretch This is an example text line.
33138 \begin_inset Box Boxed
33148 height_special "totalheight"
33153 backgroundcolor "none"
33156 \begin_layout Plain Layout
33161 \begin_layout Plain Layout
33166 \begin_layout Plain Layout
33173 This is an example text line.
33176 \begin_layout Standard
33177 To stretch the box content, it must consist of more than one paragraph.
33178 In the example above every text line is in an own paragraph.
33181 \begin_layout Standard
33182 \begin_inset VSpace bigskip
33185 To align the box content horizontally you can use \SpecialChar LyX
33186 's paragraph dialog when
33190 \begin_inset space ~
33198 \begin_layout Standard
33200 \begin_inset Box Boxed
33210 height_special "totalheight"
33215 backgroundcolor "none"
33218 \begin_layout Plain Layout
33223 \begin_layout Plain Layout
33228 \begin_layout Plain Layout
33238 \begin_layout Standard
33239 If you have not set an
33242 \begin_inset space ~
33247 , you can align the box content horizontally in the box dialog.
33248 \begin_inset Separator parbreak
33254 \begin_layout Standard
33256 \begin_inset Box Boxed
33266 height_special "totalheight"
33271 backgroundcolor "none"
33274 \begin_layout Plain Layout
33275 This box text is horizontally stretched.
33283 \begin_layout Subsection
33285 \begin_inset CommandInset label
33287 name "sec:Decoration"
33292 \begin_inset Index idx
33295 \begin_layout Plain Layout
33304 \begin_layout Standard
33305 The type of the box can be specified in the box dialog in the drop-down
33311 The following types are possible:
33314 \begin_layout Description
33316 \begin_inset space ~
33319 frame Nothing is drawn.
33322 \begin_layout Description
33324 \begin_inset space ~
33328 \begin_inset space ~
33331 frame This draws a rectangular frame around the box.
33332 The frame line thickness can be specified.
33334 \begin_inset Box Boxed
33344 height_special "totalheight"
33349 backgroundcolor "none"
33352 \begin_layout Plain Layout
33362 \begin_layout Description
33364 \begin_inset space ~
33368 \begin_inset space ~
33371 thin This draws an oval frame around the box.
33372 The frame line thickness has the size 0.4
33373 \begin_inset space \thinspace{}
33378 \begin_inset Box ovalbox
33388 height_special "totalheight"
33393 backgroundcolor "none"
33396 \begin_layout Plain Layout
33406 \begin_layout Description
33408 \begin_inset space ~
33412 \begin_inset space ~
33415 thick This draws an oval frame around the box.
33416 The frame line thickness has the size 0.8
33417 \begin_inset space \thinspace{}
33422 \begin_inset Box Ovalbox
33432 height_special "totalheight"
33437 backgroundcolor "none"
33440 \begin_layout Plain Layout
33450 \begin_layout Description
33452 \begin_inset space ~
33455 shadow This draws a rectangular frame with a shadow around the box.
33456 The frame line thickness and the shadow can be specified.
33458 \begin_inset Box Shadowbox
33468 height_special "totalheight"
33473 backgroundcolor "none"
33476 \begin_layout Plain Layout
33486 \begin_layout Description
33488 \begin_inset space ~
33491 background This draws a box with a red background.
33492 Unlike colored boxes
33496 \begin_layout Plain Layout
33498 \begin_inset space \thinspace{}
33502 \begin_inset CommandInset ref
33504 reference "sec:Colored-Boxes"
33513 , it always uses the whole column width and the box is set as its own paragraph.
33515 \begin_inset Box Shaded
33525 height_special "totalheight"
33530 backgroundcolor "none"
33533 \begin_layout Plain Layout
33534 Shaded background box
33542 \begin_layout Description
33544 \begin_inset space ~
33548 \begin_inset space ~
33551 frame This draws a double-line rectangular frame around the box.
33552 The line thickness of the inner frame is 0.75
33553 \begin_inset space \thinspace{}
33557 \begin_inset space ~
33560 thickness, the thickness of the outer frame is 1.5
33561 \begin_inset space \thinspace{}
33565 \begin_inset space ~
33569 The distance between the lines is 1.5
33570 \begin_inset space \thinspace{}
33574 \begin_inset space ~
33578 \begin_inset space \thinspace{}
33582 \begin_inset space \thinspace{}
33586 \begin_inset space \thinspace{}
33591 \begin_inset Box Doublebox
33601 height_special "totalheight"
33606 backgroundcolor "none"
33609 \begin_layout Plain Layout
33611 Double rectangular box
33619 \begin_layout Standard
33620 \begin_inset VSpace bigskip
33624 's box label will reflect the different frame types.
33625 To be able to use all types, the \SpecialChar LaTeX
33631 \begin_inset Index idx
33634 \begin_layout Plain Layout
33636 -packages ! fancybox
33644 \begin_layout Standard
33645 \begin_inset VSpace bigskip
33648 When you use the decoration
33650 simple rectangular frame
33652 and no inner box, you can allow page breaks within a box.
33653 Note that then, unlike other framed boxes, the frame always uses the whole
33654 column width, the box is set as its own paragraph, and
33666 have no effect on this box type.
33667 The frame line thickness has the size of
33675 \begin_inset Box Framed
33685 height_special "totalheight"
33690 backgroundcolor "none"
33693 \begin_layout Plain Layout
33694 Allow page break box
33702 \begin_layout Section
33704 \begin_inset Index idx
33707 \begin_layout Plain Layout
33708 Boxes ! Customization
33716 \begin_layout Standard
33717 The diameter of the round corners of the oval boxes can be set with the
33728 \begin_layout Standard
33736 \begin_layout Standard
33737 sets the diameter to 1
33738 \begin_inset space \thinspace{}
33745 \begin_layout Standard
33753 \begin_layout Standard
33754 sets the diameter to
33757 \begin_inset space \thinspace{}
33761 \begin_inset space \thinspace{}
33764 minimum(width and height of box)
33776 \begin_layout Standard
33780 \begin_layout Plain Layout
33790 \begin_inset Box Ovalbox
33800 height_special "totalheight"
33805 backgroundcolor "none"
33808 \begin_layout Plain Layout
33817 \begin_inset space \thinspace{}
33821 \begin_inset space \thinspace{}
33825 \begin_inset space \thinspace{}
33837 \begin_layout Plain Layout
33849 \begin_layout Standard
33850 \begin_inset VSpace bigskip
33856 \begin_layout Standard
33861 boxes the default space between the box content and the box border is 3
33862 \begin_inset space \thinspace{}
33865 pt and can be changed with the value of
33872 The default background color red can either be changed locally with the
33877 definecolor{shadecolor}
33879 or globally with the menu
33881 Tools\SpecialChar menuseparator
33882 Preferences\SpecialChar menuseparator
33883 Colors\SpecialChar menuseparator
33885 \begin_inset space ~
33897 command is explained in section
33898 \begin_inset space ~
33902 \begin_inset CommandInset ref
33904 reference "sec:Colored-Tables"
33912 \begin_layout Plain Layout
33919 requires the \SpecialChar LaTeX
33924 in the preamble, see section
33925 \begin_inset space ~
33929 \begin_inset CommandInset ref
33931 reference "sec:Colored-Boxes"
33940 For example the appearance of the following shaded background box is set
33941 with the \SpecialChar TeX
33945 \begin_layout Standard
33955 \begin_inset Newline newline
33962 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33965 \begin_layout Standard
33969 \begin_layout Plain Layout
33978 \begin_layout Plain Layout
33982 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33988 \begin_inset Box Shaded
33998 height_special "totalheight"
34003 backgroundcolor "none"
34006 \begin_layout Plain Layout
34009 This is yellow text in a
34019 box with dark green background.
34028 \begin_layout Plain Layout
34037 \begin_layout Plain Layout
34041 definecolor{shadecolor}{rgb}{1,0,0}
34049 \begin_layout Standard
34050 \begin_inset VSpace bigskip
34053 Manually changed lengths, widths and colors are valid for all boxes following
34054 the commands that change them.
34057 \begin_layout Section
34059 \begin_inset CommandInset label
34061 name "sec:Minipages"
34066 \begin_inset Index idx
34069 \begin_layout Plain Layout
34078 \begin_layout Standard
34079 Minipages are treated by \SpecialChar LaTeX
34080 as pages within pages and can therefore for example
34081 have their own footnotes.
34084 \begin_layout Standard
34085 Minipages are useful when you write documents with different languages.
34088 \begin_layout Standard
34089 Below are two example minipages side by side.
34090 Their width is set to 45
34091 \begin_inset space \thinspace{}
34094 col% and they are separated by a horizontal fill, that was inserted via
34097 Insert\SpecialChar menuseparator
34099 \begin_inset space ~
34102 Formatting\SpecialChar menuseparator
34104 \begin_inset space ~
34110 \begin_inset Newpage newpage
34116 \begin_layout Standard
34117 \begin_inset Box Frameless
34127 height_special "totalheight"
34132 backgroundcolor "none"
34135 \begin_layout Plain Layout
34138 Dies ist ein deutscher Text.
34139 Dies ist ein deutscher Text.
34140 Dies ist ein deutscher Text.
34141 Dies ist ein deutscher Text.
34142 Dies ist ein deutscher Text.
34143 Dies ist ein deutscher Text.
34144 Dies ist ein deutscher Text.
34145 Dies ist ein deutscher Text.
34146 Dies ist ein deutscher Text.
34147 Dies ist ein deutscher Text.
34148 Dies ist ein deutscher Text.
34149 Dies ist ein deutscher Text.
34150 Dies ist ein deutscher Text
34154 \begin_layout Plain Layout
34157 Dies ist eine deutsche Fußnote.
34163 Dies ist ein deutscher Text.
34164 Dies ist ein deutscher Text.
34170 \begin_inset space \hfill{}
34174 \begin_inset Box Frameless
34184 height_special "totalheight"
34189 backgroundcolor "none"
34192 \begin_layout Plain Layout
34193 This is an English Text.
34194 This is an English Text.
34195 This is an English Text.
34196 This is an English Text.
34197 This is an English Text.
34198 This is an English Text.
34199 This is an English Text.
34200 This is an English Text.
34201 This is an English Text.
34202 This is an English Text.
34203 This is an English Text.
34204 This is an English Text.
34205 This is an English Text.
34206 This is an English Text.
34207 This is an English Text.
34208 This is an English Text.
34212 \begin_layout Plain Layout
34213 This is an English footnote.
34218 This is an English Text.
34226 \begin_layout Standard
34227 \begin_inset VSpace bigskip
34230 The document-wide paragraph settings are ignored within minipages.
34231 That means that there will be no space between paragraphs in minipages
34232 although you set it to e.
34233 \begin_inset space \thinspace{}
34237 \begin_inset space \space{}
34244 in the document settings.
34247 \begin_layout Standard
34248 Minipages can also be used to set a background color for text parts, see
34250 \begin_inset space ~
34254 \begin_inset CommandInset ref
34256 reference "sec:Colored-Boxes"
34263 \begin_layout Standard
34264 \begin_inset Note Greyedout
34267 \begin_layout Plain Layout
34272 You cannot have floats or margin notes inside minipages but minipages can
34273 be used inside tables, floats, and other boxes.
34281 \begin_layout Section
34283 \begin_inset CommandInset label
34285 name "sec:Parboxes"
34290 \begin_inset Index idx
34293 \begin_layout Plain Layout
34302 \begin_layout Standard
34303 Parboxes are very similar to minipages with the difference that they cannot
34305 \begin_inset Separator parbreak
34311 \begin_layout Standard
34313 \begin_inset Box Frameless
34323 height_special "totalheight"
34328 backgroundcolor "none"
34331 \begin_layout Plain Layout
34332 This a text within a parbox.
34333 This a text within a parbox.
34336 \begin_layout Plain Layout
34337 This footnote won't appear:
34341 \begin_layout Plain Layout
34342 This footnote is inside a parbox and will therefore not appear.
34355 \begin_layout Section
34356 Boxes for Words and Characters
34357 \begin_inset Index idx
34360 \begin_layout Plain Layout
34361 Boxes ! for Characters
34369 \begin_layout Subsection
34370 Prevent Hyphenation
34371 \begin_inset CommandInset label
34373 name "sec:Prevent-Hyphenation"
34378 \begin_inset Index idx
34381 \begin_layout Plain Layout
34382 Boxes ! to Prevent Hyphenation
34390 \begin_layout Standard
34391 You can use the box type
34395 to prevent words or text from being hyphenated.
34396 \begin_inset Newline newline
34399 Here is an example text:
34402 \begin_layout Standard
34403 This line is an example to show how you can prevent the hyphenation of
34404 \begin_inset Quotes eld
34408 \begin_inset Quotes erd
34414 \begin_layout Standard
34415 To prevent the hyphenation of the word
34416 \begin_inset Quotes eld
34420 \begin_inset Quotes erd
34423 , put the word into a box, set the
34426 \begin_inset space ~
34435 and use no explicit width.
34438 \begin_layout Standard
34439 This is the result:
34442 \begin_layout Standard
34443 This line is an example to show how you can prevent the hyphenation of
34444 \begin_inset Box Frameless
34454 height_special "totalheight"
34459 backgroundcolor "none"
34462 \begin_layout Plain Layout
34463 \begin_inset Quotes eld
34467 \begin_inset Quotes erd
34478 \begin_layout Standard
34479 You can alternatively set the command
34480 \begin_inset Quotes eld
34490 \begin_inset Quotes grd
34493 as \SpecialChar TeX
34494 -Code directly before the word:
34497 \begin_layout Standard
34498 This line is an example to show how you can prevent the hyphenation of
34499 \begin_inset Quotes eld
34506 \begin_layout Plain Layout
34516 \begin_inset Quotes erd
34522 \begin_layout Standard
34523 Of course the word now protrudes over the side margin.
34524 To avoid this, add via the menu
34526 Insert\SpecialChar menuseparator
34527 Formatting\SpecialChar menuseparator
34529 \begin_inset space ~
34533 \begin_inset space ~
34541 arg "newline-insert newline"
34544 ) a line break before the word:
34547 \begin_layout Standard
34548 This line is an example to show how you can prevent the hyphenation of
34549 \begin_inset Newline newline
34553 \begin_inset Box Frameless
34563 height_special "totalheight"
34568 backgroundcolor "none"
34571 \begin_layout Plain Layout
34572 \begin_inset Quotes eld
34576 \begin_inset Quotes erd
34587 \begin_layout Subsection
34589 \begin_inset CommandInset label
34591 name "subsec:Vertical-Alignment"
34596 \begin_inset Index idx
34599 \begin_layout Plain Layout
34600 Boxes ! for Vertical Alignment
34606 \begin_inset Index idx
34609 \begin_layout Plain Layout
34618 \begin_layout Standard
34619 With the help of the command
34625 you can align words, characters or other boxes vertically relative to the
34633 is used with the following scheme:
34636 \begin_layout Standard
34641 raisebox{lift}[height][depth]{box content}
34644 \begin_layout Standard
34645 The lift can be a positive value to raise the box or a negative value to
34649 \begin_layout Standard
34650 To align for example the word
34651 \begin_inset Quotes eld
34655 \begin_inset Quotes erd
34658 so that the bottom of the
34659 \begin_inset Quotes eld
34663 \begin_inset Quotes erd
34667 \begin_inset Quotes eld
34671 \begin_inset Quotes erd
34674 is at the baseline, insert the command
34677 \begin_layout Standard
34687 \begin_layout Standard
34688 in \SpecialChar TeX
34689 -Code before the word.
34690 After the word insert a closing brace
34691 \begin_inset Quotes eld
34699 \begin_inset Quotes erd
34702 in \SpecialChar TeX
34704 \begin_inset Newline newline
34707 This is the result:
34710 \begin_layout Standard
34711 This is a text line with the word
34715 \begin_layout Plain Layout
34727 \begin_inset Quotes eld
34731 \begin_inset Quotes erd
34738 \begin_layout Plain Layout
34748 \begin_layout Standard
34749 \begin_inset VSpace bigskip
34752 When you raise or lower characters in a line, the line distance will be
34756 \begin_layout Standard
34757 This is a text line with the word
34761 \begin_layout Plain Layout
34773 \begin_inset Quotes eld
34777 \begin_inset Quotes erd
34784 \begin_layout Plain Layout
34792 \begin_inset Newline newline
34795 This is a text line with the word
34799 \begin_layout Plain Layout
34809 \begin_inset Quotes eld
34813 \begin_inset Quotes erd
34820 \begin_layout Plain Layout
34830 \begin_layout Standard
34831 If you want to prevent this for a certain reason, set the box height to
34836 \begin_layout Standard
34846 \begin_layout Standard
34847 This is a text line with the word
34851 \begin_layout Plain Layout
34863 \begin_inset Quotes eld
34867 \begin_inset Quotes erd
34874 \begin_layout Plain Layout
34882 \begin_inset Newline newline
34886 \begin_inset Newline newline
34889 This is a text line with the word
34893 \begin_layout Plain Layout
34897 raisebox{0.5cm}[0pt]{
34903 \begin_inset Quotes eld
34907 \begin_inset Quotes erd
34914 \begin_layout Plain Layout
34924 \begin_layout Section
34926 \begin_inset CommandInset label
34928 name "sec:Colored-Boxes"
34933 \begin_inset Index idx
34936 \begin_layout Plain Layout
34945 \begin_layout Standard
34946 To color the background of a box just select the color you like in the box
34948 This is for example a box with orange background:
34949 \begin_inset Box Frameless
34959 height_special "totalheight"
34964 backgroundcolor "orange"
34967 \begin_layout Plain Layout
34968 Box with orange background
34976 \begin_layout Standard
34977 If you use the decoration
34980 \begin_inset space ~
34984 \begin_inset space ~
34989 you can set a frame color.
34990 In this case you must also specify a background color (LyX sets white as
34992 Here is an example:
34993 \begin_inset Box Boxed
35003 height_special "totalheight"
35008 backgroundcolor "yellow"
35011 \begin_layout Plain Layout
35012 Box with teal frame color and yellow background color
35020 \begin_layout Standard
35021 \begin_inset VSpace bigskip
35024 Of course you can also have colored text inside a colored box:
35025 \begin_inset Newline newline
35029 \begin_inset Box Boxed
35039 height_special "totalheight"
35044 backgroundcolor "magenta"
35047 \begin_layout Plain Layout
35050 This is colored text within a colored, framed box
35058 \begin_layout Standard
35059 \begin_inset VSpace bigskip
35065 \begin_layout Standard
35066 If you need another color than the predefined ones, you can define your
35067 own color as described in section
35068 \begin_inset space ~
35072 \begin_inset CommandInset ref
35074 reference "sec:Colored-Tables"
35079 To use your own color you must typeset the box by using TeX code:
35082 \begin_layout Standard
35083 Colored boxes without frame are created with the command
35090 It has the following scheme:
35093 \begin_layout Standard
35098 colorbox{color}{box content}
35101 \begin_layout Standard
35102 The box content can also be a box and colored boxes can also be within other
35105 \begin_inset space \thinspace{}
35109 \begin_inset space \space{}
35112 a darkgreen background for a word, insert the command
35115 \begin_layout Standard
35120 colorbox{darkgreen}{
35123 \begin_layout Standard
35124 before the word in \SpecialChar TeX
35126 After the word insert a closing brace
35127 \begin_inset Quotes eld
35135 \begin_inset Quotes erd
35138 in \SpecialChar TeX
35140 \begin_inset Newline newline
35143 This is the result:
35146 \begin_layout Standard
35147 This is a line where the word
35151 \begin_layout Plain Layout
35155 colorbox{darkgreen}{
35161 \begin_inset Quotes eld
35165 \begin_inset Quotes erd
35172 \begin_layout Plain Layout
35179 has a darkgreen background.
35182 \begin_layout Standard
35183 Framed, colored boxes are created with the command
35190 It has the following scheme:
35193 \begin_layout Standard
35198 fcolorbox{frame color}{box color}{box content}
35201 \begin_layout Section
35202 Rotated and Scaled Boxes
35205 \begin_layout Standard
35206 To use the commands described in this section, the \SpecialChar LaTeX
35212 \begin_inset Index idx
35215 \begin_layout Plain Layout
35217 -packages ! graphicx
35222 needs to be loaded in the document preamble with the command
35225 \begin_layout Standard
35230 @ifundefined{rotatebox}
35231 \begin_inset Newline newline
35235 \begin_inset Phantom HPhantom
35238 \begin_layout Plain Layout
35241 \begin_inset space ~
35251 usepackage{graphicx}}{}
35254 \begin_layout Standard
35255 \begin_inset Note Greyedout
35258 \begin_layout Plain Layout
35263 Not all DVI-viewers are able to display rotated or scaled material.
35271 \begin_layout Standard
35272 \begin_inset Note Greyedout
35275 \begin_layout Plain Layout
35280 Floats are not allowed inside a rotated or scaled box.
35288 \begin_layout Subsection
35290 \begin_inset Index idx
35293 \begin_layout Plain Layout
35300 \begin_inset Index idx
35303 \begin_layout Plain Layout
35312 \begin_layout Standard
35313 To rotate material, you can put it into a rotated box.
35314 Such a box is created using the command
35320 in \SpecialChar TeX
35321 -Code with the following scheme:
35324 \begin_layout Standard
35329 rotatebox[rotation origin]{rotation angle}{box content}
35332 \begin_layout Standard
35333 The rotation origin is specified in the form
35338 The following positions are possible:
35358 (top), along with meaningful combinations of the four base positions.
35363 means that the rotation origin is at the top left corner of the box.
35364 When no rotation origin is specified, the position
35369 The rotation angle is a number that can be negative that specifies the
35371 The rotation direction is counterclockwise.
35374 \begin_layout Standard
35375 In the following example the command
35379 rotatebox[origin=c]{60}{
35381 was inserted as \SpecialChar TeX
35382 -Code before the text
35383 \begin_inset Quotes eld
35387 \begin_inset Quotes erd
35390 ; after the text the box was closed by a closing brace
35394 in \SpecialChar TeX
35398 \begin_layout Standard
35403 \begin_layout Plain Layout
35407 rotatebox[origin=c]{60}{
35416 \begin_layout Plain Layout
35426 \begin_layout Standard
35427 The box content can also be another box or an inline formula:
35430 \begin_layout Standard
35435 \begin_layout Plain Layout
35439 rotatebox[origin=r]{-60}{
35445 \begin_inset Box Doublebox
35455 height_special "totalheight"
35460 backgroundcolor "none"
35463 \begin_layout Plain Layout
35473 \begin_layout Plain Layout
35484 \begin_layout Plain Layout
35488 rotatebox[origin=lb]{60}{
35494 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35501 \begin_layout Plain Layout
35511 \begin_layout Standard
35512 or an image or table:
35515 \begin_layout Standard
35520 \begin_layout Plain Layout
35524 rotatebox[origin=lb]{90}{
35530 \begin_inset Graphics
35531 filename clipart/platypus.eps
35541 \begin_layout Plain Layout
35548 with a rotated image
35552 \begin_layout Plain Layout
35556 rotatebox[origin=l]{-90}{
35562 \begin_inset Tabular
35563 <lyxtabular version="3" rows="2" columns="2">
35564 <features tabularvalignment="middle">
35565 <column alignment="center" valignment="top">
35566 <column alignment="center" valignment="top">
35568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35571 \begin_layout Plain Layout
35577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35580 \begin_layout Plain Layout
35588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35591 \begin_layout Plain Layout
35597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35600 \begin_layout Plain Layout
35615 \begin_layout Plain Layout
35623 \begin_inset Index idx
35626 \begin_layout Plain Layout
35633 \begin_inset Index idx
35636 \begin_layout Plain Layout
35637 Table Customization ! Rotating
35645 \begin_layout Subsection
35647 \begin_inset Index idx
35650 \begin_layout Plain Layout
35657 \begin_inset Index idx
35660 \begin_layout Plain Layout
35669 \begin_layout Standard
35670 To scale material the commands
35682 can be used as \SpecialChar TeX
35686 \begin_layout Standard
35693 is used with the following scheme:
35696 \begin_layout Standard
35701 scalebox{horizontal}[vertical]{box content}
35704 \begin_layout Standard
35705 Horizontal and vertical are the corresponding scaling factors.
35706 If no vertical scaling factor is given, the horizontal factor will also
35707 be used as the vertical one.
35710 \begin_layout Standard
35717 creates for example a double size
35721 \begin_layout Plain Layout
35734 \begin_layout Plain Layout
35741 , compared with the document text size.
35744 \begin_layout Standard
35749 scalebox{2}[1]{Hello}
35751 on the other hand distorts the
35755 \begin_layout Plain Layout
35768 \begin_layout Plain Layout
35778 \begin_layout Standard
35779 If the scaling factor is negative, the box content will be mirrored.
35780 Therefore the command
35784 scalebox{-1}[1]{Hello}
35786 can be used to create mirror writing:
35790 \begin_layout Plain Layout
35803 \begin_layout Plain Layout
35813 \begin_layout Standard
35818 scalebox{1}[-1]{Hello}
35824 \begin_layout Plain Layout
35837 \begin_layout Plain Layout
35847 \begin_layout Standard
35852 scalebox{-1}[1]{box content}
35854 there exists the command
35855 \begin_inset Newline newline
35862 reflectbox{box content}
35867 \begin_layout Standard
35868 \begin_inset VSpace bigskip
35877 is used to scale the box to a defined width and height.
35878 The command scheme is:
35881 \begin_layout Standard
35886 resizebox{width}{height}{box content}
35889 \begin_layout Standard
35890 If one of the two command arguments given is an exclamation mark
35894 , the size is set so that the aspect ratio of the box content is kept.
35897 \begin_layout Standard
35902 resizebox{2cm}{1cm}{Hello}
35908 \begin_layout Plain Layout
35912 resizebox{2cm}{1cm}{
35921 \begin_layout Plain Layout
35929 \begin_inset Newline newline
35936 resizebox{2cm}{!}{Hello}
35942 \begin_layout Plain Layout
35955 \begin_layout Plain Layout
35965 \begin_layout Standard
35966 \begin_inset VSpace bigskip
35970 \begin_inset Note Greyedout
35973 \begin_layout Plain Layout
35990 are set to zero, no \SpecialChar LaTeX
35991 -errors occur when exporting the document but the exported
35992 files can not or only partly be displayed.
36000 \begin_layout Standard
36001 \begin_inset VSpace bigskip
36007 \begin_layout Standard
36008 The boxes can be combined in any order.
36010 \begin_inset space \thinspace{}
36014 \begin_inset space \space{}
36018 \begin_inset Newline newline
36025 rotatebox[origin=c]{-45}{
36029 reflectbox{Hello}}}
36030 \begin_inset Newline newline
36036 \begin_inset Separator parbreak
36042 \begin_layout Standard
36047 \begin_layout Plain Layout
36051 rotatebox[origin=c]{-45}{
36064 \begin_layout Plain Layout
36074 \begin_layout Standard
36076 Images, tables, and inline formulas are allowed as box content:
36077 \begin_inset Separator parbreak
36083 \begin_layout Standard
36088 \begin_layout Plain Layout
36092 rotatebox[origin=c]{-30}{
36102 \begin_inset Graphics
36103 filename clipart/platypus.eps
36113 \begin_layout Plain Layout
36124 \begin_layout Plain Layout
36128 rotatebox[origin=c]{-45}{
36138 \begin_inset Tabular
36139 <lyxtabular version="3" rows="2" columns="2">
36140 <features tabularvalignment="middle">
36141 <column alignment="center" valignment="top">
36142 <column alignment="center" valignment="top">
36144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36147 \begin_layout Plain Layout
36153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36156 \begin_layout Plain Layout
36164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36167 \begin_layout Plain Layout
36173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36176 \begin_layout Plain Layout
36191 \begin_layout Plain Layout
36202 \begin_layout Plain Layout
36206 rotatebox[origin=c]{-45}{
36216 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36223 \begin_layout Plain Layout
36231 \begin_inset Index idx
36234 \begin_layout Plain Layout
36241 \begin_inset Index idx
36244 \begin_layout Plain Layout
36245 Table Customization ! Scaling
36253 \begin_layout Standard
36254 When the global formula style
36258 is used in the document
36262 \begin_layout Plain Layout
36264 \begin_inset Quotes eld
36268 \begin_inset Quotes erd
36271 is added to the document class options.
36276 , display style formulas can also be scaled.
36279 \begin_layout Chapter
36280 Objects Surrounded by Text
36281 \begin_inset Index idx
36284 \begin_layout Plain Layout
36293 \begin_layout Section
36295 \begin_inset CommandInset label
36297 name "sec:Wrap-Floats"
36302 \begin_inset Index idx
36305 \begin_layout Plain Layout
36306 Floats ! Wrap Floats
36312 \begin_inset Index idx
36315 \begin_layout Plain Layout
36316 Surrounded by text ! Wrap Floats
36324 \begin_layout Standard
36325 \begin_inset Wrap figure
36332 \begin_layout Plain Layout
36333 \begin_inset Graphics
36334 filename clipart/mobius.eps
36336 scaleBeforeRotation
36337 rotateOrigin center
36344 \begin_layout Plain Layout
36345 \begin_inset Caption Standard
36347 \begin_layout Plain Layout
36348 \begin_inset CommandInset label
36350 name "fig:This-is-a"
36354 This is a figure wrap float.
36364 This float type is used if you want to wrap text around a figure or table
36365 so that it only occupies some fraction of the column width.
36366 It can be inserted using the menu
36368 Insert\SpecialChar menuseparator
36369 Floats\SpecialChar menuseparator
36371 \begin_inset space ~
36375 \begin_inset space ~
36383 \begin_inset space ~
36387 \begin_inset space ~
36392 if the \SpecialChar LaTeX
36398 \begin_inset Index idx
36401 \begin_layout Plain Layout
36403 -packages ! wrapfig
36412 \begin_layout Plain Layout
36413 Installing a \SpecialChar LaTeX
36414 -package is explained it in the
36418 \begin_inset space ~
36428 The settings of the float can be modified by right-clicking on the float
36430 The mandatory settings are the float
36443 that specifies how much the float is set into the paragraph
36444 \begin_inset space \thinspace{}
36448 \begin_inset space \thinspace{}
36451 page margin, and the
36454 \begin_inset space ~
36459 that specifies how many text lines the float will approximately need.
36460 The line span is often hard to approximate; so it is better only to use
36461 it when you encounter float placement problems.
36462 You can furthermore decide if \SpecialChar LaTeX
36463 is allowed to let the float float within
36464 the paragraph or to surrounding paragraphs.
36466 \begin_inset space ~
36470 \begin_inset CommandInset ref
36472 reference "fig:This-is-a"
36476 is an example text wrap float with a width of 40
36477 \begin_inset space \thinspace{}
36481 \begin_inset space \thinspace{}
36484 cm overhang, set to the left.
36487 \begin_layout Standard
36488 \begin_inset Note Greyedout
36491 \begin_layout Plain Layout
36497 \begin_inset space ~
36500 wrap float floats are fragile! E.
36501 \begin_inset space \thinspace{}
36505 \begin_inset space \space{}
36508 having a figure too close to the bottom of the page can mess things up in
36509 such a way that the float does not appear in the output or that it is placed
36510 over some other text.
36518 \begin_layout Standard
36519 In general, the following applies for wrap floats:
36522 \begin_layout Itemize
36523 They should not be placed in paragraphs that run over a page break.
36524 That means that wrap floats are better inserted in their exact place when
36525 the document is almost finished and you are able to estimate where page
36526 breaks will appear.
36529 \begin_layout Itemize
36530 They should either be placed in their own paragraph before the paragraph
36531 where they should wrap into or within a paragraph.
36534 \begin_layout Itemize
36535 In consecutive paragraphs they may cause troubles, so ensure that there
36536 is a text paragraph between them as separator.
36539 \begin_layout Itemize
36540 They are not allowed in section headings or tables.
36543 \begin_layout Itemize
36544 Their numbering and referencing works as described in chap.
36545 \begin_inset space \thinspace{}
36549 \begin_inset CommandInset ref
36551 reference "chap:Floats"
36558 \begin_layout Section
36559 Surrounded Fixed Objects
36560 \begin_inset Index idx
36563 \begin_layout Plain Layout
36564 Surrounded by text ! Fixed objects
36572 \begin_layout Standard
36573 The wrap floats described in sec.
36574 \begin_inset space \thinspace{}
36578 \begin_inset CommandInset ref
36580 reference "sec:Wrap-Floats"
36584 have these positions in the paragraph:
36585 \begin_inset Separator parbreak
36591 \begin_layout Standard
36594 \begin_inset Tabular
36595 <lyxtabular version="3" rows="2" columns="2">
36596 <features tabularvalignment="middle">
36597 <column alignment="center" valignment="top">
36598 <column alignment="center" valignment="top">
36600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36603 \begin_layout Plain Layout
36604 \begin_inset Graphics
36605 filename ../images/dialog-show-new-inset_graphics.png
36607 scaleBeforeRotation
36616 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36619 \begin_layout Plain Layout
36627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36630 \begin_layout Plain Layout
36636 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36639 \begin_layout Plain Layout
36651 \begin_inset Tabular
36652 <lyxtabular version="3" rows="2" columns="2">
36653 <features tabularvalignment="middle">
36654 <column alignment="center" valignment="top">
36655 <column alignment="center" valignment="top">
36657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36660 \begin_layout Plain Layout
36666 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36669 \begin_layout Plain Layout
36670 \begin_inset Graphics
36671 filename ../images/dialog-show-new-inset_graphics.png
36673 scaleBeforeRotation
36684 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36687 \begin_layout Plain Layout
36693 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36696 \begin_layout Plain Layout
36710 \begin_layout Standard
36711 To get an object exactly at the position where it is inserted, for example
36712 to get one of these positions:
36713 \begin_inset VSpace defskip
36719 \begin_layout Standard
36722 \begin_inset Tabular
36723 <lyxtabular version="3" rows="2" columns="2">
36724 <features tabularvalignment="middle">
36725 <column alignment="center" valignment="top">
36726 <column alignment="center" valignment="top">
36728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36731 \begin_layout Plain Layout
36737 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36740 \begin_layout Plain Layout
36748 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36751 \begin_layout Plain Layout
36752 \begin_inset Graphics
36753 filename ../images/dialog-show-new-inset_graphics.png
36755 scaleBeforeRotation
36764 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36767 \begin_layout Plain Layout
36779 \begin_inset Tabular
36780 <lyxtabular version="3" rows="2" columns="2">
36781 <features tabularvalignment="middle">
36782 <column alignment="center" valignment="top">
36783 <column alignment="center" valignment="top">
36785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36788 \begin_layout Plain Layout
36794 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36797 \begin_layout Plain Layout
36805 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36808 \begin_layout Plain Layout
36814 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36817 \begin_layout Plain Layout
36818 \begin_inset Graphics
36819 filename ../images/dialog-show-new-inset_graphics.png
36821 scaleBeforeRotation
36836 \begin_inset Tabular
36837 <lyxtabular version="3" rows="2" columns="3">
36838 <features tabularvalignment="middle">
36839 <column alignment="center" valignment="top">
36840 <column alignment="center" valignment="top">
36841 <column alignment="center" valignment="top">
36843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36846 \begin_layout Plain Layout
36852 <cell alignment="center" valignment="top" topline="true" usebox="none">
36855 \begin_layout Plain Layout
36856 \begin_inset Graphics
36857 filename ../images/dialog-show-new-inset_graphics.png
36859 scaleBeforeRotation
36868 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36871 \begin_layout Plain Layout
36879 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36882 \begin_layout Plain Layout
36888 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36891 \begin_layout Plain Layout
36897 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36900 \begin_layout Plain Layout
36912 \begin_inset Tabular
36913 <lyxtabular version="3" rows="2" columns="3">
36914 <features tabularvalignment="middle">
36915 <column alignment="center" valignment="top">
36916 <column alignment="center" valignment="top">
36917 <column alignment="center" valignment="top">
36919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36922 \begin_layout Plain Layout
36928 <cell alignment="center" valignment="top" topline="true" usebox="none">
36931 \begin_layout Plain Layout
36937 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36940 \begin_layout Plain Layout
36948 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36951 \begin_layout Plain Layout
36957 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36960 \begin_layout Plain Layout
36961 \begin_inset Graphics
36962 filename ../images/dialog-show-new-inset_graphics.png
36964 scaleBeforeRotation
36973 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36976 \begin_layout Plain Layout
36990 \begin_layout Standard
36993 \begin_inset Tabular
36994 <lyxtabular version="3" rows="3" columns="2">
36995 <features tabularvalignment="middle">
36996 <column alignment="center" valignment="top">
36997 <column alignment="center" valignment="top">
36999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37002 \begin_layout Plain Layout
37008 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37011 \begin_layout Plain Layout
37019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37022 \begin_layout Plain Layout
37023 \begin_inset Graphics
37024 filename ../images/dialog-show-new-inset_graphics.png
37026 scaleBeforeRotation
37035 <cell alignment="center" valignment="top" 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" rightline="true" usebox="none">
37058 \begin_layout Plain Layout
37070 \begin_inset Tabular
37071 <lyxtabular version="3" rows="3" columns="3">
37072 <features tabularvalignment="middle">
37073 <column alignment="center" valignment="top">
37074 <column alignment="center" valignment="top">
37075 <column alignment="center" valignment="top">
37077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37080 \begin_layout Plain Layout
37086 <cell alignment="center" valignment="top" topline="true" usebox="none">
37089 \begin_layout Plain Layout
37095 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37098 \begin_layout Plain Layout
37106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37109 \begin_layout Plain Layout
37115 <cell alignment="center" valignment="top" usebox="none">
37118 \begin_layout Plain Layout
37119 \begin_inset Graphics
37120 filename ../images/dialog-show-new-inset_graphics.png
37122 scaleBeforeRotation
37131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37134 \begin_layout Plain Layout
37142 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37145 \begin_layout Plain Layout
37151 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37154 \begin_layout Plain Layout
37160 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37163 \begin_layout Plain Layout
37175 \begin_inset Tabular
37176 <lyxtabular version="3" rows="3" columns="2">
37177 <features tabularvalignment="middle">
37178 <column alignment="center" valignment="top">
37179 <column alignment="center" valignment="top">
37181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37184 \begin_layout Plain Layout
37190 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37193 \begin_layout Plain Layout
37201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37204 \begin_layout Plain Layout
37210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37213 \begin_layout Plain Layout
37214 \begin_inset Graphics
37215 filename ../images/dialog-show-new-inset_graphics.png
37217 scaleBeforeRotation
37228 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37231 \begin_layout Plain Layout
37237 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37240 \begin_layout Plain Layout
37254 \begin_layout Standard
37256 you can use the \SpecialChar LaTeX
37262 \begin_inset Index idx
37265 \begin_layout Plain Layout
37267 -packages ! picinpar
37273 Here is an example:
37276 \begin_layout Standard
37280 \begin_layout Plain Layout
37290 \begin_inset Note Note
37293 \begin_layout Plain Layout
37294 The following section will only be displayed when the \SpecialChar LaTeX
37307 \begin_layout Standard
37311 \begin_layout Plain Layout
37315 begin{window}[2,c,{
37321 \begin_inset Graphics
37322 filename clipart/mobius.eps
37325 scaleBeforeRotation
37326 rotateOrigin center
37334 \begin_layout Plain Layout
37339 \begin_layout Plain Layout
37348 It was in the spring of the year 1894 that all London was interested, and
37349 the fashionable world dismayed, by the murder of the Honourable Ronald
37350 Adair under most unusual and inexplicable circumstances.
37351 The public has already learned those particulars of the crime which
37357 \begin_layout Plain Layout
37368 came out in the police investigation, but a good deal was suppressed upon
37369 that occasion, since the case for the prosecution was so overwhelmingly
37370 strong that it was not necessary to bring forward all the facts.
37371 Only now, at the end of nearly ten years, am I allowed to supply those
37372 missing links which make up the whole of that remarkable chain.
37378 \begin_layout Plain Layout
37390 \begin_layout Standard
37394 \begin_layout Plain Layout
37403 Footnote of the paragraph with the fixed object.
37407 \begin_layout Plain Layout
37417 \begin_layout Standard
37418 Surrounded fixed objects are used to let text float around them, at which
37419 the object's position in the paragraph can be determined by the number
37421 In contrary to floats is it not possible to have a numbered caption.
37424 \begin_layout Standard
37425 A fixed object is inserted by adding the command
37428 \begin_layout Standard
37433 begin{window}[2,c,{
37436 \begin_layout Standard
37437 as \SpecialChar TeX
37438 -Code at the beginning of the paragraph.
37439 The first parameter in the bracket, here '2', defines the number of lines
37440 above the object, the second, here 'c', the position of the object.
37441 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37442 Behind the command you insert the object.
37443 In this example an image with a width of 40
37444 \begin_inset space \thinspace{}
37447 % of the text column width was inserted.
37448 The object can also be a table, a box or an equation.
37449 Behind the object the command
37452 \begin_layout Standard
37455 },description text]
37456 \begin_inset Newline newline
37462 \begin_layout Standard
37465 \begin_inset Quotes eld
37473 \begin_inset Quotes erd
37476 is in the second line.
37477 The description text is optional.
37478 The text surrounding the object must be in the same paragraph as the object,
37479 so it must begin directly after the
37484 At the end of the paragraph insert the command:
37487 \begin_layout Standard
37495 \begin_layout Standard
37496 Within a paragraph with a fixed object, you cannot insert footnotes in the
37498 You have to use instead the command
37504 inside the paragraph and outside the command
37510 as described in sec.
37511 \begin_inset space \thinspace{}
37515 \begin_inset CommandInset ref
37517 reference "sec:Footnotes"
37524 \begin_layout Standard
37528 \begin_layout Plain Layout
37538 \begin_inset Note Note
37541 \begin_layout Plain Layout
37542 The following will be displayed when the \SpecialChar LaTeX
37555 \begin_layout Standard
37556 You need to install the \SpecialChar LaTeX
37561 to see the following part of this section in the output.
37564 \begin_layout Standard
37568 \begin_layout Plain Layout
37580 \begin_layout Section
37582 \begin_inset Index idx
37585 \begin_layout Plain Layout
37592 \begin_inset Index idx
37595 \begin_layout Plain Layout
37596 Surrounded by text ! Initials
37604 \begin_layout Standard
37605 To use initials, you must have the \SpecialChar LaTeX
37611 \begin_inset Index idx
37614 \begin_layout Plain Layout
37616 -packages ! lettrine
37621 installed and use the module
37625 in your document (menu
37627 Document\SpecialChar menuseparator
37628 Settings\SpecialChar menuseparator
37632 To insert an initial, use the style
37637 This style has a mandatory and two optional arguments.
37638 The arguments are inserted via the
37643 The mandatory argument
37647 contains the letter(s) that is the initial, the argument
37650 \begin_inset space ~
37654 \begin_inset space ~
37659 contains the rest of the word or text of the initial letter(s).
37664 contains parameters to modify the initial.
37665 For more information about the possible parameters see the documentation
37671 \begin_inset CommandInset citation
37678 The style itself contains the text that is surrounding the initial.
37679 The usual style is hereby that the word whose first letter is the initial,
37687 \begin_layout Standard
37688 Here are some examples:
37691 \begin_layout Standard
37695 \begin_layout Plain Layout
37705 \begin_inset Note Note
37708 \begin_layout Plain Layout
37709 The following section will only be displayed when the \SpecialChar LaTeX
37722 \begin_layout Enumerate
37723 No optional argument, the initial is the letter 'I' in the math font
37724 \begin_inset Formula $\mathfrak{Fraktur}$
37728 \begin_inset Separator parbreak
37735 \begin_layout Initial
37736 \begin_inset Argument 2
37739 \begin_layout Plain Layout
37740 \begin_inset Formula $\mathfrak{I}$
37749 \begin_inset Argument 3
37752 \begin_layout Plain Layout
37758 was in the spring of the year 1894 that all London was interested, and
37759 the fashionable world dismayed, by the murder of the Honourable Ronald
37760 Adair under most unusual and inexplicable circumstances.
37761 The public has already learned those particulars of the crime which came
37762 out in the police investigation, but a good deal was suppressed upon that
37763 occasion, since the case for the prosecution was so overwhelmingly strong
37764 that it was not necessary to bring forward all the facts.
37765 \begin_inset Newpage newpage
37772 \begin_layout Enumerate
37773 Only one line is surrounding the initial, which is formed by two letters
37774 in standard font and no text is printed in small caps:
37775 \begin_inset Separator parbreak
37782 \begin_layout Initial
37783 \begin_inset Argument 1
37786 \begin_layout Plain Layout
37793 \begin_inset Argument 2
37796 \begin_layout Plain Layout
37802 was in the spring of the year 1894 that all London was interested, and
37803 the fashionable world dismayed, by the murder of the Honourable Ronald
37804 Adair under most unusual and inexplicable circumstances.
37805 The public has already learned those particulars of the crime which came
37806 out in the police investigation, but a good deal was suppressed upon that
37807 occasion, since the case for the prosecution was so overwhelmingly strong
37808 that it was not necessary to bring forward all the facts.
37812 \begin_layout Enumerate
37813 Magenta, hanging initial over 3
37814 \begin_inset space ~
37817 lines in the math font
37818 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37822 \begin_inset Quotes eld
37825 t was in the spring
37826 \begin_inset Quotes erd
37833 ; to color the initial, you must insert this command before the initial:
37834 \begin_inset Newline newline
37848 \begin_inset Newline newline
37856 \begin_inset Quotes eld
37860 \begin_inset Quotes erd
37864 \begin_inset Quotes eld
37868 \begin_inset Quotes erd
37872 \begin_inset Quotes eld
37876 \begin_inset Quotes erd
37880 \begin_inset Quotes eld
37884 \begin_inset Quotes erd
37888 \begin_inset Quotes eld
37892 \begin_inset Quotes erd
37896 \begin_inset Quotes eld
37900 \begin_inset Quotes erd
37904 \begin_inset Quotes eld
37908 \begin_inset Quotes erd
37912 \begin_inset Quotes eld
37916 \begin_inset Quotes erd
37919 , and add this command to the document preamble:
37920 \begin_inset Newline newline
37927 @ifundefined{textcolor}
37928 \begin_inset Newline newline
37932 \begin_inset space ~
37937 usepackage{color}}{}
37940 \begin_inset Separator parbreak
37947 \begin_layout Standard
37951 \begin_layout Plain Layout
37965 \begin_inset Note Note
37968 \begin_layout Plain Layout
37969 makes the initial magenta
37977 \begin_layout Initial
37978 \begin_inset Argument 1
37981 \begin_layout Plain Layout
37982 lines=3, lhang=0.33, loversize=0.25
37988 \begin_inset Argument 2
37991 \begin_layout Plain Layout
37992 \begin_inset Formula $\mathcal{I}$
38001 \begin_inset Argument 3
38004 \begin_layout Plain Layout
38005 t was in the spring
38010 of the year 1894 that all London was interested, and the fashionable world
38011 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38012 and inexplicable circumstances.
38013 The public has already learned those particulars of the crime which came
38014 out in the police investigation, but a good deal was suppressed upon that
38015 occasion, since the case for the prosecution was so overwhelmingly strong
38016 that it was not necessary to bring forward all the facts.
38020 \begin_layout Standard
38024 \begin_layout Plain Layout
38034 \begin_inset Note Note
38037 \begin_layout Plain Layout
38038 The following will be displayed when the \SpecialChar LaTeX
38051 \begin_layout Standard
38052 You need to install the \SpecialChar LaTeX
38057 to see the following part of this section in the output.
38060 \begin_layout Standard
38064 \begin_layout Plain Layout
38076 \begin_layout Chapter
38077 External Document Parts
38078 \begin_inset Index idx
38081 \begin_layout Plain Layout
38082 External Document Parts
38090 \begin_layout Standard
38093 Insert\SpecialChar menuseparator
38096 you can insert external material into your document.
38100 \begin_layout Description
38103 \begin_inset space ~
38106 Document Another \SpecialChar LyX
38107 document; its content is directly inserted to your document.
38110 \begin_layout Description
38112 \begin_inset space ~
38115 Text A text document; each line is inserted in your document as a separate
38119 \begin_layout Description
38121 \begin_inset space ~
38125 \begin_inset space ~
38129 \begin_inset space ~
38132 Lines A text document; text lines are inserted in your document continuously
38133 but an empty text line creates a new paragraph.
38136 \begin_layout Description
38138 \begin_inset space ~
38141 Material Files in various formats.
38144 \begin_layout Description
38146 \begin_inset space ~
38149 Document \SpecialChar LyX
38150 or \SpecialChar LaTeX
38154 \begin_layout Section
38156 \begin_inset Index idx
38159 \begin_layout Plain Layout
38160 External Document Parts ! External Material
38168 \begin_layout Standard
38169 The external material feature allows you to insert files into your document
38170 without converting them to a format that can be read by the document output
38173 takes care of the necessary conversions.
38174 This is similar to images that can be inserted in various image formats
38175 in \SpecialChar LyX
38177 When you have enabled Instant Preview in \SpecialChar LyX
38178 's preferences under
38181 \begin_inset space ~
38185 \begin_inset space ~
38188 feel\SpecialChar menuseparator
38191 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38195 \begin_layout Standard
38196 External material can be inserted via the
38200 dialog that is accessible with the menu
38202 Insert\SpecialChar menuseparator
38203 File\SpecialChar menuseparator
38205 \begin_inset space ~
38211 Currently the following file types (
38218 \begin_layout Description
38219 ChessDiagram This template supports chess position diagrams made with the
38223 \begin_inset CommandInset href
38226 target "http://en.wikipedia.org/wiki/XBoard"
38235 \begin_layout Description
38236 Date This inserts the date in the form
38241 This is a date inserted as external material:
38242 \begin_inset External
38249 \begin_inset space ~
38253 \begin_inset Note Note
38256 \begin_layout Plain Layout
38257 Remove the protected space when bug 4398 is fixed!
38263 \begin_inset Newline newline
38266 The date is not shown within \SpecialChar LyX
38267 , only in the output.
38268 There are two other methods of inserting a date: Via menu
38270 Insert\SpecialChar menuseparator
38273 and with the \SpecialChar LaTeX
38280 as \SpecialChar TeX
38282 The different methods are compared in Table
38283 \begin_inset space ~
38287 \begin_inset CommandInset ref
38289 reference "tab:Comparison-of-the"
38296 \begin_layout Description
38297 Dia This template supports diagrams created with the program
38300 \begin_inset CommandInset href
38303 target "http://en.wikipedia.org/wiki/Dia_(software)"
38312 \begin_layout Description
38313 GnumericSpreadsheet With this template you can insert spreadsheets
38314 \begin_inset space \thinspace{}
38318 \begin_inset space \thinspace{}
38321 tables in the format of
38324 \begin_inset CommandInset href
38327 target "http://en.wikipedia.org/wiki/Gnumeric"
38334 \begin_inset CommandInset href
38336 name "OpenDocument"
38337 target "http://en.wikipedia.org/wiki/OpenDocument"
38342 \begin_inset CommandInset href
38344 name "Microsoft Office XML"
38345 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38350 \begin_inset CommandInset href
38352 name "Office Open XML"
38353 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38358 For this feature \SpecialChar LyX
38359 must have found the program
38363 during its configuration.
38364 This program is part of Gnumeric, so that you must have Gnumeric installed,
38365 also if you don't have tables in the Gnumeric format.
38366 For examples and possible limitations have a look at \SpecialChar LyX
38374 \begin_layout Description
38375 LilyPond This template is used for music notation typeset with the program
38376 \begin_inset Newline linebreak
38382 \begin_inset CommandInset href
38385 target "http://en.wikipedia.org/wiki/LilyPond"
38392 For \SpecialChar LyX
38393 's extended support for LilyPond have a look at \SpecialChar LyX
38401 \begin_layout Description
38402 PDFPages With this template you can insert PDF documents to your document.
38403 To specify the range of pages that should be included, use the option
38414 and \SpecialChar LyX
38418 The argument of this option is a comma separated list, containing page
38419 numbers (insert as option
38423 ), ranges of page numbers (
38427 ) or any combination.
38428 To insert empty pages use {}.
38430 \begin_inset space \thinspace{}
38434 \begin_inset space ~
38439 pages={3,{},8-11,15}
38441 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38442 Page ranges are specified in the syntax
38451 This selects all pages from
38464 defaults to the first page; omitting
38468 defaults to the last page of the document.
38469 The last page can also be selected with the keyword
38474 (This is only permitted in a page range.) So
38478 will insert all pages of the document and
38482 will insert all pages in reverse order.
38483 If the pages option is not specified, only the first page of the PDF is
38485 \begin_inset Newline newline
38492 inserts the pages with their original size, if this option is not given,
38493 the pages will be resized to fith the width of the page of your document.
38498 you can specify the width and height of the input pages and their rotation.
38499 If another width than 100
38500 \begin_inset space \thinspace{}
38503 Scale% is used, the option
38507 will be overwritten.
38508 For more info and possible options, have a look into the documentation
38509 of the \SpecialChar LaTeX
38515 \begin_inset CommandInset citation
38522 \begin_inset Index idx
38525 \begin_layout Plain Layout
38527 -packages ! pdfpages
38533 \begin_inset Newline newline
38536 To use this template in a
38540 presentation you need to first insert an
38544 environment and in a subsequent paragraph a \SpecialChar TeX
38545 -Code box containing the command
38550 setbeamertemplate{background canvas}{}
38553 Then you can insert as many paragraphs containing the PDFPages template
38555 Behind the included PDF pages you can resume the Beamer presentation by
38556 beginning a new frame or by starting a new section.
38557 To avoid stray blank pages prior to the PDF pages, make sure to use the
38562 alignment for the paragraph containing the template.
38563 \begin_inset Newline newline
38566 Here is an included PDF which is rotated by -5°:
38567 \begin_inset External
38569 filename clipart/Abstract.pdf
38570 extra LaTeX "noautoscale, pages=-"
38572 rotateOrigin bottomleft
38579 \begin_layout Description
38580 RasterImage This can be used for bitmap images.
38581 The image can be treated in the
38585 dialog like the images that are usually included via the
38589 dialog as described in section
38590 \begin_inset space ~
38594 \begin_inset CommandInset ref
38596 reference "sec:Graphics-Dialog"
38601 The difference to the normal image input is that only raster images are
38602 allowed; that means that PDF and EPS-images are not supported.
38603 Here is an inserted raster image:
38604 \begin_inset External
38605 template RasterImage
38606 filename clipart/ToolbarEnvBox.png
38613 \begin_layout Description
38614 XFig This template supports images created with the program
38617 \begin_inset CommandInset href
38620 target "http://en.wikipedia.org/wiki/Xfig"
38629 \begin_layout Standard
38630 \begin_inset Float table
38636 \begin_layout Plain Layout
38637 \begin_inset Caption Standard
38639 \begin_layout Plain Layout
38640 \begin_inset CommandInset label
38642 name "tab:Comparison-of-the"
38646 Comparison of the date input methods.
38654 \begin_layout Plain Layout
38656 \begin_inset Tabular
38657 <lyxtabular version="3" rows="4" columns="4">
38658 <features tabularvalignment="middle">
38659 <column alignment="center" valignment="top">
38660 <column alignment="center" valignment="top">
38661 <column alignment="center" valignment="top">
38662 <column alignment="center" valignment="top">
38664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38667 \begin_layout Plain Layout
38673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38676 \begin_layout Plain Layout
38679 External Material\SpecialChar menuseparator
38685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38688 \begin_layout Plain Layout
38691 Insert\SpecialChar menuseparator
38697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38700 \begin_layout Plain Layout
38712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38715 \begin_layout Plain Layout
38722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38725 \begin_layout Plain Layout
38731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38734 \begin_layout Plain Layout
38740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38743 \begin_layout Plain Layout
38744 as \SpecialChar TeX
38752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38755 \begin_layout Plain Layout
38762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38765 \begin_layout Plain Layout
38771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38774 \begin_layout Plain Layout
38780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38783 \begin_layout Plain Layout
38791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38794 \begin_layout Plain Layout
38800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38803 \begin_layout Plain Layout
38809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38812 \begin_layout Plain Layout
38818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38821 \begin_layout Plain Layout
38840 \begin_layout Standard
38841 When you use the option
38853 dialog, only the path to the inserted file is shown in the output.
38854 \begin_inset Newline newline
38857 External material is displayed in \SpecialChar LyX
38858 either as a box like this:
38859 \begin_inset Graphics
38860 filename clipart/ExternalMaterialQt4.png
38862 scaleBeforeRotation
38866 or as image, depending on the option
38868 Show in \SpecialChar LyX
38874 and \SpecialChar LyX
38880 \begin_layout Standard
38887 manual explains how you can define your own templates.
38890 \begin_layout Section
38892 \begin_inset CommandInset label
38894 name "sec:Child-Documents"
38899 \begin_inset Index idx
38902 \begin_layout Plain Layout
38903 External Document Parts ! Child Documents
38909 \begin_inset Index idx
38912 \begin_layout Plain Layout
38921 \begin_layout Standard
38922 Child documents are used if you have a long document consisting of several
38923 larger parts or sections.
38924 For maintenance it is often useful and sometimes even required to split
38925 the document into several files that can be revised separately.
38926 The different documents are then the so called
38927 \begin_inset Quotes eld
38931 \begin_inset Quotes erd
38934 , and a master document connects them to print the full document or parts
38936 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38938 the bibliography, and labels for cross-references.
38941 \begin_layout Standard
38942 To be able to work on child documents without the need to open their master,
38943 specify in the child document the master in the menu
38945 Document\SpecialChar menuseparator
38946 Settings\SpecialChar menuseparator
38948 \begin_inset space ~
38954 This master document will then be used in the background by \SpecialChar LyX
38956 the child document.
38959 \begin_layout Standard
38960 Included documents are displayed in \SpecialChar LyX
38961 as a box like this:
38962 \begin_inset Graphics
38963 filename clipart/ChildDocumentQt4.png
38965 scaleBeforeRotation
38969 To include child documents in a master document use the menu
38971 Insert\SpecialChar menuseparator
38972 File\SpecialChar menuseparator
38974 \begin_inset space ~
38980 A dialog pops up where you can choose between four include methods:
38983 \begin_layout Description
38984 Include You can include \SpecialChar LyX
38985 - and \SpecialChar LaTeX
38995 dialog, the included document will be opened in \SpecialChar LyX
38996 in a new file tab so that
38998 \begin_inset Newline newline
39004 \begin_layout Standard
39005 Here is a child document inserted using
39010 \begin_inset CommandInset include
39011 LatexCommand include
39012 filename "DummyDocument1.lyx"
39019 \begin_layout Standard
39020 The section numbering includes the sections of the included files in the
39021 order they are inserted in the master document.
39022 The included example document has for example a subsection that is numbered
39023 as a subsection of this section.
39024 Labels of included documents can be referenced: Subsection
39025 \begin_inset space ~
39029 \begin_inset CommandInset ref
39031 reference "subsec:External-Subsection-1"
39038 \begin_layout Standard
39039 The preamble of the child document is ignored; only the preamble of the
39040 master document is used.
39041 Branches in child documents will be ignored by the master document when
39042 the master document does not have a branch with the same name.
39043 Included documents are inserted starting on a new page and ending with
39047 \begin_layout Standard
39048 \begin_inset Note Greyedout
39051 \begin_layout Plain Layout
39056 If you have included a \SpecialChar LyX
39057 - or \SpecialChar LaTeX
39058 -file, you are warned when you export/view
39059 the document in case the child document uses another document class than
39060 the master document as this will lead to unexpected outputs.
39068 \begin_layout Description
39069 Input This method is very similar to the Include method.
39070 The differences are:
39071 \begin_inset Separator parbreak
39078 \begin_layout Itemize
39079 Input files don't start with a new page and don't end with a page break.
39082 \begin_layout Itemize
39083 Input files can be previewed in \SpecialChar LyX
39087 \begin_inset space ~
39092 is enabled in \SpecialChar LyX
39093 's preferences under
39096 \begin_inset space ~
39100 \begin_inset space ~
39103 feel\SpecialChar menuseparator
39109 \begin_layout Itemize
39110 You cannot exclude Input files via the menu
39112 Document\SpecialChar menuseparator
39113 Settings\SpecialChar menuseparator
39120 \begin_layout Standard
39121 Here is a child document inserted using
39126 \begin_inset CommandInset include
39128 filename "DummyDocument2.lyx"
39135 \begin_layout Description
39136 Verbatim With this method any text file can be included.
39137 The file is shown in the output with its source code; no command used in
39138 the text is invoked.
39139 You can use the option
39141 Mark spaces in output
39143 that displays the character
39144 \begin_inset Quotes eld
39151 \begin_layout Plain Layout
39161 \begin_inset Quotes erd
39164 for every space character in the source code.
39165 The difference from the method via the menu
39167 Insert\SpecialChar menuseparator
39168 File\SpecialChar menuseparator
39170 \begin_inset space ~
39175 is that the document content is not shown in \SpecialChar LyX
39179 \begin_layout Standard
39180 Here is a child document inserted as Verbatim:
39181 \begin_inset CommandInset include
39182 LatexCommand verbatiminput
39183 filename "DummyTextDocument.txt"
39188 \begin_inset VSpace bigskip
39191 Here is a child document inserted as Verbatim using the
39193 Mark spaces in output
39196 \begin_inset CommandInset include
39197 LatexCommand verbatiminput*
39198 filename "DummyTextDocument.txt"
39205 \begin_layout Standard
39206 \begin_inset VSpace bigskip
39212 \begin_layout Standard
39213 \begin_inset Note Greyedout
39216 \begin_layout Plain Layout
39221 As you can see in the examples above, the text of the documents included
39226 is not broken at the end of the document lines.
39234 \begin_layout Description
39235 Listings This type is described in chapter
39236 \begin_inset space ~
39240 \begin_inset CommandInset ref
39242 reference "cha:Program-Code-Listings"
39249 \begin_layout Standard
39250 \begin_inset Note Greyedout
39253 \begin_layout Plain Layout
39258 Including the same document twice in a document using different methods
39259 could cause \SpecialChar LaTeX
39268 \begin_layout Standard
39269 If you want to view/export only selected children of your master document,
39270 either because you want to save compiling time or because you want to distribut
39271 e single chapters of the book you are just writing, you can exclude children
39273 This is done via the menu
39275 Document\SpecialChar menuseparator
39276 Settings\SpecialChar menuseparator
39280 You can exclude\SpecialChar breakableslash
39281 include children by double-clicking on the
39285 column of the respective child document in the list (note that this only
39286 works for documents embedded via
39287 \begin_inset Quotes eld
39291 \begin_inset Quotes erd
39295 \begin_inset Quotes eld
39299 \begin_inset Quotes erd
39305 Maintain counters and references
39307 is enabled, \SpecialChar LyX
39308 will assure that all page numbers, references etc.
39309 \begin_inset space ~
39312 are correct as if the whole document was processed.
39313 This is useful if you want the selected sub-documents to look exactly as
39314 in the context of the whole document.
39315 However, \SpecialChar LyX
39316 needs to process the whole document in the background for this
39318 So if you want to save compile time and if counters and references do not
39319 need to be correct, disable this checkbox.
39322 \begin_layout Standard
39323 Alternatively, you can put each included file into a branch.
39327 \begin_layout Plain Layout
39328 Branches are described in section
39332 of the \SpecialChar LyX
39342 By enabling\SpecialChar breakableslash
39343 disabling branches you can decide which included files will
39344 appear in the output.
39345 This has the advantage that it also works with Input'ed sub-documents.
39346 However, counters and references will not be maintained with this approach.
39349 \begin_layout Chapter
39350 Program Code Listings
39351 \begin_inset CommandInset label
39353 name "cha:Program-Code-Listings"
39358 \begin_inset Index idx
39361 \begin_layout Plain Layout
39368 \begin_inset Index idx
39371 \begin_layout Plain Layout
39378 \begin_inset Index idx
39381 \begin_layout Plain Layout
39390 \begin_layout Standard
39391 To include and typeset program code you can use the
39395 inset that can be inserted via the menu
39397 Insert\SpecialChar menuseparator
39401 The \SpecialChar LaTeX
39407 \begin_inset Index idx
39410 \begin_layout Plain Layout
39412 -packages ! listings
39417 provides a powerful and flexible way to insert program source code into
39421 \begin_layout Standard
39422 Right-clicking on a listings inset opens the context menu containing where
39423 you can set the listings format.
39426 \begin_layout Standard
39427 By default, a listing starts a new paragraph in the output.
39428 The placement option
39431 \begin_inset space ~
39436 prints the listing inline like this:
39437 \begin_inset listings
39438 lstparams "language={C++}"
39442 \begin_layout Plain Layout
39450 \begin_inset Newline newline
39457 creates a listings float where you can specify the placement options
39458 \begin_inset Quotes eld
39466 \begin_inset Quotes erd
39470 \begin_inset Quotes eld
39478 \begin_inset Quotes erd
39482 \begin_inset Quotes eld
39490 \begin_inset Quotes erd
39494 \begin_inset Quotes eld
39502 \begin_inset Quotes erd
39505 corresponding to the float placement options described in section
39506 \begin_inset space ~
39510 \begin_inset CommandInset ref
39512 reference "sec:Float-Placement"
39517 The placement options can be mixed and are inserted without any separation,
39519 \begin_inset space \thinspace{}
39523 \begin_inset space \space{}
39527 \begin_inset Quotes eld
39535 \begin_inset Quotes erd
39540 \begin_inset Quotes eld
39544 \begin_inset Quotes erd
39547 has sometimes no effect, but you don't need to use the
39551 option in this case as also non-float listings can have captions and be
39555 \begin_layout Standard
39556 You can add captions to listings with the menu
39558 Insert\SpecialChar menuseparator
39562 Listings can be referenced like floats: Listing
39563 \begin_inset space ~
39567 \begin_inset CommandInset ref
39569 reference "lst:Example-Listing"
39574 A list of listings which contains all listings with captions can be created
39577 Insert\SpecialChar menuseparator
39579 \begin_inset space ~
39583 \begin_inset space ~
39586 TOC\SpecialChar menuseparator
39590 The list entries are the listing caption and the listing number.
39593 \begin_layout Standard
39594 \begin_inset listings
39595 lstparams "language=Python"
39599 \begin_layout Plain Layout
39601 \begin_inset Caption Standard
39603 \begin_layout Plain Layout
39604 \begin_inset CommandInset label
39606 name "lst:Example-Listing"
39610 Example Listing float
39615 # Example listing float
39618 \begin_layout Plain Layout
39623 \begin_layout Plain Layout
39625 'this is a python function'
39628 \begin_layout Plain Layout
39638 \begin_layout Standard
39639 When you have set a programming language in the listings dialog, the keywords
39640 of this language will be recognized and specially typeset in the output.
39641 In the example listings the Python keyword
39642 \begin_inset Quotes eld
39646 \begin_inset Quotes erd
39649 is recognized and printed bold in the output.
39652 \begin_layout Standard
39653 \begin_inset Note Greyedout
39656 \begin_layout Plain Layout
39661 If you don't get bold keywords when using typewriter fonts, your
39665 font probably doesn't provide a bold shape.
39666 In this case select a different one in the menu
39668 Document\SpecialChar menuseparator
39669 Settings\SpecialChar menuseparator
39681 provide bold shapes.)
39689 \begin_layout Standard
39693 \begin_inset space ~
39698 of the listings dialog you can specify the line numbering style.
39699 You can insert a number to specify which lines are numbered in the field
39706 \begin_inset space \thinspace{}
39710 \begin_inset space \space{}
39714 \begin_inset Quotes eld
39718 \begin_inset Quotes erd
39721 , only every 3rd line will be numbered.
39724 \begin_layout Standard
39725 You can furthermore specify a range of lines; only these will then appear
39729 Extended character table
39731 should be used when you use national characters like the German umlauts
39733 \begin_inset Newline newline
39736 Here is an example listing with left line numbering, step
39737 \begin_inset Quotes eld
39741 \begin_inset Quotes erd
39745 \begin_inset Quotes eld
39749 \begin_inset Quotes erd
39753 \begin_inset Quotes eld
39756 Extended character table
39757 \begin_inset Quotes erd
39761 \begin_inset Quotes eld
39765 \begin_inset space ~
39769 \begin_inset space ~
39773 \begin_inset Quotes erd
39777 \begin_inset space \thinspace{}
39781 \begin_inset space \thinspace{}
39787 \begin_layout Standard
39788 \begin_inset listings
39789 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39793 \begin_layout Plain Layout
39798 \begin_layout Plain Layout
39800 'this is a python function'
39803 \begin_layout Plain Layout
39808 \begin_layout Plain Layout
39813 \begin_layout Plain Layout
39815 'This is a German word: Tschüß'
39818 \begin_layout Plain Layout
39823 \begin_layout Plain Layout
39828 \begin_layout Plain Layout
39830 'this is a python function'
39833 \begin_layout Plain Layout
39843 \begin_layout Standard
39844 When you have tabulators in your listing, you can specify the number of
39845 characters that are spanned by a tabulator in the field
39848 \begin_inset space ~
39856 \begin_layout Standard
39857 \begin_inset Note Greyedout
39860 \begin_layout Plain Layout
39865 Due to a bug in the
39869 package the line numbering is shifted by a line by every previous listing.
39870 That's the reason why the lines 2 and 5 are numbered in the above listing
39871 and not the lines 3 and 6.
39879 \begin_layout Standard
39880 \begin_inset VSpace bigskip
39886 \begin_layout Standard
39887 It is also possible to print lines from a file as listing.
39888 To do this, use the menu
39890 Insert\SpecialChar menuseparator
39891 File\SpecialChar menuseparator
39894 and choose the type
39902 \begin_layout Plain Layout
39903 The other child document types are described in section
39904 \begin_inset space ~
39908 \begin_inset CommandInset ref
39910 reference "sec:Child-Documents"
39919 In the child document dialog you can specify the listing parameters in
39921 To show a list of all available parameters, type in a question mark
39922 \begin_inset Quotes eld
39926 \begin_inset Quotes erd
39932 \begin_layout Standard
39933 To reference child document listings, write a label text into the corresponding
39934 field of the child document dialog.
39935 The label can then be referenced using the menu
39937 Insert\SpecialChar menuseparator
39943 \begin_layout Standard
39945 \begin_inset space ~
39949 \begin_inset CommandInset ref
39951 reference "lst:file-listing"
39955 is an example for a listing of a file; there the lines 10
39956 \begin_inset space \thinspace{}
39960 \begin_inset space \thinspace{}
39963 15 of this \SpecialChar LyX
39967 \begin_layout Standard
39968 \begin_inset CommandInset include
39969 LatexCommand lstinputlisting
39970 filename "EmbeddedObjects.lyx"
39971 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39978 \begin_layout Standard
39979 \begin_inset VSpace bigskip
39985 \begin_layout Standard
39986 Inserting a formula into a listing can be done the following way:
39989 \begin_layout Enumerate
39990 Open the listings dialog and add
39991 \begin_inset Newline newline
39999 \begin_inset Newline newline
40002 to the field of the
40009 \begin_layout Enumerate
40010 Create a formula outside the listing
40013 \begin_layout Enumerate
40014 Copy the content of the formula (not the formula inset) to the clipboard
40024 \begin_layout Enumerate
40025 In the listing write
40026 \begin_inset Quotes eld
40034 \begin_inset Quotes erd
40037 and copy from the clipboard between the dollar-signs (shortcut
40046 \begin_layout Standard
40047 \begin_inset listings
40048 lstparams "language=Python,mathescape=true"
40052 \begin_layout Plain Layout
40054 \begin_inset Caption Standard
40056 \begin_layout Plain Layout
40057 Example Listing float containing a formula
40062 # Example listing float
40065 \begin_layout Plain Layout
40070 \begin_layout Plain Layout
40083 \begin_layout Plain Layout
40093 \begin_layout Standard
40094 \begin_inset VSpace bigskip
40100 \begin_layout Standard
40101 Global listings settings can be set in the
40103 Document\SpecialChar menuseparator
40104 Settings\SpecialChar menuseparator
40108 To get there a list of available options, type in a question mark
40109 \begin_inset Quotes eld
40113 \begin_inset Quotes erd
40119 \begin_layout Standard
40120 For more information about the
40124 package, we refer to its documentation
40125 \begin_inset CommandInset citation
40134 \begin_layout Standard
40135 \begin_inset Newpage newpage
40141 \begin_layout Chapter
40143 Units available in \SpecialChar LyX
40145 \begin_inset Index idx
40148 \begin_layout Plain Layout
40155 \begin_inset CommandInset label
40157 name "cha:Units-available-in"
40164 \begin_layout Standard
40165 To understand the units described in this documentation, Table
40166 \begin_inset space ~
40170 \begin_inset CommandInset ref
40172 reference "tab:Units"
40176 explains all units available in \SpecialChar LyX
40180 \begin_layout Standard
40181 \begin_inset Float table
40187 \begin_layout Plain Layout
40188 \begin_inset Caption Standard
40190 \begin_layout Plain Layout
40191 \begin_inset CommandInset label
40205 \begin_layout Plain Layout
40206 \begin_inset VSpace medskip
40212 \begin_layout Plain Layout
40214 \begin_inset Tabular
40215 <lyxtabular version="3" rows="20" columns="2">
40216 <features tabularvalignment="middle">
40217 <column alignment="center" valignment="top">
40218 <column alignment="center" valignment="top">
40220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40223 \begin_layout Plain Layout
40229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40232 \begin_layout Plain Layout
40240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40243 \begin_layout Plain Layout
40249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40252 \begin_layout Plain Layout
40260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40263 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40272 \begin_layout Plain Layout
40280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40283 \begin_layout Plain Layout
40289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40292 \begin_layout Plain Layout
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40312 \begin_layout Plain Layout
40314 \begin_inset space \thinspace{}
40318 \begin_inset space \thinspace{}
40328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40331 \begin_layout Plain Layout
40337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40340 \begin_layout Plain Layout
40342 \begin_inset space \thinspace{}
40346 \begin_inset space \thinspace{}
40356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40359 \begin_layout Plain Layout
40365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40368 \begin_layout Plain Layout
40369 scaled point (65536
40370 \begin_inset space \thinspace{}
40374 \begin_inset space \thinspace{}
40384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40387 \begin_layout Plain Layout
40393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40396 \begin_layout Plain Layout
40398 \begin_inset space \thinspace{}
40402 \begin_inset space \thinspace{}
40412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40415 \begin_layout Plain Layout
40421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40424 \begin_layout Plain Layout
40426 \begin_inset space \thinspace{}
40430 \begin_inset Formula $\approx$
40434 \begin_inset space \thinspace{}
40444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40447 \begin_layout Plain Layout
40453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40456 \begin_layout Plain Layout
40458 \begin_inset space \thinspace{}
40462 \begin_inset space \thinspace{}
40472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40475 \begin_layout Plain Layout
40481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40484 \begin_layout Plain Layout
40485 % of original image width
40492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40495 \begin_layout Plain Layout
40501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40504 \begin_layout Plain Layout
40512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40515 \begin_layout Plain Layout
40521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40524 \begin_layout Plain Layout
40532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40535 \begin_layout Plain Layout
40541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40544 \begin_layout Plain Layout
40552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40555 \begin_layout Plain Layout
40561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40564 \begin_layout Plain Layout
40572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40575 \begin_layout Plain Layout
40581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40584 \begin_layout Plain Layout
40592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40595 \begin_layout Plain Layout
40601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40604 \begin_layout Plain Layout
40612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40615 \begin_layout Plain Layout
40621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40624 \begin_layout Plain Layout
40636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40639 \begin_layout Plain Layout
40645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40648 \begin_layout Plain Layout
40660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40663 \begin_layout Plain Layout
40669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40672 \begin_layout Plain Layout
40674 \begin_inset space \thinspace{}
40678 \begin_inset space \thinspace{}
40699 \begin_layout Chapter
40700 Output File Formats with Graphics
40701 \begin_inset CommandInset label
40703 name "cha:Output-File-Formats"
40710 \begin_layout Section
40712 \begin_inset Index idx
40715 \begin_layout Plain Layout
40722 \begin_inset Index idx
40725 \begin_layout Plain Layout
40730 \begin_layout Plain Layout
40741 \begin_layout Plain Layout
40756 \begin_layout Standard
40757 This file type has the extension
40758 \begin_inset Quotes eld
40766 \begin_inset Quotes erd
40771 \begin_inset Quotes eld
40775 \begin_inset Quotes erd
40778 (DVI), because it is completely portable; you can move them from one machine
40779 to another without needing to do any sort of conversion.
40780 At the time when this file-format was developed, this was no matter of
40782 DVIs are used for quick previews and as pre-stage for other output formats,
40786 \begin_layout Standard
40787 \begin_inset Note Greyedout
40790 \begin_layout Plain Layout
40795 DVI-files do not contain images; they will only be a linked.
40800 So don't forget this, if you move your
40804 file to another computer.
40805 This property can also slow down your computer when you view the DVI, because
40806 the DVI-viewer has to convert the image in the background to make it visible
40807 when you scroll in the DVI.
40808 So it is recommended that you use PDF for files with many images.
40811 \begin_layout Standard
40812 You can export your document to DVI by using the menu
40814 File\SpecialChar menuseparator
40815 Export\SpecialChar menuseparator
40819 You can view your document as DVI via the
40826 \begin_layout Section
40828 \begin_inset CommandInset label
40830 name "sec:PostScript"
40835 \begin_inset Index idx
40838 \begin_layout Plain Layout
40839 File Formats ! PostScript
40845 \begin_inset Index idx
40848 \begin_layout Plain Layout
40853 \begin_layout Plain Layout
40864 \begin_layout Plain Layout
40879 \begin_layout Standard
40880 This file type has the extension
40881 \begin_inset Quotes eld
40889 \begin_inset Quotes erd
40893 PostScript was developed by the company
40897 as a printer language.
40898 The file therefore contains commands that the printer uses to print the
40900 PostScript can be seen as a
40901 \begin_inset Quotes eld
40904 programming language
40905 \begin_inset Quotes erd
40908 ; you can calculate with it and draw diagrams and images
40912 \begin_layout Plain Layout
40913 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
40920 \begin_inset CommandInset citation
40932 Due to this ability, the files are often bigger than PDFs.
40935 \begin_layout Standard
40936 PostScript can only contain images in the format
40937 \begin_inset Quotes eld
40940 Encapsulated PostScript
40941 \begin_inset Quotes erd
40944 (EPS, file extension
40945 \begin_inset Quotes eld
40953 \begin_inset Quotes erd
40957 As \SpecialChar LyX
40958 allows you to use any known image format in your document, it has to
40959 convert images in the background to EPS.
40961 \begin_inset space ~
40965 \begin_inset space ~
40968 images in your document, \SpecialChar LyX
40970 \begin_inset space ~
40973 conversions whenever you view or export your document.
40974 This will slow down your work flow with \SpecialChar LyX
40976 So if you plan to use PostScript, you can insert your images directly as
40977 EPS to avoid this problem.
40980 \begin_layout Standard
40981 You can export your document to PostScript using the menu
40983 File\SpecialChar menuseparator
40984 Export\SpecialChar menuseparator
40988 You can view your document as PostScript via the
40995 \begin_layout Section
40997 \begin_inset Index idx
41000 \begin_layout Plain Layout
41007 \begin_inset Index idx
41010 \begin_layout Plain Layout
41019 \begin_layout Standard
41020 This file type has the extension
41021 \begin_inset Quotes eld
41029 \begin_inset Quotes erd
41034 \begin_inset Quotes eld
41037 Portable Document Format
41038 \begin_inset Quotes erd
41041 (PDF) was developed by
41045 as a derivative of PostScript.
41046 It is more compressed and it uses fewer commands than PostScript.
41048 \begin_inset Quotes eld
41052 \begin_inset Quotes erd
41055 implies, it can be processed at any computer system and the printed output
41056 looks exactly the same.
41059 \begin_layout Standard
41060 PDF can contain images in its own PDF format, in the format
41061 \begin_inset Quotes eld
41064 Joint Photographic Experts Group
41065 \begin_inset Quotes erd
41068 (JPG, file extension
41069 \begin_inset Quotes eld
41077 \begin_inset Quotes erd
41081 \begin_inset Quotes eld
41089 \begin_inset Quotes erd
41092 ), and in the format
41093 \begin_inset Quotes eld
41096 Portable Network Graphics
41097 \begin_inset Quotes erd
41100 (PNG, file extension
41101 \begin_inset Quotes eld
41109 \begin_inset Quotes erd
41113 Nevertheless you can use any other image format, because \SpecialChar LyX
41115 in the background to one of these formats.
41116 But as described in the section about PostScript, the image conversion
41117 will slow down your work flow.
41118 So it is recommended that you use images in one of the three mentioned
41122 \begin_layout Standard
41123 You can export your document to PDF via the menu
41125 File\SpecialChar menuseparator
41128 in three different ways:
41131 \begin_layout Description
41133 \begin_inset space ~
41136 (ps2pdf) This uses the program
41140 that creates a PDF from a PostScript-version of your file.
41141 The PostScript-version is produced by the program
41145 which uses a DVI-version as intermediate step.
41146 So this export variant consists of three conversions.
41149 \begin_layout Description
41151 \begin_inset space ~
41154 (dvipdfm) This uses the program
41158 that converts your file in the background to DVI and in a second step to
41162 \begin_layout Description
41164 \begin_inset space ~
41167 (pdflatex) This uses the program
41171 that converts your file directly to PDF.
41174 \begin_layout Standard
41175 It is recommended that you use
41178 \begin_inset space ~
41187 supports all features of actual PDF-versions, is quick and works stable.
41192 is not under development and therefore a bit outdated.
41195 \begin_layout Standard
41196 You can view your document as PDF via the
41200 menu or by using a toolbar button.
41203 \begin_layout Chapter
41204 List of dvips color names
41205 \begin_inset CommandInset label
41207 name "chap:List-of-dvips-colornames"
41214 \begin_layout Standard
41215 \begin_inset Tabular
41216 <lyxtabular version="3" rows="17" columns="4">
41217 <features tabularvalignment="middle">
41218 <column alignment="left" valignment="top" width="0pt">
41219 <column alignment="left" valignment="top" width="0pt">
41220 <column alignment="left" valignment="top" width="0pt">
41221 <column alignment="left" valignment="top" width="0pt">
41223 <cell alignment="left" valignment="top" usebox="none">
41226 \begin_layout Plain Layout
41230 \begin_layout Plain Layout
41243 \begin_layout Plain Layout
41254 \begin_layout Plain Layout
41266 <cell alignment="left" valignment="top" usebox="none">
41269 \begin_layout Plain Layout
41273 \begin_layout Plain Layout
41286 \begin_layout Plain Layout
41297 \begin_layout Plain Layout
41309 <cell alignment="left" valignment="top" usebox="none">
41312 \begin_layout Plain Layout
41316 \begin_layout Plain Layout
41329 \begin_layout Plain Layout
41340 \begin_layout Plain Layout
41352 <cell alignment="left" valignment="top" usebox="none">
41355 \begin_layout Plain Layout
41359 \begin_layout Plain Layout
41372 \begin_layout Plain Layout
41383 \begin_layout Plain Layout
41397 <cell alignment="center" valignment="top" usebox="none">
41400 \begin_layout Plain Layout
41404 \begin_layout Plain Layout
41417 \begin_layout Plain Layout
41425 \begin_inset Phantom Phantom
41428 \begin_layout Plain Layout
41438 \begin_layout Plain Layout
41450 <cell alignment="center" valignment="top" usebox="none">
41453 \begin_layout Plain Layout
41457 \begin_layout Plain Layout
41470 \begin_layout Plain Layout
41478 \begin_inset Phantom Phantom
41481 \begin_layout Plain Layout
41491 \begin_layout Plain Layout
41503 <cell alignment="center" valignment="top" usebox="none">
41506 \begin_layout Plain Layout
41510 \begin_layout Plain Layout
41523 \begin_layout Plain Layout
41531 \begin_inset Phantom Phantom
41534 \begin_layout Plain Layout
41544 \begin_layout Plain Layout
41556 <cell alignment="center" valignment="top" usebox="none">
41559 \begin_layout Plain Layout
41563 \begin_layout Plain Layout
41576 \begin_layout Plain Layout
41584 \begin_inset Phantom Phantom
41587 \begin_layout Plain Layout
41597 \begin_layout Plain Layout
41611 <cell alignment="left" valignment="top" usebox="none">
41614 \begin_layout Plain Layout
41618 \begin_layout Plain Layout
41631 \begin_layout Plain Layout
41639 \begin_inset Phantom Phantom
41642 \begin_layout Plain Layout
41652 \begin_layout Plain Layout
41664 <cell alignment="left" valignment="top" usebox="none">
41667 \begin_layout Plain Layout
41671 \begin_layout Plain Layout
41684 \begin_layout Plain Layout
41692 \begin_inset Phantom Phantom
41695 \begin_layout Plain Layout
41705 \begin_layout Plain Layout
41717 <cell alignment="left" valignment="top" usebox="none">
41720 \begin_layout Plain Layout
41724 \begin_layout Plain Layout
41737 \begin_layout Plain Layout
41745 \begin_inset Phantom Phantom
41748 \begin_layout Plain Layout
41758 \begin_layout Plain Layout
41770 <cell alignment="left" valignment="top" usebox="none">
41773 \begin_layout Plain Layout
41777 \begin_layout Plain Layout
41790 \begin_layout Plain Layout
41798 \begin_inset Phantom Phantom
41801 \begin_layout Plain Layout
41811 \begin_layout Plain Layout
41825 <cell alignment="left" valignment="top" usebox="none">
41828 \begin_layout Plain Layout
41832 \begin_layout Plain Layout
41845 \begin_layout Plain Layout
41853 \begin_inset Phantom Phantom
41856 \begin_layout Plain Layout
41866 \begin_layout Plain Layout
41878 <cell alignment="left" valignment="top" usebox="none">
41881 \begin_layout Plain Layout
41885 \begin_layout Plain Layout
41898 \begin_layout Plain Layout
41906 \begin_inset Phantom Phantom
41909 \begin_layout Plain Layout
41919 \begin_layout Plain Layout
41931 <cell alignment="left" valignment="top" usebox="none">
41934 \begin_layout Plain Layout
41938 \begin_layout Plain Layout
41951 \begin_layout Plain Layout
41959 \begin_inset Phantom Phantom
41962 \begin_layout Plain Layout
41972 \begin_layout Plain Layout
41984 <cell alignment="left" valignment="top" usebox="none">
41987 \begin_layout Plain Layout
41991 \begin_layout Plain Layout
42004 \begin_layout Plain Layout
42012 \begin_inset Phantom Phantom
42015 \begin_layout Plain Layout
42025 \begin_layout Plain Layout
42039 <cell alignment="left" valignment="top" usebox="none">
42042 \begin_layout Plain Layout
42046 \begin_layout Plain Layout
42059 \begin_layout Plain Layout
42067 \begin_inset Phantom Phantom
42070 \begin_layout Plain Layout
42080 \begin_layout Plain Layout
42092 <cell alignment="left" valignment="top" usebox="none">
42095 \begin_layout Plain Layout
42099 \begin_layout Plain Layout
42112 \begin_layout Plain Layout
42120 \begin_inset Phantom Phantom
42123 \begin_layout Plain Layout
42133 \begin_layout Plain Layout
42145 <cell alignment="left" valignment="top" usebox="none">
42148 \begin_layout Plain Layout
42152 \begin_layout Plain Layout
42165 \begin_layout Plain Layout
42173 \begin_inset Phantom Phantom
42176 \begin_layout Plain Layout
42186 \begin_layout Plain Layout
42198 <cell alignment="left" valignment="top" usebox="none">
42201 \begin_layout Plain Layout
42205 \begin_layout Plain Layout
42218 \begin_layout Plain Layout
42226 \begin_inset Phantom Phantom
42229 \begin_layout Plain Layout
42239 \begin_layout Plain Layout
42253 <cell alignment="left" valignment="top" usebox="none">
42256 \begin_layout Plain Layout
42260 \begin_layout Plain Layout
42273 \begin_layout Plain Layout
42281 \begin_inset Phantom Phantom
42284 \begin_layout Plain Layout
42294 \begin_layout Plain Layout
42306 <cell alignment="left" valignment="top" usebox="none">
42309 \begin_layout Plain Layout
42313 \begin_layout Plain Layout
42326 \begin_layout Plain Layout
42334 \begin_inset Phantom Phantom
42337 \begin_layout Plain Layout
42347 \begin_layout Plain Layout
42359 <cell alignment="left" valignment="top" usebox="none">
42362 \begin_layout Plain Layout
42366 \begin_layout Plain Layout
42379 \begin_layout Plain Layout
42387 \begin_inset Phantom Phantom
42390 \begin_layout Plain Layout
42400 \begin_layout Plain Layout
42412 <cell alignment="left" valignment="top" usebox="none">
42415 \begin_layout Plain Layout
42419 \begin_layout Plain Layout
42432 \begin_layout Plain Layout
42440 \begin_inset Phantom Phantom
42443 \begin_layout Plain Layout
42453 \begin_layout Plain Layout
42467 <cell alignment="center" valignment="top" usebox="none">
42470 \begin_layout Plain Layout
42474 \begin_layout Plain Layout
42487 \begin_layout Plain Layout
42495 \begin_inset Phantom Phantom
42498 \begin_layout Plain Layout
42508 \begin_layout Plain Layout
42520 <cell alignment="center" valignment="top" usebox="none">
42523 \begin_layout Plain Layout
42527 \begin_layout Plain Layout
42540 \begin_layout Plain Layout
42548 \begin_inset Phantom Phantom
42551 \begin_layout Plain Layout
42561 \begin_layout Plain Layout
42573 <cell alignment="center" valignment="top" usebox="none">
42576 \begin_layout Plain Layout
42580 \begin_layout Plain Layout
42593 \begin_layout Plain Layout
42601 \begin_inset Phantom Phantom
42604 \begin_layout Plain Layout
42614 \begin_layout Plain Layout
42626 <cell alignment="center" valignment="top" usebox="none">
42629 \begin_layout Plain Layout
42633 \begin_layout Plain Layout
42646 \begin_layout Plain Layout
42654 \begin_inset Phantom Phantom
42657 \begin_layout Plain Layout
42667 \begin_layout Plain Layout
42681 <cell alignment="left" valignment="top" usebox="none">
42684 \begin_layout Plain Layout
42688 \begin_layout Plain Layout
42701 \begin_layout Plain Layout
42709 \begin_inset Phantom Phantom
42712 \begin_layout Plain Layout
42722 \begin_layout Plain Layout
42734 <cell alignment="left" valignment="top" usebox="none">
42737 \begin_layout Plain Layout
42741 \begin_layout Plain Layout
42754 \begin_layout Plain Layout
42762 \begin_inset Phantom Phantom
42765 \begin_layout Plain Layout
42775 \begin_layout Plain Layout
42787 <cell alignment="left" valignment="top" usebox="none">
42790 \begin_layout Plain Layout
42794 \begin_layout Plain Layout
42807 \begin_layout Plain Layout
42815 \begin_inset Phantom Phantom
42818 \begin_layout Plain Layout
42828 \begin_layout Plain Layout
42840 <cell alignment="left" valignment="top" usebox="none">
42843 \begin_layout Plain Layout
42847 \begin_layout Plain Layout
42860 \begin_layout Plain Layout
42868 \begin_inset Phantom Phantom
42871 \begin_layout Plain Layout
42881 \begin_layout Plain Layout
42895 <cell alignment="left" valignment="top" usebox="none">
42898 \begin_layout Plain Layout
42902 \begin_layout Plain Layout
42915 \begin_layout Plain Layout
42923 \begin_inset Phantom Phantom
42926 \begin_layout Plain Layout
42936 \begin_layout Plain Layout
42948 <cell alignment="left" valignment="top" usebox="none">
42951 \begin_layout Plain Layout
42955 \begin_layout Plain Layout
42968 \begin_layout Plain Layout
42976 \begin_inset Phantom Phantom
42979 \begin_layout Plain Layout
42989 \begin_layout Plain Layout
43001 <cell alignment="left" valignment="top" usebox="none">
43004 \begin_layout Plain Layout
43008 \begin_layout Plain Layout
43021 \begin_layout Plain Layout
43029 \begin_inset Phantom Phantom
43032 \begin_layout Plain Layout
43042 \begin_layout Plain Layout
43054 <cell alignment="left" valignment="top" usebox="none">
43057 \begin_layout Plain Layout
43061 \begin_layout Plain Layout
43074 \begin_layout Plain Layout
43082 \begin_inset Phantom Phantom
43085 \begin_layout Plain Layout
43095 \begin_layout Plain Layout
43109 <cell alignment="left" valignment="top" usebox="none">
43112 \begin_layout Plain Layout
43116 \begin_layout Plain Layout
43129 \begin_layout Plain Layout
43137 \begin_inset Phantom Phantom
43140 \begin_layout Plain Layout
43150 \begin_layout Plain Layout
43162 <cell alignment="left" valignment="top" usebox="none">
43165 \begin_layout Plain Layout
43169 \begin_layout Plain Layout
43182 \begin_layout Plain Layout
43190 \begin_inset Phantom Phantom
43193 \begin_layout Plain Layout
43203 \begin_layout Plain Layout
43215 <cell alignment="left" valignment="top" usebox="none">
43218 \begin_layout Plain Layout
43222 \begin_layout Plain Layout
43235 \begin_layout Plain Layout
43243 \begin_inset Phantom Phantom
43246 \begin_layout Plain Layout
43256 \begin_layout Plain Layout
43268 <cell alignment="left" valignment="top" usebox="none">
43271 \begin_layout Plain Layout
43275 \begin_layout Plain Layout
43288 \begin_layout Plain Layout
43296 \begin_inset Phantom Phantom
43299 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43323 <cell alignment="left" valignment="top" usebox="none">
43326 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43343 \begin_layout Plain Layout
43351 \begin_inset Phantom Phantom
43354 \begin_layout Plain Layout
43364 \begin_layout Plain Layout
43376 <cell alignment="left" valignment="top" usebox="none">
43379 \begin_layout Plain Layout
43383 \begin_layout Plain Layout
43396 \begin_layout Plain Layout
43404 \begin_inset Phantom Phantom
43407 \begin_layout Plain Layout
43417 \begin_layout Plain Layout
43429 <cell alignment="left" valignment="top" usebox="none">
43432 \begin_layout Plain Layout
43436 \begin_layout Plain Layout
43449 \begin_layout Plain Layout
43457 \begin_inset Phantom Phantom
43460 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43482 <cell alignment="left" valignment="top" usebox="none">
43485 \begin_layout Plain Layout
43489 \begin_layout Plain Layout
43502 \begin_layout Plain Layout
43510 \begin_inset Phantom Phantom
43513 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43537 <cell alignment="left" valignment="top" usebox="none">
43540 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43557 \begin_layout Plain Layout
43565 \begin_inset Phantom Phantom
43568 \begin_layout Plain Layout
43578 \begin_layout Plain Layout
43590 <cell alignment="left" valignment="top" usebox="none">
43593 \begin_layout Plain Layout
43597 \begin_layout Plain Layout
43610 \begin_layout Plain Layout
43618 \begin_inset Phantom Phantom
43621 \begin_layout Plain Layout
43631 \begin_layout Plain Layout
43643 <cell alignment="left" valignment="top" usebox="none">
43646 \begin_layout Plain Layout
43650 \begin_layout Plain Layout
43663 \begin_layout Plain Layout
43671 \begin_inset Phantom Phantom
43674 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43696 <cell alignment="left" valignment="top" usebox="none">
43699 \begin_layout Plain Layout
43703 \begin_layout Plain Layout
43716 \begin_layout Plain Layout
43724 \begin_inset Phantom Phantom
43727 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43751 <cell alignment="left" valignment="top" usebox="none">
43754 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43771 \begin_layout Plain Layout
43779 \begin_inset Phantom Phantom
43782 \begin_layout Plain Layout
43792 \begin_layout Plain Layout
43804 <cell alignment="left" valignment="top" usebox="none">
43807 \begin_layout Plain Layout
43811 \begin_layout Plain Layout
43824 \begin_layout Plain Layout
43832 \begin_inset Phantom Phantom
43835 \begin_layout Plain Layout
43845 \begin_layout Plain Layout
43857 <cell alignment="left" valignment="top" usebox="none">
43860 \begin_layout Plain Layout
43864 \begin_layout Plain Layout
43877 \begin_layout Plain Layout
43885 \begin_inset Phantom Phantom
43888 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43910 <cell alignment="left" valignment="top" usebox="none">
43913 \begin_layout Plain Layout
43917 \begin_layout Plain Layout
43930 \begin_layout Plain Layout
43938 \begin_inset Phantom Phantom
43941 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43965 <cell alignment="left" valignment="top" usebox="none">
43968 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43985 \begin_layout Plain Layout
43993 \begin_inset Phantom Phantom
43996 \begin_layout Plain Layout
44006 \begin_layout Plain Layout
44018 <cell alignment="left" valignment="top" usebox="none">
44021 \begin_layout Plain Layout
44025 \begin_layout Plain Layout
44038 \begin_layout Plain Layout
44046 \begin_inset Phantom Phantom
44049 \begin_layout Plain Layout
44059 \begin_layout Plain Layout
44071 <cell alignment="left" valignment="top" usebox="none">
44074 \begin_layout Plain Layout
44078 \begin_layout Plain Layout
44091 \begin_layout Plain Layout
44099 \begin_inset Phantom Phantom
44102 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44124 <cell alignment="left" valignment="top" usebox="none">
44127 \begin_layout Plain Layout
44131 \begin_layout Plain Layout
44144 \begin_layout Plain Layout
44152 \begin_inset Phantom Phantom
44155 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44179 <cell alignment="left" valignment="top" usebox="none">
44182 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44199 \begin_layout Plain Layout
44207 \begin_inset Phantom Phantom
44210 \begin_layout Plain Layout
44220 \begin_layout Plain Layout
44232 <cell alignment="left" valignment="top" usebox="none">
44235 \begin_layout Plain Layout
44239 \begin_layout Plain Layout
44252 \begin_layout Plain Layout
44260 \begin_inset Phantom Phantom
44263 \begin_layout Plain Layout
44273 \begin_layout Plain Layout
44285 <cell alignment="left" valignment="top" usebox="none">
44288 \begin_layout Plain Layout
44292 \begin_layout Plain Layout
44305 \begin_layout Plain Layout
44313 \begin_inset Phantom Phantom
44316 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44338 <cell alignment="left" valignment="top" usebox="none">
44341 \begin_layout Plain Layout
44345 \begin_layout Plain Layout
44358 \begin_layout Plain Layout
44366 \begin_inset Phantom Phantom
44369 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44393 <cell alignment="left" valignment="top" usebox="none">
44396 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44413 \begin_layout Plain Layout
44421 \begin_inset Phantom Phantom
44424 \begin_layout Plain Layout
44434 \begin_layout Plain Layout
44446 <cell alignment="left" valignment="top" usebox="none">
44449 \begin_layout Plain Layout
44453 \begin_layout Plain Layout
44466 \begin_layout Plain Layout
44474 \begin_inset Phantom Phantom
44477 \begin_layout Plain Layout
44487 \begin_layout Plain Layout
44499 <cell alignment="left" valignment="top" usebox="none">
44502 \begin_layout Plain Layout
44506 \begin_layout Plain Layout
44519 \begin_layout Plain Layout
44527 \begin_inset Phantom Phantom
44530 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44552 <cell alignment="left" valignment="top" usebox="none">
44555 \begin_layout Plain Layout
44559 \begin_layout Plain Layout
44572 \begin_layout Plain Layout
44580 \begin_inset Phantom Phantom
44583 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44607 <cell alignment="left" valignment="top" usebox="none">
44610 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44627 \begin_layout Plain Layout
44635 \begin_inset Phantom Phantom
44638 \begin_layout Plain Layout
44648 \begin_layout Plain Layout
44660 <cell alignment="left" valignment="top" usebox="none">
44663 \begin_layout Plain Layout
44669 <cell alignment="left" valignment="top" usebox="none">
44672 \begin_layout Plain Layout
44678 <cell alignment="left" valignment="top" usebox="none">
44681 \begin_layout Plain Layout
44695 \begin_layout Chapter
44696 Explanation of Equation
44697 \begin_inset space ~
44701 \begin_inset CommandInset ref
44708 \begin_inset CommandInset label
44710 name "cha:Explanation-of-Equation"
44717 \begin_layout Standard
44718 We can calculate the total width of
44723 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44727 \begin_inset Formula
44729 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44735 \begin_inset Formula $W_{g\,n}$
44738 is the given width of all cells,
44744 is the \SpecialChar LaTeX
44745 -length between the cell text and the cell border (its default value
44747 \begin_inset space \thinspace{}
44757 is the thickness of the cell border line, the default is 0.4
44758 \begin_inset space \thinspace{}
44764 \begin_layout Standard
44766 \begin_inset space ~
44770 \begin_inset CommandInset ref
44772 reference "eq:Wtot_n"
44776 , the total width of a multicolumn
44777 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44781 \begin_inset Formula
44783 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44791 \begin_layout Standard
44792 By setting equation
44793 \begin_inset space ~
44797 \begin_inset CommandInset ref
44799 reference "eq:Wtot_n"
44804 \begin_inset CommandInset ref
44806 reference "eq:Wtot_mult"
44810 equal we can calculate the needed given width
44811 \begin_inset Formula $W_{g\,n}$
44818 columns are spanned, so that each column has a total width of
44819 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44823 \begin_inset Formula
44825 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44833 \begin_layout Bibliography
44834 \begin_inset CommandInset bibitem
44835 LatexCommand bibitem
44836 key "latexcompanion"
44840 Frank Mittelbach and Michel Goossens:
44842 The \SpecialChar LaTeX
44843 Companion Second Edition.
44846 Addison-Wesley, 2004
44849 \begin_layout Bibliography
44850 \begin_inset CommandInset bibitem
44851 LatexCommand bibitem
44856 Helmut Kopka and Patrick W.
44859 A Guide to \SpecialChar LaTeX
44863 Addison-Wesley, 2003
44866 \begin_layout Bibliography
44867 \begin_inset CommandInset bibitem
44868 LatexCommand bibitem
44876 : A Document Preparation System.
44879 Addison-Wesley, second edition, 1994
44882 \begin_layout Bibliography
44883 \begin_inset CommandInset bibitem
44884 LatexCommand bibitem
44889 Documentation of the \SpecialChar LaTeX
44893 \begin_inset CommandInset href
44896 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44903 \begin_inset Index idx
44906 \begin_layout Plain Layout
44908 -packages ! arydshln
44916 \begin_layout Bibliography
44917 \begin_inset CommandInset bibitem
44918 LatexCommand bibitem
44923 Documentation of the \SpecialChar LaTeX
44927 \begin_inset CommandInset href
44930 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44937 \begin_inset Index idx
44940 \begin_layout Plain Layout
44942 -packages ! booktabs
44950 \begin_layout Bibliography
44951 \begin_inset CommandInset bibitem
44952 LatexCommand bibitem
44957 Documentation of the \SpecialChar LaTeX
44961 \begin_inset CommandInset href
44964 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
44971 \begin_inset Index idx
44974 \begin_layout Plain Layout
44976 -packages ! caption
44984 \begin_layout Bibliography
44985 \begin_inset CommandInset bibitem
44986 LatexCommand bibitem
44991 Documentation of the \SpecialChar LaTeX
44995 \begin_inset CommandInset href
44998 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45005 \begin_inset Index idx
45008 \begin_layout Plain Layout
45010 -packages ! diagbox
45018 \begin_layout Bibliography
45019 \begin_inset CommandInset bibitem
45020 LatexCommand bibitem
45025 Documentation of the \SpecialChar LaTeX
45029 \begin_inset CommandInset href
45032 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45039 \begin_inset Index idx
45042 \begin_layout Plain Layout
45044 -packages ! endfloat
45052 \begin_layout Bibliography
45053 \begin_inset CommandInset bibitem
45054 LatexCommand bibitem
45059 Documentation of the \SpecialChar LaTeX
45063 \begin_inset CommandInset href
45066 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45073 \begin_inset Index idx
45076 \begin_layout Plain Layout
45078 -packages ! footmisc
45086 \begin_layout Bibliography
45087 \begin_inset CommandInset bibitem
45088 LatexCommand bibitem
45093 Documentation of the \SpecialChar LaTeX
45097 \begin_inset CommandInset href
45100 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45107 \begin_inset Index idx
45110 \begin_layout Plain Layout
45112 -packages ! hyperref
45120 \begin_layout Bibliography
45121 \begin_inset CommandInset bibitem
45122 LatexCommand bibitem
45127 Documentation of the \SpecialChar LaTeX
45131 \begin_inset CommandInset href
45134 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45141 \begin_inset Index idx
45144 \begin_layout Plain Layout
45146 -packages ! hyperref
45154 \begin_layout Bibliography
45155 \begin_inset CommandInset bibitem
45156 LatexCommand bibitem
45161 Documentation of the \SpecialChar LaTeX
45165 \begin_inset CommandInset href
45168 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45175 \begin_inset Index idx
45178 \begin_layout Plain Layout
45180 -packages ! KOMA-Script
45188 \begin_layout Bibliography
45189 \begin_inset CommandInset bibitem
45190 LatexCommand bibitem
45195 Documentation of the \SpecialChar LaTeX
45199 \begin_inset CommandInset href
45202 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45209 \begin_inset CommandInset href
45212 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45217 \begin_inset Index idx
45220 \begin_layout Plain Layout
45222 -packages ! lettrine
45230 \begin_layout Bibliography
45231 \begin_inset CommandInset bibitem
45232 LatexCommand bibitem
45237 Documentation of the \SpecialChar LaTeX
45241 \begin_inset CommandInset href
45244 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45251 \begin_inset Index idx
45254 \begin_layout Plain Layout
45256 -packages ! listings
45264 \begin_layout Bibliography
45265 \begin_inset CommandInset bibitem
45266 LatexCommand bibitem
45271 Documentation of the \SpecialChar LaTeX
45275 \begin_inset CommandInset href
45278 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45285 \begin_inset Index idx
45288 \begin_layout Plain Layout
45290 -packages ! marginnote
45298 \begin_layout Bibliography
45299 \begin_inset CommandInset bibitem
45300 LatexCommand bibitem
45305 Documentation of the \SpecialChar LaTeX
45309 \begin_inset CommandInset href
45312 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45319 \begin_inset Index idx
45322 \begin_layout Plain Layout
45324 -packages ! pdfpages
45332 \begin_layout Bibliography
45333 \begin_inset CommandInset bibitem
45334 LatexCommand bibitem
45339 Documentation of the \SpecialChar LaTeX
45343 \begin_inset CommandInset href
45346 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45353 \begin_inset Index idx
45356 \begin_layout Plain Layout
45358 -packages ! prettyref
45366 \begin_layout Bibliography
45367 \begin_inset CommandInset bibitem
45368 LatexCommand bibitem
45373 Web page of the \SpecialChar LaTeX
45377 \begin_inset CommandInset href
45380 target "http://tug.org/PSTricks/"
45387 \begin_inset Index idx
45390 \begin_layout Plain Layout
45392 -packages ! PSTricks
45400 \begin_layout Bibliography
45401 \begin_inset CommandInset bibitem
45402 LatexCommand bibitem
45407 Documentation of the \SpecialChar LaTeX
45411 \begin_inset CommandInset href
45414 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45421 \begin_inset Index idx
45424 \begin_layout Plain Layout
45426 -packages ! refstyle
45434 \begin_layout Bibliography
45435 \begin_inset CommandInset bibitem
45436 LatexCommand bibitem
45441 Documentation of the \SpecialChar LaTeX
45445 \begin_inset CommandInset href
45448 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45455 \begin_inset Index idx
45458 \begin_layout Plain Layout
45460 -packages ! sidecap
45468 \begin_layout Bibliography
45469 \begin_inset CommandInset bibitem
45470 LatexCommand bibitem
45476 \begin_inset CommandInset href
45479 target "http://wiki.lyx.org/LyX/NewInLyX20"
45483 about new features in
45491 \begin_layout Standard
45492 \begin_inset CommandInset index_print
45493 LatexCommand printindex