1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
148 % used for surrounded fixed objects
149 \newboolean{picinpar}
150 \IfFileExists{picinpar.sty}
151 {\usepackage{picinpar}
152 \setboolean{picinpar}{true}}
153 {\setboolean{picinpar}{false}}
155 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
156 \use_default_options false
160 \maintain_unincluded_children false
162 \language_package default
167 \font_typewriter default
168 \font_default_family default
169 \use_non_tex_fonts false
176 \default_output_format default
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
206 \paperorientation portrait
209 \notefontcolor #0000ff
216 \paragraph_separation skip
218 \quotes_language english
221 \paperpagestyle default
225 \tracking_changes false
226 \output_changes false
229 \html_be_strict false
235 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
244 \begin_layout Plain Layout
246 If you have comments or error corrections, please send them to the LyX Documenta
248 \begin_inset CommandInset href
250 name "lyx-docs@lists.lyx.org"
251 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
262 \begin_inset Note Note
265 \begin_layout Plain Layout
272 \begin_inset Newline newline
276 \begin_inset Newline newline
284 \begin_layout Standard
285 \begin_inset CommandInset toc
286 LatexCommand tableofcontents
293 \begin_layout Standard
294 \begin_inset Note Note
297 \begin_layout Plain Layout
298 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
309 lettrine, marginnote, picinpar
316 If they are not installed you can export the document anyway but the sections
317 where the packages are required won't appear in the output.
320 \begin_layout Plain Layout
321 The latest PDF-version of this document can be found here:
322 \begin_inset Newline newline
327 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
335 \begin_layout Chapter
337 \begin_inset Index idx
340 \begin_layout Plain Layout
347 \begin_inset Index idx
350 \begin_layout Plain Layout
355 \begin_layout Plain Layout
366 \begin_layout Plain Layout
381 \begin_layout Section
383 \begin_inset Index idx
386 \begin_layout Plain Layout
387 Figures ! Graphics Dialog
393 \begin_inset CommandInset label
395 name "sec:Graphics-Dialog"
402 \begin_layout Standard
403 To insert an image into your document, place the cursor at the text position
404 you want and click on the toolbar icon
405 \begin_inset Graphics
406 filename ../images/dialog-show-new-inset_graphics.png
414 Insert\SpecialChar \menuseparator
418 Then a dialog will appear to choose the file to load.
419 The image will appear in the output exactly at the position where it is
423 \begin_layout Standard
424 The graphics dialog can be called at any time by clicking on an image.
425 This dialog has three tabs:
428 \begin_layout Description
433 Here you can choose an image file and adjust its appearance in the output.
434 The available units for the image size are explained in appendix
439 \begin_inset CommandInset ref
441 reference "cha:Units-available-in"
446 \begin_inset Newline newline
450 \begin_inset Index idx
453 \begin_layout Plain Layout
459 You can rotate images counter-clockwise by setting a rotation angle and
461 The image will also be rotated inside LyX.
462 \begin_inset Newline newline
466 \begin_inset Index idx
469 \begin_layout Plain Layout
475 Images can be scaled by using a percentage value or by setting the width
476 and height explicitly.
477 If you set only the width or only the height, the other size will be determined
479 If you set both, then the image will be transformed to the given size,
480 possibly distorting it.
481 To prevent the image from distortion, use the option
483 Maintain aspect ratio
486 The image will then be scaled so that its width and height don't exceed
487 the specified dimensions.
488 \begin_inset Newline newline
491 Images can be opened in a program of your choice by right-clicking on it
492 and choosing the entry
501 The program can be set for every image format in the file format settings
502 in LyX's preferences.
505 \begin_layout Description
510 Alternatively to the usage of scaling units it is possible to set image
511 coordinates to adjust the height and width of the image in the output.
512 The coordinates can also be calculated automatically by pressing the button
542 will only print the image region within the given coordinates.
543 Normally you don't need to take care about image coordinates and can ignore
547 \begin_layout Description
564 In this tab you can modify the appearance of the image within LyX and LaTeX
565 experts can specify additional LaTeX options.
566 \begin_inset Newline newline
577 makes the image appear in the output only as a frame with the size of the
579 \begin_inset Newline newline
598 option only affects zipped EPS-graphics, e.
599 \begin_inset space \thinspace{}
603 \begin_inset space \space{}
611 When the option is used the images will not be unzipped on export, since
612 LaTeX can handle them as they are.
613 \begin_inset Newline newline
616 Zipped EPS-graphics are useful to save disk space when you choose PostScript
617 as output format, see appendix
622 \begin_inset CommandInset ref
624 reference "sec:PostScript"
629 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
631 \begin_inset Newline newline
639 \begin_inset Newline newline
644 zgrep %%Bounding x.eps.gz > x.eps.bb
647 \begin_inset Newline newline
650 The second command creates the bounding box file
651 \begin_inset Quotes eld
655 \begin_inset Quotes erd
658 that is needed by LaTeX for zipped graphics.
659 \begin_inset Newline newline
670 you can define or join an image settings group.
671 \begin_inset Index idx
674 \begin_layout Plain Layout
675 Figures ! Settings grouping
680 Images within such a group share their settings, so adjusting one image
681 of the group automatically also adjusts all other images of the group in
683 So you can for example change the size for a bunch of images without the
684 need to manually change each of them.
685 Joining an existing group can also be done using the context menu of the
686 image by checking the name of the desired group.
689 \begin_layout Standard
690 \begin_inset VSpace bigskip
696 \begin_layout Standard
697 This is an example image in EPS format
701 \begin_layout Plain Layout
702 Image formats are explained in section
707 \begin_inset CommandInset ref
709 reference "sec:Image-Formats"
718 within a separate, horizontally centered paragraph:
721 \begin_layout Standard
723 \begin_inset Graphics
724 filename clipart/mobius.eps
734 \begin_layout Standard
735 This is the same image like the one above but in draft mode:
738 \begin_layout Standard
740 \begin_inset Graphics
741 filename clipart/mobius.eps
752 \begin_layout Standard
753 \begin_inset Newpage newpage
759 \begin_layout Section
761 \begin_inset CommandInset label
763 name "sec:Figure-Floats"
768 \begin_inset Index idx
771 \begin_layout Plain Layout
778 \begin_inset Index idx
781 \begin_layout Plain Layout
790 \begin_layout Standard
791 For general explanations about floats, have a look at section
796 \begin_inset CommandInset ref
798 reference "sec:FloatIntroduction"
805 \begin_layout Standard
807 \begin_inset Graphics
808 filename ../images/float-insert_figure.png
816 Insert\SpecialChar \menuseparator
817 Float\SpecialChar \menuseparator
820 inserts a float with a caption that has the label
821 \begin_inset Quotes eld
829 \begin_inset Quotes erd
832 (# is the actual number).
833 You can insert the image above the caption, like in Figure
838 \begin_inset CommandInset ref
840 reference "fig:kill-plat"
844 or below the caption, like in Figure
849 \begin_inset CommandInset ref
851 reference "fig:escher"
856 More about caption placement is described in section
861 \begin_inset CommandInset ref
863 reference "sec:Caption-Placement"
870 \begin_layout Standard
871 \begin_inset Float figure
876 \begin_layout Plain Layout
878 \begin_inset Graphics
879 filename clipart/platypus.eps
889 \begin_layout Plain Layout
892 \begin_layout Plain Layout
893 \begin_inset CommandInset label
899 A severely distorted platypus in a float.
912 \begin_layout Standard
913 \begin_inset Float figure
918 \begin_layout Plain Layout
921 \begin_layout Plain Layout
922 \begin_inset CommandInset label
937 \begin_layout Plain Layout
939 \begin_inset Graphics
940 filename clipart/escher-lsd.eps
955 \begin_layout Standard
956 \begin_inset Index idx
959 \begin_layout Plain Layout
960 References ! to Figures
970 \begin_inset CommandInset ref
972 reference "fig:kill-plat"
977 \begin_inset CommandInset ref
979 reference "fig:escher"
983 are examples of referenced figures.
984 Figures can be referenced in the text by referencing their label.
985 To do this insert a label in the caption using the menu
987 Insert\SpecialChar \menuseparator
990 or the toolbar button
991 \begin_inset Graphics
992 filename ../images/label-insert.png
999 You can now refer to the label using the menu
1001 Insert\SpecialChar \menuseparator
1003 \begin_inset space ~
1008 or the toolbar button
1009 \begin_inset Graphics
1010 filename ../images/dialog-show-new-inset_ref.png
1017 It is important to use references to floats, rather than using vague references
1019 \begin_inset Quotes eld
1023 \begin_inset Quotes erd
1026 , because LaTeX will reposition the floats in the final document and it
1028 \begin_inset Quotes eld
1032 \begin_inset Quotes erd
1036 \begin_inset Newline newline
1039 Referencing is explained in detail in section
1040 \begin_inset space ~
1044 \begin_inset CommandInset ref
1046 reference "sec:Referencing-Floats"
1053 \begin_layout Standard
1054 Normally only one image is inserted to a figure float, but sometimes you
1055 might want to use two images with separate subcaptions.
1056 This can be done by inserting image floats into existing image floats.
1057 Note that only the main caption of the float is added to the List of Figures.
1059 \begin_inset space ~
1063 \begin_inset CommandInset ref
1065 reference "fig:Two-distorted-images"
1069 is an example of a figure float with two images set side by side.
1070 You can also set the images one below the other.
1072 \begin_inset space ~
1076 \begin_inset CommandInset ref
1078 reference "fig:Undefinable-structure"
1083 \begin_inset CommandInset ref
1085 reference "fig:A-Platypus"
1092 \begin_layout Standard
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset space \hfill{}
1103 \begin_inset Float figure
1108 \begin_layout Plain Layout
1109 \begin_inset Caption
1111 \begin_layout Plain Layout
1112 \begin_inset CommandInset label
1114 name "fig:Undefinable-structure"
1118 Undefinable structure.
1126 \begin_layout Plain Layout
1127 \begin_inset Graphics
1128 filename clipart/escher-lsd.eps
1141 \begin_inset space \hfill{}
1145 \begin_inset Float figure
1150 \begin_layout Plain Layout
1151 \begin_inset Caption
1153 \begin_layout Plain Layout
1154 \begin_inset CommandInset label
1156 name "fig:A-Platypus"
1168 \begin_layout Plain Layout
1169 \begin_inset Graphics
1170 filename clipart/platypus.eps
1183 \begin_inset space \hfill{}
1189 \begin_layout Plain Layout
1190 \begin_inset Caption
1192 \begin_layout Plain Layout
1193 \begin_inset CommandInset label
1195 name "fig:Two-distorted-images"
1200 \begin_inset CommandInset label
1202 name "fig2:Two-distorted-images-2"
1206 Two distorted images.
1207 Both images are in the image settings group named
1208 \begin_inset Quotes eld
1212 \begin_inset Quotes erd
1228 \begin_layout Standard
1229 \begin_inset Newpage newpage
1235 \begin_layout Section
1237 \begin_inset CommandInset label
1239 name "sec:Image-Formats"
1244 \begin_inset Index idx
1247 \begin_layout Plain Layout
1254 \begin_inset Index idx
1257 \begin_layout Plain Layout
1258 Figures ! Image Formats
1266 \begin_layout Standard
1267 You can insert images in any known file format.
1268 But as explained in appendix
1269 \begin_inset space ~
1273 \begin_inset CommandInset ref
1275 reference "cha:Output-File-Formats"
1279 , each output document format allows only a few image formats.
1280 LyX uses therefore the program
1284 in the background to convert the images to the right format.
1285 To increase your work flow by avoiding these conversions in the background,
1286 you can use only the image formats that can directly be embedded in the
1288 The output file formats are explained in appendix
1289 \begin_inset space ~
1293 \begin_inset CommandInset ref
1295 reference "cha:Output-File-Formats"
1302 \begin_layout Standard
1303 Similar to fonts there are two types of image formats:
1306 \begin_layout Description
1308 \begin_inset space ~
1311 images consist of pixel values, often in a compressed form.
1312 They are therefore not fully scalable and look pixelated in large zooms.
1313 Well-known bitmap image formats are
1314 \begin_inset Quotes eld
1317 Graphics Interchange Format
1318 \begin_inset Quotes erd
1321 (GIF, file extension
1322 \begin_inset Quotes eld
1330 \begin_inset Quotes erd
1334 \begin_inset Index idx
1337 \begin_layout Plain Layout
1342 \begin_layout Plain Layout
1353 \begin_layout Plain Layout
1366 \begin_inset Quotes eld
1369 Portable Network Graphics
1370 \begin_inset Quotes erd
1373 (PNG, file extension
1374 \begin_inset Quotes eld
1382 \begin_inset Quotes erd
1386 \begin_inset Index idx
1389 \begin_layout Plain Layout
1394 \begin_layout Plain Layout
1405 \begin_layout Plain Layout
1418 \begin_inset Quotes eld
1421 Joint Photographic Experts Group
1422 \begin_inset Quotes erd
1425 (JPG, file extension
1426 \begin_inset Quotes eld
1434 \begin_inset Quotes erd
1438 \begin_inset Quotes eld
1446 \begin_inset Quotes erd
1450 \begin_inset Index idx
1453 \begin_layout Plain Layout
1458 \begin_layout Plain Layout
1469 \begin_layout Plain Layout
1484 \begin_layout Description
1486 \begin_inset space ~
1489 images consist of vectors and can therefore be scaled to any size without
1491 The scaling ability is necessary if you want to create presentations, because
1492 presentations are always scaled by the video projector.
1493 Scaling is also useful for online documents to let the user zoom into diagrams.
1494 \begin_inset Newline newline
1497 Well-known scalable image formats are
1498 \begin_inset Quotes eld
1501 Scalable Vector Graphics
1502 \begin_inset Quotes erd
1505 (SVG, file extension
1506 \begin_inset Quotes eld
1514 \begin_inset Quotes erd
1518 \begin_inset Index idx
1521 \begin_layout Plain Layout
1526 \begin_layout Plain Layout
1537 \begin_layout Plain Layout
1550 \begin_inset Quotes eld
1553 Encapsulated PostScript
1554 \begin_inset Quotes erd
1557 (EPS, file extension
1558 \begin_inset Quotes eld
1566 \begin_inset Quotes erd
1570 \begin_inset Index idx
1573 \begin_layout Plain Layout
1578 \begin_layout Plain Layout
1589 \begin_layout Plain Layout
1602 \begin_inset Quotes eld
1605 Portable Document Format
1606 \begin_inset Quotes erd
1609 (PDF, file extension
1610 \begin_inset Quotes eld
1618 \begin_inset Quotes erd
1622 \begin_inset Index idx
1625 \begin_layout Plain Layout
1632 \begin_inset Quotes eld
1636 \begin_inset Quotes erd
1639 (WMF, file extension
1640 \begin_inset Quotes eld
1648 \begin_inset Quotes erd
1652 \begin_inset Index idx
1655 \begin_layout Plain Layout
1660 \begin_layout Plain Layout
1671 \begin_layout Plain Layout
1685 \begin_inset Quotes eld
1689 \begin_inset Quotes erd
1692 , because you can convert any bitmap image to a PDF or EPS-image and the
1693 result will still be a bitmap image.
1694 In such cases only a header with the image properties is added to the original
1699 \begin_layout Plain Layout
1700 In the case of PDF, the original image is additionally compressed.
1706 The PDF-files generated by
1710 are for example bitmap images.
1713 \begin_layout Standard
1714 Normally it is not possible to convert a bitmap image into a scalable one,
1716 Only the image formats PDF and EPS can directly be embedded to PDF and
1717 PostScript output files, respectively.
1718 SVG and WMF-images are recalculated to bitmaps when the output file is
1719 generated because there is currently no adequate WMF/SVG
1720 \begin_inset Formula $\to$
1723 PDF/EPS converter available.
1726 \begin_layout Chapter
1728 \begin_inset Index idx
1731 \begin_layout Plain Layout
1740 \begin_layout Section
1742 \begin_inset Index idx
1745 \begin_layout Plain Layout
1746 Table ! Introduction
1754 \begin_layout Standard
1755 You can insert a table using either the toolbar button
1756 \begin_inset Graphics
1757 filename ../images/tabular-insert.png
1765 Insert\SpecialChar \menuseparator
1769 The toolbar button offers you a graphical selection: move the mouse to
1770 set the column/row number of the table that should be created and then
1771 press a mouse button.
1772 When you use the menu to create a table, a dialog will appear, asking you
1773 for the number of rows and columns.
1774 \begin_inset Newline newline
1777 The default table has lines around any cell and the first row appears separated
1778 from the rest of the table.
1779 This separation occurs due to a double line: The cells of the first row
1780 have a line below them and the cells of the second row have a line above
1782 Here is an example table:
1785 \begin_layout Standard
1787 \begin_inset Tabular
1788 <lyxtabular version="3" rows="4" columns="4">
1789 <features tabularvalignment="middle">
1790 <column alignment="center" valignment="top" width="0">
1791 <column alignment="center" valignment="top" width="0">
1792 <column alignment="center" valignment="top" width="0">
1793 <column alignment="center" valignment="top" width="0">
1795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1798 \begin_layout Plain Layout
1804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1807 \begin_layout Plain Layout
1822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1825 \begin_layout Plain Layout
1831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1834 \begin_layout Plain Layout
1842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1845 \begin_layout Plain Layout
1860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1863 \begin_layout Plain Layout
1869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1872 \begin_layout Plain Layout
1878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1881 \begin_layout Plain Layout
1889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1892 \begin_layout Plain Layout
1907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1910 \begin_layout Plain Layout
1916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1919 \begin_layout Plain Layout
1925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1928 \begin_layout Plain Layout
1936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1939 \begin_layout Plain Layout
1954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1957 \begin_layout Plain Layout
1963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1966 \begin_layout Plain Layout
1972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1975 \begin_layout Plain Layout
1989 \begin_layout Section
1991 \begin_inset Index idx
1994 \begin_layout Plain Layout
2003 \begin_layout Standard
2004 You can alter a table by clicking on it with the right mouse button, which
2005 brings up the table dialog.
2006 Here you can adjust the settings of that cell and row/column respectively
2007 where the cursor is currently placed.
2008 Most of the dialog options also work on selections.
2009 This means if you select more cells, columns or rows, the action is done
2010 for the whole selection.
2011 Note that there is a difference between selecting the
2015 of the cell, and the cell itself.
2016 \begin_inset Newline newline
2019 With the dialog option
2022 \begin_inset space ~
2027 every change you make in the dialog is directly applied.
2028 If you move the cursor to another table cell the dialog will then also
2029 be updated with the parameters of the new cell.
2030 If you change length values in the dialog you must press return to get
2032 \begin_inset Newline newline
2035 You can alter tables with the following tabs of the table dialog:
2038 \begin_layout Description
2042 \begin_inset space ~
2047 Here you can set the table width
2048 \begin_inset Index idx
2051 \begin_layout Plain Layout
2057 , and the horizontal alignment and the width of the current column.
2061 \begin_inset space ~
2065 \begin_inset space ~
2070 is described in section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sub:Special-Cell-Alignment"
2082 When you have set a width you can also adjust the vertical alignment of
2084 A given width will allow the cell to have line breaks and multiple paragraphs
2085 of text, see section
2086 \begin_inset space ~
2090 \begin_inset CommandInset ref
2092 reference "sub:Multiple-Lines-in"
2097 If you set no width, the column is as wide as the content of its widest
2099 \begin_inset Newline newline
2102 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2104 \begin_inset space ~
2108 \begin_inset CommandInset ref
2110 reference "sub:Multicolumns"
2114 or the cells of one column as multirow cell, see section
2115 \begin_inset space ~
2119 \begin_inset CommandInset ref
2121 reference "sub:Multirows"
2126 \begin_inset Newline newline
2129 The rotate check boxes rotate the current cell, a selection, or the whole
2130 table counter-clockwise by 90°.
2131 The rotation is not shown within LyX, only in the output.
2132 \begin_inset Newline newline
2136 \begin_inset Note Greyedout
2139 \begin_layout Plain Layout
2144 Not all DVI-viewers are able to display rotations.
2150 \begin_inset Newline newline
2153 The table-wide vertical alignment is used for tables within text lines:
2154 \begin_inset Newline newline
2157 A line with tables with different alignments:
2158 \begin_inset Tabular
2159 <lyxtabular version="3" rows="2" columns="2">
2160 <features tabularvalignment="top">
2161 <column alignment="center" valignment="top" width="0pt">
2162 <column alignment="center" valignment="top" width="0">
2164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2167 \begin_layout Plain Layout
2173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2176 \begin_layout Plain Layout
2193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2196 \begin_layout Plain Layout
2211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2214 \begin_layout Plain Layout
2226 \begin_inset Tabular
2227 <lyxtabular version="3" rows="2" columns="2">
2228 <features tabularvalignment="middle">
2229 <column alignment="center" valignment="top" width="0">
2230 <column alignment="center" valignment="top" width="0">
2232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2235 \begin_layout Plain Layout
2241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2244 \begin_layout Plain Layout
2261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2264 \begin_layout Plain Layout
2279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2282 \begin_layout Plain Layout
2294 \begin_inset Tabular
2295 <lyxtabular version="3" rows="2" columns="2">
2296 <features tabularvalignment="bottom">
2297 <column alignment="center" valignment="top" width="0pt">
2298 <column alignment="center" valignment="top" width="0">
2300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2303 \begin_layout Plain Layout
2309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2312 \begin_layout Plain Layout
2329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2332 \begin_layout Plain Layout
2347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2350 \begin_layout Plain Layout
2362 \begin_inset Newline newline
2365 It is also possible to enter a LaTeX-argument which is needed for special
2366 table formattings, see section
2367 \begin_inset space ~
2371 \begin_inset CommandInset ref
2373 reference "sub:Multicolumn-Calculations"
2378 \begin_inset CommandInset ref
2380 reference "sec:Colored-Tables"
2387 \begin_layout Description
2392 In this tab you can add and delete border lines for the current row/column.
2393 \begin_inset Newline newline
2396 Using the style option
2400 will convert the table to a formal table as described in section
2401 \begin_inset space ~
2405 \begin_inset CommandInset ref
2407 reference "sec:Formal-Tables"
2412 \begin_inset Newline newline
2415 You can also add here space to table rows as described in section
2416 \begin_inset space ~
2420 \begin_inset CommandInset ref
2422 reference "sub:Row-Spacing"
2429 \begin_layout Description
2434 This tab is to make a table a so called
2435 \begin_inset Quotes eld
2443 \begin_inset Quotes erd
2446 that can run over several pages.
2448 \begin_inset space ~
2452 \begin_inset CommandInset ref
2454 reference "sec:Longtables"
2459 \begin_inset CommandInset ref
2461 reference "sec:Special-Longtable-Issues"
2465 describe the longtable features in detail.
2468 \begin_layout Section
2470 \begin_inset Index idx
2473 \begin_layout Plain Layout
2482 \begin_layout Standard
2483 The table toolbar is an alternative to the table dialog to be able to alter
2485 It should normally appear at the bottom of LyX's main window when the cursor
2487 You can alternatively switch it on to appear always, by right-clicking
2488 in LyX's main menu bar.
2491 \begin_layout Standard
2492 The toolbar has the following icons:
2495 \begin_layout Labeling
2496 \labelwidthstring 00.00.0000
2497 \begin_inset Graphics
2498 filename ../images/tabular-feature_append-row.png
2503 adds a row below the current cell or selection
2506 \begin_layout Labeling
2507 \labelwidthstring 00.00.0000
2508 \begin_inset Graphics
2509 filename ../images/tabular-feature_append-column.png
2514 adds a column right beside the current cell or selection
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2519 \begin_inset Graphics
2520 filename ../images/tabular-feature_delete-row.png
2525 deletes the current row or selection
2528 \begin_layout Labeling
2529 \labelwidthstring 00.00.0000
2530 \begin_inset Graphics
2531 filename ../images/tabular-feature_delete-column.png
2536 deletes the current column or selection
2539 \begin_layout Labeling
2540 \labelwidthstring 00.00.0000
2541 \begin_inset Graphics
2542 filename ../images/tabular-feature_toggle-line-top.png
2547 adds a line at the top of the current cell / row or of a selection
2550 \begin_layout Labeling
2551 \labelwidthstring 00.00.0000
2552 \begin_inset Graphics
2553 filename ../images/tabular-feature_toggle-line-bottom.png
2558 adds a line at the bottom of the current cell / row or of a selection
2561 \begin_layout Labeling
2562 \labelwidthstring 00.00.0000
2563 \begin_inset Graphics
2564 filename ../images/tabular-feature_toggle-line-left.png
2569 adds a line at the left side of the current cell / row or of a selection
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2574 \begin_inset Graphics
2575 filename ../images/tabular-feature_toggle-line-right.png
2580 adds a line at the right side of the current cell / row or of a selection
2583 \begin_layout Labeling
2584 \labelwidthstring 00.00.0000
2585 \begin_inset Graphics
2586 filename ../images/tabular-feature_set-all-lines.png
2591 adds lines around the current or selected cells - if the current cell no
2592 multicolumn cell this also affects the current row and column
2595 \begin_layout Labeling
2596 \labelwidthstring 00.00.0000
2597 \begin_inset Graphics
2598 filename ../images/tabular-feature_unset-all-lines.png
2603 deletes all lines of the current or selected cells - if the current cell
2604 no multicolumn cell this also affects the current row and column
2607 \begin_layout Labeling
2608 \labelwidthstring 00.00.0000
2609 \begin_inset Graphics
2610 filename ../images/tabular-feature_m-align-left.png
2615 left-aligns the content of the current cell / column
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2620 \begin_inset Graphics
2621 filename ../images/tabular-feature_m-align-center.png
2626 centers the content of the current cell / column horizontally
2629 \begin_layout Labeling
2630 \labelwidthstring 00.00.0000
2631 \begin_inset Graphics
2632 filename ../images/tabular-feature_m-align-right.png
2637 right-aligns the content of the current cell / column
2640 \begin_layout Labeling
2641 \labelwidthstring 00.00.0000
2642 \begin_inset Graphics
2643 filename ../images/tabular-feature_align-decimal.png
2648 aligns the content of the current column at a character
2651 \begin_layout Labeling
2652 \labelwidthstring 00.00.0000
2653 \begin_inset Graphics
2654 filename ../images/tabular-feature_m-valign-top.png
2659 aligns the content of the current cell vertically to the top
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2664 \begin_inset Graphics
2665 filename ../images/tabular-feature_m-valign-middle.png
2670 centers the content of the current cell vertically
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2675 \begin_inset Graphics
2676 filename ../images/tabular-feature_m-valign-bottom.png
2681 aligns the content of the current cell vertically to the bottom
2684 \begin_layout Labeling
2685 \labelwidthstring 00.00.0000
2686 \begin_inset Graphics
2687 filename ../images/tabular-feature_set-rotate-cell.png
2692 rotates the current cell or selection counter-clockwise by 90°
2695 \begin_layout Labeling
2696 \labelwidthstring 00.00.0000
2697 \begin_inset Graphics
2698 filename ../images/tabular-feature_set-rotate-tabular.png
2703 rotates the whole table counter-clockwise by 90°
2706 \begin_layout Labeling
2707 \labelwidthstring 00.00.0000
2708 \begin_inset Graphics
2709 filename ../images/tabular-feature_multicolumn.png
2714 sets the current cell or selection as a multicolumn
2717 \begin_layout Labeling
2718 \labelwidthstring 00.00.0000
2719 \begin_inset Graphics
2720 filename ../images/tabular-feature_multirow.png
2725 sets the current cell or selection as a multirow
2728 \begin_layout Standard
2729 \begin_inset Note Greyedout
2732 \begin_layout Plain Layout
2737 For the output the vertical alignment of the first cell in a row is used
2738 for all following cells in the row.
2746 \begin_layout Section
2748 \begin_inset Index idx
2751 \begin_layout Plain Layout
2760 \begin_layout Standard
2761 Additionally to the table dialog and toolbar, the menu
2763 Edit\SpecialChar \menuseparator
2766 allows you to add and delete border lines for the current row/column and
2767 to set the current selection as multicolumn.
2768 The menu is only available when the cursor is inside a table.
2771 \begin_layout Section
2773 \begin_inset CommandInset label
2775 name "sec:Table-Floats"
2780 \begin_inset Index idx
2783 \begin_layout Plain Layout
2790 \begin_inset Index idx
2793 \begin_layout Plain Layout
2802 \begin_layout Standard
2803 For general explanations about floats, have a look at section
2804 \begin_inset space ~
2808 \begin_inset CommandInset ref
2810 reference "sec:FloatIntroduction"
2817 \begin_layout Standard
2818 \begin_inset Float table
2824 \begin_layout Plain Layout
2825 \begin_inset Caption
2827 \begin_layout Plain Layout
2828 \begin_inset CommandInset label
2830 name "tab:a table float"
2842 \begin_layout Plain Layout
2844 \begin_inset Tabular
2845 <lyxtabular version="3" rows="3" columns="3">
2846 <features tabularvalignment="middle">
2847 <column alignment="center" valignment="top" width="0pt">
2848 <column alignment="center" valignment="top" width="0pt">
2849 <column alignment="center" valignment="top" width="0pt">
2851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2854 \begin_layout Plain Layout
2869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2872 \begin_layout Plain Layout
2887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2890 \begin_layout Plain Layout
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2910 \begin_layout Plain Layout
2925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2928 \begin_layout Plain Layout
2943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2946 \begin_layout Plain Layout
2963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2966 \begin_layout Plain Layout
2976 \begin_inset Formula $\int x^{2}dx$
2984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2987 \begin_layout Plain Layout
2997 \begin_inset Formula $\left[\begin{array}{cc}
3008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3011 \begin_layout Plain Layout
3021 \begin_inset Formula $1+1=2$
3042 \begin_layout Standard
3043 Table floats can be inserted using the menu
3045 Insert\SpecialChar \menuseparator
3046 Float\SpecialChar \menuseparator
3049 or the toolbar button
3050 \begin_inset Graphics
3051 filename ../images/float-insert_table.png
3060 \begin_layout Standard
3061 The float appears as a collapsible box with a caption that has the label
3063 \begin_inset Quotes eld
3067 \begin_inset space ~
3071 \begin_inset Quotes erd
3074 (# is the actual table number).
3075 You can insert tables in the float above or below the caption.
3078 \begin_layout Standard
3080 \begin_inset space ~
3084 \begin_inset CommandInset ref
3086 reference "tab:a table float"
3090 is an example table within a table float.
3093 \begin_layout Standard
3094 Having the caption above the table is the common rule that is unfortunately
3095 not supported in LaTeX's standard classes.
3096 This means that, if you are using the document classes
3112 , there will be no space between the caption and the table.
3113 To insert the needed space, add the following option to the load command
3114 of the LaTeX-package
3119 \begin_inset Index idx
3122 \begin_layout Plain Layout
3123 LaTeX-packages ! caption
3128 in your document preamble
3132 \begin_layout Plain Layout
3133 For more information have a look at section
3134 \begin_inset space ~
3138 \begin_inset CommandInset ref
3140 reference "sec:Caption-Placement"
3152 \begin_layout Standard
3158 \begin_layout Standard
3163 , which is described in section
3164 \begin_inset space ~
3168 \begin_inset CommandInset ref
3170 reference "sec:Caption-Formatting"
3174 , is used to adjust the caption format.
3177 \begin_layout Standard
3178 \begin_inset Index idx
3181 \begin_layout Plain Layout
3182 References ! to Tables
3187 Tables can be cross-referenced in the text by referencing their label.
3188 To do this insert a label in the caption using the menu
3190 Insert\SpecialChar \menuseparator
3193 or the toolbar button
3194 \begin_inset Graphics
3195 filename ../images/label-insert.png
3202 You can now refer to the label using the menu
3204 Insert\SpecialChar \menuseparator
3206 \begin_inset space ~
3211 or the toolbar button
3212 \begin_inset Graphics
3213 filename ../images/dialog-show-new-inset_ref.png
3220 \begin_inset Newline newline
3223 Referencing is explained in detail in section
3224 \begin_inset space ~
3228 \begin_inset CommandInset ref
3230 reference "sec:Referencing-Floats"
3237 \begin_layout Section
3239 \begin_inset CommandInset label
3241 name "sec:Longtables"
3246 \begin_inset Index idx
3249 \begin_layout Plain Layout
3256 \begin_inset Index idx
3259 \begin_layout Plain Layout
3268 \begin_layout Standard
3269 If the table is too long to fit on one page, you can use the option
3272 \begin_inset space ~
3276 \begin_inset space ~
3285 of the table dialog to split the table automatically over more pages.
3286 Doing this enables the following options:
3289 \begin_layout Description
3290 Header: The current row is defined to be a header row that appears on all
3291 pages of the longtable; except for the first page, if
3294 \begin_inset space ~
3300 This is therefore called the main header.
3303 \begin_layout Description
3305 \begin_inset space ~
3308 header: The current row is defined to be a header row that appears on the
3309 first page of the longtable.
3312 \begin_layout Description
3313 Footer: The current row is defined to be a footer row that appears on all
3314 pages of the longtable; except for the last page, if
3317 \begin_inset space ~
3325 \begin_layout Description
3327 \begin_inset space ~
3330 footer: The current row is defined to be a footer row that appears on the
3331 last page of the longtable.
3334 \begin_layout Description
3335 Caption: The current row contains the table caption.
3336 The row is reset as single column and a caption is inserted.
3337 More about longtable captions is explained in sec.
3338 \begin_inset space \thinspace{}
3342 \begin_inset CommandInset ref
3344 reference "sub:Longtable-Captions"
3351 \begin_layout Standard
3352 You can also specify a row where the table is split.
3353 See the following longtable to see how it works:
3356 \begin_layout Standard
3358 \begin_inset Tabular
3359 <lyxtabular version="3" rows="69" columns="3">
3360 <features islongtable="true" longtabularalignment="center">
3361 <column alignment="left" valignment="top" width="0cm">
3362 <column alignment="left" valignment="top" width="0pt">
3363 <column alignment="center" valignment="top" width="0pt">
3364 <row endfirsthead="true">
3365 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3368 \begin_layout Plain Layout
3371 Example Phone List (ignore the names)
3376 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3379 \begin_layout Plain Layout
3385 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3388 \begin_layout Plain Layout
3395 <row endfirsthead="true">
3396 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3399 \begin_layout Plain Layout
3407 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3410 \begin_layout Plain Layout
3416 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3419 \begin_layout Plain Layout
3428 <row endhead="true">
3429 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3432 \begin_layout Plain Layout
3440 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3443 \begin_layout Plain Layout
3449 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3452 \begin_layout Plain Layout
3459 <row endhead="true">
3460 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3463 \begin_layout Plain Layout
3471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3474 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3483 \begin_layout Plain Layout
3492 <row endfoot="true">
3493 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3496 \begin_layout Plain Layout
3497 continued on next page
3502 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3505 \begin_layout Plain Layout
3511 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3514 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3525 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" usebox="none">
3536 \begin_layout Plain Layout
3542 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3545 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3556 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" usebox="none">
3567 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3576 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3587 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" usebox="none">
3598 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3607 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3618 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" usebox="none">
3629 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3638 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3649 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" usebox="none">
3660 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3669 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3680 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" usebox="none">
3691 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3700 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3711 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" usebox="none">
3722 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3731 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3742 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" usebox="none">
3753 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3762 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3773 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" usebox="none">
3784 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3793 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3804 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" usebox="none">
3815 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3824 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3835 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" usebox="none">
3846 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3855 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3866 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" usebox="none">
3877 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3886 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3897 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" usebox="none">
3908 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3917 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3928 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" usebox="none">
3939 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3948 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3959 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" usebox="none">
3970 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3979 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3990 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" usebox="none">
4001 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4021 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" usebox="none">
4032 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4041 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4052 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" usebox="none">
4063 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4072 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4083 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" usebox="none">
4094 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4103 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4114 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" usebox="none">
4125 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4134 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4145 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" usebox="none">
4156 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4165 \begin_layout Plain Layout
4173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4176 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" usebox="none">
4187 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4196 \begin_layout Plain Layout
4204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4207 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" usebox="none">
4218 \begin_layout Plain Layout
4224 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4227 \begin_layout Plain Layout
4235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" usebox="none">
4249 \begin_layout Plain Layout
4255 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4258 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" usebox="none">
4280 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4289 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" usebox="none">
4311 \begin_layout Plain Layout
4317 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4320 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" usebox="none">
4342 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4351 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" usebox="none">
4373 \begin_layout Plain Layout
4379 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4382 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" usebox="none">
4404 \begin_layout Plain Layout
4410 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4413 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" usebox="none">
4435 \begin_layout Plain Layout
4441 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4444 \begin_layout Plain Layout
4452 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4455 \begin_layout Plain Layout
4463 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4466 \begin_layout Plain Layout
4472 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4475 \begin_layout Plain Layout
4483 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4495 \begin_layout Plain Layout
4501 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4504 \begin_layout Plain Layout
4512 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4515 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" usebox="none">
4526 \begin_layout Plain Layout
4532 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4535 \begin_layout Plain Layout
4543 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4546 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" usebox="none">
4557 \begin_layout Plain Layout
4563 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4566 \begin_layout Plain Layout
4574 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4577 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" usebox="none">
4588 \begin_layout Plain Layout
4594 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4597 \begin_layout Plain Layout
4605 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4608 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" usebox="none">
4619 \begin_layout Plain Layout
4625 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4628 \begin_layout Plain Layout
4636 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4639 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" usebox="none">
4650 \begin_layout Plain Layout
4656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4659 \begin_layout Plain Layout
4667 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4670 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" usebox="none">
4681 \begin_layout Plain Layout
4687 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4690 \begin_layout Plain Layout
4698 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4701 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" usebox="none">
4712 \begin_layout Plain Layout
4718 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4721 \begin_layout Plain Layout
4729 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4732 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" usebox="none">
4743 \begin_layout Plain Layout
4749 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4752 \begin_layout Plain Layout
4760 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4763 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" usebox="none">
4774 \begin_layout Plain Layout
4780 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4783 \begin_layout Plain Layout
4791 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4794 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" usebox="none">
4805 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4814 \begin_layout Plain Layout
4822 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4825 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" usebox="none">
4836 \begin_layout Plain Layout
4842 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4845 \begin_layout Plain Layout
4853 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4856 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" usebox="none">
4867 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4876 \begin_layout Plain Layout
4884 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4887 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" usebox="none">
4898 \begin_layout Plain Layout
4904 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4907 \begin_layout Plain Layout
4915 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4918 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" usebox="none">
4929 \begin_layout Plain Layout
4935 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4938 \begin_layout Plain Layout
4946 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4949 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" usebox="none">
4960 \begin_layout Plain Layout
4966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4969 \begin_layout Plain Layout
4977 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4980 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" usebox="none">
4991 \begin_layout Plain Layout
4997 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5000 \begin_layout Plain Layout
5008 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5011 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" usebox="none">
5022 \begin_layout Plain Layout
5028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5031 \begin_layout Plain Layout
5039 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5042 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" usebox="none">
5053 \begin_layout Plain Layout
5059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5062 \begin_layout Plain Layout
5070 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5073 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" usebox="none">
5084 \begin_layout Plain Layout
5090 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5093 \begin_layout Plain Layout
5101 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5104 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" usebox="none">
5115 \begin_layout Plain Layout
5121 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5124 \begin_layout Plain Layout
5132 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5135 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" usebox="none">
5146 \begin_layout Plain Layout
5152 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5155 \begin_layout Plain Layout
5163 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5166 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" usebox="none">
5177 \begin_layout Plain Layout
5183 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5186 \begin_layout Plain Layout
5194 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5197 \begin_layout Plain Layout
5205 <cell alignment="center" valignment="top" usebox="none">
5208 \begin_layout Plain Layout
5214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5217 \begin_layout Plain Layout
5225 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5228 \begin_layout Plain Layout
5236 <cell alignment="center" valignment="top" usebox="none">
5239 \begin_layout Plain Layout
5245 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5248 \begin_layout Plain Layout
5256 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5259 \begin_layout Plain Layout
5267 <cell alignment="center" valignment="top" usebox="none">
5270 \begin_layout Plain Layout
5276 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5279 \begin_layout Plain Layout
5287 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5290 \begin_layout Plain Layout
5298 <cell alignment="center" valignment="top" usebox="none">
5301 \begin_layout Plain Layout
5307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5310 \begin_layout Plain Layout
5318 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5321 \begin_layout Plain Layout
5329 <cell alignment="center" valignment="top" usebox="none">
5332 \begin_layout Plain Layout
5338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5341 \begin_layout Plain Layout
5349 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5352 \begin_layout Plain Layout
5360 <cell alignment="center" valignment="top" usebox="none">
5363 \begin_layout Plain Layout
5369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5372 \begin_layout Plain Layout
5380 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5383 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5403 \begin_layout Plain Layout
5411 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5414 \begin_layout Plain Layout
5422 <cell alignment="center" valignment="top" usebox="none">
5425 \begin_layout Plain Layout
5431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5434 \begin_layout Plain Layout
5442 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5445 \begin_layout Plain Layout
5453 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5456 \begin_layout Plain Layout
5462 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5465 \begin_layout Plain Layout
5472 <row endlastfoot="true">
5473 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5476 \begin_layout Plain Layout
5482 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5485 \begin_layout Plain Layout
5491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5494 \begin_layout Plain Layout
5509 \begin_layout Plain Layout
5513 addtocounter{table}{-1}
5519 \begin_inset Note Note
5522 \begin_layout Plain Layout
5523 See the first greyed-out note in section
5524 \begin_inset space ~
5528 \begin_inset CommandInset ref
5530 reference "sub:Longtable-Captions"
5534 for an explanation of this command.
5542 \begin_layout Subsection
5543 Footnotes in Longtables
5544 \begin_inset CommandInset label
5546 name "sub:Footnotes-in-Longtables"
5551 \begin_inset Index idx
5554 \begin_layout Plain Layout
5555 Longtables ! Footnotes
5563 \begin_layout Standard
5564 Footnotes can be inserted to every longtable cell.
5565 They appear at the bottom of the page where the table cell with the footnote
5568 \begin_inset space ~
5572 \begin_inset CommandInset ref
5574 reference "tab:DiffCaptions"
5578 has for example a footnote.
5581 \begin_layout Subsection
5583 \begin_inset Index idx
5586 \begin_layout Plain Layout
5587 Longtables ! Alignment
5595 \begin_layout Standard
5596 The horizontal alignment of longtables can be set in the table settings
5598 For left- and right-alignment the table will be directly at the page border.
5599 To add space between the table and the border one has to set the alignment
5600 to center and change the value of the LaTeX-lengths
5612 by inserting this line as TeX-Code before the longtable:
5615 \begin_layout Standard
5625 \begin_layout Standard
5626 The value can have any of the units listed in Table
5627 \begin_inset space ~
5631 \begin_inset CommandInset ref
5633 reference "tab:Units"
5644 controls the horizontal distance from the left page border to the longtable,
5651 the distance from the right side.
5652 The default value for both lengths is
5658 , which is in this case the same as an horizontal fill in LyX.
5661 \begin_layout Standard
5662 The following longtable was centered and
5678 \begin_layout Plain Layout
5694 \begin_layout Standard
5695 \begin_inset Tabular
5696 <lyxtabular version="3" rows="5" columns="5">
5697 <features islongtable="true" longtabularalignment="center">
5698 <column alignment="center" valignment="top" width="0">
5699 <column alignment="center" valignment="top" width="0pt">
5700 <column alignment="center" valignment="top" width="0">
5701 <column alignment="center" valignment="top" width="0">
5702 <column alignment="center" valignment="top" width="0">
5704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5707 \begin_layout Plain Layout
5713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5716 \begin_layout Plain Layout
5722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5725 \begin_layout Plain Layout
5731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5734 \begin_layout Plain Layout
5740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5743 \begin_layout Plain Layout
5751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5754 \begin_layout Plain Layout
5760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5763 \begin_layout Plain Layout
5769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5790 \begin_layout Plain Layout
5798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5837 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5884 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5913 \begin_layout Plain Layout
5919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5922 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5931 \begin_layout Plain Layout
5946 \begin_layout Plain Layout
5963 \begin_layout Plain Layout
5967 addtocounter{table}{-1}
5973 \begin_inset Note Note
5976 \begin_layout Plain Layout
5977 See the first greyed-out note in section
5978 \begin_inset space ~
5982 \begin_inset CommandInset ref
5984 reference "sub:Longtable-Captions"
5988 for an explanation of this command.
5996 \begin_layout Subsection
5998 \begin_inset Index idx
6001 \begin_layout Plain Layout
6002 Longtables ! Captions
6008 \begin_inset CommandInset label
6010 name "sub:Longtable-Captions"
6017 \begin_layout Standard
6018 A longtable cannot be put into a table float because floats can only be
6020 But the caption environment of floats can also be used for longtables when
6021 you use the longtable option
6025 as described in sec.
6026 \begin_inset space \thinspace{}
6030 \begin_inset CommandInset ref
6032 reference "sec:Longtables"
6037 Only one table row can contain the caption.
6040 \begin_layout Standard
6041 Here is a short longtable to see how it works:
6044 \begin_layout Standard
6045 \begin_inset Tabular
6046 <lyxtabular version="3" rows="6" columns="5">
6047 <features islongtable="true" longtabularalignment="center">
6048 <column alignment="center" valignment="top" width="0">
6049 <column alignment="center" valignment="top" width="0">
6050 <column alignment="center" valignment="top" width="0">
6051 <column alignment="center" valignment="top" width="0">
6052 <column alignment="center" valignment="top" width="0">
6053 <row caption="true">
6054 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6057 \begin_layout Plain Layout
6058 \begin_inset Caption
6060 \begin_layout Plain Layout
6061 Longtable with caption
6062 \begin_inset Argument
6065 \begin_layout Plain Layout
6081 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6084 \begin_layout Plain Layout
6090 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6093 \begin_layout Plain Layout
6099 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6102 \begin_layout Plain Layout
6108 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6111 \begin_layout Plain Layout
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6122 \begin_layout Plain Layout
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6131 \begin_layout Plain Layout
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Plain Layout
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Plain Layout
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6158 \begin_layout Plain Layout
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6169 \begin_layout Plain Layout
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6178 \begin_layout Plain Layout
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Plain Layout
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Plain Layout
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6205 \begin_layout Plain Layout
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6216 \begin_layout Plain Layout
6222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6225 \begin_layout Plain Layout
6231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6234 \begin_layout Plain Layout
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Plain Layout
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6252 \begin_layout Plain Layout
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6263 \begin_layout Plain Layout
6269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6272 \begin_layout Plain Layout
6278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_layout Plain Layout
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6299 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6310 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6319 \begin_layout Plain Layout
6325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6328 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6346 \begin_layout Plain Layout
6360 \begin_layout Standard
6361 \begin_inset VSpace medskip
6365 \begin_inset Note Greyedout
6368 \begin_layout Plain Layout
6372 \begin_inset space ~
6377 The table number is increased for for every longtable, even if you did
6378 not set a caption for it.
6379 For this reason you could have the case that e.
6380 \begin_inset space \thinspace{}
6384 \begin_inset space \space{}
6388 \begin_inset space ~
6392 \begin_inset space ~
6395 2.1 in the list of tables if there are two longtables without captions.
6396 To avoid this you can add the following command in TeX-Code after every
6397 longtable without a caption:
6400 \begin_layout Plain Layout
6405 addtocounter{table}{-1}
6408 \begin_layout Plain Layout
6409 This is not needed when none of your longtables have a caption and you add
6410 the following code to the document preamble:
6413 \begin_layout Plain Layout
6423 \begin_inset Newline newline
6434 addtocounter{table}{-1}}
6442 \begin_layout Standard
6443 \begin_inset Note Greyedout
6446 \begin_layout Plain Layout
6450 \begin_inset space ~
6460 \begin_inset Index idx
6463 \begin_layout Plain Layout
6464 LaTeX-packages ! hyperref
6477 dialog to link cross-references, the link to a longtable caption will always
6478 point to the beginning of the document.
6486 \begin_layout Subsubsection
6487 References to Longtables
6488 \begin_inset Index idx
6491 \begin_layout Plain Layout
6492 Longtables ! References
6500 \begin_layout Standard
6501 \begin_inset Tabular
6502 <lyxtabular version="3" rows="6" columns="5">
6503 <features islongtable="true" longtabularalignment="center">
6504 <column alignment="center" valignment="top" width="0">
6505 <column alignment="center" valignment="top" width="0">
6506 <column alignment="center" valignment="top" width="0">
6507 <column alignment="center" valignment="top" width="0">
6508 <column alignment="center" valignment="top" width="0">
6509 <row caption="true">
6510 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6513 \begin_layout Plain Layout
6514 \begin_inset Caption
6516 \begin_layout Plain Layout
6517 Referenced longtable
6518 \begin_inset CommandInset label
6520 name "tab:RefExample"
6534 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6537 \begin_layout Plain Layout
6543 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6546 \begin_layout Plain Layout
6552 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6555 \begin_layout Plain Layout
6561 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6564 \begin_layout Plain Layout
6572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6575 \begin_layout Plain Layout
6581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6584 \begin_layout Plain Layout
6590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6593 \begin_layout Plain Layout
6599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6602 \begin_layout Plain Layout
6608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6611 \begin_layout Plain Layout
6619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6622 \begin_layout Plain Layout
6628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6631 \begin_layout Plain Layout
6637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6640 \begin_layout Plain Layout
6646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6649 \begin_layout Plain Layout
6655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6658 \begin_layout Plain Layout
6666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6669 \begin_layout Plain Layout
6675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6678 \begin_layout Plain Layout
6684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6687 \begin_layout Plain Layout
6693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6696 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6705 \begin_layout Plain Layout
6713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6716 \begin_layout Plain Layout
6722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6725 \begin_layout Plain Layout
6731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6752 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6763 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6772 \begin_layout Plain Layout
6778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6781 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6790 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6799 \begin_layout Plain Layout
6813 \begin_layout Standard
6814 To reference a longtable, insert a label into the caption.
6817 \begin_layout Standard
6818 This is a reference to Table
6819 \begin_inset space ~
6823 \begin_inset CommandInset ref
6825 reference "tab:RefExample"
6832 \begin_layout Standard
6833 The caption layout can be set together with all other captions of your document
6834 using the LaTeX-package
6839 \begin_inset Index idx
6842 \begin_layout Plain Layout
6843 LaTeX-packages ! caption
6849 \begin_inset space ~
6853 \begin_inset CommandInset ref
6855 reference "sec:Caption-Formatting"
6862 \begin_layout Subsubsection
6864 \begin_inset Index idx
6867 \begin_layout Plain Layout
6868 Longtables ! Caption Width
6876 \begin_layout Standard
6877 The maximal width of of caption lines is defined by the length
6884 Its default value is 4
6885 \begin_inset space \thinspace{}
6889 To change it add the following command to your document preamble or as
6890 TeX-Code into your document before the longtable that should be affected
6893 \begin_layout Standard
6903 \begin_layout Standard
6904 where the width could have one of the units listed in appendix
6905 \begin_inset space ~
6909 \begin_inset CommandInset ref
6911 reference "cha:Units-available-in"
6918 \begin_layout Standard
6919 The following tables show the difference:
6922 \begin_layout Standard
6923 \begin_inset Tabular
6924 <lyxtabular version="3" rows="6" columns="5">
6925 <features islongtable="true" longtabularalignment="center">
6926 <column alignment="center" valignment="top" width="0">
6927 <column alignment="center" valignment="top" width="0">
6928 <column alignment="center" valignment="top" width="0">
6929 <column alignment="center" valignment="top" width="0">
6930 <column alignment="center" valignment="top" width="0">
6931 <row caption="true">
6932 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6935 \begin_layout Plain Layout
6936 \begin_inset Caption
6938 \begin_layout Plain Layout
6939 long full title with default width long full title with default width long
6940 full title with default width
6941 \begin_inset Argument
6944 \begin_layout Plain Layout
6945 caption with default width
6960 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6963 \begin_layout Plain Layout
6969 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6972 \begin_layout Plain Layout
6978 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6981 \begin_layout Plain Layout
6987 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6990 \begin_layout Plain Layout
6998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7028 \begin_layout Plain Layout
7034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7037 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7075 \begin_layout Plain Layout
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7084 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7122 \begin_layout Plain Layout
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7131 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7169 \begin_layout Plain Layout
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7178 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7216 \begin_layout Plain Layout
7222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7225 \begin_layout Plain Layout
7239 \begin_layout Standard
7243 \begin_layout Plain Layout
7255 \begin_inset Tabular
7256 <lyxtabular version="3" rows="6" columns="5">
7257 <features islongtable="true" longtabularalignment="center">
7258 <column alignment="center" valignment="top" width="0">
7259 <column alignment="center" valignment="top" width="0">
7260 <column alignment="center" valignment="top" width="0">
7261 <column alignment="center" valignment="top" width="0">
7262 <column alignment="center" valignment="top" width="0">
7263 <row caption="true">
7264 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7267 \begin_layout Plain Layout
7268 \begin_inset Caption
7270 \begin_layout Plain Layout
7271 long full title with width set to 5
7272 \begin_inset space \thinspace{}
7275 cm long full title with width set to 5
7276 \begin_inset space \thinspace{}
7279 cm long full title with width set to 5
7280 \begin_inset space \thinspace{}
7284 \begin_inset Argument
7287 \begin_layout Plain Layout
7289 \begin_inset space \thinspace{}
7293 \begin_inset space \thinspace{}
7297 \begin_inset space \thinspace{}
7315 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7318 \begin_layout Plain Layout
7324 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7327 \begin_layout Plain Layout
7333 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7336 \begin_layout Plain Layout
7342 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7345 \begin_layout Plain Layout
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7365 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7383 \begin_layout Plain Layout
7389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7392 \begin_layout Plain Layout
7400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7403 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7412 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7430 \begin_layout Plain Layout
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7439 \begin_layout Plain Layout
7447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7459 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7477 \begin_layout Plain Layout
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7506 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7533 \begin_layout Plain Layout
7541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7553 \begin_layout Plain Layout
7559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7562 \begin_layout Plain Layout
7568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Plain Layout
7594 \begin_layout Standard
7598 \begin_layout Plain Layout
7612 \begin_layout Standard
7613 \begin_inset Note Greyedout
7616 \begin_layout Plain Layout
7621 When the LaTeX-package
7626 \begin_inset Index idx
7629 \begin_layout Plain Layout
7630 LaTeX-packages ! caption
7635 is used, as in this document, the full page width is used for the caption
7636 when you use the default value of 4
7637 \begin_inset space \thinspace{}
7647 To get in this case exactly a 4
7648 \begin_inset space \thinspace{}
7651 in wide caption, you can either use a value slightly different from 4.0
7652 \begin_inset space \thinspace{}
7656 \begin_inset space \thinspace{}
7660 \begin_inset space \space{}
7664 \begin_inset space \thinspace{}
7667 in, or the LaTeX-command
7671 captionsetup{width=value}
7673 that is provided by the
7685 \begin_layout Subsubsection
7686 Different Captions for Table Pages
7687 \begin_inset Index idx
7690 \begin_layout Plain Layout
7691 Longtables ! Different Captions for Pages
7699 \begin_layout Standard
7700 When the table captions for the following pages should differ from the one
7701 of the first table page, insert a caption with the TeX code command
7704 \begin_layout Standard
7709 caption*{caption text}
7716 \begin_layout Standard
7717 in a dummy caption row that is marked as a header.
7719 \begin_inset space ~
7723 \begin_inset CommandInset ref
7725 reference "tab:DiffCaptions"
7729 is an example of a longtable with different heading where the second caption
7730 doesn't include the table number.
7733 \begin_layout Standard
7735 \begin_inset Tabular
7736 <lyxtabular version="3" rows="59" columns="3">
7737 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7738 <column alignment="left" valignment="top" width="0cm">
7739 <column alignment="left" valignment="top" width="0pt">
7740 <column alignment="center" valignment="top" width="0pt">
7741 <row caption="true">
7742 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7745 \begin_layout Plain Layout
7746 \begin_inset Caption
7748 \begin_layout Plain Layout
7750 \begin_inset CommandInset label
7752 name "tab:DiffCaptions"
7757 \begin_inset Argument
7760 \begin_layout Plain Layout
7776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Plain Layout
7785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7788 \begin_layout Plain Layout
7795 <row endfirsthead="true">
7796 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Plain Layout
7802 Example Phone List (ignore the names)
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7816 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7819 \begin_layout Plain Layout
7826 <row endfirsthead="true">
7827 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7830 \begin_layout Plain Layout
7838 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7841 \begin_layout Plain Layout
7847 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7850 \begin_layout Plain Layout
7859 <row endhead="true">
7860 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7863 \begin_layout Plain Layout
7867 \begin_layout Plain Layout
7871 caption*{Continued Example Phone List}
7885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7888 \begin_layout Plain Layout
7894 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7897 \begin_layout Plain Layout
7904 <row endhead="true">
7905 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7908 \begin_layout Plain Layout
7916 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7919 \begin_layout Plain Layout
7925 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7928 \begin_layout Plain Layout
7935 <row endhead="true">
7936 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7939 \begin_layout Plain Layout
7947 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7950 \begin_layout Plain Layout
7956 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7959 \begin_layout Plain Layout
7968 <row endfoot="true">
7969 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7972 \begin_layout Plain Layout
7973 continued on next page
7978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7981 \begin_layout Plain Layout
7987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7990 \begin_layout Plain Layout
7998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8001 \begin_layout Plain Layout
8009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8012 \begin_layout Plain Layout
8018 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8021 \begin_layout Plain Layout
8029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8032 \begin_layout Plain Layout
8040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8043 \begin_layout Plain Layout
8049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8052 \begin_layout Plain Layout
8060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8063 \begin_layout Plain Layout
8071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8074 \begin_layout Plain Layout
8080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8083 \begin_layout Plain Layout
8091 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8094 \begin_layout Plain Layout
8102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8105 \begin_layout Plain Layout
8111 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8114 \begin_layout Plain Layout
8122 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8125 \begin_layout Plain Layout
8133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8136 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8145 \begin_layout Plain Layout
8153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8156 \begin_layout Plain Layout
8164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8167 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8176 \begin_layout Plain Layout
8184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8187 \begin_layout Plain Layout
8195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8198 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8207 \begin_layout Plain Layout
8215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8218 \begin_layout Plain Layout
8226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8229 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8238 \begin_layout Plain Layout
8246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8249 \begin_layout Plain Layout
8257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8260 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8269 \begin_layout Plain Layout
8277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8280 \begin_layout Plain Layout
8288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8291 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8300 \begin_layout Plain Layout
8308 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8311 \begin_layout Plain Layout
8319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8322 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8331 \begin_layout Plain Layout
8339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8342 \begin_layout Plain Layout
8350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8353 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8362 \begin_layout Plain Layout
8370 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8373 \begin_layout Plain Layout
8381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8384 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8393 \begin_layout Plain Layout
8401 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8404 \begin_layout Plain Layout
8412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8415 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8424 \begin_layout Plain Layout
8432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8435 \begin_layout Plain Layout
8444 \begin_layout Plain Layout
8455 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8458 \begin_layout Plain Layout
8464 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8467 \begin_layout Plain Layout
8475 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8478 \begin_layout Plain Layout
8486 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8489 \begin_layout Plain Layout
8495 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8498 \begin_layout Plain Layout
8506 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8509 \begin_layout Plain Layout
8517 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8520 \begin_layout Plain Layout
8526 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8529 \begin_layout Plain Layout
8537 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8540 \begin_layout Plain Layout
8548 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8551 \begin_layout Plain Layout
8557 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8560 \begin_layout Plain Layout
8568 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8571 \begin_layout Plain Layout
8579 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8582 \begin_layout Plain Layout
8588 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8591 \begin_layout Plain Layout
8599 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8602 \begin_layout Plain Layout
8610 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8613 \begin_layout Plain Layout
8619 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8622 \begin_layout Plain Layout
8630 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8633 \begin_layout Plain Layout
8641 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8644 \begin_layout Plain Layout
8650 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8653 \begin_layout Plain Layout
8661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8664 \begin_layout Plain Layout
8672 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8675 \begin_layout Plain Layout
8681 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8684 \begin_layout Plain Layout
8692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8695 \begin_layout Plain Layout
8703 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8706 \begin_layout Plain Layout
8712 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8715 \begin_layout Plain Layout
8723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8726 \begin_layout Plain Layout
8734 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8737 \begin_layout Plain Layout
8743 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8746 \begin_layout Plain Layout
8754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8757 \begin_layout Plain Layout
8765 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8768 \begin_layout Plain Layout
8774 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8777 \begin_layout Plain Layout
8785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8788 \begin_layout Plain Layout
8796 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8799 \begin_layout Plain Layout
8805 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8808 \begin_layout Plain Layout
8816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8819 \begin_layout Plain Layout
8827 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8830 \begin_layout Plain Layout
8836 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8839 \begin_layout Plain Layout
8847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8850 \begin_layout Plain Layout
8858 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8861 \begin_layout Plain Layout
8867 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8870 \begin_layout Plain Layout
8878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8881 \begin_layout Plain Layout
8889 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8892 \begin_layout Plain Layout
8898 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8901 \begin_layout Plain Layout
8909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8912 \begin_layout Plain Layout
8920 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8923 \begin_layout Plain Layout
8929 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8932 \begin_layout Plain Layout
8940 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8943 \begin_layout Plain Layout
8951 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8954 \begin_layout Plain Layout
8960 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8963 \begin_layout Plain Layout
8971 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8974 \begin_layout Plain Layout
8980 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8983 \begin_layout Plain Layout
8989 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8992 \begin_layout Plain Layout
9000 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9003 \begin_layout Plain Layout
9011 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9014 \begin_layout Plain Layout
9020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9023 \begin_layout Plain Layout
9031 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9034 \begin_layout Plain Layout
9042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9045 \begin_layout Plain Layout
9051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9054 \begin_layout Plain Layout
9062 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9065 \begin_layout Plain Layout
9073 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9076 \begin_layout Plain Layout
9082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9085 \begin_layout Plain Layout
9093 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9096 \begin_layout Plain Layout
9104 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9107 \begin_layout Plain Layout
9113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9116 \begin_layout Plain Layout
9124 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9127 \begin_layout Plain Layout
9135 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9138 \begin_layout Plain Layout
9144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9147 \begin_layout Plain Layout
9155 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9158 \begin_layout Plain Layout
9166 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9169 \begin_layout Plain Layout
9175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9178 \begin_layout Plain Layout
9186 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9189 \begin_layout Plain Layout
9197 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9200 \begin_layout Plain Layout
9206 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9209 \begin_layout Plain Layout
9217 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9220 \begin_layout Plain Layout
9228 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9231 \begin_layout Plain Layout
9237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9240 \begin_layout Plain Layout
9248 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9251 \begin_layout Plain Layout
9259 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9262 \begin_layout Plain Layout
9268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9271 \begin_layout Plain Layout
9279 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9282 \begin_layout Plain Layout
9290 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9293 \begin_layout Plain Layout
9299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9302 \begin_layout Plain Layout
9310 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9313 \begin_layout Plain Layout
9321 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9324 \begin_layout Plain Layout
9330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9333 \begin_layout Plain Layout
9341 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9344 \begin_layout Plain Layout
9352 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9355 \begin_layout Plain Layout
9361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9364 \begin_layout Plain Layout
9372 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9375 \begin_layout Plain Layout
9383 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9386 \begin_layout Plain Layout
9392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9395 \begin_layout Plain Layout
9403 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9406 \begin_layout Plain Layout
9414 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9417 \begin_layout Plain Layout
9423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9426 \begin_layout Plain Layout
9434 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9437 \begin_layout Plain Layout
9445 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9448 \begin_layout Plain Layout
9454 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9457 \begin_layout Plain Layout
9465 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9468 \begin_layout Plain Layout
9476 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9479 \begin_layout Plain Layout
9485 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9488 \begin_layout Plain Layout
9496 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9499 \begin_layout Plain Layout
9507 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9510 \begin_layout Plain Layout
9516 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9519 \begin_layout Plain Layout
9527 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9530 \begin_layout Plain Layout
9538 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9541 \begin_layout Plain Layout
9547 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9550 \begin_layout Plain Layout
9558 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9561 \begin_layout Plain Layout
9569 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9572 \begin_layout Plain Layout
9578 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9581 \begin_layout Plain Layout
9589 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9592 \begin_layout Plain Layout
9600 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9603 \begin_layout Plain Layout
9609 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9612 \begin_layout Plain Layout
9626 \begin_layout Section
9627 Special Longtable Issues
9628 \begin_inset CommandInset label
9630 name "sec:Special-Longtable-Issues"
9637 \begin_layout Subsection
9638 Longtable Calculation
9639 \begin_inset Index idx
9642 \begin_layout Plain Layout
9643 Longtables ! Calculation
9651 \begin_layout Standard
9652 LaTeX calculates the height of table pages and their page breaks using so
9654 Chunks are parts of tables that held at the same time in LaTeX's memory.
9655 The default value was historically set to only 20 table rows.
9656 If you are using longtables with many pages this may slow down the creation
9658 You can safely increase the chunk size to values of 100-1000 by adding
9659 this command line to your document preamble:
9662 \begin_layout Standard
9667 setcounter{LTchunksize}{100}
9670 \begin_layout Subsection
9671 Floats and Longtables
9672 \begin_inset Index idx
9675 \begin_layout Plain Layout
9684 \begin_layout Standard
9685 There might be problems when a float appears on the same page where a longtable
9687 To avoid such a situation, insert a
9688 \begin_inset Quotes eld
9692 \begin_inset Quotes erd
9697 Insert\SpecialChar \menuseparator
9698 Formatting\SpecialChar \menuseparator
9700 \begin_inset space ~
9705 ) before your longtable.
9708 \begin_layout Subsection
9710 \begin_inset Index idx
9713 \begin_layout Plain Layout
9714 Longtables ! Forced Page Breaks
9722 \begin_layout Standard
9723 By default tables are only broken between rows.
9724 If you have a cell with multiples lines and want to have a page break within
9725 the cell, insert the new line command
9726 \begin_inset Quotes eld
9738 \begin_inset Quotes erd
9741 as TeX-Code at the point of the cell where it can be broken.
9750 command you have to insert in TeX-Code as many
9751 \begin_inset Quotes eld
9759 \begin_inset Quotes erd
9762 characters as the number of the following table columns.
9767 is the character to separate table cells.
9768 Write in TeX-Code after each
9772 the content of the corresponding following cell and delete the content
9774 \begin_inset Newline newline
9785 command, insert as many
9789 characters as the number of table columns before the current column.
9791 \begin_inset space ~
9795 \begin_inset CommandInset ref
9797 reference "tab:ForcedPagebreak"
9801 the cell that should be broken is in the second column followed by another
9803 Therefore the following command was inserted in the cell as TeX-Code after
9805 \begin_inset Quotes eld
9813 \begin_inset Quotes erd
9819 \begin_layout Standard
9829 \begin_inset Newline newline
9835 \begin_layout Standard
9837 \begin_inset Quotes eld
9841 \begin_inset Quotes erd
9844 in the third column of the row was deleted.
9851 is only needed when a page break should definitely occur at this position,
9852 otherwise it would be a conditional break.
9853 If your footer row of the longtable has for a certain reason no upper line
9854 but you would have a horizontal line where the cell is broken, use this
9858 \begin_layout Standard
9866 \begin_inset Newline newline
9874 \begin_layout Standard
9875 When the cell to be broken is in the last column, the command
9878 \begin_layout Standard
9888 \begin_layout Standard
9889 must be inserted as TeX-Code at the beginning of the cell.
9890 This ensures that the part of the cell that will be displayed on the new
9891 page appears with the full width.
9894 \begin_layout Standard
9896 \begin_inset Tabular
9897 <lyxtabular version="3" rows="38" columns="3">
9898 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9899 <column alignment="left" valignment="top" width="0cm">
9900 <column alignment="left" valignment="top" width="3cm">
9901 <column alignment="center" valignment="top" width="0pt">
9902 <row caption="true">
9903 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9906 \begin_layout Plain Layout
9907 \begin_inset Caption
9909 \begin_layout Plain Layout
9910 Table with forced page break in table cell
9911 \begin_inset CommandInset label
9913 name "tab:ForcedPagebreak"
9918 \begin_inset Argument
9921 \begin_layout Plain Layout
9922 Table with forced page break in table cell
9937 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9940 \begin_layout Plain Layout
9946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9949 \begin_layout Plain Layout
9956 <row endfirsthead="true">
9957 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9960 \begin_layout Plain Layout
9963 Example Phone List (ignore the names)
9968 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9971 \begin_layout Plain Layout
9977 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9980 \begin_layout Plain Layout
9987 <row endfirsthead="true">
9988 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9991 \begin_layout Plain Layout
9999 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10002 \begin_layout Plain Layout
10008 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10011 \begin_layout Plain Layout
10020 <row endhead="true">
10021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10024 \begin_layout Plain Layout
10028 \begin_layout Plain Layout
10032 caption*{Continued Example Phone List}
10046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10049 \begin_layout Plain Layout
10055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10065 <row endhead="true">
10066 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10069 \begin_layout Plain Layout
10077 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10080 \begin_layout Plain Layout
10086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10089 \begin_layout Plain Layout
10096 <row endhead="true">
10097 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10100 \begin_layout Plain Layout
10108 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10111 \begin_layout Plain Layout
10117 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10120 \begin_layout Plain Layout
10129 <row endfoot="true">
10130 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10133 \begin_layout Plain Layout
10134 continued on next page
10139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10142 \begin_layout Plain Layout
10148 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10162 \begin_layout Plain Layout
10170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10173 \begin_layout Plain Layout
10179 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10193 \begin_layout Plain Layout
10201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10204 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10224 \begin_layout Plain Layout
10232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10235 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10255 \begin_layout Plain Layout
10263 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10266 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10286 \begin_layout Plain Layout
10294 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10297 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10317 \begin_layout Plain Layout
10325 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10328 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10348 \begin_layout Plain Layout
10356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10359 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10379 \begin_layout Plain Layout
10387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10390 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10410 \begin_layout Plain Layout
10418 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10421 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10441 \begin_layout Plain Layout
10449 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10452 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10472 \begin_layout Plain Layout
10480 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10483 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10492 \begin_layout Plain Layout
10500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10503 \begin_layout Plain Layout
10511 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10514 \begin_layout Plain Layout
10520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10523 \begin_layout Plain Layout
10531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10534 \begin_layout Plain Layout
10542 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10545 \begin_layout Plain Layout
10551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10565 \begin_layout Plain Layout
10573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10576 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10596 \begin_layout Plain Layout
10604 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10607 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10627 \begin_layout Plain Layout
10635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10658 \begin_layout Plain Layout
10666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10689 \begin_layout Plain Layout
10697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10720 \begin_layout Plain Layout
10728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10751 \begin_layout Plain Layout
10759 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10771 \begin_layout Plain Layout
10779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10782 \begin_layout Plain Layout
10790 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10793 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10802 \begin_layout Plain Layout
10810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10813 \begin_layout Plain Layout
10821 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10824 \begin_layout Plain Layout
10830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10833 \begin_layout Plain Layout
10841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10844 \begin_layout Plain Layout
10852 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10855 \begin_layout Plain Layout
10857 Fürst von Montecompatri, 11.
10858 Fürst von Sulmona und Vivaro, 10.
10859 Fürst von Rossano, 5.
10860 Herzog von Canemorte, 11.
10861 Herzog von Palombara, 5.
10862 Herzog von Castelchiodato,
10866 \begin_layout Plain Layout
10877 \begin_layout Plain Layout
10885 Herzog von Poggionativo, 11.
10886 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10887 Graf von Valinfreda, 11.
10888 Baron von Cropalati, 11.
10889 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10894 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10897 \begin_layout Plain Layout
10905 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10908 \begin_layout Plain Layout
10916 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10919 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10928 \begin_layout Plain Layout
10936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10947 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10950 \begin_layout Plain Layout
10956 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10959 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10970 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10990 \begin_layout Plain Layout
10998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11001 \begin_layout Plain Layout
11009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11012 \begin_layout Plain Layout
11018 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11021 \begin_layout Plain Layout
11029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11032 \begin_layout Plain Layout
11040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11043 \begin_layout Plain Layout
11049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11052 \begin_layout Plain Layout
11060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11063 \begin_layout Plain Layout
11071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11074 \begin_layout Plain Layout
11080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11083 \begin_layout Plain Layout
11091 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11094 \begin_layout Plain Layout
11102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11105 \begin_layout Plain Layout
11111 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11114 \begin_layout Plain Layout
11122 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11125 \begin_layout Plain Layout
11133 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11136 \begin_layout Plain Layout
11142 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11145 \begin_layout Plain Layout
11159 \begin_layout Section
11160 Multiple Lines Columns and Rows
11163 \begin_layout Subsection
11164 Multiple Lines in Table Cells
11165 \begin_inset CommandInset label
11167 name "sub:Multiple-Lines-in"
11172 \begin_inset Index idx
11175 \begin_layout Plain Layout
11176 Multiple Lines in Table Cells
11182 \begin_inset Index idx
11185 \begin_layout Plain Layout
11194 \begin_layout Standard
11196 \begin_inset Float table
11202 \begin_layout Plain Layout
11203 \begin_inset Caption
11205 \begin_layout Plain Layout
11206 \begin_inset CommandInset label
11208 name "tab:Table-with-multiple"
11212 Table with multiple lines in cells
11220 \begin_layout Plain Layout
11222 \begin_inset Tabular
11223 <lyxtabular version="3" rows="3" columns="3">
11224 <features tabularvalignment="middle">
11225 <column alignment="center" valignment="middle" width="2.5cm">
11226 <column alignment="center" valignment="middle" width="0">
11227 <column alignment="center" valignment="middle" width="0">
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11234 \begin_inset Newline linebreak
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11254 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11265 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11283 \begin_layout Plain Layout
11291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11294 \begin_layout Plain Layout
11300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11303 \begin_layout Plain Layout
11309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11312 \begin_layout Plain Layout
11331 \begin_layout Standard
11332 Setting a fixed width for a column enables you to enter text as a paragraph
11333 with multiple lines and hyphenation.
11336 \begin_layout Standard
11338 \begin_inset space ~
11342 \begin_inset CommandInset ref
11344 reference "tab:Table-with-multiple"
11348 , create a 3×3 table, mark the first cell and right-click on it.
11349 In the appearing table dialog we set a cell width of 2.5
11350 \begin_inset space \thinspace{}
11353 cm and choose centered for the vertical and horizontal alignment.
11354 The vertical alignment is used for all cells of the row.
11355 As our text is smaller than 2.5
11356 \begin_inset space \thinspace{}
11359 cm, only one line will appear.
11360 To get two lines, a justified line break (shortcut
11363 arg "newline-insert linebreak"
11367 If the text is wider than the set cell width, it will automatically be
11368 broken to several lines.
11371 \begin_layout Standard
11372 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11373 by LaTeX if it is the first entry.
11374 Therefore you need to insert something to prevent the word not being the
11376 So add a horizontal space of 0
11377 \begin_inset space \thinspace{}
11380 pt before the word.
11381 As the space is zero, it doesn't change the output.
11383 \begin_inset space ~
11387 \begin_inset CommandInset ref
11389 reference "tab:Table-with-and"
11396 \begin_layout Standard
11397 \begin_inset Float table
11403 \begin_layout Plain Layout
11404 \begin_inset Caption
11406 \begin_layout Plain Layout
11407 \begin_inset CommandInset label
11409 name "tab:Table-with-and"
11413 Table with and without hyphenation
11421 \begin_layout Plain Layout
11422 \begin_inset space \hfill{}
11426 \begin_inset Tabular
11427 <lyxtabular version="3" rows="3" columns="3">
11428 <features tabularvalignment="middle">
11429 <column alignment="center" valignment="middle" width="2.5cm">
11430 <column alignment="center" valignment="middle" width="0">
11431 <column alignment="center" valignment="middle" width="0">
11433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11436 \begin_layout Plain Layout
11437 verylongtablecellword
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11454 \begin_layout Plain Layout
11462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11465 \begin_layout Plain Layout
11471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11474 \begin_layout Plain Layout
11480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11483 \begin_layout Plain Layout
11491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11494 \begin_layout Plain Layout
11500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11503 \begin_layout Plain Layout
11509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11512 \begin_layout Plain Layout
11524 \begin_inset space \hfill{}
11528 \begin_inset Tabular
11529 <lyxtabular version="3" rows="3" columns="3">
11530 <features tabularvalignment="middle">
11531 <column alignment="center" valignment="middle" width="2.5cm">
11532 <column alignment="center" valignment="middle" width="0">
11533 <column alignment="center" valignment="middle" width="0">
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11539 \begin_inset space \hspace{}
11543 verylongtablecellword
11548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11551 \begin_layout Plain Layout
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11560 \begin_layout Plain Layout
11568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11571 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11589 \begin_layout Plain Layout
11597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11600 \begin_layout Plain Layout
11606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11609 \begin_layout Plain Layout
11615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11618 \begin_layout Plain Layout
11630 \begin_inset space \hfill{}
11641 \begin_layout Subsection
11643 \begin_inset CommandInset label
11645 name "sub:Multicolumns"
11650 \begin_inset Index idx
11653 \begin_layout Plain Layout
11660 \begin_inset Index idx
11663 \begin_layout Plain Layout
11664 Table ! Multicolumns
11672 \begin_layout Subsubsection
11676 \begin_layout Standard
11677 To merge cells over multiple columns, select as many cells within a row
11678 as you want to merge and use either the table-toolbar button
11679 \begin_inset Graphics
11680 filename ../images/tabular-feature_multicolumn.png
11682 scaleBeforeRotation
11688 Edit\SpecialChar \menuseparator
11689 Table\SpecialChar \menuseparator
11692 , or right click on the marked cells and choose
11696 in the context menu.
11699 \begin_layout Standard
11700 Multicolumns have there own cell settings.
11701 That means changing cell borders, cell alignment, and the width only affects
11703 Here is an example table with a multicolumn cell in the first row and one
11704 in the last row without the upper border:
11707 \begin_layout Standard
11709 \begin_inset Tabular
11710 <lyxtabular version="3" rows="3" columns="4">
11711 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11712 <column alignment="center" valignment="top" width="0pt">
11713 <column alignment="center" valignment="middle" width="0">
11714 <column alignment="center" valignment="top" width="0in">
11715 <column alignment="center" valignment="top" width="0pt">
11717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11720 \begin_layout Plain Layout
11726 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11729 \begin_layout Plain Layout
11735 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11738 \begin_layout Plain Layout
11744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11747 \begin_layout Plain Layout
11755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11758 \begin_layout Plain Layout
11773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11776 \begin_layout Plain Layout
11782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11785 \begin_layout Plain Layout
11791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11794 \begin_layout Plain Layout
11802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11805 \begin_layout Plain Layout
11811 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11814 \begin_layout Plain Layout
11820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11823 \begin_layout Plain Layout
11829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11832 \begin_layout Plain Layout
11846 \begin_layout Subsubsection
11847 Multicolumn Calculations
11848 \begin_inset CommandInset label
11850 name "sub:Multicolumn-Calculations"
11855 \begin_inset Index idx
11858 \begin_layout Plain Layout
11859 Multicolumns ! Calculations
11867 \begin_layout Standard
11868 LyX supports multicolumns directly, but we have to take account of the cell
11869 width of the columns spanned by the multicolumn cell.
11872 \begin_layout Standard
11873 \begin_inset Float table
11879 \begin_layout Plain Layout
11880 \begin_inset Caption
11882 \begin_layout Plain Layout
11883 \begin_inset CommandInset label
11885 name "tab:Table-with-centered"
11889 Table with centered multicolumn text above two columns that have exactly
11890 half the width of the multicolumn cell
11891 \begin_inset Argument
11894 \begin_layout Plain Layout
11895 Perfect multicolumn table
11908 \begin_layout Plain Layout
11910 \begin_inset Tabular
11911 <lyxtabular version="3" rows="3" columns="3">
11912 <features tabularvalignment="middle">
11913 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11914 <column alignment="center" valignment="middle" width="0">
11915 <column alignment="center" valignment="top" width="0">
11917 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11920 \begin_layout Plain Layout
11921 multiple lines multicolumn
11926 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11929 \begin_layout Plain Layout
11935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11938 \begin_layout Plain Layout
11946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11949 \begin_layout Plain Layout
11955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11958 \begin_layout Plain Layout
11964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11967 \begin_layout Plain Layout
11975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11978 \begin_layout Plain Layout
11984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11987 \begin_layout Plain Layout
11993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11996 \begin_layout Plain Layout
12015 \begin_layout Standard
12016 To create for example Table
12017 \begin_inset space ~
12021 \begin_inset CommandInset ref
12023 reference "tab:Table-with-centered"
12027 , mark the first two cells in the first row of a 3×3 table and right-click
12029 Now choose for this cell
12038 \begin_inset space \thinspace{}
12041 cm in the table dialog.
12042 The merged columns should have exactly half the width of the multicolumn
12043 cell, so that you would set a width of 1.25
12044 \begin_inset space \thinspace{}
12047 cm for the first column.
12048 The second column has then automatically a width of 1.25
12049 \begin_inset space \thinspace{}
12052 cm (multicolumn width - width of first column).
12053 This was done for Table
12054 \begin_inset space ~
12058 \begin_inset CommandInset ref
12060 reference "tab:Table-without-half"
12067 \begin_layout Standard
12068 \begin_inset Float table
12073 \begin_layout Plain Layout
12074 \begin_inset Caption
12076 \begin_layout Plain Layout
12077 \begin_inset CommandInset label
12079 name "tab:Table-without-half"
12083 Table where the spanned table columns are not exactly half the width of
12084 the multicolumn cell
12085 \begin_inset Argument
12088 \begin_layout Plain Layout
12089 Imperfect multicolumn table
12102 \begin_layout Plain Layout
12104 \begin_inset Tabular
12105 <lyxtabular version="3" rows="3" columns="3">
12106 <features tabularvalignment="middle">
12107 <column alignment="center" valignment="top" width="1.25cm">
12108 <column alignment="center" valignment="top" width="0">
12109 <column alignment="center" valignment="top" width="0">
12111 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12114 \begin_layout Plain Layout
12115 multiple lines multicolumn
12120 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12123 \begin_layout Plain Layout
12129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12132 \begin_layout Plain Layout
12140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12143 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12152 \begin_layout Plain Layout
12158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12161 \begin_layout Plain Layout
12169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12172 \begin_layout Plain Layout
12178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12181 \begin_layout Plain Layout
12187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12190 \begin_layout Plain Layout
12209 \begin_layout Standard
12210 You can see that the first column is not half the width of the multicolumn
12211 cell, it is a bit bigger.
12212 The reason is that the specified width of a cell
12213 \begin_inset Formula $W_{g}$
12216 is not its total width
12217 \begin_inset Formula $W_{\mathrm{tot}}$
12220 because a cell is always a bit larger than specified.
12222 \begin_inset space ~
12226 \begin_inset CommandInset ref
12228 reference "cha:Explanation-of-Equation"
12232 explains this in detail.
12235 \begin_layout Standard
12237 \begin_inset Formula $W_{g\, n}$
12240 which the user needs to set when
12244 columns are spanned can be calculated, so that each column has a total
12246 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12250 \begin_inset Formula
12252 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12260 \begin_layout Standard
12261 In our case we have
12262 \begin_inset Formula $n=2$
12266 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12269 cm and the default values for the lengths, so that equation
12270 \begin_inset CommandInset ref
12277 \begin_inset Formula
12279 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12287 \begin_layout Standard
12288 To enable calculations in LaTeX, the LaTeX-package
12292 must be loaded with the document preamble line
12293 \begin_inset Index idx
12296 \begin_layout Plain Layout
12297 LaTeX-packages ! calc
12305 \begin_layout Standard
12313 \begin_layout Standard
12314 LyX does not allow you to calculate lengths in the
12318 field of the table dialog.
12319 Therefore you have to format the column by inserting a LaTeX-argument in
12321 Here is an overview about the arguments:
12324 \begin_layout Itemize
12329 creates cell with a fixed width, its text is vertically top-aligned
12332 \begin_layout Itemize
12337 creates cell with a fixed width, its text is vertically centered
12340 \begin_layout Itemize
12345 creates cell with a fixed width, its text is vertically bottom-aligned
12348 \begin_layout Standard
12349 By entering a LaTeX-argument, all cell settings set in the table dialog
12353 \begin_layout Standard
12354 \begin_inset Note Greyedout
12357 \begin_layout Plain Layout
12362 Due to a bug, LyX shows the overwritten settings anyway.
12370 \begin_layout Standard
12371 As the text should be horizontally centered, the command
12378 You can now enter the following LaTeX-argument for the first spanned column:
12381 \begin_layout Standard
12386 centering}m{1.25cm-6.2pt}
12389 \begin_layout Standard
12394 means, that the commands inside the braces are applied before the cell
12398 \begin_layout Standard
12399 Although we have chosen centered alignment for the text of the multicolumn
12400 cell, it is still left aligned.
12401 This is because LyX only applies the alignment to single columns.
12402 So for the multicolumn cell we have to use the LaTeX-argument
12405 \begin_layout Standard
12413 \begin_layout Subsection
12415 \begin_inset CommandInset label
12417 name "sub:Multirows"
12422 \begin_inset Index idx
12425 \begin_layout Plain Layout
12432 \begin_inset Index idx
12435 \begin_layout Plain Layout
12444 \begin_layout Standard
12445 To merge cells over multiple rows, select as many cells within a column
12446 as you want to merge and use either the table-toolbar button
12447 \begin_inset Graphics
12448 filename ../images/tabular-feature_multirow.png
12450 scaleBeforeRotation
12456 Edit\SpecialChar \menuseparator
12457 Table\SpecialChar \menuseparator
12460 , or right click on the marked cells and choose
12464 in the context menu.
12467 \begin_layout Standard
12468 Here is an example table with a multirow in the first column:
12471 \begin_layout Standard
12473 \begin_inset Tabular
12474 <lyxtabular version="3" rows="3" columns="3">
12475 <features tabularvalignment="middle">
12476 <column alignment="center" valignment="top" width="0pt">
12477 <column alignment="center" valignment="top" width="0">
12478 <column alignment="center" valignment="top" width="0">
12480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12483 \begin_layout Plain Layout
12489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12492 \begin_layout Plain Layout
12498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12501 \begin_layout Plain Layout
12509 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12512 \begin_layout Plain Layout
12518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12521 \begin_layout Plain Layout
12527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12530 \begin_layout Plain Layout
12538 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12541 \begin_layout Plain Layout
12547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12550 \begin_layout Plain Layout
12556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12559 \begin_layout Plain Layout
12573 \begin_layout Standard
12574 The width of multirow cells is set by setting the width and alignment for
12580 shifts the content of the multirow up/down if the offset is positive/negative.
12583 \begin_layout Standard
12584 If the column of a multirow cell has no explicit width, the multirow cell
12585 inherits the alignment of the column.
12586 Otherwise it is by default left-aligned.
12587 To override the default, renew the command
12596 \begin_layout Standard
12608 \begin_layout Standard
12609 in the document preamble.
12610 Then all entries of multirow cells in the document are centered.
12611 If centering is only needed for several tables, you can renew the command
12612 in a TeX-Code box just before the table instead of the preamble.
12613 If the text should be right-aligned, replace
12626 To return to left-alignment
12635 \begin_layout Standard
12636 This is an example table with a right-aligned multirow cell that has a vertical
12638 \begin_inset space \thinspace{}
12642 \begin_inset space \thinspace{}
12648 \begin_layout Standard
12654 \begin_layout Plain Layout
12668 \begin_inset Tabular
12669 <lyxtabular version="3" rows="4" columns="3">
12670 <features tabularvalignment="middle">
12671 <column alignment="center" valignment="top" width="3cm">
12672 <column alignment="center" valignment="top" width="0">
12673 <column alignment="center" valignment="top" width="0">
12675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12678 \begin_layout Plain Layout
12684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12696 \begin_layout Plain Layout
12704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12707 \begin_layout Plain Layout
12713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12725 \begin_layout Plain Layout
12733 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12736 \begin_layout Plain Layout
12742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12754 \begin_layout Plain Layout
12762 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12765 \begin_layout Plain Layout
12771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12774 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12783 \begin_layout Plain Layout
12798 \begin_layout Plain Layout
12814 \begin_layout Standard
12815 To start a new line in a multirow you can use a forced line break (shortcut
12819 arg "newline-insert newline"
12822 ) but this will not respect the cell lines as demonstrated in this table:
12825 \begin_layout Standard
12828 \begin_inset Tabular
12829 <lyxtabular version="3" rows="3" columns="2">
12830 <features tabularvalignment="middle">
12831 <column alignment="left" valignment="middle" width="2cm">
12832 <column alignment="center" valignment="top" width="0">
12834 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12837 \begin_layout Plain Layout
12839 \begin_inset Newline newline
12843 \begin_inset Newline newline
12851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12854 \begin_layout Plain Layout
12862 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12865 \begin_layout Plain Layout
12871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12874 \begin_layout Plain Layout
12882 <cell alignment="left" 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
12908 \begin_layout Standard
12909 Therefore be careful with forced line breaks.
12912 \begin_layout Section
12914 \begin_inset CommandInset label
12916 name "sec:Formal-Tables"
12921 \begin_inset Index idx
12924 \begin_layout Plain Layout
12933 \begin_layout Standard
12934 Tables are often typeset in books similar to Table
12935 \begin_inset space ~
12939 \begin_inset CommandInset ref
12941 reference "tab:Example-booktabs-table"
12946 This kind of tables is called
12947 \begin_inset Quotes eld
12955 \begin_inset Quotes erd
12959 To make a table a formal table use the option
12967 tab of the table dialog.
12970 \begin_layout Standard
12971 \begin_inset Float table
12977 \begin_layout Plain Layout
12978 \begin_inset Caption
12980 \begin_layout Plain Layout
12981 \begin_inset CommandInset label
12983 name "tab:Example-booktabs-table"
12987 Example booktabs-table
12995 \begin_layout Plain Layout
12997 \begin_inset Tabular
12998 <lyxtabular version="3" rows="8" columns="4">
12999 <features booktabs="true" tabularvalignment="middle">
13000 <column alignment="center" valignment="top" width="0">
13001 <column alignment="center" valignment="top" width="0">
13002 <column alignment="center" valignment="top" width="0">
13003 <column alignment="center" valignment="top" width="0">
13005 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13008 \begin_layout Plain Layout
13014 <cell alignment="center" valignment="top" topline="true" usebox="none">
13017 \begin_layout Plain Layout
13019 \begin_inset space \thinspace{}
13027 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13030 \begin_layout Plain Layout
13032 \begin_inset space \thinspace{}
13040 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13043 \begin_layout Plain Layout
13051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13054 \begin_layout Plain Layout
13058 \begin_layout Plain Layout
13071 \begin_layout Plain Layout
13080 Detector thickness in µm
13085 <cell alignment="center" valignment="top" usebox="none">
13088 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" usebox="none">
13106 \begin_layout Plain Layout
13114 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13117 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" usebox="none">
13144 \begin_layout Plain Layout
13151 <row topspace="default">
13152 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13155 \begin_layout Plain Layout
13156 Spatial resolution in µm
13161 <cell alignment="center" valignment="top" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" usebox="none">
13182 \begin_layout Plain Layout
13189 <row topspace="default">
13190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13193 \begin_layout Plain Layout
13195 \begin_inset Formula $f_{\mathrm{max}}$
13203 <cell alignment="center" valignment="top" usebox="none">
13206 \begin_layout Plain Layout
13212 <cell alignment="center" valignment="top" usebox="none">
13215 \begin_layout Plain Layout
13221 <cell alignment="center" valignment="top" usebox="none">
13224 \begin_layout Plain Layout
13231 <row topspace="default">
13232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13235 \begin_layout Plain Layout
13239 \begin_layout Plain Layout
13243 cmidrule(l{10pt}){1-1}
13248 LSF-spatial resolution
13253 <cell alignment="center" valignment="top" usebox="none">
13256 \begin_layout Plain Layout
13262 <cell alignment="center" valignment="top" usebox="none">
13265 \begin_layout Plain Layout
13271 <cell alignment="center" valignment="top" usebox="none">
13274 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13285 \begin_layout Plain Layout
13291 <cell alignment="center" valignment="top" usebox="none">
13294 \begin_layout Plain Layout
13300 <cell alignment="center" valignment="top" usebox="none">
13303 \begin_layout Plain Layout
13309 <cell alignment="center" valignment="top" usebox="none">
13312 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13332 \begin_layout Plain Layout
13338 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13341 \begin_layout Plain Layout
13347 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13350 \begin_layout Plain Layout
13369 \begin_layout Standard
13370 Spaces to table rows can be added using the
13374 tab of the table dialog as described in section
13375 \begin_inset space ~
13379 \begin_inset CommandInset ref
13381 reference "sub:Row-Spacing"
13388 \begin_layout Standard
13389 Unlike normal tables, formal tables have no vertical table lines.
13390 The horizontal table lines can be set as for normal tables but they appear
13391 with different widths in the output:
13392 \begin_inset Newline newline
13395 The first and the last table line have a default width of 0.08
13396 \begin_inset space \thinspace{}
13399 em while the other lines have a default width of 0.05
13400 \begin_inset space \thinspace{}
13406 \begin_layout Standard
13407 The default widths can be changed with the following preamble lines
13410 \begin_layout Standard
13420 \begin_inset Newline newline
13432 \begin_layout Standard
13433 This example is for the first line, the so called
13438 If you want to change the width for the last line, replace
13447 To change the width for the other lines replace
13456 You can use all units listed in appendix
13457 \begin_inset space ~
13461 \begin_inset CommandInset ref
13463 reference "cha:Units-available-in"
13470 \begin_layout Standard
13471 Lines that do not span all table columns can be created by setting a table
13472 line for multicolumn cells.
13473 LyX will then internally use the command
13479 to create this line.
13483 \begin_layout Standard
13488 cmidrule[width](trim){startcol-endcol}
13491 \begin_layout Standard
13498 are currently not supported by LyX so you have to use TeX-Code to be able
13506 s can manually be created by inserting the command as TeX-Code as the first
13507 cell entry of the first cell of a row.
13508 The line is then drawn in the output above the current row.
13511 \begin_layout Standard
13512 The default for the width is 0.03
13513 \begin_inset space \thinspace{}
13517 Startcol is the number of the column where the line starts and endcol the
13518 column number where the line ends.
13519 The endcol always needs to be specified, also when the line should span
13521 The optional parameter trim could be either
13529 where the trimwidth is also optional.
13530 Using for example the parameter
13534 means that the line is trimmed from its left end by 2
13535 \begin_inset space \thinspace{}
13539 If you don't specify the trimwidth the lines are trimmed by the default
13541 \begin_inset space \thinspace{}
13547 \begin_layout Standard
13548 \begin_inset VSpace bigskip
13552 \begin_inset space ~
13556 \begin_inset CommandInset ref
13558 reference "tab:Example-booktabs-table"
13562 was created using the commands
13565 \begin_layout Standard
13575 \begin_layout Standard
13576 at the beginning of the second row and
13579 \begin_layout Standard
13584 cmidrule(l{10pt}){1-1}
13587 \begin_layout Standard
13591 \begin_layout Standard
13592 \begin_inset VSpace bigskip
13598 \begin_layout Standard
13599 You might want to have overlapping
13606 \begin_inset space ~
13610 \begin_inset CommandInset ref
13612 reference "tab:Special-booktabs-table"
13617 This can be achieved with the TeX-Code command
13620 \begin_layout Standard
13628 \begin_layout Standard
13629 The command that was used for the second row of Table
13630 \begin_inset space ~
13634 \begin_inset CommandInset ref
13636 reference "tab:Special-booktabs-table"
13643 \begin_layout Standard
13657 \begin_layout Standard
13658 The command for the sixth row is
13661 \begin_layout Standard
13673 \begin_layout Standard
13674 \begin_inset VSpace bigskip
13680 \begin_layout Standard
13681 If you are anyway not satisfied with the border line spacing, you can use
13682 the following command to produce lines that span over all table columns
13687 \begin_layout Standard
13692 specialrule{width}{space above}{space below}
13695 \begin_layout Standard
13696 For more information about these features, refer to the manual of the LaTeX-pack
13702 \begin_inset CommandInset citation
13709 \begin_inset Index idx
13712 \begin_layout Plain Layout
13713 LaTeX-packages ! booktabs
13721 \begin_layout Standard
13722 \begin_inset Float table
13728 \begin_layout Plain Layout
13729 \begin_inset Caption
13731 \begin_layout Plain Layout
13732 \begin_inset CommandInset label
13734 name "tab:Special-booktabs-table"
13738 Special booktabs-table
13746 \begin_layout Plain Layout
13748 \begin_inset Tabular
13749 <lyxtabular version="3" rows="8" columns="4">
13750 <features booktabs="true" tabularvalignment="middle">
13751 <column alignment="center" valignment="top" width="0">
13752 <column alignment="center" valignment="top" width="0">
13753 <column alignment="center" valignment="top" width="0">
13754 <column alignment="center" valignment="top" width="0">
13756 <cell alignment="center" valignment="top" topline="true" usebox="none">
13759 \begin_layout Plain Layout
13765 <cell alignment="center" valignment="top" topline="true" usebox="none">
13768 \begin_layout Plain Layout
13770 \begin_inset space \thinspace{}
13778 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13781 \begin_layout Plain Layout
13783 \begin_inset space \thinspace{}
13791 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13794 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" usebox="none">
13805 \begin_layout Plain Layout
13809 \begin_layout Plain Layout
13822 \begin_layout Plain Layout
13835 \begin_layout Plain Layout
13848 \begin_layout Plain Layout
13857 Detector thickness in µm
13862 <cell alignment="center" valignment="top" usebox="none">
13865 \begin_layout Plain Layout
13871 <cell alignment="center" valignment="top" usebox="none">
13874 \begin_layout Plain Layout
13880 <cell alignment="center" valignment="top" usebox="none">
13883 \begin_layout Plain Layout
13891 <cell alignment="center" valignment="top" topline="true" usebox="none">
13894 \begin_layout Plain Layout
13900 <cell alignment="center" valignment="top" topline="true" usebox="none">
13903 \begin_layout Plain Layout
13909 <cell alignment="center" valignment="top" topline="true" usebox="none">
13912 \begin_layout Plain Layout
13918 <cell alignment="center" valignment="top" topline="true" usebox="none">
13921 \begin_layout Plain Layout
13928 <row topspace="default">
13929 <cell alignment="center" valignment="top" usebox="none">
13932 \begin_layout Plain Layout
13933 Spatial resolution in µm
13938 <cell alignment="center" valignment="top" usebox="none">
13941 \begin_layout Plain Layout
13947 <cell alignment="center" valignment="top" usebox="none">
13950 \begin_layout Plain Layout
13956 <cell alignment="center" valignment="top" usebox="none">
13959 \begin_layout Plain Layout
13966 <row topspace="default">
13967 <cell alignment="center" valignment="top" usebox="none">
13970 \begin_layout Plain Layout
13972 \begin_inset Formula $f_{\mathrm{max}}$
13980 <cell alignment="center" valignment="top" usebox="none">
13983 \begin_layout Plain Layout
13989 <cell alignment="center" valignment="top" usebox="none">
13992 \begin_layout Plain Layout
13998 <cell alignment="center" valignment="top" usebox="none">
14001 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" topline="true" usebox="none">
14012 \begin_layout Plain Layout
14016 \begin_layout Plain Layout
14029 \begin_layout Plain Layout
14038 LSF-spatial resolution
14043 <cell alignment="center" valignment="top" topline="true" usebox="none">
14046 \begin_layout Plain Layout
14052 <cell alignment="center" valignment="top" topline="true" usebox="none">
14055 \begin_layout Plain Layout
14061 <cell alignment="center" valignment="top" topline="true" usebox="none">
14064 \begin_layout Plain Layout
14072 <cell alignment="center" valignment="top" usebox="none">
14075 \begin_layout Plain Layout
14081 <cell alignment="center" valignment="top" usebox="none">
14084 \begin_layout Plain Layout
14090 <cell alignment="center" valignment="top" usebox="none">
14093 \begin_layout Plain Layout
14099 <cell alignment="center" valignment="top" usebox="none">
14102 \begin_layout Plain Layout
14110 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14113 \begin_layout Plain Layout
14119 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14122 \begin_layout Plain Layout
14128 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14131 \begin_layout Plain Layout
14137 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14140 \begin_layout Plain Layout
14159 \begin_layout Section
14160 Vertical Table Alignment
14161 \begin_inset Index idx
14164 \begin_layout Plain Layout
14173 \begin_layout Standard
14174 To align tables vertically in a text line the table must be inside a box.
14175 The box can then be vertically aligned as described in section
14176 \begin_inset space ~
14180 \begin_inset CommandInset ref
14182 reference "sec:Box-Dialog"
14189 \begin_layout Standard
14190 In the following example the tables are inside a minipage
14194 \begin_layout Plain Layout
14195 Minipages are described in section
14196 \begin_inset space ~
14200 \begin_inset CommandInset ref
14202 reference "sec:Minipages"
14211 box that has a width of 15
14212 \begin_inset space \thinspace{}
14218 \begin_layout Itemize
14220 \begin_inset Box Frameless
14230 height_special "totalheight"
14233 \begin_layout Plain Layout
14234 \begin_inset Tabular
14235 <lyxtabular version="3" rows="3" columns="3">
14236 <features tabularvalignment="middle">
14237 <column alignment="center" valignment="top" width="0">
14238 <column alignment="center" valignment="top" width="0">
14239 <column alignment="center" valignment="top" width="0">
14241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14244 \begin_layout Plain Layout
14250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14253 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14262 \begin_layout Plain Layout
14270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14273 \begin_layout Plain Layout
14279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14282 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14291 \begin_layout Plain Layout
14299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14302 \begin_layout Plain Layout
14308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14311 \begin_layout Plain Layout
14317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14320 \begin_layout Plain Layout
14340 \begin_layout Plain Layout
14352 \begin_inset Box Frameless
14362 height_special "totalheight"
14365 \begin_layout Plain Layout
14366 \begin_inset Tabular
14367 <lyxtabular version="3" rows="3" columns="3">
14368 <features tabularvalignment="middle">
14369 <column alignment="center" valignment="top" width="0">
14370 <column alignment="center" valignment="top" width="0">
14371 <column alignment="center" valignment="top" width="0">
14373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14376 \begin_layout Plain Layout
14382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14385 \begin_layout Plain Layout
14391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14394 \begin_layout Plain Layout
14402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14405 \begin_layout Plain Layout
14411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14414 \begin_layout Plain Layout
14420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14423 \begin_layout Plain Layout
14431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14434 \begin_layout Plain Layout
14440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14443 \begin_layout Plain Layout
14449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14452 \begin_layout Plain Layout
14472 \begin_layout Plain Layout
14482 \begin_layout Itemize
14484 \begin_inset Box Frameless
14494 height_special "totalheight"
14497 \begin_layout Plain Layout
14498 \begin_inset Tabular
14499 <lyxtabular version="3" rows="3" columns="3">
14500 <features tabularvalignment="middle">
14501 <column alignment="center" valignment="top" width="0">
14502 <column alignment="center" valignment="top" width="0">
14503 <column alignment="center" valignment="top" width="0">
14505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14508 \begin_layout Plain Layout
14514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14517 \begin_layout Plain Layout
14523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14526 \begin_layout Plain Layout
14534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14537 \begin_layout Plain Layout
14543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14546 \begin_layout Plain Layout
14552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14555 \begin_layout Plain Layout
14563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14566 \begin_layout Plain Layout
14572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14575 \begin_layout Plain Layout
14581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14584 \begin_layout Plain Layout
14603 \begin_layout Itemize
14605 \begin_inset Box Frameless
14615 height_special "totalheight"
14618 \begin_layout Plain Layout
14619 \begin_inset Tabular
14620 <lyxtabular version="3" rows="3" columns="3">
14621 <features tabularvalignment="middle">
14622 <column alignment="center" valignment="top" width="0">
14623 <column alignment="center" valignment="top" width="0">
14624 <column alignment="center" valignment="top" width="0">
14626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14629 \begin_layout Plain Layout
14635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14638 \begin_layout Plain Layout
14644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14647 \begin_layout Plain Layout
14655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14658 \begin_layout Plain Layout
14664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14667 \begin_layout Plain Layout
14673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14676 \begin_layout Plain Layout
14684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14687 \begin_layout Plain Layout
14693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14696 \begin_layout Plain Layout
14702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14705 \begin_layout Plain Layout
14725 \begin_layout Plain Layout
14737 \begin_inset Box Frameless
14747 height_special "totalheight"
14750 \begin_layout Plain Layout
14751 \begin_inset Tabular
14752 <lyxtabular version="3" rows="3" columns="3">
14753 <features tabularvalignment="middle">
14754 <column alignment="center" valignment="top" width="0">
14755 <column alignment="center" valignment="top" width="0">
14756 <column alignment="center" valignment="top" width="0">
14758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14761 \begin_layout Plain Layout
14767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14770 \begin_layout Plain Layout
14776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14779 \begin_layout Plain Layout
14787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14790 \begin_layout Plain Layout
14796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14799 \begin_layout Plain Layout
14805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14808 \begin_layout Plain Layout
14816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14819 \begin_layout Plain Layout
14825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14828 \begin_layout Plain Layout
14834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14837 \begin_layout Plain Layout
14857 \begin_layout Plain Layout
14867 \begin_layout Standard
14868 As you will see, the content of the first and last table row is not correctly
14870 To get this alignment, the minipage box must be set into a raisebox
14874 \begin_layout Plain Layout
14875 Raiseboxes are described in section
14876 \begin_inset space ~
14880 \begin_inset CommandInset ref
14882 reference "sub:Vertical-Alignment"
14892 In the example above the second table in the first item is aligned using
14893 the TeX-Code-command
14896 \begin_layout Standard
14906 \begin_layout Standard
14908 After the box the closing brace
14912 is inserted as TeX-Code.
14913 For the second table in the last item the command
14916 \begin_layout Standard
14926 \begin_layout Standard
14930 \begin_layout Standard
14931 \begin_inset Note Greyedout
14934 \begin_layout Plain Layout
14939 The alignment of the table row content to the surrounding text line is
14941 The required value for the
14947 command for this alignment depends on the document font, the font size,
14948 and the table line thickness.
14956 \begin_layout Section
14958 \begin_inset CommandInset label
14960 name "sec:Colored-Tables"
14965 \begin_inset Index idx
14968 \begin_layout Plain Layout
14977 \begin_layout Subsection
14979 \begin_inset Index idx
14982 \begin_layout Plain Layout
14983 Table Color ! for Cells
14989 \begin_inset Index idx
14992 \begin_layout Plain Layout
14993 Color ! for Table Cells
15001 \begin_layout Standard
15002 \begin_inset Float table
15008 \begin_layout Plain Layout
15009 \begin_inset Caption
15011 \begin_layout Plain Layout
15012 \begin_inset CommandInset label
15014 name "tab:Table-colored-without"
15018 Table colored without using the package
15023 \begin_inset Argument
15026 \begin_layout Plain Layout
15027 Table without colortbl
15040 \begin_layout Plain Layout
15042 \begin_inset Tabular
15043 <lyxtabular version="3" rows="3" columns="3">
15044 <features tabularvalignment="middle">
15045 <column alignment="center" valignment="top" width="0">
15046 <column alignment="center" valignment="top" width="0">
15047 <column alignment="center" valignment="top" width="0">
15049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15052 \begin_layout Plain Layout
15060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15063 \begin_layout Plain Layout
15071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15074 \begin_layout Plain Layout
15084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15087 \begin_layout Plain Layout
15095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15098 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15109 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15122 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15133 \begin_layout Plain Layout
15141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15144 \begin_layout Plain Layout
15165 \begin_layout Standard
15166 If you only need colored text, mark the cells and choose a color in the
15169 Edit\SpecialChar \menuseparator
15171 \begin_inset space ~
15177 This was used to create Table
15178 \begin_inset space ~
15182 \begin_inset CommandInset ref
15184 reference "tab:Table-colored-without"
15189 In any other case you have to use the LaTeX-package
15194 \begin_inset Index idx
15197 \begin_layout Plain Layout
15198 LaTeX-packages ! colortbl
15206 \begin_layout Standard
15210 \begin_layout Plain Layout
15220 \begin_inset Note Note
15223 \begin_layout Plain Layout
15224 The following section part will only be displayed when the LaTeX-package
15237 \begin_layout Standard
15238 To create colored tables,
15242 must be loaded in the preamble with the line
15245 \begin_layout Standard
15250 usepackage{colortbl}
15253 \begin_layout Standard
15254 The color of a column is adjusted with the command
15257 \begin_layout Standard
15262 columncolor{name of color}
15265 \begin_layout Standard
15271 More about the command
15275 is contained in section
15276 \begin_inset space ~
15280 \begin_inset CommandInset ref
15282 reference "sub:Multicolumn-Calculations"
15289 \begin_layout Standard
15290 The following color names are predefined:
15293 \begin_layout Standard
15327 \begin_layout Standard
15328 \begin_inset VSpace medskip
15334 \begin_layout Standard
15335 You can also define your own color with the command
15338 \begin_layout Standard
15343 definecolor{color name}{color model}{color values}
15346 \begin_layout Standard
15347 The color model can be
15350 \begin_layout Labeling
15351 \labelwidthstring 00.00.0000
15352 cmyk: cyan, magenta, yellow, black
15355 \begin_layout Labeling
15356 \labelwidthstring 00.00.0000
15357 rgb: red, green blue
15360 \begin_layout Labeling
15361 \labelwidthstring 00.00.0000
15365 \begin_layout Standard
15366 and the color values are comma separated numbers between 0 and 1 describing
15367 the factor for the corresponding color of the color model.
15370 \begin_layout Standard
15372 \begin_inset space \thinspace{}
15376 \begin_inset space \space{}
15383 " in the preamble with
15386 \begin_layout Standard
15391 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15394 \begin_layout Standard
15402 \begin_layout Standard
15407 definecolor{lightgray}{gray}{0.8}
15410 \begin_layout Standard
15411 \begin_inset VSpace medskip
15417 \begin_layout Standard
15418 Lines are colored with the command
15421 \begin_layout Standard
15426 rowcolor{name of color}
15429 \begin_layout Standard
15430 and cells are colored with the command
15433 \begin_layout Standard
15438 cellcolor{name of color}
15441 \begin_layout Standard
15442 Both commands are inserted at the beginning of a cell as TeX-Code.
15445 \begin_layout Standard
15446 To color characters in the table, mark the cells and use the LyX menu
15448 Edit\SpecialChar \menuseparator
15450 \begin_inset space ~
15456 If a cell contains TeX-Code mark only the characters, otherwise the colored
15457 TeX-Code will cause LaTeX-errors.
15460 \begin_layout Standard
15461 \begin_inset Note Greyedout
15464 \begin_layout Plain Layout
15469 Not all DVI-viewers are able to display self-defined colors.
15477 \begin_layout Standard
15478 \begin_inset VSpace bigskip
15484 \begin_layout Standard
15486 \begin_inset space ~
15490 \begin_inset CommandInset ref
15492 reference "tab:Table-colored-using"
15496 do the following: The color of the first column should be
15504 \begin_layout Standard
15509 columncolor{darkgreen}
15514 \begin_layout Standard
15515 as LaTeX-argument for this column.
15516 The first row should be blue, therefore the TeX-Code command
15519 \begin_layout Standard
15527 \begin_layout Standard
15528 is inserted to the first cell of this row.
15529 Note that this overwrites the column color for the first cell.
15530 The last cell of the last row is colored magenta by inserting the TeX-Code
15534 \begin_layout Standard
15542 \begin_layout Standard
15543 The characters could now be colored using the menu
15545 Edit\SpecialChar \menuseparator
15547 \begin_inset space ~
15555 \begin_layout Standard
15556 \begin_inset Float table
15562 \begin_layout Plain Layout
15563 \begin_inset Caption
15565 \begin_layout Plain Layout
15566 \begin_inset CommandInset label
15568 name "tab:Table-colored-using"
15572 Table colored using the package
15577 \begin_inset Argument
15580 \begin_layout Plain Layout
15581 Table with colortbl
15594 \begin_layout Plain Layout
15596 \begin_inset Tabular
15597 <lyxtabular version="3" rows="3" columns="3">
15598 <features tabularvalignment="middle">
15599 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15600 <column alignment="center" valignment="top" width="0">
15601 <column alignment="center" valignment="top" width="0">
15603 <cell alignment="center" valignment="top" usebox="none">
15606 \begin_layout Plain Layout
15610 \begin_layout Plain Layout
15626 <cell alignment="center" valignment="top" usebox="none">
15629 \begin_layout Plain Layout
15637 <cell alignment="center" valignment="top" usebox="none">
15640 \begin_layout Plain Layout
15650 <cell alignment="center" valignment="top" usebox="none">
15653 \begin_layout Plain Layout
15661 <cell alignment="center" valignment="top" usebox="none">
15664 \begin_layout Plain Layout
15672 <cell alignment="center" valignment="top" usebox="none">
15675 \begin_layout Plain Layout
15685 <cell alignment="center" valignment="top" usebox="none">
15688 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" usebox="none">
15699 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" usebox="none">
15710 \begin_layout Plain Layout
15714 \begin_layout Plain Layout
15743 \begin_layout Standard
15747 \begin_layout Plain Layout
15757 \begin_inset Note Note
15760 \begin_layout Plain Layout
15761 The following will be displayed when the LaTeX-package
15773 \begin_layout Standard
15774 You need to install the package
15778 to see the content of this section in the output.
15781 \begin_layout Standard
15785 \begin_layout Plain Layout
15797 \begin_layout Subsection
15799 \begin_inset Index idx
15802 \begin_layout Plain Layout
15803 Table Color ! for Lines
15809 \begin_inset Index idx
15812 \begin_layout Plain Layout
15813 Color ! for Table Lines
15821 \begin_layout Standard
15822 As described in section
15823 \begin_inset space ~
15827 \begin_inset CommandInset ref
15829 reference "sub:Line-Thickness"
15833 , the line thickness for all lines in a table can be adjusted with the length
15842 \begin_inset space \thinspace{}
15845 pt for all tables of this section.
15849 \begin_layout Plain Layout
15855 arrayrulewidth}{1.5pt}
15863 \begin_layout Standard
15864 To color vertical lines for example with green, create the following column
15865 format in the document preamble, according to the description in section
15866 \begin_inset space ~
15870 \begin_inset CommandInset ref
15872 reference "sub:Customized-Format"
15879 \begin_layout Standard
15884 newcolumntype{W}{!{
15891 \begin_layout Standard
15893 \begin_inset space ~
15897 \begin_inset CommandInset ref
15899 reference "tab:Table-with-vertical-colored"
15907 was used for the last column and
15911 for the other columns.
15914 \begin_layout Standard
15915 If you want to have several colors, define more column formats.
15918 \begin_layout Standard
15919 \begin_inset Float table
15925 \begin_layout Plain Layout
15926 \begin_inset Caption
15928 \begin_layout Plain Layout
15929 \begin_inset CommandInset label
15931 name "tab:Table-with-vertical-colored"
15935 Table with colored vertical lines
15943 \begin_layout Plain Layout
15945 \begin_inset Tabular
15946 <lyxtabular version="3" rows="3" columns="3">
15947 <features tabularvalignment="middle">
15948 <column alignment="center" valignment="top" width="0" special="Wc">
15949 <column alignment="center" valignment="top" width="0" special="Wc">
15950 <column alignment="center" valignment="top" width="0" special="WcW">
15952 <cell alignment="center" valignment="top" topline="true" usebox="none">
15955 \begin_layout Plain Layout
15961 <cell alignment="center" valignment="top" topline="true" usebox="none">
15964 \begin_layout Plain Layout
15970 <cell alignment="center" valignment="top" topline="true" usebox="none">
15973 \begin_layout Plain Layout
15981 <cell alignment="center" valignment="top" topline="true" usebox="none">
15984 \begin_layout Plain Layout
15990 <cell alignment="center" valignment="top" topline="true" usebox="none">
15993 \begin_layout Plain Layout
15999 <cell alignment="center" valignment="top" topline="true" usebox="none">
16002 \begin_layout Plain Layout
16010 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16013 \begin_layout Plain Layout
16019 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16022 \begin_layout Plain Layout
16028 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16031 \begin_layout Plain Layout
16050 \begin_layout Standard
16051 \begin_inset VSpace bigskip
16054 To color horizontal lines for example with red, as in Table
16055 \begin_inset space ~
16059 \begin_inset CommandInset ref
16061 reference "tab:Table-with-horizontal-colored"
16065 , insert these commands in TeX-Code before the table or table float:
16068 \begin_layout Standard
16078 \begin_inset Newline newline
16086 \begin_inset Newline newline
16090 \begin_inset Phantom HPhantom
16093 \begin_layout Plain Layout
16096 \begin_inset space ~
16106 arrayrulecolor{red}
16110 arrayrulecolor{black}}
16113 \begin_layout Standard
16117 \begin_layout Plain Layout
16128 \begin_layout Plain Layout
16137 \begin_layout Plain Layout
16141 arrayrulecolor{red}
16145 arrayrulecolor{black}}
16151 \begin_inset Float table
16157 \begin_layout Plain Layout
16158 \begin_inset Caption
16160 \begin_layout Plain Layout
16161 \begin_inset CommandInset label
16163 name "tab:Table-with-horizontal-colored"
16167 Table with colored horizontal lines
16175 \begin_layout Plain Layout
16177 \begin_inset Tabular
16178 <lyxtabular version="3" rows="3" columns="3">
16179 <features tabularvalignment="middle">
16180 <column alignment="center" valignment="top" width="0">
16181 <column alignment="center" valignment="top" width="0">
16182 <column alignment="center" valignment="top" width="0">
16184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16187 \begin_layout Plain Layout
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16196 \begin_layout Plain Layout
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16205 \begin_layout Plain Layout
16213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16216 \begin_layout Plain Layout
16222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16225 \begin_layout Plain Layout
16231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16234 \begin_layout Plain Layout
16242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16245 \begin_layout Plain Layout
16251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16254 \begin_layout Plain Layout
16260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16263 \begin_layout Plain Layout
16282 \begin_layout Standard
16283 To return to the default line color black, insert this command in TeX-Code
16284 after the table or table float:
16287 \begin_layout Standard
16299 \begin_layout Standard
16301 \begin_inset space ~
16305 \begin_inset CommandInset ref
16307 reference "tab:Table-with-colored"
16311 is an example with colored vertical and horizontal lines.
16314 \begin_layout Standard
16315 \begin_inset Float table
16321 \begin_layout Plain Layout
16322 \begin_inset Caption
16324 \begin_layout Plain Layout
16325 \begin_inset CommandInset label
16327 name "tab:Table-with-colored"
16331 Table with colored lines
16339 \begin_layout Plain Layout
16341 \begin_inset Tabular
16342 <lyxtabular version="3" rows="3" columns="3">
16343 <features tabularvalignment="middle">
16344 <column alignment="center" valignment="top" width="0" special="Wc">
16345 <column alignment="center" valignment="top" width="0" special="Wc">
16346 <column alignment="center" valignment="top" width="0" special="WcW">
16348 <cell alignment="center" valignment="top" topline="true" usebox="none">
16351 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" usebox="none">
16369 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" usebox="none">
16380 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" usebox="none">
16398 \begin_layout Plain Layout
16405 <row topspace="default">
16406 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16418 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16427 \begin_layout Plain Layout
16446 \begin_layout Standard
16450 \begin_layout Plain Layout
16466 \begin_layout Standard
16470 \begin_layout Plain Layout
16476 arrayrulewidth}{0.4pt}
16484 \begin_layout Section
16485 Table Customization
16486 \begin_inset Index idx
16489 \begin_layout Plain Layout
16490 Table Customization
16496 \begin_inset Index idx
16499 \begin_layout Plain Layout
16500 Table ! Customization
16508 \begin_layout Subsection
16510 \begin_inset CommandInset label
16512 name "sub:Row-Spacing"
16517 \begin_inset Index idx
16520 \begin_layout Plain Layout
16521 Table Customization ! Row Spacing
16529 \begin_layout Standard
16530 You can add vertical space to table rows in the
16534 tab of the table dialog.
16535 You find there three possibilities:
16538 \begin_layout Description
16540 \begin_inset space ~
16544 \begin_inset space ~
16547 row will add space above the characters of the table row.
16548 If the table is a formal table
16552 \begin_layout Plain Layout
16553 Formal tables are explained in section
16554 \begin_inset space ~
16558 \begin_inset CommandInset ref
16560 reference "sec:Formal-Tables"
16569 LyX will insert as default 0.5
16570 \begin_inset space \thinspace{}
16574 For normal tables the inserted space will unfortunately destroy the vertical
16575 table lines as in the following table:
16576 \begin_inset VSpace medskip
16580 \begin_inset Newline newline
16584 \begin_inset space \hspace*{}
16589 \begin_inset space \hfill{}
16593 \begin_inset Tabular
16594 <lyxtabular version="3" rows="3" columns="1">
16595 <features tabularvalignment="middle">
16596 <column alignment="center" valignment="top" width="0">
16598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16601 \begin_layout Plain Layout
16608 <row topspace="3mm">
16609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16612 \begin_layout Plain Layout
16614 \begin_inset space \thinspace{}
16617 mm space top of row
16624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16627 \begin_layout Plain Layout
16639 \begin_inset space \hfill{}
16643 \begin_inset space \hspace*{}
16648 \begin_inset VSpace medskip
16652 \begin_inset Newline newline
16655 So inserting space in the top of row for normal tables is only useful when
16656 you don't have vertical lines.
16659 \begin_layout Description
16661 \begin_inset space ~
16665 \begin_inset space ~
16668 row will add space below the characters of the table row.
16669 If the table is a formal table LyX will insert as default 0.5
16670 \begin_inset space \thinspace{}
16673 em space, for normal tables the default size is 2
16674 \begin_inset space \thinspace{}
16680 \begin_layout Description
16682 \begin_inset space ~
16685 rows adds space between the current and the following row.
16686 If the table is a formal table LyX will insert as default 0.5
16687 \begin_inset space \thinspace{}
16691 For normal tables the inserted space will unfortunately destroy the vertical
16692 table lines as in the following table:
16693 \begin_inset VSpace medskip
16697 \begin_inset Newline newline
16701 \begin_inset space \hspace*{}
16706 \begin_inset space \hfill{}
16710 \begin_inset Tabular
16711 <lyxtabular version="3" rows="3" columns="1">
16712 <features tabularvalignment="middle">
16713 <column alignment="center" valignment="top" width="0">
16715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16718 \begin_layout Plain Layout
16725 <row interlinespace="3mm">
16726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16729 \begin_layout Plain Layout
16730 \begin_inset Formula $\downarrow$
16734 \begin_inset space \thinspace{}
16737 mm space between row
16738 \begin_inset Formula $\downarrow$
16748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16751 \begin_layout Plain Layout
16752 \begin_inset Formula $\uparrow$
16756 \begin_inset space \thinspace{}
16759 mm space between row
16760 \begin_inset Formula $\uparrow$
16774 \begin_inset space \hfill{}
16778 \begin_inset space \hspace*{}
16783 \begin_inset VSpace medskip
16787 \begin_inset Newline newline
16790 So inserting space between rows for normal tables is only useful when you
16791 don't have vertical lines.
16794 \begin_layout Standard
16795 \begin_inset VSpace bigskip
16798 When you want to add extra height to all cells of all tables, you can do
16799 this with the following preamble lines:
16802 \begin_layout Standard
16807 @ifundefined{extrarowheight}
16808 \begin_inset Newline newline
16812 \begin_inset Phantom HPhantom
16815 \begin_layout Plain Layout
16818 \begin_inset space ~
16828 usepackage{array}}{}
16829 \begin_inset Newline newline
16836 extrarowheight}{height}
16839 \begin_layout Standard
16840 But this has the disadvantage that the cell texts are no longer exactly
16841 vertically centered.
16846 will be loaded automatically by LyX when you use self defined table formats.
16847 To avoid that it being loaded twice the command
16853 is used in the above command.)
16856 \begin_layout Standard
16857 If you are using font sizes larger than the normal size, the table borders
16858 are often too close to the letters.
16859 This can be corrected by inserting the command
16865 in TeX code at the beginning of a table row.
16867 \begin_inset space ~
16871 \begin_inset CommandInset ref
16873 reference "tab:Vertical-alignment-of"
16877 illustrates the effect.
16880 \begin_layout Standard
16882 \begin_inset Float table
16888 \begin_layout Plain Layout
16889 \begin_inset Caption
16891 \begin_layout Plain Layout
16892 \begin_inset CommandInset label
16894 name "tab:Vertical-alignment-of"
16898 Vertical alignment of text with large font sizes.
16906 \begin_layout Plain Layout
16907 \begin_inset space \hfill{}
16911 \begin_inset Float table
16916 \begin_layout Plain Layout
16917 \begin_inset Caption
16919 \begin_layout Plain Layout
16928 \begin_layout Plain Layout
16931 \begin_inset Tabular
16932 <lyxtabular version="3" rows="6" columns="1">
16933 <features tabularvalignment="middle">
16934 <column alignment="left" valignment="top" width="0">
16936 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16939 \begin_layout Plain Layout
16947 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16950 \begin_layout Plain Layout
16960 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16963 \begin_layout Plain Layout
16973 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16976 \begin_layout Plain Layout
16986 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16989 \begin_layout Plain Layout
16999 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17002 \begin_layout Plain Layout
17021 \begin_inset space \hfill{}
17025 \begin_inset Float table
17030 \begin_layout Plain Layout
17031 \begin_inset Caption
17033 \begin_layout Plain Layout
17034 Table using the command
17048 \begin_layout Plain Layout
17051 \begin_inset Tabular
17052 <lyxtabular version="3" rows="6" columns="1">
17053 <features tabularvalignment="middle">
17054 <column alignment="left" valignment="top" width="0">
17056 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17059 \begin_layout Plain Layout
17067 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17070 \begin_layout Plain Layout
17076 \begin_layout Plain Layout
17092 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17095 \begin_layout Plain Layout
17101 \begin_layout Plain Layout
17117 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17120 \begin_layout Plain Layout
17126 \begin_layout Plain Layout
17142 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17145 \begin_layout Plain Layout
17151 \begin_layout Plain Layout
17167 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17170 \begin_layout Plain Layout
17176 \begin_layout Plain Layout
17203 \begin_inset space \hfill{}
17214 \begin_layout Subsection
17215 Special Cell Alignment
17216 \begin_inset CommandInset label
17218 name "sub:Special-Cell-Alignment"
17223 \begin_inset Index idx
17226 \begin_layout Plain Layout
17227 Table Customization ! Special Cell Alignment
17235 \begin_layout Standard
17236 Sometimes it looks better when the cell entries of a column are aligned
17237 with a special character, e.
17238 \begin_inset space \thinspace{}
17242 \begin_inset space \space{}
17245 with the decimal separator as in Table
17246 \begin_inset space ~
17250 \begin_inset CommandInset ref
17252 reference "tab:Table-cells-align"
17257 This alignment is achieved by setting the cursor into the column and then
17258 either pressing the toolbar button
17259 \begin_inset Graphics
17260 filename ../images/tabular-feature_align-decimal.png
17262 scaleBeforeRotation
17266 or setting the alignment in the table settings to
17269 \begin_inset space ~
17273 \begin_inset space ~
17279 The alignment character can be a character of your choice and is specified
17280 in the table settings.
17283 \begin_layout Standard
17284 \begin_inset Float table
17290 \begin_layout Plain Layout
17291 \begin_inset Caption
17293 \begin_layout Plain Layout
17294 \begin_inset CommandInset label
17296 name "tab:Table-cells-align"
17300 Table cells of a column aligned with the decimal separator.
17308 \begin_layout Plain Layout
17310 \begin_inset Tabular
17311 <lyxtabular version="3" rows="4" columns="1">
17312 <features booktabs="true" tabularvalignment="middle">
17313 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17315 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17318 \begin_layout Plain Layout
17326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17329 \begin_layout Plain Layout
17337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17348 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17351 \begin_layout Plain Layout
17370 \begin_layout Standard
17371 \begin_inset Float table
17377 \begin_layout Plain Layout
17378 \begin_inset Caption
17380 \begin_layout Plain Layout
17381 \begin_inset CommandInset label
17383 name "tab:Table-align-operator"
17387 Table cells of a column aligned with the operators.
17395 \begin_layout Plain Layout
17397 \begin_inset Tabular
17398 <lyxtabular version="3" rows="4" columns="2">
17399 <features booktabs="true" tabularvalignment="middle">
17400 <column alignment="right" valignment="top" width="0pt">
17401 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17403 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17406 \begin_layout Plain Layout
17412 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17415 \begin_layout Plain Layout
17423 <cell alignment="center" valignment="top" usebox="none">
17426 \begin_layout Plain Layout
17427 \begin_inset Formula $12\,+$
17435 <cell alignment="center" valignment="top" usebox="none">
17438 \begin_layout Plain Layout
17439 \begin_inset Formula $\,6$
17449 <cell alignment="center" valignment="top" usebox="none">
17452 \begin_layout Plain Layout
17453 \begin_inset Formula $0\,-$
17461 <cell alignment="center" valignment="top" usebox="none">
17464 \begin_layout Plain Layout
17465 \begin_inset Formula $\,68$
17475 <cell alignment="center" valignment="top" usebox="none">
17478 \begin_layout Plain Layout
17479 \begin_inset Formula $-123\,/$
17487 <cell alignment="center" valignment="top" usebox="none">
17490 \begin_layout Plain Layout
17491 \begin_inset Formula $\,0$
17512 \begin_layout Standard
17513 For alignments at characters in formulas this method does not work because
17514 the field to specify the alignment character does not allow formulas.
17515 In this case one need to use the method from Table
17516 \begin_inset space ~
17520 \begin_inset CommandInset ref
17522 reference "tab:Table-align-operator"
17527 This table was created with a 4×2 table.
17528 The heading is a centered multicolumn.
17529 The first column is right-aligned and contains the first part including
17531 The second column is left aligned and contains the rest.
17532 A small space was added at the beginning of each cell of the second column
17533 to get the space that is usually around operators.
17534 To omit the space that is normally between two table columns, the following
17535 LaTeX-argument was used for the second column:
17538 \begin_layout Standard
17544 \begin_layout Standard
17546 \begin_inset space ~
17550 \begin_inset CommandInset ref
17552 reference "tab:Several-table-cell"
17556 shows some example alignments.
17557 For the alignment with the relation sign, a small space was added like
17558 for the second column of Table
17559 \begin_inset space ~
17563 \begin_inset CommandInset ref
17565 reference "tab:Table-align-operator"
17572 \begin_layout Standard
17573 \begin_inset Float table
17579 \begin_layout Plain Layout
17580 \begin_inset Caption
17582 \begin_layout Plain Layout
17583 \begin_inset CommandInset label
17585 name "tab:Several-table-cell"
17589 Several table cell alignments.
17597 \begin_layout Plain Layout
17599 \begin_inset Tabular
17600 <lyxtabular version="3" rows="4" columns="6">
17601 <features tabularvalignment="middle">
17602 <column alignment="right" valignment="top" width="0">
17603 <column alignment="left" valignment="top" width="0" special="@{}l">
17604 <column alignment="right" valignment="top" width="0">
17605 <column alignment="left" valignment="top" width="0" special="@{}l">
17606 <column alignment="right" valignment="top" width="0">
17607 <column alignment="left" valignment="top" width="0" special="@{}l">
17609 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17612 \begin_layout Plain Layout
17618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17621 \begin_layout Plain Layout
17627 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17630 \begin_layout Plain Layout
17636 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17639 \begin_layout Plain Layout
17645 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17648 \begin_layout Plain Layout
17654 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17657 \begin_layout Plain Layout
17665 <cell alignment="center" valignment="top" usebox="none">
17668 \begin_layout Plain Layout
17674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17677 \begin_layout Plain Layout
17679 \begin_inset space \thinspace{}
17687 <cell alignment="center" valignment="top" usebox="none">
17690 \begin_layout Plain Layout
17691 \begin_inset Formula $10\cdot$
17699 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17702 \begin_layout Plain Layout
17703 \begin_inset Formula $10^{\mbox{-}17}$
17711 <cell alignment="center" valignment="top" usebox="none">
17714 \begin_layout Plain Layout
17715 \begin_inset Formula $\Gamma(t)\propto$
17723 <cell alignment="center" valignment="top" usebox="none">
17726 \begin_layout Plain Layout
17727 \begin_inset Formula $\:\Upsilon(t)$
17737 <cell alignment="center" valignment="top" usebox="none">
17740 \begin_layout Plain Layout
17746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17749 \begin_layout Plain Layout
17751 \begin_inset space \thinspace{}
17759 <cell alignment="center" valignment="top" usebox="none">
17762 \begin_layout Plain Layout
17763 \begin_inset Formula $5.78\cdot$
17771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17774 \begin_layout Plain Layout
17775 \begin_inset Formula $10^{7}$
17783 <cell alignment="center" valignment="top" usebox="none">
17786 \begin_layout Plain Layout
17787 \begin_inset Formula $A\ne$
17795 <cell alignment="center" valignment="top" usebox="none">
17798 \begin_layout Plain Layout
17799 \begin_inset Formula $\: B_{\mathrm{red}}$
17809 <cell alignment="center" valignment="top" usebox="none">
17812 \begin_layout Plain Layout
17818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17821 \begin_layout Plain Layout
17823 \begin_inset space \thinspace{}
17831 <cell alignment="center" valignment="top" usebox="none">
17834 \begin_layout Plain Layout
17836 \begin_inset Formula $33.5\cdot$
17844 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17847 \begin_layout Plain Layout
17848 \begin_inset Formula $10^{4}$
17856 <cell alignment="center" valignment="top" usebox="none">
17859 \begin_layout Plain Layout
17860 \begin_inset Formula $\sin(\alpha)\ge$
17868 <cell alignment="center" valignment="top" usebox="none">
17871 \begin_layout Plain Layout
17872 \begin_inset Formula $\:\sin(\beta)$
17893 \begin_layout Subsection
17894 Customized Cell/Column Format
17895 \begin_inset CommandInset label
17897 name "sub:Customized-Format"
17902 \begin_inset Index idx
17905 \begin_layout Plain Layout
17906 Table Customization ! Cell/Column Format
17914 \begin_layout Standard
17915 Calculating the required width for spanned columns as in section
17916 \begin_inset space ~
17920 \begin_inset CommandInset ref
17922 reference "sub:Multicolumn-Calculations"
17926 is very annoying if you have several tables with multicolumn cells.
17927 To make life easier, you can define a cell/column format in the preamble,
17928 so that it can be used in all tables of the document.
17929 The format is defined with the command
17932 \begin_layout Standard
17937 newcolumntype{name of format}[number of arguments]{commands}
17940 \begin_layout Standard
17941 The format name may only consist of one letter.
17966 are predefined and cannot be used.
17967 But all letters are allowed as capitals.
17970 \begin_layout Standard
17971 \begin_inset VSpace medskip
17977 \begin_layout Standard
17978 For vertically and horizontally centered multicolumn cells with a fixed
17979 width you can define the cell format
17982 \begin_layout Standard
17987 newcolumntype{M}[1]{>{
17994 \begin_layout Standard
18001 avoids the problem of hyphenating the first word, as described in section
18002 \begin_inset space ~
18006 \begin_inset CommandInset ref
18008 reference "sub:Multiple-Lines-in"
18013 Now you can simply enter
18016 \begin_layout Standard
18022 \begin_layout Standard
18023 as LaTeX-argument in the table dialog to create a multicolumn.
18026 \begin_layout Standard
18027 \begin_inset VSpace bigskip
18033 \begin_layout Standard
18034 For cells spanned by a multicolumn cell, you can define the format
18037 \begin_layout Standard
18042 newcolumntype{S}[2]{>{
18047 \begin_inset Newline newline
18051 \begin_inset Phantom HPhantom
18054 \begin_layout Plain Layout
18068 arrayrulewidth)*(1-#2))/#2}}
18071 \begin_layout Standard
18072 This format uses equation
18073 \begin_inset CommandInset ref
18079 to calculate the required width so that each spanned cell has the same
18083 \begin_layout Standard
18087 \begin_layout Standard
18090 S{width of multicolumn cell}{number of spanned columns}
18093 \begin_layout Standard
18094 as LaTeX-argument of the column.
18097 \begin_layout Standard
18098 \begin_inset VSpace bigskip
18104 \begin_layout Standard
18105 For colored columns, you can define
18108 \begin_layout Standard
18113 newcolumntype{K}[1]{>{
18120 \begin_layout Standard
18122 \begin_inset Quotes eld
18126 \begin_inset Quotes erd
18129 at the end creates a column with a flexible width whose text is horizontally
18134 \begin_layout Standard
18140 \begin_layout Standard
18144 \begin_layout Standard
18145 \begin_inset VSpace bigskip
18151 \begin_layout Standard
18153 \begin_inset space ~
18157 \begin_inset CommandInset ref
18159 reference "tab:Table-using-user-defined"
18163 use the LaTeX-arguments
18166 \begin_layout Standard
18172 \begin_layout Standard
18173 for the first column and the multicolumn,
18176 \begin_layout Standard
18182 \begin_layout Standard
18183 for the last column, and
18186 \begin_layout Standard
18192 \begin_layout Standard
18193 for the cells in the second column.
18196 \begin_layout Standard
18197 \begin_inset Float table
18203 \begin_layout Plain Layout
18204 \begin_inset Caption
18206 \begin_layout Plain Layout
18207 \begin_inset CommandInset label
18209 name "tab:Table-using-user-defined"
18213 Table using user-defined table formats
18221 \begin_layout Plain Layout
18223 \begin_inset Tabular
18224 <lyxtabular version="3" rows="3" columns="4">
18225 <features tabularvalignment="middle">
18226 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18227 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18228 <column alignment="center" valignment="middle" width="0">
18229 <column alignment="center" valignment="middle" width="0" special="K{red}">
18231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18234 \begin_layout Plain Layout
18235 verylongtablecellword
18240 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18243 \begin_layout Plain Layout
18244 multiple lines multicolumn
18249 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18252 \begin_layout Plain Layout
18258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18261 \begin_layout Plain Layout
18269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18272 \begin_layout Plain Layout
18278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18281 \begin_layout Plain Layout
18287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18290 \begin_layout Plain Layout
18296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18299 \begin_layout Plain Layout
18307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18310 \begin_layout Plain Layout
18316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18319 \begin_layout Plain Layout
18325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18328 \begin_layout Plain Layout
18334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18337 \begin_layout Plain Layout
18356 \begin_layout Subsection
18358 \begin_inset CommandInset label
18360 name "sub:Line-Thickness"
18365 \begin_inset Index idx
18368 \begin_layout Plain Layout
18369 Table Customization ! Line Thickness
18377 \begin_layout Standard
18378 The line thickness for all lines in a table can be adjusted with the length
18386 To set for example a line thickness of 1.5
18387 \begin_inset space \thinspace{}
18391 \begin_inset space ~
18395 \begin_inset CommandInset ref
18397 reference "tab:Table-with-1.5"
18401 , insert the command
18404 \begin_layout Standard
18411 arrayrulewidth}{1.5pt}
18414 \begin_layout Standard
18415 in TeX-Code before the table or table float.
18416 The changed thickness is valid for all subsequent tables.
18417 To use the default value again, set
18424 \begin_inset space \thinspace{}
18427 pt in TeX-Code after the table or table float.
18430 \begin_layout Standard
18434 \begin_layout Plain Layout
18440 arrayrulewidth}{1.5pt}
18446 \begin_inset Float table
18451 \begin_layout Plain Layout
18452 \begin_inset Caption
18454 \begin_layout Plain Layout
18455 \begin_inset CommandInset label
18457 name "tab:Table-with-1.5"
18462 \begin_inset space \thinspace{}
18473 \begin_layout Plain Layout
18475 \begin_inset Tabular
18476 <lyxtabular version="3" rows="3" columns="3">
18477 <features tabularvalignment="middle">
18478 <column alignment="center" valignment="top" width="0">
18479 <column alignment="center" valignment="top" width="0">
18480 <column alignment="center" valignment="top" width="0">
18482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18485 \begin_layout Plain Layout
18491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18494 \begin_layout Plain Layout
18500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18503 \begin_layout Plain Layout
18511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18514 \begin_layout Plain Layout
18520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18523 \begin_layout Plain Layout
18529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18532 \begin_layout Plain Layout
18540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18543 \begin_layout Plain Layout
18549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18552 \begin_layout Plain Layout
18558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18561 \begin_layout Plain Layout
18581 \begin_layout Plain Layout
18587 arrayrulewidth}{0.4pt}
18595 \begin_layout Standard
18596 \begin_inset VSpace bigskip
18599 To set the line thickness to 1.5
18600 \begin_inset space \thinspace{}
18603 pt only for horizontal lines, as in Table
18604 \begin_inset space ~
18608 \begin_inset CommandInset ref
18610 reference "tab:Table-with-horizontal"
18614 , insert these commands in TeX-Code before the table or table float:
18617 \begin_layout Standard
18627 \begin_inset Newline newline
18635 \begin_inset Newline newline
18644 arrayrulewidth 1.5pt}
18645 \begin_inset Newline newline
18656 arrayrulewidth 0.4pt}}
18659 \begin_layout Standard
18660 To return to the default line thickness, insert this command in TeX-Code
18661 after the table or table float:
18664 \begin_layout Standard
18676 \begin_layout Standard
18680 \begin_layout Plain Layout
18691 \begin_layout Plain Layout
18700 \begin_layout Plain Layout
18708 arrayrulewidth 1.5pt}
18711 \begin_layout Plain Layout
18721 arrayrulewidth 0.4pt}}
18727 \begin_inset Float table
18732 \begin_layout Plain Layout
18733 \begin_inset Caption
18735 \begin_layout Plain Layout
18736 \begin_inset CommandInset label
18738 name "tab:Table-with-horizontal"
18743 \begin_inset space \thinspace{}
18746 pt thick horizontal lines
18754 \begin_layout Plain Layout
18756 \begin_inset Tabular
18757 <lyxtabular version="3" rows="3" columns="3">
18758 <features tabularvalignment="middle">
18759 <column alignment="center" valignment="top" width="0">
18760 <column alignment="center" valignment="top" width="0">
18761 <column alignment="center" valignment="top" width="0">
18763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18766 \begin_layout Plain Layout
18772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18775 \begin_layout Plain Layout
18781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18784 \begin_layout Plain Layout
18792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18795 \begin_layout Plain Layout
18801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18804 \begin_layout Plain Layout
18810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18813 \begin_layout Plain Layout
18821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18824 \begin_layout Plain Layout
18830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18833 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18842 \begin_layout Plain Layout
18862 \begin_layout Plain Layout
18878 \begin_layout Standard
18879 \begin_inset VSpace bigskip
18882 To set the line thickness to 1.5
18883 \begin_inset space \thinspace{}
18886 pt only for vertical lines, create the following column format in the document
18887 preamble, according to the description in section
18888 \begin_inset space ~
18892 \begin_inset CommandInset ref
18894 reference "sub:Customized-Format"
18901 \begin_layout Standard
18906 newcolumntype{V}{!{
18908 vrule width 1.5pt}}
18911 \begin_layout Standard
18913 \begin_inset space ~
18917 \begin_inset CommandInset ref
18919 reference "tab:Table-with-vertical"
18926 \begin_layout Standard
18932 \begin_layout Standard
18933 was used for the last column and
18936 \begin_layout Standard
18942 \begin_layout Standard
18943 for the other columns.
18946 \begin_layout Standard
18947 \begin_inset Float table
18952 \begin_layout Plain Layout
18953 \begin_inset Caption
18955 \begin_layout Plain Layout
18956 \begin_inset CommandInset label
18958 name "tab:Table-with-vertical"
18963 \begin_inset space \thinspace{}
18966 pt thick vertical lines
18974 \begin_layout Plain Layout
18976 \begin_inset Tabular
18977 <lyxtabular version="3" rows="3" columns="3">
18978 <features tabularvalignment="middle">
18979 <column alignment="center" valignment="top" width="0" special="Vc">
18980 <column alignment="center" valignment="top" width="0" special="Vc">
18981 <column alignment="center" valignment="top" width="0" special="VcV">
18983 <cell alignment="center" valignment="top" topline="true" usebox="none">
18986 \begin_layout Plain Layout
18992 <cell alignment="center" valignment="top" topline="true" usebox="none">
18995 \begin_layout Plain Layout
19001 <cell alignment="center" valignment="top" topline="true" usebox="none">
19004 \begin_layout Plain Layout
19012 <cell alignment="center" valignment="top" topline="true" usebox="none">
19015 \begin_layout Plain Layout
19021 <cell alignment="center" valignment="top" topline="true" usebox="none">
19024 \begin_layout Plain Layout
19030 <cell alignment="center" valignment="top" topline="true" usebox="none">
19033 \begin_layout Plain Layout
19041 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19044 \begin_layout Plain Layout
19050 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19053 \begin_layout Plain Layout
19059 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19062 \begin_layout Plain Layout
19081 \begin_layout Subsection
19083 \begin_inset Index idx
19086 \begin_layout Plain Layout
19087 Table Customization ! Dashed Lines
19095 \begin_layout Standard
19099 \begin_layout Plain Layout
19109 \begin_inset Note Note
19112 \begin_layout Plain Layout
19113 The following section will only be displayed when the LaTeX-package
19125 \begin_layout Standard
19126 \begin_inset Float table
19132 \begin_layout Plain Layout
19133 \begin_inset Caption
19135 \begin_layout Plain Layout
19136 \begin_inset CommandInset label
19138 name "tab:Table-with-dashed"
19142 Table with dashed lines
19150 \begin_layout Plain Layout
19152 \begin_inset Tabular
19153 <lyxtabular version="3" rows="5" columns="5">
19154 <features tabularvalignment="middle">
19155 <column alignment="center" valignment="top" width="0">
19156 <column alignment="center" valignment="top" width="0">
19157 <column alignment="center" valignment="top" width="0" special=":c">
19158 <column alignment="center" valignment="top" width="0">
19159 <column alignment="center" valignment="top" width="0">
19161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19164 \begin_layout Plain Layout
19170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19173 \begin_layout Plain Layout
19179 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19182 \begin_layout Plain Layout
19188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19191 \begin_layout Plain Layout
19197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19200 \begin_layout Plain Layout
19208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19211 \begin_layout Plain Layout
19217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19220 \begin_layout Plain Layout
19226 <cell alignment="center" valignment="top" topline="true" usebox="none">
19229 \begin_layout Plain Layout
19235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19238 \begin_layout Plain Layout
19244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19247 \begin_layout Plain Layout
19255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19258 \begin_layout Plain Layout
19262 \begin_layout Plain Layout
19276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19279 \begin_layout Plain Layout
19285 <cell alignment="center" valignment="top" usebox="none">
19288 \begin_layout Plain Layout
19294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19297 \begin_layout Plain Layout
19303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19306 \begin_layout Plain Layout
19314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19317 \begin_layout Plain Layout
19321 \begin_layout Plain Layout
19335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19338 \begin_layout Plain Layout
19344 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19347 \begin_layout Plain Layout
19353 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19356 \begin_layout Plain Layout
19362 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19365 \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" usebox="none">
19385 \begin_layout Plain Layout
19391 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19394 \begin_layout Plain Layout
19400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19403 \begin_layout Plain Layout
19409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19412 \begin_layout Plain Layout
19431 \begin_layout Standard
19432 LyX does not natively support dashed lines, so you have to use TeX-Code.
19433 As a prerequisite the LaTeX-package
19438 \begin_inset Index idx
19441 \begin_layout Plain Layout
19442 LaTeX-packages ! arydshln
19447 must be loaded in the document preamble with the command
19450 \begin_layout Standard
19455 usepackage{arydshln}
19458 \begin_layout Standard
19459 To make a vertical line dashed, enter the colon
19460 \begin_inset Quotes eld
19464 \begin_inset Quotes erd
19467 together with the character for the horizontal alignment as LaTeX-argument
19468 in the table cell dialog.
19471 \begin_layout Standard
19472 For a horizontal dashed line add the command
19475 \begin_layout Standard
19483 \begin_layout Standard
19484 in TeX-Code as first element of the first cell in the table row.
19487 \begin_layout Standard
19488 For dashed multicolumn lines use the command
19491 \begin_layout Standard
19496 cdashline{line number
19501 \begin_layout Standard
19502 in TeX-Code as the first element of the first cell in the table row.
19503 If you have for example a multicolumn spanning columns 2 to 4 and you want
19504 to have a dashed line above, add the command
19507 \begin_layout Standard
19515 \begin_layout Standard
19516 as the first element of the first cell in the row of the multicolumn.
19519 \begin_layout Standard
19520 \begin_inset VSpace bigskip
19526 \begin_layout Standard
19528 \begin_inset space ~
19532 \begin_inset CommandInset ref
19534 reference "tab:Table-with-dashed"
19539 \begin_inset Quotes eld
19547 \begin_inset Quotes erd
19550 as LaTeX-argument of the third column.
19551 The TeX-Code command
19557 was inserted in the first cell of the third row and the TeX-Code command
19558 \begin_inset Newline newline
19567 was inserted in the first cell of the fourth row.
19570 \begin_layout Standard
19571 \begin_inset Note Greyedout
19574 \begin_layout Plain Layout
19583 is apparently not compatible with the LaTeX-package
19588 \begin_inset Index idx
19591 \begin_layout Plain Layout
19592 LaTeX-packages ! colortbl
19597 that is used for colored tables in section
19598 \begin_inset space ~
19602 \begin_inset CommandInset ref
19604 reference "sec:Colored-Tables"
19609 That means colored tables cannot have dashed lines.
19617 \begin_layout Standard
19621 \begin_layout Plain Layout
19631 \begin_inset Note Note
19634 \begin_layout Plain Layout
19635 The following will be displayed when the LaTeX-package
19647 \begin_layout Standard
19648 You need to install the package
19652 to see the content of this section in the output.
19655 \begin_layout Standard
19659 \begin_layout Plain Layout
19671 \begin_layout Chapter
19673 \begin_inset CommandInset label
19680 \begin_inset Index idx
19683 \begin_layout Plain Layout
19692 \begin_layout Section
19694 \begin_inset CommandInset label
19696 name "sec:FloatIntroduction"
19701 \begin_inset Index idx
19704 \begin_layout Plain Layout
19705 Floats ! Introduction
19713 \begin_layout Standard
19714 A float is a block of text associated with some sort of label, which doesn't
19715 have a fixed location.
19717 \begin_inset Quotes eld
19721 \begin_inset Quotes erd
19724 forward or backward a page or two, to wherever it fits best.
19732 \begin_inset space ~
19737 are also floats, because they can float to the next page when there are
19738 too many notes on the page.
19741 \begin_layout Standard
19742 Floats allow a high quality layout.
19743 Images and tables can be spread evenly to the pages to avoid white space
19744 and pages without text.
19745 As the floating often destroys the context between the text and the image/table
19746 , every float can be referenced in the text.
19747 Floats are therefore numbered.
19748 Referencing is described in section
19749 \begin_inset space ~
19753 \begin_inset CommandInset ref
19755 reference "sec:Referencing-Floats"
19762 \begin_layout Standard
19763 To insert a float, use the menu
19765 Insert\SpecialChar \menuseparator
19773 inset, a box with a label.
19774 The label will automatically be translated to the document language in
19776 After the label you can insert the caption text.
19777 The image or table is inserted above or below the caption in a separate
19778 paragraph within the float.
19779 More about the caption placement is contained in section
19780 \begin_inset space ~
19784 \begin_inset CommandInset ref
19786 reference "sec:Caption-Placement"
19791 To keep your LyX-document readable, you can open and close the float box
19792 by left-clicking on the box label.
19793 A closed float box looks like this:
19794 \begin_inset Graphics
19795 filename clipart/floatQt4.png
19797 scaleBeforeRotation
19801 – a gray button with a red label.
19804 \begin_layout Standard
19805 It is recommended that you insert floats as a separate standard paragraph
19806 to avoid possible LaTeX-errors that can occur when the surrounding text
19807 is specially formatted.
19810 \begin_layout Standard
19811 Existing figures or tables can be put into a float by highlighting them
19812 and then pressing the corresponding toolbar button for a new float.
19815 \begin_layout Section
19819 \begin_layout Standard
19820 Besides figure and table floats that are described in sections
19821 \begin_inset space ~
19825 \begin_inset CommandInset ref
19827 reference "sec:Figure-Floats"
19832 \begin_inset CommandInset ref
19834 reference "sec:Table-Floats"
19838 respectively, LyX offers the float types
19847 The latter are explained in sec.
19848 \begin_inset space \thinspace{}
19852 \begin_inset CommandInset ref
19854 reference "sec:Wrap-Floats"
19861 \begin_layout Subsection
19863 \begin_inset Index idx
19866 \begin_layout Plain Layout
19867 Floats ! Algorithms
19875 \begin_layout Standard
19876 \begin_inset Float algorithm
19882 \begin_layout Plain Layout
19883 \begin_inset Caption
19885 \begin_layout Plain Layout
19886 \begin_inset CommandInset label
19888 name "alg:Example-Algorithm-float"
19892 Example Algorithm float
19900 \begin_layout LyX-Code
19902 \begin_inset Newline newline
19905 Sum:= Sum + A(I); /*comment*/
19906 \begin_inset Newline newline
19910 \begin_inset VSpace -4mm
19921 \begin_layout Standard
19922 This float type is inserted with the menu
19924 Insert\SpecialChar \menuseparator
19925 Floats\SpecialChar \menuseparator
19929 It is used for program codes and descriptions of algorithms and can be
19930 seen as an alternative to program code listings that are explained in chapter
19931 \begin_inset space ~
19935 \begin_inset CommandInset ref
19937 reference "cha:Program-Code-Listings"
19942 A possible environment for algorithms is the
19946 , described in LyX's
19952 \begin_inset space ~
19956 \begin_inset CommandInset ref
19958 reference "alg:Example-Algorithm-float"
19962 is an example of an algorithm float where -4
19963 \begin_inset space \thinspace{}
19966 mm vertical space was added at the end of the float to have the bottom rule
19967 exactly below the last text line.
19970 \begin_layout Standard
19971 The float label is not automatically translated into the document language.
19972 If your document is not in English, you have to do this manually by adding
19973 the following line to the document preamble
19978 \begin_layout Standard
19983 floatname{algorithm}{your
19984 \begin_inset space ~
19990 \begin_layout Standard
19994 \begin_inset space ~
20000 \begin_inset Quotes eld
20008 \begin_inset Quotes erd
20014 \begin_layout Standard
20015 To insert the list of algorithms you can use the menu
20017 Insert\SpecialChar \menuseparator
20019 \begin_inset space \thinspace{}
20023 \begin_inset space \thinspace{}
20026 TOC\SpecialChar \menuseparator
20029 when your document has the same language as LyX's menu names.
20030 In other cases use this command in TeX-Code instead:
20033 \begin_layout Standard
20038 listof{algorithm}{your
20039 \begin_inset space ~
20045 \begin_layout Standard
20049 \begin_inset space ~
20055 \begin_inset Quotes eld
20063 \begin_inset Quotes erd
20069 \begin_layout Standard
20070 Algorithm floats are not by default numbered in the scheme
20071 \begin_inset Quotes eld
20075 \begin_inset Quotes erd
20078 as is the case for table and figure floats in many document-classes.
20079 To number algorithm floats in the same scheme, add this command to your
20083 \begin_layout Standard
20088 numberwithin{algorithm}{chapter}
20091 \begin_layout Standard
20092 To be able to use the command
20101 \begin_inset space ~
20106 in the document settings the option
20109 \begin_inset space ~
20113 \begin_inset space ~
20117 \begin_inset space ~
20125 \begin_layout Section
20127 \begin_inset Index idx
20130 \begin_layout Plain Layout
20139 \begin_layout Standard
20140 Floats are usually numbered either independently from the sections the floats
20141 are in, or in the scheme
20142 \begin_inset Quotes eld
20146 \begin_inset Quotes erd
20150 \begin_inset Quotes eld
20154 \begin_inset Quotes erd
20158 This depends on the document class used.
20161 \begin_layout Standard
20162 To change section-independent numbering, you can use this command in the
20166 \begin_layout Standard
20178 \begin_layout Standard
20185 is the command that prints the table number, for figure floats, the command
20199 in the command above prints the table number as small roman number.
20202 \begin_layout Standard
20203 To change the numbering scheme for example to
20204 \begin_inset Quotes eld
20208 \begin_inset Quotes erd
20211 , use this command in the preamble:
20214 \begin_layout Standard
20219 numberwithin{table}{subsection}
20222 \begin_layout Standard
20223 To be able to use the command
20232 \begin_inset space ~
20237 in the document settings the option
20240 \begin_inset space ~
20244 \begin_inset space ~
20248 \begin_inset space ~
20256 \begin_layout Standard
20257 Please also have a look at section
20258 \begin_inset space ~
20262 \begin_inset CommandInset ref
20264 reference "sub:Footnote-Numbering"
20268 for the details and important notes about the numbering commands.
20271 \begin_layout Section
20273 \begin_inset CommandInset label
20275 name "sec:Referencing-Floats"
20280 \begin_inset Index idx
20283 \begin_layout Plain Layout
20284 Floats ! References
20290 \begin_inset Index idx
20293 \begin_layout Plain Layout
20294 References ! to Floats
20302 \begin_layout Standard
20303 To reference a float, insert a label into its caption using the menu
20305 Insert\SpecialChar \menuseparator
20308 or the toolbar button
20309 \begin_inset Graphics
20310 filename ../images/label-insert.png
20312 scaleBeforeRotation
20317 A grey label box like this one:
20318 \begin_inset Graphics
20319 filename clipart/labelQt4.png
20321 scaleBeforeRotation
20325 will be inserted and the label window pops up asking for the label text.
20326 LyX offers as text the first words of the caption with a prefix.
20327 The prefix depends on the float type, e.
20328 \begin_inset space \thinspace{}
20332 \begin_inset space \space{}
20335 for figure floats the prefix will be "
20342 \begin_layout Standard
20343 The label is used as anchor and name for the reference.
20344 You can refer to the label using the menu
20346 Insert\SpecialChar \menuseparator
20349 or the toolbar button
20350 \begin_inset Graphics
20351 filename ../images/dialog-show-new-inset_ref.png
20353 scaleBeforeRotation
20358 A grey cross-reference box like this one:
20359 \begin_inset Graphics
20360 filename clipart/referenceQt4.png
20362 scaleBeforeRotation
20366 will be inserted and the cross-reference window appear showing all labels
20368 If you have multiple LyX-documents opened, choose the one you are working
20369 on from the drop-list at the top of the dialog.
20370 You can now sort the labels alphabetically and then choose one.
20371 At the position of the cross-reference box the float number will appear
20375 \begin_layout Standard
20376 It is recommended that you use a protected space between the cross-reference
20377 name and its number to avoid line breaks between them.
20378 If a cross-reference refers to a non-existing label, you will see two question
20379 marks in the output instead of the reference.
20382 \begin_layout Standard
20383 You can change labels at any time by clicking on the label box.
20384 References to the changed label will automatically change its link to the
20385 new label text, so that you don't need to take care about this.
20388 \begin_layout Standard
20392 \begin_inset space ~
20396 \begin_inset space ~
20401 in the cross-reference window sets the cursor before the referred label.
20402 The button text changes then to Go
20403 \begin_inset space ~
20406 Back and you can use it to set the cursor back to the cross-reference.
20407 Right-clicking on a cross-reference box also sets the cursor before the
20408 referenced label but without the possibility of going back.
20411 \begin_layout Subsection
20412 Cross-Reference Formats
20413 \begin_inset CommandInset label
20415 name "sub:Cross-Reference-Formats"
20420 \begin_inset Index idx
20423 \begin_layout Plain Layout
20424 References ! Formats
20432 \begin_layout Standard
20433 There are six varieties of cross-references:
20436 \begin_layout Description
20437 <reference>: prints the float number, this is the default:
20438 \begin_inset CommandInset ref
20440 reference "fig:Two-distorted-images"
20447 \begin_layout Description
20448 (<reference>): prints the float number within two parentheses, this is the
20449 style normally used to reference formulas, especially when the reference
20451 \begin_inset Quotes eld
20455 \begin_inset Quotes erd
20459 \begin_inset CommandInset ref
20468 \begin_layout Description
20469 <page>: prints the page number: Page
20470 \begin_inset space ~
20474 \begin_inset CommandInset ref
20475 LatexCommand pageref
20476 reference "fig:Two-distorted-images"
20483 \begin_layout Description
20485 \begin_inset space ~
20489 \begin_inset space ~
20492 <page>: prints the text "on page" and the page number:
20493 \begin_inset CommandInset ref
20494 LatexCommand vpageref
20495 reference "fig:Two-distorted-images"
20502 \begin_layout Description
20504 \begin_inset space ~
20508 \begin_inset space ~
20512 \begin_inset space ~
20515 <page>: prints the float number, the text "on page", and the page number:
20517 \begin_inset CommandInset ref
20519 reference "fig:Two-distorted-images"
20526 \begin_layout Description
20528 \begin_inset space ~
20531 reference: prints a self-defined cross-reference format.
20532 \begin_inset Newline newline
20536 \begin_inset Note Greyedout
20539 \begin_layout Plain Layout
20544 This feature is only available when you have the LaTeX-package
20553 \begin_inset Index idx
20556 \begin_layout Plain Layout
20557 LaTeX-packages ! prettyref
20563 \begin_inset Index idx
20566 \begin_layout Plain Layout
20567 LaTeX-packages ! refstyle
20578 \begin_inset Newline newline
20581 You can select which LaTeX-package should be used for this feature by setting
20584 Use refstyle (not prettyref) for cross-references
20588 Document\SpecialChar \menuseparator
20589 Settings\SpecialChar \menuseparator
20593 The format is specified by adding the command
20605 (refstyle) to the preamble of the document.
20606 For example redefining all references to figures (which have the label
20608 \begin_inset Quotes eld
20616 \begin_inset Quotes erd
20619 ) can be done with this command
20620 \begin_inset Newline newline
20627 newref{fig}{refcmd={Image on page
20632 \begin_inset Newline newline
20635 For more information about the format, have a look at the package documentations
20637 \begin_inset CommandInset citation
20639 key "prettyref,refstyle"
20646 \begin_layout Description
20648 \begin_inset space ~
20651 reference: prints the caption of the reference:
20652 \begin_inset CommandInset ref
20653 LatexCommand nameref
20654 reference "fig:Two-distorted-images"
20661 \begin_layout Standard
20666 will not print the page number if the label is on the previous, the same,
20669 \begin_inset space \thinspace{}
20673 \begin_inset space \space{}
20677 \begin_inset Quotes eld
20685 \begin_inset Quotes erd
20691 <reference> on page <page>
20693 will not print anything about the page if the label is on the same page.
20696 \begin_layout Standard
20697 The number and current page of the part of the document referred to in the
20698 output is automatically calculated by LaTeX.
20699 The varieties are adjusted in the field
20703 of the cross-reference window that appears when you click on the cross-referenc
20707 \begin_layout Standard
20708 \begin_inset Note Greyedout
20711 \begin_layout Plain Layout
20716 It is recommended to use the LaTeX-package
20721 \begin_inset Index idx
20724 \begin_layout Plain Layout
20725 LaTeX-packages ! refstyle
20735 \begin_inset Index idx
20738 \begin_layout Plain Layout
20739 LaTeX-packages ! prettyref
20744 does not know all of LyX's possible label shortcuts
20748 \begin_layout Plain Layout
20749 \begin_inset Quotes eld
20753 \begin_inset Quotes erd
20756 is for example LyX's shortcut for labels in figure captions.
20761 and is not internationalized.
20769 \begin_layout Standard
20770 \begin_inset Note Greyedout
20773 \begin_layout Plain Layout
20778 Due to a bug in the LaTeX-package
20782 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20783 languages that make the period character active (like French).
20784 For a workaround, see
20785 \begin_inset Newline newline
20789 \begin_inset CommandInset href
20791 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20803 \begin_layout Subsection
20804 Automatic Reference Naming
20805 \begin_inset Index idx
20808 \begin_layout Plain Layout
20809 References ! Automatic Reference Naming
20817 \begin_layout Standard
20823 \begin_inset Index idx
20826 \begin_layout Plain Layout
20827 LaTeX-packages ! hyperref
20832 , that is enabled in the
20840 dialog, provides a very useful feature that cross-references automatically
20841 include the name of the referenced floats (or text parts like
20846 So you will save having to write e.
20847 \begin_inset space \thinspace{}
20851 \begin_inset space \space{}
20855 \begin_inset Quotes eld
20859 \begin_inset Quotes erd
20862 before every reference to a figure.
20863 To use this feature, enable
20867 and insert this line to the LaTeX preamble:
20870 \begin_layout Standard
20886 \begin_layout Standard
20887 When you prefer other reference names than the default ones, for example
20888 you want instead of
20889 \begin_inset Quotes eld
20893 \begin_inset Quotes erd
20897 \begin_inset Quotes eld
20901 \begin_inset space \thinspace{}
20905 \begin_inset Quotes eld
20908 , you can redefine the name by inserting this in the preamble:
20911 \begin_layout Standard
20922 sectionautorefname}
20923 \begin_inset Newline newline
20927 \begin_inset Phantom HPhantom
20930 \begin_layout Plain Layout
20933 \begin_inset space ~
20946 \begin_layout Standard
20947 When you are using another document language than English, replace
20948 \begin_inset Newline newline
20963 , where *** is the name of the language used.
20966 \begin_layout Standard
20967 To get automatic names, but not for certain reference types, for example
20968 not for equations, use this preamble code:
20971 \begin_layout Standard
20979 \begin_inset Newline newline
20989 \begin_inset Newline newline
21000 equationautorefname}
21001 \begin_inset Newline newline
21005 \begin_inset Phantom HPhantom
21008 \begin_layout Plain Layout
21011 \begin_inset space ~
21026 \begin_layout Standard
21027 More about this topic can be found in
21032 \begin_inset CommandInset citation
21041 \begin_layout Standard
21042 \begin_inset Note Greyedout
21045 \begin_layout Plain Layout
21050 Automatic reference naming cannot be used when you use cross-references
21054 \begin_inset space ~
21059 style, as described in section
21060 \begin_inset space ~
21064 \begin_inset CommandInset ref
21066 reference "sub:Cross-Reference-Formats"
21078 \begin_layout Standard
21083 manual is an example where automatic reference naming is used.
21086 \begin_layout Subsection
21088 \begin_inset CommandInset label
21090 name "sub:Reference-Position"
21095 \begin_inset Index idx
21098 \begin_layout Plain Layout
21099 References ! Reference Position
21107 \begin_layout Standard
21113 \begin_inset Index idx
21116 \begin_layout Plain Layout
21117 LaTeX-packages ! hyperref
21130 dialog to link cross-references in the output, you will see that clicking
21131 on an image float reference jumps to the image label.
21132 The caption will be the first text part on the screen, so that you cannot
21133 see the image without scrolling.
21134 This is because the reference link anchor is placed at the position of
21136 With the use of the package
21141 \begin_inset Index idx
21144 \begin_layout Plain Layout
21145 LaTeX-packages ! hypcap
21150 , which is part of the LaTeX-package
21155 \begin_inset Index idx
21158 \begin_layout Plain Layout
21159 LaTeX-packages ! oberdiek
21164 , the link anchor is placed at the beginning of a float.
21165 To use this feature for figure floats, load
21169 in the document preamble with the line
21172 \begin_layout Standard
21177 usepackage[figure]{hypcap}
21180 \begin_layout Standard
21185 for all float types but this is not recommended for stability reasons.
21186 For more information, have a look at
21191 \begin_inset CommandInset citation
21200 \begin_layout Standard
21201 \begin_inset Note Greyedout
21204 \begin_layout Plain Layout
21213 has no effect on references to subfigures.
21221 \begin_layout Section
21223 \begin_inset CommandInset label
21225 name "sec:Float-Placement"
21230 \begin_inset Index idx
21233 \begin_layout Plain Layout
21242 \begin_layout Standard
21243 Right-clicking on a float-box opens a dialog where you can alter the placement
21244 options that LaTeX uses for positioning the float.
21245 \begin_inset Newline newline
21251 \begin_inset space ~
21256 is only useful for two-column documents: If you select it, the float will
21257 span both columns on the page instead of being confined to just one.
21258 \begin_inset Newline newline
21264 \begin_inset space ~
21269 is used to rotate floats, see section
21270 \begin_inset CommandInset ref
21272 reference "sec:Rotated-Floats"
21279 \begin_layout Standard
21280 You can use one ore more of the following options in the float dialog to
21281 set the placement for a particular float when you uncheck the option
21284 \begin_inset space ~
21288 \begin_inset space ~
21296 \begin_layout Description
21298 \begin_inset space ~
21302 \begin_inset space ~
21305 possible try to place the float on the position where it has been inserted
21308 \begin_layout Description
21310 \begin_inset space ~
21314 \begin_inset space ~
21317 page try to place the float at the top of the current page
21320 \begin_layout Description
21322 \begin_inset space ~
21326 \begin_inset space ~
21329 page try to place the float at the bottom of the current page
21332 \begin_layout Description
21334 \begin_inset space ~
21338 \begin_inset space ~
21341 floats try to place the float on its own page
21344 \begin_layout Standard
21345 The order of the above option is
21350 That means, if you use the default placement, LaTeX will first try out
21354 \begin_inset space ~
21358 \begin_inset space ~
21366 \begin_inset space ~
21370 \begin_inset space ~
21375 , and then the others.
21376 If you do not use the default, LaTeX will try only the checked options
21377 but in the same order.
21379 \begin_inset space ~
21382 placements are possible the procedure is internally repeated but it is tried
21383 to put the float on the following page.
21386 \begin_layout Standard
21387 By default, each option has its own rules:
21390 \begin_layout Labeling
21391 \labelwidthstring 00.00.0000
21395 \begin_inset space ~
21399 \begin_inset space ~
21404 only floats occupying less than 70
21405 \begin_inset space \thinspace{}
21408 % of the page can be placed at the top of a page (
21417 \begin_layout Labeling
21418 \labelwidthstring 00.00.0000
21422 \begin_inset space ~
21426 \begin_inset space ~
21431 : only floats occupying less than 30
21432 \begin_inset space \thinspace{}
21435 % of the page can be placed at the bottom of a page.
21445 \begin_layout Labeling
21446 \labelwidthstring 00.00.0000
21450 \begin_inset space ~
21454 \begin_inset space ~
21459 : only if more than 50
21460 \begin_inset space \thinspace{}
21463 % of the page are occupied by floats, several floats can be set together
21474 \begin_layout Standard
21475 If you don't like these rules, you can ignore them by using the additional
21479 \begin_inset space ~
21483 \begin_inset space ~
21489 \begin_inset Newline newline
21492 You can also redefine the rules with LaTeX-commands that are given in parenthese
21493 s after the rules description above.
21494 To increase for example the often too small default of the bottom-rule
21496 \begin_inset space \thinspace{}
21499 % of the page, add this line to your document preamble:
21502 \begin_layout Standard
21509 bottomfraction}{0.5}
21512 \begin_layout Standard
21513 Sometimes you might need, under all circumstances, a float to be placed
21514 exactly at the position where it is inserted.
21515 For this case you can use the option
21518 \begin_inset space ~
21524 Use this option very rarely and only if the document is almost ready to
21525 be printed, because the float is then no longer able to
21526 \begin_inset Quotes eld
21530 \begin_inset Quotes erd
21533 when you change your document and this will often destroy the page layout.
21536 \begin_layout Standard
21537 There are no placement options for text wrap floats, because they are always
21538 surrounded by the text of a certain paragraph.
21539 \begin_inset VSpace bigskip
21545 \begin_layout Standard
21546 Sometimes you have the problem that a float is placed at the top of a page
21547 while its corresponding section starts at the middle of the page, so that
21548 the reader could think the float is part of the previous section.
21549 To avoid this the LaTeX-command
21556 It suppresses a given float placement for the page where it is inserted
21557 and can therefore be used to avoid floats being set before a section starts.
21558 To get this, add these commands to your document preamble:
21561 \begin_layout Standard
21571 \begin_inset Newline newline
21585 \begin_layout Standard
21586 You can define the same for all section headings, like chapters and subsections.
21587 This definition is not recommended to be used for small text parts like
21588 subsubsections because LaTeX may then have problems finding a suitable
21592 \begin_layout Standard
21593 \begin_inset VSpace bigskip
21596 In some cases it is required to have all figures/tables at the end of the
21598 For this purpose the LaTeX-package
21603 \begin_inset Index idx
21606 \begin_layout Plain Layout
21607 LaTeX-packages ! endfloat
21613 It puts all figure and table floats at the end of the document into their
21615 At the original float position a text hint like
21616 \begin_inset Quotes eld
21622 \begin_inset space ~
21628 \begin_inset Quotes erd
21632 The endfloat-package is loaded in the preamble with the line
21635 \begin_layout Standard
21640 usepackage[options]{endfloat}
21643 \begin_layout Standard
21644 There are various package options to format the created figure/table sections.
21645 For more information we refer to the
21650 \begin_inset CommandInset citation
21657 \begin_inset Newline newline
21661 \begin_inset Note Greyedout
21664 \begin_layout Plain Layout
21669 doesn't provide an automatic translation for the text hint, you have to
21670 do this manually, see section
21671 \begin_inset space ~
21675 \begin_inset CommandInset citation
21687 \begin_inset Newline newline
21691 \begin_inset Note Greyedout
21694 \begin_layout Plain Layout
21699 There is currently a bug in
21703 when the caption contains a German
21704 \begin_inset Quotes eld
21708 \begin_inset Quotes erd
21712 Use in this case the command
21713 \begin_inset Quotes eld
21723 \begin_inset Quotes erd
21726 in TeX-Code instead of
21727 \begin_inset Quotes eld
21731 \begin_inset Quotes erd
21742 \begin_layout Standard
21743 \begin_inset VSpace bigskip
21746 For more details about float placements, have a look at LaTeX books,
21747 \begin_inset CommandInset citation
21749 key "latexcompanion,latexguide,latexbook"
21756 \begin_layout Section
21758 \begin_inset CommandInset label
21760 name "sec:Rotated-Floats"
21765 \begin_inset Index idx
21768 \begin_layout Plain Layout
21777 \begin_layout Standard
21778 Especially for wide tables you might have floats rotated.
21779 To rotate a whole float including the caption, right-click on the float-box
21783 \begin_inset space ~
21791 \begin_layout Standard
21792 Rotated floats are always placed on a page of their own (or column of their
21793 own; in case you have a multi-column document).
21794 You can let them span several columns using the float settings option
21797 \begin_inset space ~
21803 Floats are rotated so that you can read them from the outside margin.
21804 To force a certain rotation direction for all pages, you can add either
21813 to the document class options.
21816 \begin_layout Standard
21817 Referencing rotated floats is the same as for normal floats, the caption
21818 format is also the same: Table
21819 \begin_inset space ~
21823 \begin_inset CommandInset ref
21825 reference "tab:Rotated-table"
21829 is an example of a rotated table float.
21832 \begin_layout Standard
21833 \begin_inset Note Greyedout
21836 \begin_layout Plain Layout
21841 Not all DVI-viewers are able to display rotated floats.
21849 \begin_layout Standard
21850 \begin_inset Float table
21855 \begin_layout Plain Layout
21856 \begin_inset Caption
21858 \begin_layout Plain Layout
21859 \begin_inset CommandInset label
21861 name "tab:Rotated-table"
21873 \begin_layout Plain Layout
21875 \begin_inset Tabular
21876 <lyxtabular version="3" rows="1" columns="5">
21877 <features tabularvalignment="middle">
21878 <column alignment="center" valignment="top" width="0">
21879 <column alignment="center" valignment="top" width="0">
21880 <column alignment="center" valignment="top" width="0">
21881 <column alignment="center" valignment="top" width="0">
21882 <column alignment="center" valignment="top" width="0">
21884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21887 \begin_layout Plain Layout
21893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21896 \begin_layout Plain Layout
21902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21905 \begin_layout Plain Layout
21911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21914 \begin_layout Plain Layout
21920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21923 \begin_layout Plain Layout
21942 \begin_layout Section
21944 \begin_inset Index idx
21947 \begin_layout Plain Layout
21956 \begin_layout Standard
21957 Subfloats are for example used when a figure consists of several images.
21958 They are created by inserting a float into an existing float.
21959 The placement of the subfloats can be controlled in the same way as for
21960 paragraphs as shown in table
21961 \begin_inset space ~
21965 \begin_inset CommandInset ref
21967 reference "tab:Two-subtables-side"
21972 \begin_inset CommandInset ref
21974 reference "tab:Two-subtables-upon"
21981 \begin_layout Standard
21982 Referencing subfloats works as for normal floats: Table
21983 \begin_inset space ~
21987 \begin_inset CommandInset ref
21989 reference "tab:This-is-subtable-a"
21994 \begin_inset CommandInset ref
21996 reference "tab:This-is-subtable-b"
22000 are subtables of table
22001 \begin_inset space ~
22005 \begin_inset CommandInset ref
22007 reference "tab:Two-subtables-side"
22014 \begin_layout Standard
22015 \begin_inset Float table
22020 \begin_layout Plain Layout
22021 \begin_inset Caption
22023 \begin_layout Plain Layout
22024 \begin_inset CommandInset label
22026 name "tab:Two-subtables-side"
22030 Two subtables placed side by side.
22038 \begin_layout Plain Layout
22040 \begin_inset space \hfill{}
22044 \begin_inset Float table
22049 \begin_layout Plain Layout
22050 \begin_inset Caption
22052 \begin_layout Plain Layout
22053 \begin_inset CommandInset label
22055 name "tab:This-is-subtable-a"
22059 This is subtable a.
22067 \begin_layout Plain Layout
22069 \begin_inset Tabular
22070 <lyxtabular version="3" rows="1" columns="5">
22071 <features tabularvalignment="middle">
22072 <column alignment="center" valignment="top" width="0">
22073 <column alignment="center" valignment="top" width="0">
22074 <column alignment="center" valignment="top" width="0">
22075 <column alignment="center" valignment="top" width="0">
22076 <column alignment="center" valignment="top" width="0">
22078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22081 \begin_layout Plain Layout
22087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22090 \begin_layout Plain Layout
22096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22099 \begin_layout Plain Layout
22105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22108 \begin_layout Plain Layout
22114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22117 \begin_layout Plain Layout
22134 \begin_inset space \hfill{}
22138 \begin_inset Float table
22143 \begin_layout Plain Layout
22144 \begin_inset Caption
22146 \begin_layout Plain Layout
22147 \begin_inset CommandInset label
22149 name "tab:This-is-subtable-b"
22153 This is subtable b.
22161 \begin_layout Plain Layout
22163 \begin_inset Tabular
22164 <lyxtabular version="3" rows="1" columns="5">
22165 <features tabularvalignment="middle">
22166 <column alignment="center" valignment="top" width="0">
22167 <column alignment="center" valignment="top" width="0">
22168 <column alignment="center" valignment="top" width="0">
22169 <column alignment="center" valignment="top" width="0">
22170 <column alignment="center" valignment="top" width="0">
22172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22202 \begin_layout Plain Layout
22208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22211 \begin_layout Plain Layout
22228 \begin_inset space \hfill{}
22239 \begin_layout Standard
22240 \begin_inset Float table
22245 \begin_layout Plain Layout
22246 \begin_inset Caption
22248 \begin_layout Plain Layout
22249 \begin_inset CommandInset label
22251 name "tab:Two-subtables-upon"
22255 Two subtables placed one above the other.
22256 (a) table with 4 cells, (b) table with 5 cells.
22264 \begin_layout Plain Layout
22266 \begin_inset Float table
22271 \begin_layout Plain Layout
22272 \begin_inset Caption
22274 \begin_layout Plain Layout
22283 \begin_layout Plain Layout
22285 \begin_inset Tabular
22286 <lyxtabular version="3" rows="1" columns="4">
22287 <features tabularvalignment="middle">
22288 <column alignment="center" valignment="top" width="0">
22289 <column alignment="center" valignment="top" width="0">
22290 <column alignment="center" valignment="top" width="0">
22291 <column alignment="center" valignment="top" width="0">
22293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22296 \begin_layout Plain Layout
22302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22305 \begin_layout Plain Layout
22311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22314 \begin_layout Plain Layout
22320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22323 \begin_layout Plain Layout
22342 \begin_layout Plain Layout
22344 \begin_inset Float table
22349 \begin_layout Plain Layout
22350 \begin_inset Caption
22352 \begin_layout Plain Layout
22361 \begin_layout Plain Layout
22363 \begin_inset Tabular
22364 <lyxtabular version="3" rows="1" columns="5">
22365 <features tabularvalignment="middle">
22366 <column alignment="center" valignment="top" width="0">
22367 <column alignment="center" valignment="top" width="0">
22368 <column alignment="center" valignment="top" width="0">
22369 <column alignment="center" valignment="top" width="0">
22370 <column alignment="center" valignment="top" width="0">
22372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22375 \begin_layout Plain Layout
22381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22384 \begin_layout Plain Layout
22390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22393 \begin_layout Plain Layout
22399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22402 \begin_layout Plain Layout
22408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22411 \begin_layout Plain Layout
22435 \begin_layout Section
22436 Floats Side by Side
22437 \begin_inset Index idx
22440 \begin_layout Plain Layout
22441 Floats ! Side by side
22449 \begin_layout Standard
22450 To place floats side by side, as in Figures
22451 \begin_inset space ~
22455 \begin_inset CommandInset ref
22457 reference "fig:Float-left"
22462 \begin_inset CommandInset ref
22464 reference "fig:Float-right"
22473 In it two minipage boxes are inserted.
22477 \begin_layout Plain Layout
22478 Minipages are explained in section
22479 \begin_inset space ~
22483 \begin_inset CommandInset ref
22485 reference "sec:Minipages"
22494 The width is set to 45
22495 \begin_inset space \thinspace{}
22499 \begin_inset space \thinspace{}
22502 column% and the box alignment to
22507 The minipage boxes contain the image and the caption in the same way as
22508 they are in a float.
22509 The only difference is that the image unit
22512 \begin_inset space ~
22516 \begin_inset space ~
22521 is now calculated according to the width of the minipage boxes.
22524 \begin_layout Standard
22525 \begin_inset Float figure
22530 \begin_layout Plain Layout
22531 \begin_inset Box Frameless
22541 height_special "totalheight"
22544 \begin_layout Plain Layout
22546 \begin_inset Graphics
22547 filename clipart/mobius.eps
22550 scaleBeforeRotation
22557 \begin_layout Plain Layout
22558 \begin_inset Caption
22560 \begin_layout Plain Layout
22561 \begin_inset CommandInset label
22563 name "fig:Float-left"
22567 Float on the left side.
22578 \begin_inset space \hfill{}
22582 \begin_inset Box Frameless
22592 height_special "totalheight"
22595 \begin_layout Plain Layout
22597 \begin_inset Graphics
22598 filename clipart/platypus.eps
22601 scaleBeforeRotation
22608 \begin_layout Plain Layout
22609 \begin_inset Caption
22611 \begin_layout Plain Layout
22612 \begin_inset CommandInset label
22614 name "fig:Float-right"
22618 Float on the right side.
22631 \begin_layout Plain Layout
22640 \begin_layout Section
22642 \begin_inset Index idx
22645 \begin_layout Plain Layout
22646 Caption ! Formatting
22652 \begin_inset Index idx
22655 \begin_layout Plain Layout
22656 Floats ! Caption Formatting
22662 \begin_inset CommandInset label
22664 name "sec:Caption-Formatting"
22671 \begin_layout Standard
22676 environment is the default paragraph environment for
22681 On the LyX screen captions appear as label, e.
22682 \begin_inset space \thinspace{}
22686 \begin_inset space \space{}
22690 \begin_inset Quotes eld
22698 \begin_inset Quotes erd
22701 followed by the caption text.
22703 \begin_inset Quotes eld
22707 \begin_inset Quotes erd
22710 is the actual reference number.
22711 By default the label and the number are in the same font as the caption
22712 text and a colon follows the number to divide the label from the text.
22713 This caption format is not suitable for all document formats.
22717 \begin_layout Standard
22718 To change the default caption format, load the LaTeX-package
22723 \begin_inset Index idx
22726 \begin_layout Plain Layout
22727 LaTeX-packages ! caption
22732 in the document preamble with this line:
22735 \begin_layout Standard
22740 usepackage[format definition]{caption}
22743 \begin_layout Standard
22744 To have for example the label and the number in sans-serif bold font and
22745 the table captions always above the table as in this document, use the
22749 \begin_layout Standard
22754 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22757 \begin_layout Standard
22758 You can also define different caption formats for the different float types.
22759 In this case load the
22763 package without format specific options and define the different formats
22764 with the help of the command
22767 \begin_layout Standard
22772 captionsetup[float type]{format definition}
22775 \begin_layout Standard
22776 in the document preamble.
22777 For example the caption formats of Figure
22778 \begin_inset space ~
22782 \begin_inset CommandInset ref
22784 reference "fig:This-is-an-fig"
22789 \begin_inset space ~
22793 \begin_inset CommandInset ref
22795 reference "tab:This-is-an-tab"
22799 can be created using these commands in the document preamble:
22802 \begin_layout Standard
22807 usepackage[tableposition=top]{caption}
22810 \begin_inset Newline newline
22817 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22818 \begin_inset Newline newline
22822 \begin_inset Phantom HPhantom
22825 \begin_layout Plain Layout
22830 captionsetup[figure]{
22836 \begin_inset Newline newline
22841 captionsetup[table]{labelfont={bf,sf}}
22844 \begin_layout Standard
22845 \begin_inset Note Greyedout
22848 \begin_layout Plain Layout
22857 has no effect when a
22862 \begin_inset Index idx
22865 \begin_layout Plain Layout
22866 LaTeX-packages ! KOMA-Script
22871 document class is used.
22872 In this case the document class option
22874 captions=tableheading
22884 \begin_layout Standard
22885 For more information about the package
22889 we refer to its documentation
22890 \begin_inset CommandInset citation
22899 \begin_layout Standard
22900 To change the label name from e.
22901 \begin_inset space \thinspace{}
22905 \begin_inset space \space{}
22909 \begin_inset Quotes eld
22913 \begin_inset Quotes erd
22917 \begin_inset Quotes eld
22921 \begin_inset Quotes erd
22924 use this preamble command:
22927 \begin_layout Standard
22934 fnum@figure}{Image~
22939 \begin_layout Standard
22946 inserts the figure number and
22949 \begin_inset Quotes eld
22955 \begin_inset Quotes erd
22958 creates a protected space.
22961 \begin_layout Standard
22962 \begin_inset VSpace bigskip
22970 \begin_inset Index idx
22973 \begin_layout Plain Layout
22974 LaTeX-packages ! KOMA-Script
22981 article (KOMA-Script)
22989 letter (KOMA-Script)
22993 report (KOMA-Script)
22996 \begin_inset space \thinspace{}
22999 ), you can alternatively to the
23007 's built-in command
23014 For example, to have the caption label in bold, add this command to your
23018 \begin_layout Standard
23023 setkomafont{captionlabel}{
23028 \begin_layout Standard
23029 For more information about
23040 \begin_inset CommandInset citation
23049 \begin_layout Standard
23053 \begin_layout Plain Layout
23057 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23064 \begin_inset Note Note
23067 \begin_layout Plain Layout
23068 The caption format is changed only for this example.
23076 \begin_layout Standard
23077 \begin_inset Float figure
23083 \begin_layout Plain Layout
23085 \begin_inset Graphics
23086 filename clipart/mobius.eps
23089 scaleBeforeRotation
23096 \begin_layout Plain Layout
23097 \begin_inset Caption
23099 \begin_layout Plain Layout
23100 \begin_inset CommandInset label
23102 name "fig:This-is-an-fig"
23106 This is an example figure caption that is longer than one line to show the
23107 different caption format.
23108 Here a self-defined caption format is used.
23121 \begin_layout Standard
23125 \begin_layout Plain Layout
23129 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23138 \begin_layout Standard
23139 \begin_inset Float table
23145 \begin_layout Plain Layout
23146 \begin_inset Caption
23148 \begin_layout Plain Layout
23149 \begin_inset CommandInset label
23151 name "tab:This-is-an-tab"
23155 This is an example table caption that is longer than one line to show the
23156 different caption format.
23157 Here the standard caption format for tables in this document is used.
23165 \begin_layout Plain Layout
23167 \begin_inset Tabular
23168 <lyxtabular version="3" rows="1" columns="5">
23169 <features tabularvalignment="middle">
23170 <column alignment="center" valignment="top" width="0">
23171 <column alignment="center" valignment="top" width="0">
23172 <column alignment="center" valignment="top" width="0">
23173 <column alignment="center" valignment="top" width="0">
23174 <column alignment="center" valignment="top" width="0">
23176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23179 \begin_layout Plain Layout
23185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23188 \begin_layout Plain Layout
23194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23197 \begin_layout Plain Layout
23203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23206 \begin_layout Plain Layout
23212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23215 \begin_layout Plain Layout
23234 \begin_layout Section
23236 \begin_inset Index idx
23239 \begin_layout Plain Layout
23240 Caption ! Placement
23246 \begin_inset Index idx
23249 \begin_layout Plain Layout
23250 Floats ! Caption Placement
23256 \begin_inset CommandInset label
23258 name "sec:Caption-Placement"
23265 \begin_layout Standard
23266 The common caption placement rule is:
23269 \begin_layout Description
23270 Figure: Caption is set below the figure
23273 \begin_layout Description
23274 Table: Caption is set above the table
23277 \begin_layout Standard
23278 Having the caption above the table is unfortunately not supported in LaTeX's
23280 That means if you are using the document classes
23296 there will be no space between the caption and the table.
23297 To insert the necessary space, add the following option to the load command
23298 of the LaTeX-package
23302 in your document preamble
23306 \begin_layout Plain Layout
23308 \begin_inset space ~
23312 \begin_inset CommandInset ref
23314 reference "sec:Caption-Formatting"
23318 for more information of the package
23330 \begin_layout Standard
23336 \begin_layout Standard
23342 \begin_inset Index idx
23345 \begin_layout Plain Layout
23346 LaTeX-packages ! KOMA-Script
23353 article (KOMA-Script)
23361 letter (KOMA-Script)
23365 report (KOMA-Script)
23368 \begin_inset space \thinspace{}
23371 ), you can alternatively to the
23375 package set the document class option
23377 captions=tableheading
23382 \begin_layout Standard
23383 \begin_inset VSpace bigskip
23386 It is also possible to set the caption beside a figure or table.
23387 To get this the LaTeX-package
23392 \begin_inset Index idx
23395 \begin_layout Plain Layout
23396 LaTeX-packages ! sidecap
23401 has to be loaded in the document preamble with the line
23404 \begin_layout Standard
23409 usepackage[option]{sidecap}
23412 \begin_layout Standard
23413 If you set no option, the caption is placed on the side of the outer page
23414 margin – to the right on odd pages, to the left on even pages.
23415 You can change the placement to inner margin with the option
23420 To force the placement always to the right or left, use the option
23431 \begin_layout Standard
23435 \begin_layout Plain Layout
23445 \begin_inset Note Note
23448 \begin_layout Plain Layout
23449 The following section will only be displayed when the LaTeX-package
23461 \begin_layout Standard
23462 To place in LyX the caption of a float on the side, it is necessary to add
23463 these commands to the document preamble:
23466 \begin_layout Standard
23468 \begin_inset CommandInset line
23479 \begin_layout Standard
23487 \begin_inset Newline newline
23491 \begin_inset Phantom HPhantom
23494 \begin_layout Plain Layout
23497 \begin_inset space ~
23512 \begin_inset Newline newline
23516 \begin_inset Phantom HPhantom
23519 \begin_layout Plain Layout
23522 \begin_inset space ~
23537 \begin_inset Newline newline
23541 \begin_inset Phantom HPhantom
23544 \begin_layout Plain Layout
23547 \begin_inset space ~
23557 renewenvironment{table}{
23564 \begin_layout Standard
23572 \begin_inset Newline newline
23576 \begin_inset Phantom HPhantom
23579 \begin_layout Plain Layout
23582 \begin_inset space ~
23597 \begin_inset Newline newline
23601 \begin_inset Phantom HPhantom
23604 \begin_layout Plain Layout
23607 \begin_inset space ~
23624 \begin_layout Standard
23632 \begin_inset Newline newline
23636 \begin_inset Phantom HPhantom
23639 \begin_layout Plain Layout
23642 \begin_inset space ~
23657 \begin_inset Newline newline
23661 \begin_inset Phantom HPhantom
23664 \begin_layout Plain Layout
23667 \begin_inset space ~
23682 \begin_inset Newline newline
23686 \begin_inset Phantom HPhantom
23689 \begin_layout Plain Layout
23692 \begin_inset space ~
23702 renewenvironment{figure}{
23709 \begin_layout Standard
23717 \begin_inset Newline newline
23721 \begin_inset Phantom HPhantom
23724 \begin_layout Plain Layout
23727 \begin_inset space ~
23742 \begin_inset Newline newline
23746 \begin_inset Phantom HPhantom
23749 \begin_layout Plain Layout
23752 \begin_inset space ~
23769 \begin_layout Standard
23771 \begin_inset CommandInset line
23782 \begin_layout Standard
23783 The commands allow you to redefine the floats so that the caption is set
23785 For figure floats use the command
23788 \begin_layout Standard
23796 \begin_layout Standard
23797 in TeX-Code before the float.
23798 After the float insert the command
23801 \begin_layout Standard
23809 \begin_layout Standard
23810 in TeX-Code to get back to the original float definition.
23813 \begin_layout Standard
23814 For table floats use the corresponding commands
23817 \begin_layout Standard
23831 \begin_layout Standard
23833 \begin_inset space ~
23837 \begin_inset CommandInset ref
23839 reference "fig:cap-beside-fig"
23844 \begin_inset space ~
23848 \begin_inset CommandInset ref
23850 reference "tab:cap-beside-tab"
23854 are examples where the caption is set beside.
23857 \begin_layout Standard
23858 You can see in the examples that the caption text appears at the top of
23859 the floats for table floats and at the bottom for figure floats.
23860 To change this, you can use the command
23863 \begin_layout Standard
23868 sidecaptionvpos{float type}{placement}
23871 \begin_layout Standard
23872 in the document preamble or in TeX-Code before the float.
23873 The float type is either
23881 , the placement can be
23882 \begin_inset Quotes eld
23890 \begin_inset Quotes erd
23894 \begin_inset Quotes eld
23902 \begin_inset Quotes erd
23906 \begin_inset Quotes eld
23914 \begin_inset Quotes erd
23918 To have for example the caption of figure floats vertically centered, use
23922 \begin_layout Standard
23927 sidecaptionvpos{figure}{c}
23930 \begin_layout Standard
23931 This was used for Figure
23932 \begin_inset space ~
23936 \begin_inset CommandInset ref
23938 reference "fig:cap-beside-fig-2"
23945 \begin_layout Standard
23946 \begin_inset VSpace medskip
23949 For more information about the package
23953 we refer to its documentation
23954 \begin_inset CommandInset citation
23963 \begin_layout Standard
23964 \begin_inset Note Greyedout
23967 \begin_layout Plain Layout
23977 \begin_inset Index idx
23980 \begin_layout Plain Layout
23981 LaTeX-packages ! hypcap
23986 , described in section
23987 \begin_inset space ~
23991 \begin_inset CommandInset ref
23993 reference "sub:Reference-Position"
23997 , has no effect on floats with the caption set beside.
24005 \begin_layout Standard
24009 \begin_layout Plain Layout
24021 \begin_layout Standard
24022 \begin_inset Float figure
24027 \begin_layout Plain Layout
24028 \begin_inset Graphics
24029 filename clipart/escher-lsd.eps
24031 scaleBeforeRotation
24038 \begin_layout Plain Layout
24039 \begin_inset Caption
24041 \begin_layout Plain Layout
24042 \begin_inset CommandInset label
24044 name "fig:cap-beside-fig"
24048 This is a caption beside a figure.
24061 \begin_layout Standard
24065 \begin_layout Plain Layout
24077 \begin_layout Standard
24078 \begin_inset Float table
24083 \begin_layout Plain Layout
24084 \begin_inset Caption
24086 \begin_layout Plain Layout
24087 \begin_inset CommandInset label
24089 name "tab:cap-beside-tab"
24093 This is a caption beside a table.
24101 \begin_layout Plain Layout
24102 \begin_inset Tabular
24103 <lyxtabular version="3" rows="4" columns="5">
24104 <features tabularvalignment="middle">
24105 <column alignment="center" valignment="top" width="0">
24106 <column alignment="center" valignment="top" width="0">
24107 <column alignment="center" valignment="top" width="0">
24108 <column alignment="center" valignment="top" width="0">
24109 <column alignment="center" valignment="top" width="0">
24111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24114 \begin_layout Plain Layout
24120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24123 \begin_layout Plain Layout
24129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24132 \begin_layout Plain Layout
24138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24141 \begin_layout Plain Layout
24147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24150 \begin_layout Plain Layout
24158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24161 \begin_layout Plain Layout
24167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24170 \begin_layout Plain Layout
24176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24179 \begin_layout Plain Layout
24185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24188 \begin_layout Plain Layout
24194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24197 \begin_layout Plain Layout
24205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24208 \begin_layout Plain Layout
24214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24217 \begin_layout Plain Layout
24223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24226 \begin_layout Plain Layout
24232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24235 \begin_layout Plain Layout
24241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24244 \begin_layout Plain Layout
24252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24255 \begin_layout Plain Layout
24261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24264 \begin_layout Plain Layout
24270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24273 \begin_layout Plain Layout
24279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24282 \begin_layout Plain Layout
24288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24291 \begin_layout Plain Layout
24310 \begin_layout Standard
24314 \begin_layout Plain Layout
24326 \begin_layout Standard
24330 \begin_layout Plain Layout
24334 sidecaptionvpos{figure}{c}
24340 \begin_inset Float figure
24345 \begin_layout Plain Layout
24346 \begin_inset Graphics
24347 filename clipart/escher-lsd.eps
24349 scaleBeforeRotation
24356 \begin_layout Plain Layout
24357 \begin_inset Caption
24359 \begin_layout Plain Layout
24360 \begin_inset CommandInset label
24362 name "fig:cap-beside-fig-2"
24366 This is a vertically centered caption beside a figure.
24379 \begin_layout Standard
24383 \begin_layout Plain Layout
24395 \begin_layout Standard
24399 \begin_layout Plain Layout
24409 \begin_inset Note Note
24412 \begin_layout Plain Layout
24413 The following will be displayed when the LaTeX-package
24425 \begin_layout Standard
24426 You need to install the LaTeX-package
24430 to see the following part of this section in the output.
24433 \begin_layout Standard
24437 \begin_layout Plain Layout
24449 \begin_layout Section
24451 \begin_inset Index idx
24454 \begin_layout Plain Layout
24455 Floats ! Float Lists
24463 \begin_layout Standard
24464 Similar to the table of contents where the sections of the document are
24465 listed, there are listings for all float types, like the figures of the
24467 You can insert them via the
24469 Insert\SpecialChar \menuseparator
24471 \begin_inset space ~
24475 \begin_inset space ~
24483 \begin_layout Standard
24484 The list entries are the float captions or its short title, the float number,
24485 and the page number where they appear in the document.
24488 \begin_layout Standard
24489 You can find the list of figures and tables at the end of this document.
24492 \begin_layout Chapter
24496 \begin_layout Section
24498 \begin_inset Index idx
24501 \begin_layout Plain Layout
24510 \begin_layout Standard
24511 Notes are inserted with the toolbar button
24512 \begin_inset Graphics
24513 filename ../images/note-insert.png
24515 scaleBeforeRotation
24521 Insert\SpecialChar \menuseparator
24525 There are three types of notes:
24528 \begin_layout Description
24530 \begin_inset space ~
24533 Note This note type is for internal notes that won't appear in the output.
24534 Its note-box looks like this:
24535 \begin_inset Newline newline
24539 \begin_inset Newline newline
24543 \begin_inset Graphics
24544 filename clipart/LyXNoteImageQt4.png
24547 scaleBeforeRotation
24552 \begin_inset Note Note
24555 \begin_layout Plain Layout
24556 This is text in a note box that doesn't appear in the output.
24564 \begin_layout Description
24565 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24566 ent, when you export the document to LaTeX via the menu
24568 File\SpecialChar \menuseparator
24569 Export\SpecialChar \menuseparator
24570 LaTeX (pdflatex) / (plain)
24573 Its note-box looks like this:
24574 \begin_inset Newline newline
24578 \begin_inset Newline newline
24582 \begin_inset Graphics
24583 filename clipart/CommentNoteImageQt4.png
24586 scaleBeforeRotation
24591 \begin_inset Note Comment
24594 \begin_layout Plain Layout
24595 This is text in a note box that only appears as comment in LaTeX-files.
24603 \begin_layout Description
24605 \begin_inset space ~
24608 Out This note will appear in the output as grey text.
24609 Its note-box looks like this:
24610 \begin_inset Newline newline
24614 \begin_inset Newline newline
24618 \begin_inset Graphics
24619 filename clipart/GreyedOutNoteImageQt4.png
24622 scaleBeforeRotation
24627 \begin_inset Newline newline
24634 \begin_layout Plain Layout
24638 renewenvironment{lyxgreyedout}
24641 \begin_layout Plain Layout
24645 textcolor[gray]{0.8}
24655 \begin_inset Note Greyedout
24658 \begin_layout Plain Layout
24663 \begin_layout Plain Layout
24664 This is an example footnote within a greyed out note.
24669 of a comment that appears in the output as grey text.
24678 \begin_layout Plain Layout
24682 renewenvironment{lyxgreyedout}
24685 \begin_layout Plain Layout
24699 \begin_inset Note Note
24702 \begin_layout Plain Layout
24703 The greyed out note is here redefined to show it with the original LyX definitio
24704 n because greyed out notes are redefined in the preamble of this document,
24705 as described below, to have blue text.
24711 \begin_inset Newline newline
24715 \begin_inset Newline newline
24718 As you can see in the example, the first line of greyed out notes is a bit
24719 indented and greyed out notes can have footnotes.
24722 \begin_layout Standard
24723 \begin_inset VSpace bigskip
24726 When you use the toolbar button
24727 \begin_inset Graphics
24728 filename ../images/note-insert.png
24730 scaleBeforeRotation
24737 \begin_inset space ~
24743 You can switch between the five note types by right-clicking on the note-box.
24748 If you want to turn existing text into a note, mark it and click on the
24762 To change a note to text, press the backspace key when the cursor is in
24763 the first position of a note, or press the delete key when the cursor is
24764 in the very last position of the note, respectively.
24767 \begin_layout Standard
24768 \begin_inset VSpace bigskip
24771 You can change the text color of the greyed out notes in the menu
24773 Document\SpecialChar \menuseparator
24774 Settings\SpecialChar \menuseparator
24780 \begin_layout Section
24782 \begin_inset CommandInset label
24784 name "sec:Footnotes"
24789 \begin_inset Index idx
24792 \begin_layout Plain Layout
24799 \begin_inset Index idx
24802 \begin_layout Plain Layout
24811 \begin_layout Standard
24812 Footnotes can be inserted using the toolbar button
24813 \begin_inset Graphics
24814 filename ../images/footnote-insert.png
24816 scaleBeforeRotation
24822 Insert\SpecialChar \menuseparator
24834 then the following footnote-box:
24835 \begin_inset Graphics
24836 filename clipart/footnoteQt4.png
24838 scaleBeforeRotation
24846 where you can enter the footnote text.
24847 If you want to turn existing text into a footnote, mark it and click on
24869 to text, press the Backspace key when the cursor is in the first position
24878 , or press the Delete key when the cursor is in the very last position of
24890 \begin_layout Standard
24891 Here is an example footnote:
24899 \begin_layout Plain Layout
24900 \begin_inset CommandInset label
24902 name "foot:This-is-an"
24906 This is an example footnote.
24919 \begin_layout Plain Layout
24923 newcounter{MyRepeatFoot}
24926 \begin_layout Plain Layout
24930 setcounter{MyRepeatFoot}{
24940 \begin_layout Standard
24941 The footnote will appear in the output as a superscript number at the text
24942 position where the footnote box is placed.
24943 The footnote text is placed at the bottom of the current page.
24944 The footnote number is calculated by LaTeX; the numbers are consecutive.
24945 It depends on your document-class, whether the footnote number is reset
24949 \begin_layout Standard
24950 Footnotes can be referenced like floats: Insert a label into the footnote
24951 and cross-reference this label in the text as described in section
24952 \begin_inset space ~
24956 \begin_inset CommandInset ref
24958 reference "sec:Referencing-Floats"
24963 \begin_inset Newline newline
24966 This is a cross-reference of Footnote
24967 \begin_inset space ~
24971 \begin_inset CommandInset ref
24973 reference "foot:This-is-an"
24980 \begin_layout Standard
24981 \begin_inset VSpace defskip
24984 Footnotes in tables are not printed by LaTeX due to technical reasons.
24985 However there exists another method to print them: Instead of the footnote
24992 is inserted as TeX-code.
24993 The text of the footnote is entered as an argument of the TeX-code command
25001 \begin_inset Newline newline
25004 This was done for the following table with the command
25007 \begin_layout Standard
25014 Printed table footnote.
25019 \begin_layout Standard
25020 \begin_inset Tabular
25021 <lyxtabular version="3" rows="2" columns="1">
25022 <features tabularvalignment="middle">
25023 <column alignment="center" valignment="top" width="0">
25025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25028 \begin_layout Plain Layout
25029 This an example text.
25033 \begin_layout Plain Layout
25034 This footnote will not be printed!
25046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25049 \begin_layout Plain Layout
25050 This an example text.
25054 \begin_layout Plain Layout
25077 \begin_layout Plain Layout
25086 Printed table footnote.
25090 \begin_layout Plain Layout
25100 \begin_layout Standard
25101 Footnotes in longtables are described in section
25102 \begin_inset space ~
25106 \begin_inset CommandInset ref
25108 reference "sub:Footnotes-in-Longtables"
25115 \begin_layout Standard
25116 Footnotes in minipage boxes are printed, but inside the box and with a different
25117 numbering because a minipage box is like a page inside a page.
25118 (For more about minipages, see section
25119 \begin_inset space ~
25123 \begin_inset CommandInset ref
25125 reference "sec:Minipages"
25129 .) To get a footnote in the minipage that is output at the bottom of the
25130 page like normal footnotes, also use the method of
25145 \begin_layout Standard
25146 \begin_inset Box Frameless
25156 height_special "totalheight"
25159 \begin_layout Plain Layout
25160 This an example text in a minipage.
25164 \begin_layout Plain Layout
25165 Footnote in the minipage.
25173 \begin_layout Plain Layout
25174 This an example text in a minipage.
25178 \begin_layout Plain Layout
25195 \begin_layout Standard
25199 \begin_layout Plain Layout
25208 Footnote outside the minipage.
25212 \begin_layout Plain Layout
25222 \begin_layout Standard
25223 \begin_inset VSpace defskip
25229 \begin_layout Standard
25230 To refer to the same footnote several times without printing the footnote
25231 text every time, use the command
25235 footnotemark[number]
25238 \begin_inset Newline newline
25241 As you do not know the number of the repeating footnote while you are writing
25242 the text, you have to store its number.
25243 For the following footnote mark example, these commands were inserted in
25244 TeX-code after Footnote
25245 \begin_inset space ~
25249 \begin_inset CommandInset ref
25251 reference "foot:This-is-an"
25255 to store the footnote number:
25258 \begin_layout Standard
25263 newcounter{MyRepeatFoot}
25264 \begin_inset Newline newline
25269 setcounter{MyRepeatFoot}{
25274 \begin_layout Standard
25275 The footnote mark was then created with this command:
25278 \begin_layout Standard
25288 \begin_layout Standard
25289 Here is a repeated footnote:
25297 \begin_layout Plain Layout
25311 \begin_layout Standard
25312 If you want to repeat the previous footnote, you can omit the storage of
25313 the footnote number and just use this command instead:
25316 \begin_layout Standard
25326 \begin_layout Standard
25327 Here is another repeated footnote:
25335 \begin_layout Plain Layout
25349 \begin_layout Subsection
25351 \begin_inset CommandInset label
25353 name "sub:Footnote-Numbering"
25358 \begin_inset Index idx
25361 \begin_layout Plain Layout
25362 Footnotes ! Numbering
25370 \begin_layout Standard
25371 To reset the footnote number back to 1 after each section
25373 , add this command to your document preamble:
25376 \begin_layout Standard
25381 @addtoreset{footnote}{section}
25384 \begin_layout Standard
25385 \begin_inset VSpace bigskip
25388 The following preamble command changes the footnote numbering style to small
25392 \begin_layout Standard
25404 \begin_layout Standard
25408 \begin_layout Plain Layout
25421 This is a footnote with roman numbering:
25425 \begin_layout Plain Layout
25426 This is an example footnote with roman numbering.
25434 \begin_layout Standard
25435 To change the numbering style to capital roman numerals replace in the command
25450 \begin_inset Quotes eld
25454 \begin_inset Quotes erd
25457 footnotes with capital or small Latin letters use
25471 \begin_inset Quotes eld
25475 \begin_inset Quotes erd
25478 footnotes with symbols use
25487 \begin_layout Standard
25488 \begin_inset Note Greyedout
25491 \begin_layout Plain Layout
25496 You can only number 26 footnotes with Latin letters, because this numbering
25497 is limited to single letters.
25503 \begin_inset Newline newline
25507 \begin_inset Note Greyedout
25510 \begin_layout Plain Layout
25515 You can only number 9 footnotes with symbols.
25523 \begin_layout Standard
25524 To return to the default numbering style after you have changed to another
25537 in the command above.
25541 \begin_layout Plain Layout
25557 \begin_layout Standard
25558 \begin_inset VSpace bigskip
25564 \begin_layout Standard
25565 If you want to have footnotes numbered in the scheme
25566 \begin_inset Quotes eld
25570 \begin_inset Quotes erd
25573 , add the following command to your document preamble:
25576 \begin_layout Standard
25581 numberwithin{footnote}{chapter}
25584 \begin_layout Standard
25585 To be able to use the command
25594 \begin_inset space ~
25599 in the document settings the option
25602 \begin_inset space ~
25606 \begin_inset space ~
25610 \begin_inset space ~
25618 \begin_layout Standard
25622 \begin_layout Plain Layout
25626 numberwithin{footnote}{chapter}
25631 This is another example footnote:
25637 \begin_layout Plain Layout
25638 This is a footnote numbered in the scheme
25639 \begin_inset Quotes eld
25643 \begin_inset Quotes erd
25657 \begin_layout Plain Layout
25673 \begin_layout Standard
25674 \begin_inset Note Greyedout
25677 \begin_layout Plain Layout
25688 always prints out the footnote number as arabic number; previous redefinitions
25689 to get non-arabic numbers are overwritten.
25697 \begin_layout Standard
25698 So to get for example the scheme
25699 \begin_inset Quotes eld
25705 \begin_inset Quotes erd
25708 , use this command instead of
25717 \begin_layout Standard
25731 \begin_layout Subsection
25733 \begin_inset Index idx
25736 \begin_layout Plain Layout
25737 Footnotes ! Placement
25745 \begin_layout Standard
25746 If you have several footnotes in one page, they appear without vertical
25747 space between them at the bottom of the page.
25748 To make them more readable you can e.
25749 \begin_inset space \thinspace{}
25753 \begin_inset space \space{}
25757 \begin_inset space \thinspace{}
25760 mm space with the following preamble command:
25763 \begin_layout Standard
25773 \begin_inset Newline newline
25787 \begin_layout Standard
25788 \begin_inset VSpace bigskip
25791 In a two-column document the footnotes appear at the bottom of every column,
25793 \begin_inset space ~
25797 \begin_inset CommandInset ref
25799 reference "fig:Standard-footnote-placement"
25804 If the footnotes should only appear at the bottom of the right column,
25806 \begin_inset space ~
25810 \begin_inset CommandInset ref
25812 reference "fig:Footnote-placement-in"
25816 , use the LaTeX-package
25821 \begin_inset Index idx
25824 \begin_layout Plain Layout
25825 LaTeX-packages ! ftnright
25830 with this command in the document preamble:
25833 \begin_layout Standard
25838 usepackage{ftnright}
25841 \begin_layout Standard
25842 \begin_inset Float figure
25848 \begin_layout Plain Layout
25852 \begin_layout Plain Layout
25862 \begin_inset Graphics
25863 filename clipart/without_fntright.pdf
25865 scaleBeforeRotation
25873 \begin_layout Plain Layout
25883 \begin_layout Plain Layout
25884 \begin_inset Caption
25886 \begin_layout Plain Layout
25887 \begin_inset CommandInset label
25889 name "fig:Standard-footnote-placement"
25893 Standard footnote placement in two-column documents.
25906 \begin_layout Standard
25907 \begin_inset Float figure
25913 \begin_layout Plain Layout
25917 \begin_layout Plain Layout
25927 \begin_inset Graphics
25928 filename clipart/with_fntright.pdf
25930 scaleBeforeRotation
25938 \begin_layout Plain Layout
25948 \begin_layout Plain Layout
25949 \begin_inset Caption
25951 \begin_layout Plain Layout
25952 \begin_inset CommandInset label
25954 name "fig:Footnote-placement-in"
25958 Footnote placement in two-column documents when the LaTeX-package
25975 \begin_layout Standard
25976 \begin_inset VSpace bigskip
25979 In some scientific literature it is usual to collect the footnotes and print
25980 them in a separate paragraph at the end of a section, as in Figure
25981 \begin_inset space ~
25985 \begin_inset CommandInset ref
25987 reference "fig:Endnotes"
25992 They are then called
25993 \begin_inset Quotes eld
25997 \begin_inset Quotes erd
26001 \begin_inset Index idx
26004 \begin_layout Plain Layout
26010 To use endnotes instead of footnotes in your document, load in the menu
26013 Document\SpecialChar \menuseparator
26014 Settings\SpecialChar \menuseparator
26020 \begin_inset space ~
26024 \begin_inset space ~
26030 To insert the collected footnotes, insert the command
26033 \begin_layout Standard
26041 \begin_layout Standard
26042 in TeX-Code at the end of a section or chapter.
26045 \begin_layout Standard
26046 \begin_inset Float figure
26051 \begin_layout Plain Layout
26056 \begin_layout Plain Layout
26066 \begin_inset Graphics
26067 filename clipart/endnotes.pdf
26068 scaleBeforeRotation
26076 \begin_layout Plain Layout
26086 \begin_layout Plain Layout
26087 \begin_inset Caption
26089 \begin_layout Plain Layout
26090 \begin_inset CommandInset label
26092 name "fig:Endnotes"
26096 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26110 \begin_layout Standard
26111 \begin_inset VSpace medskip
26114 The paragraph heading for the endnotes isn't automatically translated into
26115 the document language, this must be done manually.
26116 The following preamble command translates the default English
26117 \begin_inset Quotes eld
26121 \begin_inset Quotes erd
26125 \begin_inset Quotes eld
26129 \begin_inset Quotes erd
26135 \begin_layout Standard
26142 notesname}{Anmerkungen}
26145 \begin_layout Standard
26146 \begin_inset VSpace medskip
26149 The numbering of endnotes can be changed like the footnote numbering as
26150 described in section
26151 \begin_inset space ~
26155 \begin_inset CommandInset ref
26157 reference "sub:Footnote-Numbering"
26161 ; just replace the command
26174 To reset the endnote number use the command
26180 as described in section
26181 \begin_inset space ~
26185 \begin_inset CommandInset ref
26187 reference "sub:Footnote-Numbering"
26191 and replace the command parameter
26202 \begin_layout Standard
26203 For endnotes there is the command
26207 endnotemark[number]
26209 similar to the command
26215 , that is described in section
26216 \begin_inset space ~
26220 \begin_inset CommandInset ref
26222 reference "sec:Footnotes"
26229 \begin_layout Standard
26230 \begin_inset VSpace bigskip
26233 Footnotes can also be placed in the page margin and the footnote text alignment
26234 can be changed, see the LaTeX-package
26239 \begin_inset Index idx
26242 \begin_layout Plain Layout
26243 LaTeX-packages ! footmisc
26249 \begin_inset CommandInset citation
26255 for more information about this.
26258 \begin_layout Standard
26259 For various further footnote formatting issues have a look at LaTeX-books,
26261 \begin_inset CommandInset citation
26263 key "latexcompanion,latexguide,latexbook"
26273 \begin_inset Index idx
26276 \begin_layout Plain Layout
26277 LaTeX-packages ! KOMA-Script
26282 document class, you can adjust all footnote settings using class-specific
26284 \begin_inset CommandInset citation
26293 \begin_layout Section
26295 \begin_inset Index idx
26298 \begin_layout Plain Layout
26299 Notes ! Margin Notes
26307 \begin_layout Standard
26308 Margin notes look and behave in LyX like footnotes.
26309 They are inserted via the menu
26311 Insert\SpecialChar \menuseparator
26313 \begin_inset space ~
26318 or the toolbar button
26319 \begin_inset Graphics
26320 filename ../images/marginalnote-insert.png
26322 scaleBeforeRotation
26337 \begin_inset Quotes eld
26341 \begin_inset Quotes erd
26344 appears where you can enter the text of the margin note.
26347 \begin_layout Standard
26348 At the side is an example margin note.
26353 \begin_inset Marginal
26356 \begin_layout Plain Layout
26357 This is a margin note.
26365 \begin_layout Standard
26366 Margin notes appear at the right side in single-sided documents.
26367 In double-sided documents they appear in the outer margin – left on even
26368 pages, right on odd pages.
26369 The text of margin notes is aligned opposite to the outer margin – right-aligne
26370 d when the note appears in the left margin.
26371 The first line of the margin note is placed at the position of the text
26372 line where it is inserted in the document.
26375 \begin_layout Standard
26376 \begin_inset VSpace bigskip
26379 To place the margin note in the inner margin, add the command
26382 \begin_layout Standard
26390 \begin_layout Standard
26391 in TeX-Code before a margin note.
26392 The new placement is valid for all subsequent margin notes.
26397 \begin_layout Plain Layout
26407 \begin_inset Marginal
26410 \begin_layout Plain Layout
26411 This is a margin note in the inner margin.
26419 \begin_inset Newline newline
26425 \begin_inset Note Greyedout
26428 \begin_layout Plain Layout
26433 There is often not enough space in the inner margin so that the notes are
26434 not correctly displayed in the output.
26442 \begin_layout Standard
26443 To return to the default placement insert the command
26446 \begin_layout Standard
26454 \begin_layout Standard
26459 \begin_layout Plain Layout
26469 \begin_inset Note Greyedout
26472 \begin_layout Plain Layout
26477 The command is ignored when it is within a paragraph where also the command
26492 \begin_layout Standard
26493 \begin_inset VSpace bigskip
26500 \begin_inset Marginal
26503 \begin_layout Plain Layout
26504 AVeryLongMarginParWord that isn't hyphenated.
26512 Similar to the case described in section
26513 \begin_inset space ~
26517 \begin_inset CommandInset ref
26519 reference "sub:Multiple-Lines-in"
26523 , long words cannot be hyphenated when they are the first word in a margin
26525 To avoid this, insert 0
26526 \begin_inset space \thinspace{}
26529 pt horizontal space before the word
26534 \begin_inset Marginal
26537 \begin_layout Plain Layout
26538 \begin_inset space \hspace*{}
26542 AVeryLongMarginParWord that is hyphenated.
26550 \begin_layout Standard
26551 \begin_inset VSpace bigskip
26557 \begin_layout Standard
26558 \begin_inset Note Greyedout
26561 \begin_layout Plain Layout
26566 Margin notes can normally not be used inside tables, floats, and footnotes.
26574 \begin_layout Standard
26575 \begin_inset VSpace bigskip
26581 \begin_layout Standard
26585 \begin_layout Plain Layout
26595 \begin_inset Note Note
26598 \begin_layout Plain Layout
26599 The following section will only be displayed when the LaTeX-package
26611 \begin_layout Standard
26612 This restriction can be evaded by using the LaTeX-package
26617 \begin_inset Index idx
26620 \begin_layout Plain Layout
26621 LaTeX-packages ! marginnote
26627 By adding these two lines to your document preamble, the command used by
26628 LyX for margin notes is redefined to use the command provided by the
26635 \begin_layout Standard
26640 usepackage{marginnote}
26641 \begin_inset Newline newline
26653 \begin_layout Standard
26654 This is also used in this document because
26658 has another useful feature: You can set a vertical offset for the note.
26659 This is often needed when too many margin notes are too close together
26660 or for a better page layout.
26661 The offset is set in LyX as TeX-Code directly after the margin note in
26665 \begin_layout Standard
26671 \begin_layout Standard
26672 where the offset is a length with one of the units listed in Table
26673 \begin_inset space ~
26677 \begin_inset CommandInset ref
26679 reference "tab:Units"
26684 A negative value shifts the note up, a positive value shifts it down.
26688 For example the margin note beside this text line is shifted up 1.5
26689 \begin_inset space \thinspace{}
26692 cm with the TeX-Code-command
26693 \begin_inset Quotes eld
26703 \begin_inset Quotes erd
26707 \begin_inset Marginal
26710 \begin_layout Plain Layout
26711 This margin note is shifted up 1.5
26712 \begin_inset space \thinspace{}
26715 cm from its original position.
26727 \begin_layout Plain Layout
26737 \begin_layout Standard
26738 \begin_inset VSpace medskip
26745 you can also change the alignment of the text in the margin note.
26746 For example the commands
26749 \begin_layout Standard
26756 raggedleftmarginnote}{
26759 \begin_inset Newline newline
26766 raggedrightmarginnote}{
26771 \begin_layout Standard
26772 set the alignment to centered.
26777 raggedleftmarginnote
26779 denotes margin notes that appear at the left side.
26786 \begin_layout Plain Layout
26792 raggedleftmarginnote}{
26797 \begin_layout Plain Layout
26803 raggedrightmarginnote}{
26811 \begin_inset Marginal
26814 \begin_layout Plain Layout
26815 The text of this margin note is centered.
26826 \begin_layout Standard
26833 raggedleftmarginnote}{
26836 \begin_inset Newline newline
26843 raggedrightmarginnote}{
26852 \begin_layout Plain Layout
26858 raggedleftmarginnote}{
26863 \begin_layout Plain Layout
26869 raggedrightmarginnote}{
26879 \begin_layout Standard
26880 \begin_inset VSpace medskip
26883 For the other features of
26887 refer to its documentation
26888 \begin_inset CommandInset citation
26897 \begin_layout Standard
26898 \begin_inset VSpace bigskip
26901 You can adjust the layout of margin notes by changing its definition.
26902 To create for example a header for all margin notes with the underlined,
26903 sans-serif, and bold header text
26904 \begin_inset Quotes eld
26916 \begin_inset Quotes erd
26919 , add this to your document preamble:
26922 \begin_layout Standard
26932 \begin_inset Newline newline
26942 \begin_inset Newline newline
26946 \begin_inset Phantom HPhantom
26949 \begin_layout Plain Layout
26952 \begin_inset space ~
26968 underbar{Attention!}}}%
26969 \begin_inset Newline newline
26973 \begin_inset Phantom HPhantom
26976 \begin_layout Plain Layout
26979 \begin_inset space ~
26996 \begin_layout Standard
27003 \begin_layout Plain Layout
27014 \begin_layout Plain Layout
27025 \begin_layout Plain Layout
27033 underbar{Attention!}}}%
27036 \begin_layout Plain Layout
27050 \begin_inset Marginal
27053 \begin_layout Plain Layout
27054 This is a margin note with a defined heading.
27066 \begin_layout Plain Layout
27080 \begin_layout Plain Layout
27097 \begin_inset Note Note
27100 \begin_layout Plain Layout
27101 The margin note format is changed only for this example.
27109 \begin_layout Standard
27113 \begin_layout Plain Layout
27123 \begin_inset Note Note
27126 \begin_layout Plain Layout
27127 The following will be displayed when the LaTeX-package
27139 \begin_layout Standard
27140 You need to install the LaTeX-package
27144 to see the following part of this section in the output.
27147 \begin_layout Standard
27151 \begin_layout Plain Layout
27163 \begin_layout Chapter
27167 \begin_layout Section
27169 \begin_inset Index idx
27172 \begin_layout Plain Layout
27173 Boxes ! Introduction
27181 \begin_layout Standard
27182 Boxes are used to format a block of text.
27183 Boxes can be used to write documents with multiple languages, see section
27184 \begin_inset space ~
27188 \begin_inset CommandInset ref
27190 reference "sec:Minipages"
27194 , to frame texts, see section
27195 \begin_inset space ~
27199 \begin_inset CommandInset ref
27201 reference "sec:Decoration"
27205 , to prevent words from being hyphenated, see section
27206 \begin_inset space ~
27210 \begin_inset CommandInset ref
27212 reference "sec:Prevent-Hyphenation"
27216 , to align text, see section
27217 \begin_inset space ~
27221 \begin_inset CommandInset ref
27223 reference "sub:Vertical-Alignment"
27227 , or to set the background color of texts, see section
27228 \begin_inset space ~
27232 \begin_inset CommandInset ref
27234 reference "sec:Colored-Boxes"
27241 \begin_layout Standard
27242 Boxes can be inserted with the menu
27244 Insert\SpecialChar \menuseparator
27247 or the toolbar button
27248 \begin_inset Graphics
27249 filename ../images/box-insert.png
27251 scaleBeforeRotation
27256 A grey box with the label
27261 \begin_inset Graphics
27262 filename clipart/BoxInsetDefaultQt4.png
27264 scaleBeforeRotation
27269 The box type can be specified by right-clicking on the box and selecting
27275 The box dialog offers the
27278 \begin_inset space ~
27300 is the default for new boxes and is explained in section
27301 \begin_inset space ~
27305 \begin_inset CommandInset ref
27307 reference "sec:Minipages"
27315 is described in section
27316 \begin_inset space ~
27320 \begin_inset CommandInset ref
27322 reference "sec:Parboxes"
27331 \begin_inset CommandInset ref
27333 reference "sec:Prevent-Hyphenation"
27340 \begin_layout Standard
27341 Boxes are not numbered and can therefore not be referenced like floats or
27345 \begin_layout Standard
27346 \begin_inset Note Greyedout
27349 \begin_layout Plain Layout
27354 Boxes must not be the item in an
27370 \begin_layout Standard
27371 \begin_inset Note Greyedout
27374 \begin_layout Plain Layout
27379 For an unknown reason you can only set the
27382 \begin_inset space ~
27391 when you use a framed box.
27395 \begin_inset space ~
27400 type and without frames are explained in section
27401 \begin_inset space ~
27405 \begin_inset CommandInset ref
27407 reference "sec:Prevent-Hyphenation"
27419 \begin_layout Section
27421 \begin_inset CommandInset label
27423 name "sec:Box-Dialog"
27428 \begin_inset Index idx
27431 \begin_layout Plain Layout
27440 \begin_layout Subsection
27442 \begin_inset Index idx
27445 \begin_layout Plain Layout
27454 \begin_layout Standard
27455 In the box dialog you can adjust the box geometry in the fields
27464 The available units for the geometry are explained in Table
27465 \begin_inset space ~
27469 \begin_inset CommandInset ref
27471 reference "tab:Units"
27480 offers the following additional sizes:
27483 \begin_layout Description
27484 Depth This is the plain text
27485 \begin_inset Quotes eld
27489 \begin_inset Quotes erd
27493 It ignores the total depth when there are multiple text lines in the box:
27494 \begin_inset Newline newline
27498 \begin_inset Newline newline
27502 \begin_inset Newline newline
27506 \begin_inset Box Boxed
27516 height_special "depth"
27519 \begin_layout Plain Layout
27521 Box height set to 1
27522 \begin_inset space \thinspace{}
27531 \begin_inset Newline newline
27535 \begin_inset Newline newline
27541 \begin_layout Description
27542 Height This is the height of the text that is inside the box.
27544 \begin_inset space \thinspace{}
27548 \begin_inset space \space{}
27551 2 for this size will set the box height to 2
27552 \begin_inset space ~
27555 times the text height:
27556 \begin_inset Box Boxed
27566 height_special "height"
27569 \begin_layout Plain Layout
27571 Box height set to 2
27572 \begin_inset space \thinspace{}
27583 \begin_layout Description
27585 \begin_inset space ~
27588 Height This is the Height
27589 \begin_inset space \thinspace{}
27593 \begin_inset space \thinspace{}
27597 \begin_inset Box Boxed
27607 height_special "totalheight"
27610 \begin_layout Plain Layout
27612 Box height set to 1
27613 \begin_inset space \thinspace{}
27617 \begin_inset space ~
27628 \begin_layout Description
27629 Width This sets the width of the box as height:
27630 \begin_inset Box Boxed
27640 height_special "width"
27643 \begin_layout Plain Layout
27645 Box height set to 1
27646 \begin_inset space \thinspace{}
27657 \begin_layout Subsection
27659 \begin_inset Index idx
27662 \begin_layout Plain Layout
27671 \begin_layout Standard
27672 When you have chosen an
27675 \begin_inset space ~
27680 , the vertical box alignment can be:
27683 \begin_layout Description
27684 Top This is an example text line.
27686 \begin_inset Box Boxed
27696 height_special "totalheight"
27699 \begin_layout Plain Layout
27701 This box is top-aligned.
27706 This is an example text line.
27709 \begin_layout Description
27710 Middle This is an example text line.
27712 \begin_inset Box Boxed
27722 height_special "totalheight"
27725 \begin_layout Plain Layout
27727 This box is middle-aligned.
27732 This is an example text line.
27735 \begin_layout Description
27736 Bottom This is an example text line.
27738 \begin_inset Box Boxed
27748 height_special "totalheight"
27751 \begin_layout Plain Layout
27753 This box is bottom-aligned.
27758 This is an example text line.
27761 \begin_layout Standard
27762 \begin_inset Note Greyedout
27765 \begin_layout Plain Layout
27770 The vertical box alignment can be lost in the output when you have two
27771 boxes in a line and one has e.
27772 \begin_inset space \thinspace{}
27776 \begin_inset space \space{}
27779 a shadow and the other one not.
27787 \begin_layout Standard
27788 The horizontal box alignment can be set via LyX's paragraph dialog when
27789 you set the box into its own paragraph.
27792 \begin_layout Standard
27793 \begin_inset VSpace bigskip
27796 When you have chosen an
27799 \begin_inset space ~
27804 , the box content can be aligned vertically to:
27807 \begin_layout Description
27808 top This is an example text line.
27810 \begin_inset Box Boxed
27820 height_special "totalheight"
27823 \begin_layout Plain Layout
27825 This box text is top-aligned.
27830 This is an example text line.
27833 \begin_layout Description
27834 middle This is an example text line.
27836 \begin_inset Box Boxed
27846 height_special "totalheight"
27849 \begin_layout Plain Layout
27851 This box text is middle-aligned.
27856 This is an example text line.
27859 \begin_layout Description
27860 bottom This is an example text line.
27862 \begin_inset Box Boxed
27872 height_special "totalheight"
27875 \begin_layout Plain Layout
27877 This box text is bottom-aligned.
27882 This is an example text line.
27885 \begin_layout Description
27886 stretch This is an example text line.
27888 \begin_inset Box Boxed
27898 height_special "totalheight"
27901 \begin_layout Plain Layout
27906 \begin_layout Plain Layout
27911 \begin_layout Plain Layout
27918 This is an example text line.
27921 \begin_layout Standard
27922 To stretch the box content, it must consist of more than one paragraph.
27923 In the example above every text line is in an own paragraph.
27926 \begin_layout Standard
27927 \begin_inset VSpace bigskip
27930 To align the box content horizontally you can use LyX's paragraph dialog
27931 when you have chosen an
27934 \begin_inset space ~
27942 \begin_layout Standard
27944 \begin_inset Box Boxed
27954 height_special "totalheight"
27957 \begin_layout Plain Layout
27962 \begin_layout Plain Layout
27967 \begin_layout Plain Layout
27977 \begin_layout Standard
27978 If you have not set an
27981 \begin_inset space ~
27986 , you can align the box content horizontally in the box dialog.
27989 \begin_layout Standard
27991 \begin_inset Box Boxed
28001 height_special "totalheight"
28004 \begin_layout Plain Layout
28005 This box text is horizontally stretched.
28013 \begin_layout Subsection
28015 \begin_inset CommandInset label
28017 name "sec:Decoration"
28022 \begin_inset Index idx
28025 \begin_layout Plain Layout
28034 \begin_layout Standard
28035 The type of the box can be specified in the box dialog in the drop-down
28041 The following types are possible:
28044 \begin_layout Description
28046 \begin_inset space ~
28049 frame Nothing is drawn.
28052 \begin_layout Description
28054 \begin_inset space ~
28058 \begin_inset space ~
28061 frame This draws a rectangular frame around the box.
28062 The frame line thickness has the size of
28070 \begin_inset Box Boxed
28080 height_special "totalheight"
28083 \begin_layout Plain Layout
28093 \begin_layout Description
28095 \begin_inset space ~
28099 \begin_inset space ~
28102 thin This draws an oval frame around the box.
28103 The frame line thickness has the size 0.4
28104 \begin_inset space \thinspace{}
28109 \begin_inset Box ovalbox
28119 height_special "totalheight"
28122 \begin_layout Plain Layout
28132 \begin_layout Description
28134 \begin_inset space ~
28138 \begin_inset space ~
28141 thick This draws an oval frame around the box.
28142 The frame line thickness has the size 0.8
28143 \begin_inset space \thinspace{}
28148 \begin_inset Box Ovalbox
28158 height_special "totalheight"
28161 \begin_layout Plain Layout
28171 \begin_layout Description
28173 \begin_inset space ~
28176 shadow This draws a rectangular frame with a shadow around the box.
28177 The frame line thickness has the size of
28183 , the shadow has a width of 4
28184 \begin_inset space \thinspace{}
28189 \begin_inset Box Shadowbox
28199 height_special "totalheight"
28202 \begin_layout Plain Layout
28212 \begin_layout Description
28214 \begin_inset space ~
28217 background This draws a box with a red background.
28218 Unlike colored boxes
28222 \begin_layout Plain Layout
28224 \begin_inset space \thinspace{}
28228 \begin_inset CommandInset ref
28230 reference "sec:Colored-Boxes"
28239 , it always uses the whole column width and the box is set as its own paragraph.
28241 \begin_inset Box Shaded
28251 height_special "totalheight"
28254 \begin_layout Plain Layout
28255 Shaded background box
28263 \begin_layout Description
28265 \begin_inset space ~
28269 \begin_inset space ~
28272 frame This draws a double-line rectangular frame around the box.
28273 The line thickness of the inner frame is 0.75
28274 \begin_inset space \thinspace{}
28283 , the thickness of the outer frame is 1.5
28284 \begin_inset space \thinspace{}
28294 The distance between the lines is 1.5
28295 \begin_inset space \thinspace{}
28305 \begin_inset space \thinspace{}
28309 \begin_inset space \thinspace{}
28313 \begin_inset space \thinspace{}
28318 \begin_inset Box Doublebox
28328 height_special "totalheight"
28331 \begin_layout Plain Layout
28333 Double rectangular box
28341 \begin_layout Standard
28342 \begin_inset VSpace bigskip
28345 LyX's box label will reflect the different frame types.
28346 To be able to use all types, the LaTeX-package
28351 \begin_inset Index idx
28354 \begin_layout Plain Layout
28355 LaTeX-packages ! fancybox
28363 \begin_layout Standard
28364 \begin_inset VSpace bigskip
28367 When you use the decoration
28369 simple rectangular frame
28371 and no inner box, you can allow page breaks within a box.
28372 Note that then, unlike other framed boxes, the frame always uses the whole
28373 column width, the box is set as its own paragraph, and
28385 have no effect on this box type.
28386 The frame line thickness has the size of
28394 \begin_inset Box Framed
28404 height_special "totalheight"
28407 \begin_layout Plain Layout
28408 Allow page break box
28416 \begin_layout Section
28418 \begin_inset Index idx
28421 \begin_layout Plain Layout
28422 Boxes ! Customization
28430 \begin_layout Standard
28431 The default value for the size
28438 \begin_inset space \thinspace{}
28442 It can be changed with the following command in TeX-code to e.
28443 \begin_inset space \thinspace{}
28447 \begin_inset space \space{}
28451 \begin_inset space \thinspace{}
28457 \begin_layout Standard
28467 \begin_layout Standard
28471 \begin_layout Plain Layout
28483 \begin_inset Box Boxed
28493 height_special "totalheight"
28496 \begin_layout Plain Layout
28498 Rectangular box with
28505 \begin_inset space \thinspace{}
28509 \begin_inset space \thinspace{}
28513 \begin_inset space \thinspace{}
28525 \begin_layout Plain Layout
28539 \begin_layout Standard
28540 \begin_inset VSpace bigskip
28543 The space between the frame and the box content is for all frame styles
28545 \begin_inset space \thinspace{}
28549 You can change it by setting the length
28556 For example the command
28559 \begin_layout Standard
28569 \begin_layout Standard
28570 sets the value to 10
28571 \begin_inset space \thinspace{}
28574 pt, as with the following box:
28577 \begin_layout Standard
28581 \begin_layout Plain Layout
28593 \begin_inset Box Boxed
28603 height_special "totalheight"
28606 \begin_layout Plain Layout
28608 Rectangular box with
28615 \begin_inset space \thinspace{}
28619 \begin_inset space \thinspace{}
28623 \begin_inset space \thinspace{}
28635 \begin_layout Plain Layout
28649 \begin_layout Standard
28650 \begin_inset VSpace bigskip
28653 The diameter of the round corners of the oval boxes can be set with the
28664 \begin_layout Standard
28672 \begin_layout Standard
28673 sets the diameter to 1
28674 \begin_inset space \thinspace{}
28681 \begin_layout Standard
28689 \begin_layout Standard
28690 sets the diameter to
28693 \begin_inset space \thinspace{}
28697 \begin_inset space \thinspace{}
28700 minimum(width and height of box)
28712 \begin_layout Standard
28716 \begin_layout Plain Layout
28726 \begin_inset Box Ovalbox
28736 height_special "totalheight"
28739 \begin_layout Plain Layout
28748 \begin_inset space \thinspace{}
28752 \begin_inset space \thinspace{}
28756 \begin_inset space \thinspace{}
28768 \begin_layout Plain Layout
28780 \begin_layout Standard
28781 \begin_inset VSpace bigskip
28784 The size of the shadow can be adjusted by changing the length
28792 \begin_inset space \thinspace{}
28795 pt for the following box by this command:
28798 \begin_layout Standard
28808 \begin_layout Standard
28812 \begin_layout Plain Layout
28824 \begin_inset Box Shadowbox
28834 height_special "totalheight"
28837 \begin_layout Plain Layout
28846 \begin_inset space \thinspace{}
28850 \begin_inset space \thinspace{}
28854 \begin_inset space \thinspace{}
28866 \begin_layout Plain Layout
28880 \begin_layout Standard
28881 \begin_inset VSpace bigskip
28887 \begin_layout Standard
28888 The default value for the size
28895 \begin_inset space \thinspace{}
28899 The default space between the note content and the frame is 9
28900 \begin_inset space \thinspace{}
28903 pt and can be changed with the value of
28910 For example the frame appearance of the following
28914 is set with the TeX-Code commands
28917 \begin_layout Standard
28925 \begin_inset Newline newline
28935 \begin_layout Standard
28939 \begin_layout Plain Layout
28948 \begin_layout Plain Layout
28960 \begin_inset Box Framed
28970 height_special "totalheight"
28973 \begin_layout Plain Layout
28987 \begin_layout Plain Layout
28996 \begin_layout Plain Layout
29010 \begin_layout Standard
29011 \begin_inset VSpace bigskip
29017 \begin_layout Standard
29022 boxes the default space between the box content and the box border is 3
29023 \begin_inset space \thinspace{}
29026 pt and can be changed with the value of
29033 The default background color red can either be changed locally with the
29038 definecolor{shadecolor}
29040 or globally with the menu
29042 Tools\SpecialChar \menuseparator
29043 Preferences\SpecialChar \menuseparator
29044 Colors\SpecialChar \menuseparator
29046 \begin_inset space ~
29058 command is explained in section
29059 \begin_inset space ~
29063 \begin_inset CommandInset ref
29065 reference "sec:Colored-Tables"
29073 \begin_layout Plain Layout
29080 requires the LaTeX-package
29084 in the preamble, see section
29085 \begin_inset space ~
29089 \begin_inset CommandInset ref
29091 reference "sec:Colored-Boxes"
29100 For example the appearance of the following shaded background box is set
29101 with the TeX-Code commands
29104 \begin_layout Standard
29114 \begin_inset Newline newline
29121 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29124 \begin_layout Standard
29128 \begin_layout Plain Layout
29137 \begin_layout Plain Layout
29141 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29147 \begin_inset Box Shaded
29157 height_special "totalheight"
29160 \begin_layout Plain Layout
29163 This is yellow text in a
29173 box with dark green background.
29182 \begin_layout Plain Layout
29191 \begin_layout Plain Layout
29195 definecolor{shadecolor}{rgb}{1,0,0}
29203 \begin_layout Standard
29204 \begin_inset VSpace bigskip
29207 Changed lengths and widths are valid for all boxes following the commands
29211 \begin_layout Section
29213 \begin_inset CommandInset label
29215 name "sec:Minipages"
29220 \begin_inset Index idx
29223 \begin_layout Plain Layout
29232 \begin_layout Standard
29233 Minipages are treated by LaTeX as pages within pages and can therefore for
29234 example have their own footnotes.
29237 \begin_layout Standard
29238 Minipages are useful when you write documents with different languages.
29241 \begin_layout Standard
29242 Below are two example minipages side by side.
29243 Their width is set to 45
29244 \begin_inset space \thinspace{}
29247 col% and they are separated by a horizontal fill, that was inserted via
29250 Insert\SpecialChar \menuseparator
29252 \begin_inset space ~
29255 Formatting\SpecialChar \menuseparator
29257 \begin_inset space ~
29263 \begin_inset Newpage newpage
29269 \begin_layout Standard
29270 \begin_inset Box Frameless
29280 height_special "totalheight"
29283 \begin_layout Plain Layout
29286 Dies ist ein deutscher Text.
29287 Dies ist ein deutscher Text.
29288 Dies ist ein deutscher Text.
29289 Dies ist ein deutscher Text.
29290 Dies ist ein deutscher Text.
29291 Dies ist ein deutscher Text.
29292 Dies ist ein deutscher Text.
29293 Dies ist ein deutscher Text.
29294 Dies ist ein deutscher Text.
29295 Dies ist ein deutscher Text.
29296 Dies ist ein deutscher Text.
29297 Dies ist ein deutscher Text.
29298 Dies ist ein deutscher Text
29302 \begin_layout Plain Layout
29305 Dies ist eine deutsche Fußnote.
29311 Dies ist ein deutscher Text.
29312 Dies ist ein deutscher Text.
29318 \begin_inset space \hfill{}
29322 \begin_inset Box Frameless
29332 height_special "totalheight"
29335 \begin_layout Plain Layout
29336 This is an English Text.
29337 This is an English Text.
29338 This is an English Text.
29339 This is an English Text.
29340 This is an English Text.
29341 This is an English Text.
29342 This is an English Text.
29343 This is an English Text.
29344 This is an English Text.
29345 This is an English Text.
29346 This is an English Text.
29347 This is an English Text.
29348 This is an English Text.
29349 This is an English Text.
29350 This is an English Text.
29351 This is an English Text.
29355 \begin_layout Plain Layout
29356 This is an English footnote.
29361 This is an English Text.
29370 \begin_layout Standard
29371 \begin_inset VSpace bigskip
29374 The document-wide paragraph settings are ignored within minipages.
29375 That means that there will be no space between paragraphs in minipages
29376 although you set it to e.
29377 \begin_inset space \thinspace{}
29381 \begin_inset space \space{}
29388 in the document settings.
29391 \begin_layout Standard
29392 Minipages can also be used to set a background color for text parts, see
29394 \begin_inset space ~
29398 \begin_inset CommandInset ref
29400 reference "sub:Color-for-Paragraphs"
29407 \begin_layout Standard
29408 \begin_inset Note Greyedout
29411 \begin_layout Plain Layout
29416 You cannot have floats or margin notes inside minipages but minipages can
29417 be used inside tables, floats, and other boxes.
29425 \begin_layout Section
29427 \begin_inset CommandInset label
29429 name "sec:Parboxes"
29434 \begin_inset Index idx
29437 \begin_layout Plain Layout
29446 \begin_layout Standard
29447 Parboxes are very similar to minipages with the difference that they cannot
29451 \begin_layout Standard
29453 \begin_inset Box Frameless
29463 height_special "totalheight"
29466 \begin_layout Plain Layout
29467 This a text within a parbox.
29468 This a text within a parbox.
29471 \begin_layout Plain Layout
29472 This footnote won't appear:
29476 \begin_layout Plain Layout
29477 This footnote is inside a parbox and will therefore not appear.
29490 \begin_layout Section
29491 Boxes for Words and Characters
29492 \begin_inset Index idx
29495 \begin_layout Plain Layout
29496 Boxes ! for Characters
29504 \begin_layout Subsection
29505 Prevent Hyphenation
29506 \begin_inset CommandInset label
29508 name "sec:Prevent-Hyphenation"
29513 \begin_inset Index idx
29516 \begin_layout Plain Layout
29517 Boxes ! to Prevent Hyphenation
29525 \begin_layout Standard
29526 You can use the box type
29530 to prevent words or text from being hyphenated.
29531 \begin_inset Newline newline
29534 Here is an example text:
29537 \begin_layout Standard
29538 This line is an example to show how you can prevent the hyphenation of
29539 \begin_inset Quotes eld
29543 \begin_inset Quotes erd
29549 \begin_layout Standard
29550 To prevent the hyphenation of the word
29551 \begin_inset Quotes eld
29555 \begin_inset Quotes erd
29558 , put the word into a box, set the
29561 \begin_inset space ~
29571 \begin_inset space \thinspace{}
29577 \begin_layout Standard
29578 This is the result:
29581 \begin_layout Standard
29582 This line is an example to show how you can prevent the hyphenation of
29583 \begin_inset Box Frameless
29593 height_special "totalheight"
29596 \begin_layout Plain Layout
29597 \begin_inset Quotes eld
29601 \begin_inset Quotes erd
29612 \begin_layout Standard
29613 You can alternatively set the command
29614 \begin_inset Quotes eld
29624 \begin_inset Quotes grd
29627 as TeX-Code directly before the word:
29630 \begin_layout Standard
29631 This line is an example to show how you can prevent the hyphenation of
29632 \begin_inset Quotes eld
29639 \begin_layout Plain Layout
29649 \begin_inset Quotes erd
29655 \begin_layout Standard
29656 Of course the word now protrudes over the side margin.
29657 To avoid this, add via the menu
29659 Insert\SpecialChar \menuseparator
29660 Formatting\SpecialChar \menuseparator
29662 \begin_inset space ~
29666 \begin_inset space ~
29674 arg "newline-insert newline"
29677 ) a line break before the word:
29680 \begin_layout Standard
29681 This line is an example to show how you can prevent the hyphenation of
29682 \begin_inset Newline newline
29686 \begin_inset Box Frameless
29696 height_special "totalheight"
29699 \begin_layout Plain Layout
29700 \begin_inset Quotes eld
29704 \begin_inset Quotes erd
29715 \begin_layout Subsection
29717 \begin_inset CommandInset label
29719 name "sub:Vertical-Alignment"
29724 \begin_inset Index idx
29727 \begin_layout Plain Layout
29728 Boxes ! for Vertical Alignment
29734 \begin_inset Index idx
29737 \begin_layout Plain Layout
29746 \begin_layout Standard
29747 With the help of the command
29753 you can align words, characters or other boxes vertically relative to the
29761 is used with the following scheme:
29764 \begin_layout Standard
29769 raisebox{lift}[height][depth]{box content}
29772 \begin_layout Standard
29773 The lift can be a positive value to raise the box or a negative value to
29777 \begin_layout Standard
29778 To align for example the word
29779 \begin_inset Quotes eld
29783 \begin_inset Quotes erd
29786 so that the bottom of the
29787 \begin_inset Quotes eld
29791 \begin_inset Quotes erd
29795 \begin_inset Quotes eld
29799 \begin_inset Quotes erd
29802 is at the baseline, insert the command
29805 \begin_layout Standard
29815 \begin_layout Standard
29816 in TeX-Code before the word.
29817 After the word insert a closing brace
29818 \begin_inset Quotes eld
29826 \begin_inset Quotes erd
29830 \begin_inset Newline newline
29833 This is the result:
29836 \begin_layout Standard
29837 This is a text line with the word
29841 \begin_layout Plain Layout
29853 \begin_inset Quotes eld
29857 \begin_inset Quotes erd
29864 \begin_layout Plain Layout
29874 \begin_layout Standard
29875 \begin_inset VSpace bigskip
29878 When you raise or lower characters in a line, the line distance will be
29882 \begin_layout Standard
29883 This is a text line with the word
29887 \begin_layout Plain Layout
29899 \begin_inset Quotes eld
29903 \begin_inset Quotes erd
29910 \begin_layout Plain Layout
29918 \begin_inset Newline newline
29921 This is a text line with the word
29925 \begin_layout Plain Layout
29935 \begin_inset Quotes eld
29939 \begin_inset Quotes erd
29946 \begin_layout Plain Layout
29956 \begin_layout Standard
29957 If you want to prevent this for a certain reason, set the box height to
29962 \begin_layout Standard
29972 \begin_layout Standard
29973 This is a text line with the word
29977 \begin_layout Plain Layout
29989 \begin_inset Quotes eld
29993 \begin_inset Quotes erd
30000 \begin_layout Plain Layout
30008 \begin_inset Newline newline
30011 This is a text line with the word
30015 \begin_layout Plain Layout
30019 raisebox{0.5cm}[0pt]{
30025 \begin_inset Quotes eld
30029 \begin_inset Quotes erd
30036 \begin_layout Plain Layout
30046 \begin_layout Section
30048 \begin_inset CommandInset label
30050 name "sec:Colored-Boxes"
30055 \begin_inset Index idx
30058 \begin_layout Plain Layout
30067 \begin_layout Subsection
30069 \begin_inset Index idx
30072 \begin_layout Plain Layout
30081 \begin_layout Standard
30082 To color the background of text the text must be put into a so called
30083 \begin_inset Quotes eld
30087 \begin_inset Quotes erd
30091 This requires that the LaTeX-package
30096 \begin_inset Index idx
30099 \begin_layout Plain Layout
30100 LaTeX-packages ! color
30105 is loaded in the document preamble with the command
30108 \begin_layout Standard
30113 @ifundefined{textcolor}
30114 \begin_inset Newline newline
30118 \begin_inset Phantom HPhantom
30121 \begin_layout Plain Layout
30124 \begin_inset space ~
30134 usepackage{color}}{}
30137 \begin_layout Standard
30142 will be loaded automatically by LyX when you color text.
30146 \begin_layout Plain Layout
30147 To avoid it being loaded twice the command
30161 \begin_layout Standard
30162 \begin_inset VSpace medskip
30165 Colorboxes are created with the command
30172 This will be used with the following scheme:
30175 \begin_layout Standard
30180 colorbox{color}{box content}
30183 \begin_layout Standard
30184 The box content can also be a box and colorboxes can also be within other
30188 \begin_layout Standard
30189 The following colors are predefined:
30190 \begin_inset Newline newline
30229 \begin_inset Newline newline
30232 You can also define your own color as described in section
30233 \begin_inset space ~
30237 \begin_inset CommandInset ref
30239 reference "sec:Colored-Tables"
30246 \begin_layout Standard
30248 \begin_inset space \thinspace{}
30252 \begin_inset space \space{}
30255 a red background for a word, insert the command
30258 \begin_layout Standard
30266 \begin_layout Standard
30267 before the word in TeX-Code.
30268 After the word insert a closing brace
30269 \begin_inset Quotes eld
30277 \begin_inset Quotes erd
30281 \begin_inset Newline newline
30284 This is the result:
30287 \begin_layout Standard
30288 This is a line where the word
30292 \begin_layout Plain Layout
30302 \begin_inset Quotes eld
30306 \begin_inset Quotes erd
30313 \begin_layout Plain Layout
30320 has a red background.
30323 \begin_layout Standard
30324 \begin_inset VSpace bigskip
30327 If you would like the box frame in a different color, you can use the command
30334 with the following scheme:
30337 \begin_layout Standard
30342 fcolorbox{frame color}{box color}{box content}
30345 \begin_layout Standard
30359 The frame thickness and the space between the frame and the box content
30360 can be adjusted with the lengths
30372 , respectively, as described in section
30373 \begin_inset space ~
30377 \begin_inset CommandInset ref
30379 reference "sec:Decoration"
30386 \begin_layout Standard
30387 For the following example the command
30390 \begin_layout Standard
30395 fcolorbox{cyan}{magenta}{
30398 \begin_layout Standard
30402 \begin_layout Standard
30403 Here is an example where the frame line thickness was set to 1
30404 \begin_inset space \thinspace{}
30408 \begin_inset Newline newline
30415 \begin_layout Plain Layout
30430 \begin_layout Plain Layout
30434 fcolorbox{cyan}{magenta}{
30439 This is text within a colored, framed box.
30443 \begin_layout Plain Layout
30453 \begin_layout Standard
30454 \begin_inset VSpace bigskip
30457 Of course you can also have colored text inside a colorbox:
30458 \begin_inset Newline newline
30465 \begin_layout Plain Layout
30469 fcolorbox{cyan}{magenta}{
30476 This is colored text within a colored, framed box.
30482 \begin_layout Plain Layout
30493 \begin_layout Plain Layout
30507 \begin_layout Standard
30508 \begin_inset VSpace medskip
30514 \begin_layout Standard
30515 \begin_inset Note Greyedout
30518 \begin_layout Plain Layout
30523 Text in colorboxes cannot have line breaks.
30524 To color multiple text lines or paragraphs, use a box inside a colorbox
30525 as described in the following.
30533 \begin_layout Subsection
30534 Color for Paragraphs
30535 \begin_inset CommandInset label
30537 name "sub:Color-for-Paragraphs"
30542 \begin_inset Index idx
30545 \begin_layout Plain Layout
30546 Color ! for Paragraphs
30554 \begin_layout Standard
30555 To set the background color for more than one text line, put the text into
30557 Before the minipage insert the
30566 \begin_layout Standard
30574 \begin_layout Standard
30576 After the minipage insert a closing brace
30577 \begin_inset Quotes eld
30585 \begin_inset Quotes erd
30591 \begin_layout Standard
30595 \begin_layout Plain Layout
30599 colorbox{lightgrey}{
30605 \begin_inset Box Frameless
30615 height_special "totalheight"
30618 \begin_layout Plain Layout
30619 This is text with background color.
30620 This is text with background color.
30623 \begin_layout Plain Layout
30624 \begin_inset VSpace defskip
30627 The text can have footnotes
30631 \begin_layout Plain Layout
30632 Another example footnote
30637 and can include tables and figures.
30640 \begin_layout Plain Layout
30642 \begin_inset Tabular
30643 <lyxtabular version="3" rows="3" columns="3">
30644 <features tabularvalignment="middle">
30645 <column alignment="center" valignment="top" width="0">
30646 <column alignment="center" valignment="top" width="0">
30647 <column alignment="center" valignment="top" width="0">
30649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30652 \begin_layout Plain Layout
30658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30661 \begin_layout Plain Layout
30667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30670 \begin_layout Plain Layout
30678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30681 \begin_layout Plain Layout
30687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30690 \begin_layout Plain Layout
30692 \begin_inset Quotes erd
30700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30703 \begin_layout Plain Layout
30711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30714 \begin_layout Plain Layout
30720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30723 \begin_layout Plain Layout
30729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30732 \begin_layout Plain Layout
30752 \begin_layout Plain Layout
30762 \begin_layout Section
30763 Rotated and Scaled Boxes
30766 \begin_layout Standard
30767 To use the commands described in this section, the LaTeX-package
30772 \begin_inset Index idx
30775 \begin_layout Plain Layout
30776 LaTeX-packages ! graphicx
30781 needs to be loaded in the document preamble with the command
30784 \begin_layout Standard
30789 @ifundefined{rotatebox}
30790 \begin_inset Newline newline
30794 \begin_inset Phantom HPhantom
30797 \begin_layout Plain Layout
30800 \begin_inset space ~
30810 usepackage{graphicx}}{}
30813 \begin_layout Standard
30814 \begin_inset Note Greyedout
30817 \begin_layout Plain Layout
30822 Some DVI-viewers can't display rotated or scaled material.
30830 \begin_layout Standard
30831 \begin_inset Note Greyedout
30834 \begin_layout Plain Layout
30839 Floats mustn't be inside a rotated or scaled box.
30847 \begin_layout Subsection
30849 \begin_inset Index idx
30852 \begin_layout Plain Layout
30859 \begin_inset Index idx
30862 \begin_layout Plain Layout
30869 \begin_inset Index idx
30872 \begin_layout Plain Layout
30879 \begin_inset Index idx
30882 \begin_layout Plain Layout
30883 Table Customization ! Rotating
30891 \begin_layout Standard
30892 To rotate material, you can put it into a rotated box.
30893 Such a box is created using the command
30899 in TeX-Code with the following scheme:
30902 \begin_layout Standard
30907 rotatebox[rotation origin]{rotation angle}{box content}
30910 \begin_layout Standard
30911 The rotation origin is specified in the form
30916 The following positions are possible:
30936 (top), along with meaningful combinations of the four base positions.
30941 means that the rotation origin is at the top left corner of the box.
30942 When no rotation origin is specified, the position
30947 The rotation angle is a number that can be negative that specifies the
30949 The rotation direction is counterclockwise.
30952 \begin_layout Standard
30953 In the following example the command
30957 rotatebox[origin=c]{60}{
30959 was inserted as TeX-Code before the text
30960 \begin_inset Quotes eld
30964 \begin_inset Quotes erd
30967 ; after the text the box was closed by a closing brace
30974 \begin_layout Standard
30979 \begin_layout Plain Layout
30983 rotatebox[origin=c]{60}{
30992 \begin_layout Plain Layout
31002 \begin_layout Standard
31003 The box content can also be another box or an inline formula:
31006 \begin_layout Standard
31011 \begin_layout Plain Layout
31015 rotatebox[origin=r]{-60}{
31021 \begin_inset Box Doublebox
31031 height_special "totalheight"
31034 \begin_layout Plain Layout
31044 \begin_layout Plain Layout
31055 \begin_layout Plain Layout
31059 rotatebox[origin=lb]{60}{
31065 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31072 \begin_layout Plain Layout
31082 \begin_layout Standard
31083 or an image or table:
31086 \begin_layout Standard
31091 \begin_layout Plain Layout
31095 rotatebox[origin=lb]{90}{
31101 \begin_inset Graphics
31102 filename clipart/platypus.eps
31112 \begin_layout Plain Layout
31119 with a rotated image
31123 \begin_layout Plain Layout
31127 rotatebox[origin=l]{-90}{
31133 \begin_inset Tabular
31134 <lyxtabular version="3" rows="2" columns="2">
31135 <features tabularvalignment="middle">
31136 <column alignment="center" valignment="top" width="0">
31137 <column alignment="center" valignment="top" width="0">
31139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31142 \begin_layout Plain Layout
31148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31151 \begin_layout Plain Layout
31159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31162 \begin_layout Plain Layout
31168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31171 \begin_layout Plain Layout
31186 \begin_layout Plain Layout
31196 \begin_layout Subsection
31198 \begin_inset Index idx
31201 \begin_layout Plain Layout
31208 \begin_inset Index idx
31211 \begin_layout Plain Layout
31218 \begin_inset Index idx
31221 \begin_layout Plain Layout
31228 \begin_inset Index idx
31231 \begin_layout Plain Layout
31232 Table Customization ! Scaling
31240 \begin_layout Standard
31241 To scale material the commands
31253 can be used as TeX-Code.
31256 \begin_layout Standard
31263 is used with the following scheme:
31266 \begin_layout Standard
31271 scalebox{horizontal}[vertical]{box content}
31274 \begin_layout Standard
31275 Horizontal and vertical are the corresponding scaling factors.
31276 If no vertical scaling factor is given, the horizontal factor will also
31277 be used as the vertical one.
31280 \begin_layout Standard
31287 creates for example a double size
31291 \begin_layout Plain Layout
31304 \begin_layout Plain Layout
31311 , compared with the document text size.
31314 \begin_layout Standard
31319 scalebox{2}[1]{Hello}
31321 on the other hand distorts the
31325 \begin_layout Plain Layout
31338 \begin_layout Plain Layout
31348 \begin_layout Standard
31349 If the scaling factor is negative, the box content will be mirrored.
31350 Therefore the command
31354 scalebox{-1}[1]{Hello}
31356 can be used to create mirror writing:
31360 \begin_layout Plain Layout
31373 \begin_layout Plain Layout
31383 \begin_layout Standard
31388 scalebox{1}[-1]{Hello}
31394 \begin_layout Plain Layout
31407 \begin_layout Plain Layout
31417 \begin_layout Standard
31422 scalebox{-1}[1]{box content}
31424 there exists the command
31425 \begin_inset Newline newline
31432 reflectbox{box content}
31437 \begin_layout Standard
31438 \begin_inset VSpace bigskip
31447 is used to scale the box to a defined width and height.
31448 The command scheme is:
31451 \begin_layout Standard
31456 resizebox{width}{height}{box content}
31459 \begin_layout Standard
31460 If one of the two command arguments given is an exclamation mark
31464 , the size is set so that the aspect ratio of the box content is kept.
31467 \begin_layout Standard
31472 resizebox{2cm}{1cm}{Hello}
31478 \begin_layout Plain Layout
31482 resizebox{2cm}{1cm}{
31491 \begin_layout Plain Layout
31499 \begin_inset Newline newline
31506 resizebox{2cm}{!}{Hello}
31512 \begin_layout Plain Layout
31525 \begin_layout Plain Layout
31535 \begin_layout Standard
31536 \begin_inset VSpace bigskip
31540 \begin_inset Note Greyedout
31543 \begin_layout Plain Layout
31560 are set to zero, no LaTeX-errors occur when exporting the document but
31561 the exported files can not or only partly be displayed.
31569 \begin_layout Standard
31570 \begin_inset VSpace bigskip
31576 \begin_layout Standard
31577 The boxes can be combined in any order.
31579 \begin_inset space \thinspace{}
31583 \begin_inset space \space{}
31587 \begin_inset Newline newline
31594 rotatebox[origin=c]{-45}{
31598 reflectbox{Hello}}}
31599 \begin_inset Newline newline
31607 \begin_layout Standard
31612 \begin_layout Plain Layout
31616 rotatebox[origin=c]{-45}{
31629 \begin_layout Plain Layout
31639 \begin_layout Standard
31641 Images, tables, and inline formulas are allowed as box content:
31644 \begin_layout Standard
31649 \begin_layout Plain Layout
31653 rotatebox[origin=c]{-30}{
31663 \begin_inset Graphics
31664 filename clipart/platypus.eps
31674 \begin_layout Plain Layout
31685 \begin_layout Plain Layout
31689 rotatebox[origin=c]{-45}{
31699 \begin_inset Tabular
31700 <lyxtabular version="3" rows="2" columns="2">
31701 <features tabularvalignment="middle">
31702 <column alignment="center" valignment="top" width="0">
31703 <column alignment="center" valignment="top" width="0">
31705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31708 \begin_layout Plain Layout
31714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31717 \begin_layout Plain Layout
31725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31728 \begin_layout Plain Layout
31734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31737 \begin_layout Plain Layout
31752 \begin_layout Plain Layout
31763 \begin_layout Plain Layout
31767 rotatebox[origin=c]{-45}{
31777 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31784 \begin_layout Plain Layout
31794 \begin_layout Standard
31795 When the global formula style
31799 is used in the document
31803 \begin_layout Plain Layout
31805 \begin_inset Quotes eld
31809 \begin_inset Quotes erd
31812 is added to the document class options.
31817 , display style formulas can also be scaled.
31820 \begin_layout Chapter
31821 Objects Surrounded by Text
31822 \begin_inset Index idx
31825 \begin_layout Plain Layout
31834 \begin_layout Section
31836 \begin_inset CommandInset label
31838 name "sec:Wrap-Floats"
31843 \begin_inset Index idx
31846 \begin_layout Plain Layout
31847 Floats ! Wrap Floats
31853 \begin_inset Index idx
31856 \begin_layout Plain Layout
31857 Surrounded by text ! Wrap Floats
31865 \begin_layout Standard
31866 \begin_inset Wrap figure
31873 \begin_layout Plain Layout
31874 \begin_inset Graphics
31875 filename clipart/mobius.eps
31877 scaleBeforeRotation
31878 rotateOrigin center
31885 \begin_layout Plain Layout
31886 \begin_inset Caption
31888 \begin_layout Plain Layout
31889 \begin_inset CommandInset label
31891 name "fig:This-is-a"
31895 This is a figure wrap float.
31905 This float type is used if you want to wrap text around a figure or table
31906 so that it only occupies some fraction of the column width.
31907 It can be inserted using the menu
31909 Insert\SpecialChar \menuseparator
31910 Floats\SpecialChar \menuseparator
31912 \begin_inset space ~
31916 \begin_inset space ~
31924 \begin_inset space ~
31928 \begin_inset space ~
31933 if the LaTeX-package
31938 \begin_inset Index idx
31941 \begin_layout Plain Layout
31942 LaTeX-packages ! wrapfig
31946 \begin_layout Plain Layout
31964 \begin_layout Plain Layout
31965 Installing a LaTeX-package is explained it in the
31968 \begin_inset space ~
31978 The settings of the float can be modified by right-clicking on the float
31980 The mandatory settings are the float
31993 that specifies how much the float is set into the paragraph
31994 \begin_inset space \thinspace{}
31998 \begin_inset space \thinspace{}
32001 page margin, and the
32004 \begin_inset space ~
32009 that specifies how many text lines the float will approximately need.
32010 The line span is often hard to approximate; so it is better only to use
32011 it when you encounter float placement problems.
32012 You can furthermore decide if LaTeX is allowed to let the float float within
32013 the paragraph or to surrounding paragraphs.
32015 \begin_inset space ~
32019 \begin_inset CommandInset ref
32021 reference "fig:This-is-a"
32025 is an example text wrap float with a width of 40
32026 \begin_inset space \thinspace{}
32030 \begin_inset space \thinspace{}
32033 cm overhang, set to the left.
32036 \begin_layout Standard
32037 \begin_inset Note Greyedout
32040 \begin_layout Plain Layout
32046 \begin_inset space ~
32049 wrap float floats are fragile! E.
32050 \begin_inset space \thinspace{}
32054 \begin_inset space \space{}
32057 having a figure too close to the bottom of the page can mess things up in
32058 such a way that the float does not appear in the output or that it is placed
32059 over some other text.
32067 \begin_layout Standard
32068 In general, the following applies for wrap floats:
32071 \begin_layout Itemize
32072 They should not be placed in paragraphs that run over a page break.
32073 That means that wrap floats are better inserted in their exact place when
32074 the document is almost finished and you are able to estimate where page
32075 breaks will appear.
32078 \begin_layout Itemize
32079 They should either be placed in their own paragraph before the paragraph
32080 where they should wrap into or within a paragraph.
32083 \begin_layout Itemize
32084 In consecutive paragraphs they may cause troubles, so ensure that there
32085 is a text paragraph between them as separator.
32088 \begin_layout Itemize
32089 They are not allowed in section headings or tables.
32092 \begin_layout Itemize
32093 Their numbering and referencing works as described in chap.
32094 \begin_inset space \thinspace{}
32098 \begin_inset CommandInset ref
32100 reference "chap:Floats"
32107 \begin_layout Section
32108 Surrounded Fixed Objects
32109 \begin_inset Index idx
32112 \begin_layout Plain Layout
32113 Surrounded by text ! Fixed objects
32121 \begin_layout Standard
32122 The wrap floats described in sec.
32123 \begin_inset space \thinspace{}
32127 \begin_inset CommandInset ref
32129 reference "sec:Wrap-Floats"
32133 have these positions in the paragraph:
32136 \begin_layout Standard
32139 \begin_inset Tabular
32140 <lyxtabular version="3" rows="2" columns="2">
32141 <features tabularvalignment="middle">
32142 <column alignment="center" valignment="top" width="0">
32143 <column alignment="center" valignment="top" width="0">
32145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32148 \begin_layout Plain Layout
32149 \begin_inset Graphics
32150 filename ../images/dialog-show-new-inset_graphics.png
32152 scaleBeforeRotation
32153 BoundingBox 0bp 6bp 22bp 22bp
32162 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32165 \begin_layout Plain Layout
32173 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32176 \begin_layout Plain Layout
32182 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32185 \begin_layout Plain Layout
32197 \begin_inset Tabular
32198 <lyxtabular version="3" rows="2" columns="2">
32199 <features tabularvalignment="middle">
32200 <column alignment="center" valignment="top" width="0">
32201 <column alignment="center" valignment="top" width="0">
32203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32206 \begin_layout Plain Layout
32212 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32215 \begin_layout Plain Layout
32216 \begin_inset Graphics
32217 filename ../images/dialog-show-new-inset_graphics.png
32219 scaleBeforeRotation
32220 BoundingBox 0bp 6bp 22bp 22bp
32231 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32234 \begin_layout Plain Layout
32240 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32243 \begin_layout Plain Layout
32257 \begin_layout Standard
32258 To get an object exactly at the position where it is inserted, for example
32259 to get one of these positions:
32260 \begin_inset VSpace defskip
32266 \begin_layout Standard
32269 \begin_inset Tabular
32270 <lyxtabular version="3" rows="2" columns="2">
32271 <features tabularvalignment="middle">
32272 <column alignment="center" valignment="top" width="0">
32273 <column alignment="center" valignment="top" width="0">
32275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32278 \begin_layout Plain Layout
32284 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32287 \begin_layout Plain Layout
32295 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32298 \begin_layout Plain Layout
32299 \begin_inset Graphics
32300 filename ../images/dialog-show-new-inset_graphics.png
32302 scaleBeforeRotation
32303 BoundingBox 0bp 6bp 22bp 22bp
32312 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32315 \begin_layout Plain Layout
32327 \begin_inset Tabular
32328 <lyxtabular version="3" rows="2" columns="2">
32329 <features tabularvalignment="middle">
32330 <column alignment="center" valignment="top" width="0">
32331 <column alignment="center" valignment="top" width="0">
32333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32336 \begin_layout Plain Layout
32342 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32345 \begin_layout Plain Layout
32353 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32356 \begin_layout Plain Layout
32362 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32365 \begin_layout Plain Layout
32366 \begin_inset Graphics
32367 filename ../images/dialog-show-new-inset_graphics.png
32369 scaleBeforeRotation
32370 BoundingBox 0bp 6bp 22bp 22bp
32385 \begin_inset Tabular
32386 <lyxtabular version="3" rows="2" columns="3">
32387 <features tabularvalignment="middle">
32388 <column alignment="center" valignment="top" width="0">
32389 <column alignment="center" valignment="top" width="0">
32390 <column alignment="center" valignment="top" width="0">
32392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32395 \begin_layout Plain Layout
32401 <cell alignment="center" valignment="top" topline="true" usebox="none">
32404 \begin_layout Plain Layout
32405 \begin_inset Graphics
32406 filename ../images/dialog-show-new-inset_graphics.png
32408 scaleBeforeRotation
32409 BoundingBox 0bp 6bp 22bp 22bp
32418 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32421 \begin_layout Plain Layout
32429 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32432 \begin_layout Plain Layout
32438 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32441 \begin_layout Plain Layout
32447 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32450 \begin_layout Plain Layout
32462 \begin_inset Tabular
32463 <lyxtabular version="3" rows="2" columns="3">
32464 <features tabularvalignment="middle">
32465 <column alignment="center" valignment="top" width="0">
32466 <column alignment="center" valignment="top" width="0">
32467 <column alignment="center" valignment="top" width="0">
32469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32472 \begin_layout Plain Layout
32478 <cell alignment="center" valignment="top" topline="true" usebox="none">
32481 \begin_layout Plain Layout
32487 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32490 \begin_layout Plain Layout
32498 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32501 \begin_layout Plain Layout
32507 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32510 \begin_layout Plain Layout
32511 \begin_inset Graphics
32512 filename ../images/dialog-show-new-inset_graphics.png
32514 scaleBeforeRotation
32515 BoundingBox 0bp 6bp 22bp 22bp
32524 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32527 \begin_layout Plain Layout
32541 \begin_layout Standard
32544 \begin_inset Tabular
32545 <lyxtabular version="3" rows="3" columns="2">
32546 <features tabularvalignment="middle">
32547 <column alignment="center" valignment="top" width="0">
32548 <column alignment="center" valignment="top" width="0">
32550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32553 \begin_layout Plain Layout
32559 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32562 \begin_layout Plain Layout
32570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32573 \begin_layout Plain Layout
32574 \begin_inset Graphics
32575 filename ../images/dialog-show-new-inset_graphics.png
32577 scaleBeforeRotation
32578 BoundingBox 0bp 6bp 22bp 22bp
32587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32590 \begin_layout Plain Layout
32598 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32601 \begin_layout Plain Layout
32607 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32610 \begin_layout Plain Layout
32622 \begin_inset Tabular
32623 <lyxtabular version="3" rows="3" columns="3">
32624 <features tabularvalignment="middle">
32625 <column alignment="center" valignment="top" width="0">
32626 <column alignment="center" valignment="top" width="0">
32627 <column alignment="center" valignment="top" width="0">
32629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32632 \begin_layout Plain Layout
32638 <cell alignment="center" valignment="top" topline="true" usebox="none">
32641 \begin_layout Plain Layout
32647 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32650 \begin_layout Plain Layout
32658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32661 \begin_layout Plain Layout
32667 <cell alignment="center" valignment="top" usebox="none">
32670 \begin_layout Plain Layout
32671 \begin_inset Graphics
32672 filename ../images/dialog-show-new-inset_graphics.png
32674 scaleBeforeRotation
32675 BoundingBox 0bp 6bp 22bp 22bp
32684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32687 \begin_layout Plain Layout
32695 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32698 \begin_layout Plain Layout
32704 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32707 \begin_layout Plain Layout
32713 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32716 \begin_layout Plain Layout
32728 \begin_inset Tabular
32729 <lyxtabular version="3" rows="3" columns="2">
32730 <features tabularvalignment="middle">
32731 <column alignment="center" valignment="top" width="0">
32732 <column alignment="center" valignment="top" width="0">
32734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32737 \begin_layout Plain Layout
32743 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32746 \begin_layout Plain Layout
32754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32757 \begin_layout Plain Layout
32763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32766 \begin_layout Plain Layout
32767 \begin_inset Graphics
32768 filename ../images/dialog-show-new-inset_graphics.png
32770 scaleBeforeRotation
32771 BoundingBox 0bp 6bp 22bp 22bp
32782 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32785 \begin_layout Plain Layout
32791 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32794 \begin_layout Plain Layout
32808 \begin_layout Standard
32810 you can use the LaTeX-package
32815 \begin_inset Index idx
32818 \begin_layout Plain Layout
32819 LaTeX-packages ! picinpar
32825 Here is an example:
32828 \begin_layout Standard
32832 \begin_layout Plain Layout
32842 \begin_inset Note Note
32845 \begin_layout Plain Layout
32846 The following section will only be displayed when the LaTeX-package
32858 \begin_layout Standard
32862 \begin_layout Plain Layout
32866 begin{window}[2,c,{
32872 \begin_inset Graphics
32873 filename clipart/mobius.eps
32876 scaleBeforeRotation
32877 rotateOrigin center
32885 \begin_layout Plain Layout
32890 \begin_layout Plain Layout
32899 It was in the spring of the year 1894 that all London was interested, and
32900 the fashionable world dismayed, by the murder of the Honourable Ronald
32901 Adair under most unusual and inexplicable circumstances.
32902 The public has already learned those particulars of the crime which
32908 \begin_layout Plain Layout
32919 came out in the police investigation, but a good deal was suppressed upon
32920 that occasion, since the case for the prosecution was so overwhelmingly
32921 strong that it was not necessary to bring forward all the facts.
32922 Only now, at the end of nearly ten years, am I allowed to supply those
32923 missing links which make up the whole of that remarkable chain.
32929 \begin_layout Plain Layout
32941 \begin_layout Standard
32945 \begin_layout Plain Layout
32954 Footnote of the paragraph with the fixed object.
32958 \begin_layout Plain Layout
32968 \begin_layout Standard
32969 Surrounded fixed objects are used to let text float around them, at which
32970 the object's position in the paragraph can be determined by the number
32972 In contrary to floats is it not possible to have a numbered caption.
32975 \begin_layout Standard
32976 A fixed object is inserted by adding the command
32979 \begin_layout Standard
32984 begin{window}[2,c,{
32987 \begin_layout Standard
32988 as TeX Code at the beginning of the paragraph.
32989 The first parameter in the bracket, here '2', defines the number of lines
32990 above the object, the second, here 'c', the position of the object.
32991 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
32992 Behind the command you insert the object.
32993 In this example an image with a width of 40
32994 \begin_inset space \thinspace{}
32997 % of the text column width was inserted.
32998 The object can also be a table, a box or an equation.
32999 Behind the object the command
33002 \begin_layout Standard
33005 },description text]
33006 \begin_inset Newline newline
33012 \begin_layout Standard
33015 \begin_inset Quotes eld
33023 \begin_inset Quotes erd
33026 is in the second line.
33027 The description text is optional.
33028 The text surrounding the object must be in the same paragraph as the object,
33029 so it must begin directly after the
33034 At the end of the paragraph insert the command:
33037 \begin_layout Standard
33045 \begin_layout Standard
33046 Within a paragraph with a fixed object, you cannot insert footnotes in the
33048 You have to use instead the command
33054 inside the paragraph and outside the command
33060 as described in sec.
33061 \begin_inset space \thinspace{}
33065 \begin_inset CommandInset ref
33067 reference "sec:Footnotes"
33074 \begin_layout Standard
33078 \begin_layout Plain Layout
33088 \begin_inset Note Note
33091 \begin_layout Plain Layout
33092 The following will be displayed when the LaTeX-package
33104 \begin_layout Standard
33105 You need to install the LaTeX-package
33109 to see the following part of this section in the output.
33112 \begin_layout Standard
33116 \begin_layout Plain Layout
33128 \begin_layout Section
33130 \begin_inset Index idx
33133 \begin_layout Plain Layout
33140 \begin_inset Index idx
33143 \begin_layout Plain Layout
33144 Surrounded by text ! Initials
33152 \begin_layout Standard
33153 To use initials, you must have the LaTeX-package
33158 \begin_inset Index idx
33161 \begin_layout Plain Layout
33162 LaTeX-packages ! lettrine
33167 installed and use the module
33171 in your document (menu
33173 Document\SpecialChar \menuseparator
33174 Settings\SpecialChar \menuseparator
33178 To insert an initial, use the style
33183 This style has a mandatory and an optional argument.
33184 The mandatory argument is inserted via the menu
33186 Insert\SpecialChar \menuseparator
33188 \begin_inset space ~
33193 and contains the letter that is the initial.
33194 To use the also the optional argument, insert another argument in front
33195 of the mandatory argument.
33196 This one contains parameters to modify the initial.
33197 For more information about the possible parameters see the documentation
33203 \begin_inset CommandInset citation
33210 The style itself contains the text that is surrounding the initial.
33211 The usual style is hereby that the word whose first letter is the initial,
33217 To tell LaTeX where this word is finished, add a closing brace '
33221 ' as TeX Code behind it.
33222 At the end of the style there must be an opening brace '
33229 \begin_layout Standard
33230 Here are some examples:
33233 \begin_layout Enumerate
33234 No optional argument, the initial is the letter 'I' in the math font
33235 \begin_inset Formula $\mathfrak{Fraktur}$
33242 \begin_layout Initial
33243 \begin_inset Argument
33246 \begin_layout Plain Layout
33247 \begin_inset Formula $\mathfrak{I}$
33259 \begin_layout Plain Layout
33266 was in the spring of the year 1894 that all London was interested, and
33267 the fashionable world dismayed, by the murder of the Honourable Ronald
33268 Adair under most unusual and inexplicable circumstances.
33269 The public has already learned those particulars of the crime which came
33270 out in the police investigation, but a good deal was suppressed upon that
33271 occasion, since the case for the prosecution was so overwhelmingly strong
33272 that it was not necessary to bring forward all the facts.
33276 \begin_layout Plain Layout
33284 \begin_inset Newpage newpage
33291 \begin_layout Enumerate
33292 Only one line is surrounding the initial, which is formed by two letters
33293 in standard font and no text is printed in small caps:
33297 \begin_layout Initial
33298 \begin_inset Argument
33301 \begin_layout Plain Layout
33308 \begin_inset Argument
33311 \begin_layout Plain Layout
33321 \begin_layout Plain Layout
33328 was in the spring of the year 1894 that all London was interested, and
33329 the fashionable world dismayed, by the murder of the Honourable Ronald
33330 Adair under most unusual and inexplicable circumstances.
33331 The public has already learned those particulars of the crime which came
33332 out in the police investigation, but a good deal was suppressed upon that
33333 occasion, since the case for the prosecution was so overwhelmingly strong
33334 that it was not necessary to bring forward all the facts.
33338 \begin_layout Plain Layout
33349 \begin_layout Enumerate
33350 Magenta, hanging initial over 3
33351 \begin_inset space ~
33354 lines in the math font
33355 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33359 \begin_inset Quotes eld
33362 t was in the spring
33363 \begin_inset Quotes erd
33370 ; to color the initial, you must insert this command before the initial:
33371 \begin_inset Newline newline
33385 \begin_inset Newline newline
33393 \begin_inset Quotes eld
33397 \begin_inset Quotes erd
33401 \begin_inset Quotes eld
33405 \begin_inset Quotes erd
33409 \begin_inset Quotes eld
33413 \begin_inset Quotes erd
33417 \begin_inset Quotes eld
33421 \begin_inset Quotes erd
33425 \begin_inset Quotes eld
33429 \begin_inset Quotes erd
33433 \begin_inset Quotes eld
33437 \begin_inset Quotes erd
33441 \begin_inset Quotes eld
33445 \begin_inset Quotes erd
33449 \begin_inset Quotes eld
33453 \begin_inset Quotes erd
33456 , and add this command to the document preamble:
33457 \begin_inset Newline newline
33464 @ifundefined{textcolor}
33465 \begin_inset Newline newline
33469 \begin_inset space ~
33474 usepackage{color}}{}
33478 \begin_layout Standard
33482 \begin_layout Plain Layout
33496 \begin_inset Note Note
33499 \begin_layout Plain Layout
33500 makes the initial magenta
33508 \begin_layout Initial
33509 \begin_inset Argument
33512 \begin_layout Plain Layout
33513 lines=3, lhang=0.33, loversize=0.25
33519 \begin_inset Argument
33522 \begin_layout Plain Layout
33523 \begin_inset Formula $\mathcal{I}$
33531 t was in the spring
33535 \begin_layout Plain Layout
33542 of the year 1894 that all London was interested, and the fashionable world
33543 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33544 and inexplicable circumstances.
33545 The public has already learned those particulars of the crime which came
33546 out in the police investigation, but a good deal was suppressed upon that
33547 occasion, since the case for the prosecution was so overwhelmingly strong
33548 that it was not necessary to bring forward all the facts.
33552 \begin_layout Plain Layout
33563 \begin_layout Chapter
33564 External Document Parts
33565 \begin_inset Index idx
33568 \begin_layout Plain Layout
33569 External Document Parts
33577 \begin_layout Standard
33580 Insert\SpecialChar \menuseparator
33583 you can insert external material to your document.
33587 \begin_layout Description
33589 \begin_inset space ~
33592 Document Another LyX document; its content is directly inserted to your
33596 \begin_layout Description
33598 \begin_inset space ~
33601 Text A text document; each line is inserted in your document as a separate
33605 \begin_layout Description
33607 \begin_inset space ~
33611 \begin_inset space ~
33615 \begin_inset space ~
33618 Lines A text document; text lines are inserted in your document continuously
33619 but an empty text line creates a new paragraph.
33622 \begin_layout Description
33624 \begin_inset space ~
33627 Material Files in various formats.
33630 \begin_layout Description
33632 \begin_inset space ~
33635 Document LyX or LaTeX-documents.
33638 \begin_layout Section
33640 \begin_inset Index idx
33643 \begin_layout Plain Layout
33644 External Document Parts ! External Material
33652 \begin_layout Standard
33653 The external material feature allows you to insert files in to your document
33654 without converting them to a format that can be read by the document output
33656 LyX takes care of the necessary conversions.
33657 This is similar to images that can be inserted in various image formats
33659 When you have enabled Instant Preview in LyX's preferences under
33662 \begin_inset space ~
33666 \begin_inset space ~
33669 feel\SpecialChar \menuseparator
33672 , the external material types Dia and Xfig are directly shown in LyX.
33675 \begin_layout Standard
33676 External material can be inserted via the
33680 dialog that is accessible with the menu
33682 Insert\SpecialChar \menuseparator
33683 File\SpecialChar \menuseparator
33685 \begin_inset space ~
33691 Currently the following file types (
33698 \begin_layout Description
33699 ChessDiagram This template supports chess position diagrams made with the
33703 \begin_inset CommandInset href
33706 target "http://en.wikipedia.org/wiki/XBoard"
33715 \begin_layout Description
33716 Date This inserts the date in the form
33721 This is a date inserted as external material:
33722 \begin_inset External
33729 \begin_inset space ~
33733 \begin_inset Note Note
33736 \begin_layout Plain Layout
33737 Remove the protected space when bug 4398 is fixed!
33743 \begin_inset Newline newline
33746 The date is not shown within LyX, only in the output.
33747 There are two other methods of inserting a date: Via menu
33749 Insert\SpecialChar \menuseparator
33752 and with the LaTeX command
33759 The different methods are compared in Table
33760 \begin_inset space ~
33764 \begin_inset CommandInset ref
33766 reference "tab:Comparison-of-the"
33773 \begin_layout Description
33774 Dia This template supports diagrams created with the program
33777 \begin_inset CommandInset href
33780 target "http://en.wikipedia.org/wiki/Dia_(software)"
33789 \begin_layout Description
33790 LilyPond This template is used for music notation typeset with the program
33791 \begin_inset Newline linebreak
33797 \begin_inset CommandInset href
33800 target "http://en.wikipedia.org/wiki/LilyPond"
33809 \begin_layout Description
33810 PDFPages With this template you can insert PDF documents to your document.
33811 To insert certain or all pages of a PDF, use the
33821 LaTeX and LyX options
33823 tab according to the template description in the dialog.
33828 option is given, only the first page of the PDF will be inserted.
33831 \begin_layout Description
33832 RasterImage This can be used for bitmap images.
33833 Nearly all popular image formats are supported.
33834 The image can be treated in the
33838 dialog like the images that are usually included via the
33842 dialog as described in section
33843 \begin_inset space ~
33847 \begin_inset CommandInset ref
33849 reference "sec:Graphics-Dialog"
33854 The difference is that only raster images are allowed; that means that
33855 PDF and EPS-images are not supported.
33858 \begin_layout Description
33859 XFig This template supports images created with the program
33862 \begin_inset CommandInset href
33865 target "http://en.wikipedia.org/wiki/Xfig"
33874 \begin_layout Standard
33875 \begin_inset Float table
33881 \begin_layout Plain Layout
33882 \begin_inset Caption
33884 \begin_layout Plain Layout
33885 \begin_inset CommandInset label
33887 name "tab:Comparison-of-the"
33891 Comparison of the date input methods.
33899 \begin_layout Plain Layout
33901 \begin_inset Tabular
33902 <lyxtabular version="3" rows="4" columns="4">
33903 <features tabularvalignment="middle">
33904 <column alignment="center" valignment="top" width="0">
33905 <column alignment="center" valignment="top" width="0">
33906 <column alignment="center" valignment="top" width="0">
33907 <column alignment="center" valignment="top" width="0">
33909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33912 \begin_layout Plain Layout
33918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33921 \begin_layout Plain Layout
33924 External Material\SpecialChar \menuseparator
33930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33933 \begin_layout Plain Layout
33936 Insert\SpecialChar \menuseparator
33942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33945 \begin_layout Plain Layout
33957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33960 \begin_layout Plain Layout
33966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33969 \begin_layout Plain Layout
33975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33978 \begin_layout Plain Layout
33984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33987 \begin_layout Plain Layout
33988 as TeX-Code inset box
33995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33998 \begin_layout Plain Layout
34004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34007 \begin_layout Plain Layout
34013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34016 \begin_layout Plain Layout
34022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34025 \begin_layout Plain Layout
34033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34036 \begin_layout Plain Layout
34042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34045 \begin_layout Plain Layout
34051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34054 \begin_layout Plain Layout
34060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34063 \begin_layout Plain Layout
34082 \begin_layout Standard
34083 When you use the option
34095 dialog, only the path to the inserted file is shown in the output.
34096 \begin_inset Newline newline
34099 External material is displayed in LyX either as a box like this:
34100 \begin_inset Graphics
34101 filename clipart/ExternalMaterialQt4.png
34103 scaleBeforeRotation
34107 or as image, depending on the option
34113 LaTeX and LyX options
34118 \begin_layout Standard
34125 manual explains how you can define your own templates.
34128 \begin_layout Section
34130 \begin_inset CommandInset label
34132 name "sec:Child-Documents"
34137 \begin_inset Index idx
34140 \begin_layout Plain Layout
34141 External Document Parts ! Child Documents
34147 \begin_inset Index idx
34150 \begin_layout Plain Layout
34159 \begin_layout Standard
34160 Child documents are used if you have a long document consisting of several
34161 larger parts or sections.
34162 For maintenance it is often useful and sometimes even required to split
34163 the document into several files that can be revised separately.
34164 The different documents are then the so called
34165 \begin_inset Quotes eld
34169 \begin_inset Quotes erd
34172 , and a master document connects them to print the full document or parts
34174 A child document inherits elements of its master, for example the LaTeX
34175 preamble, the bibliography, and labels for cross-references.
34178 \begin_layout Standard
34179 To be able to work on child documents without the need to open their master,
34180 specify in the child document the master in the menu
34182 Document\SpecialChar \menuseparator
34183 Settings\SpecialChar \menuseparator
34185 \begin_inset space ~
34191 This master document will then be used in the background by LyX when you
34192 edit the child document.
34195 \begin_layout Standard
34196 Included documents are displayed in LyX as a box like this:
34197 \begin_inset Graphics
34198 filename clipart/ChildDocumentQt4.png
34200 scaleBeforeRotation
34204 To include child documents in a master document use the menu
34206 Insert\SpecialChar \menuseparator
34207 File\SpecialChar \menuseparator
34209 \begin_inset space ~
34215 A dialog pops up where you can choose between four include methods:
34218 \begin_layout Description
34219 Include You can include LyX- and LaTeX-documents.
34228 dialog, the included documents will be opened in LyX in a new file tab
34229 so that you can modify them.
34230 \begin_inset Newline newline
34236 \begin_layout Standard
34237 Here is a child document inserted using
34242 \begin_inset CommandInset include
34243 LatexCommand include
34244 filename "DummyDocument1.lyx"
34251 \begin_layout Standard
34252 The section numbering includes the sections of the included files in the
34253 order they are inserted in the master document.
34254 The included example document has for example a subsection that is numbered
34255 as a subsection of this section.
34256 Labels of included documents can be referenced: Subsection
34257 \begin_inset space ~
34261 \begin_inset CommandInset ref
34263 reference "sub:External-Subsection-1"
34270 \begin_layout Standard
34271 The preamble of the child document is ignored; only the preamble of the
34272 master document is used.
34273 Branches in child documents will be ignored by the master document when
34274 the master document does not have a branch with the same name.
34275 Included documents are inserted starting on a new page and ending with
34279 \begin_layout Standard
34280 \begin_inset Note Greyedout
34283 \begin_layout Plain Layout
34288 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34289 the document in case the child document uses another document class than
34290 the master document as this will lead to unexpected outputs.
34298 \begin_layout Description
34299 Input This method is very similar to the Include method.
34300 The differences are:
34304 \begin_layout Itemize
34305 Input files don't start with a new page and don't end with a page break.
34308 \begin_layout Itemize
34309 Input files can be previewed in LyX when
34312 \begin_inset space ~
34317 is enabled in LyX's preferences under
34320 \begin_inset space ~
34324 \begin_inset space ~
34327 feel\SpecialChar \menuseparator
34333 \begin_layout Itemize
34334 You cannot exclude Input files via the menu
34336 Document\SpecialChar \menuseparator
34337 Settings\SpecialChar \menuseparator
34344 \begin_layout Standard
34345 Here is a child document inserted using
34350 \begin_inset CommandInset include
34352 filename "DummyDocument2.lyx"
34359 \begin_layout Description
34360 Verbatim With this method any text file can be included.
34361 The file is shown in the output with its source code; no command used in
34362 the text is invoked.
34363 You can use the option
34365 Mark spaces in output
34367 that displays the character
34368 \begin_inset Quotes eld
34375 \begin_layout Plain Layout
34385 \begin_inset Quotes erd
34388 for every space character in the source code.
34389 The difference from the method via the menu
34391 Insert\SpecialChar \menuseparator
34392 File\SpecialChar \menuseparator
34394 \begin_inset space ~
34399 is that the document content is not shown in LyX.
34402 \begin_layout Standard
34403 Here is a child document inserted as Verbatim:
34404 \begin_inset CommandInset include
34405 LatexCommand verbatiminput
34406 filename "DummyTextDocument.txt"
34411 \begin_inset VSpace bigskip
34414 Here is a child document inserted as Verbatim using the
34416 Mark spaces in output
34419 \begin_inset CommandInset include
34420 LatexCommand verbatiminput*
34421 filename "DummyTextDocument.txt"
34428 \begin_layout Standard
34429 \begin_inset VSpace bigskip
34435 \begin_layout Standard
34436 \begin_inset Note Greyedout
34439 \begin_layout Plain Layout
34444 As you can see in the examples above, the text of the documents included
34449 is not broken at the end of the document lines.
34457 \begin_layout Description
34458 Listings This type is described in chapter
34459 \begin_inset space ~
34463 \begin_inset CommandInset ref
34465 reference "cha:Program-Code-Listings"
34472 \begin_layout Standard
34473 \begin_inset Note Greyedout
34476 \begin_layout Plain Layout
34481 Including the same document twice in a document using different methods
34482 could cause LaTeX-problems.
34490 \begin_layout Standard
34491 If you want to view/export only selected children of your master document,
34492 either because you want to save compiling time or because you want to distribut
34493 e single chapters of the book you are just writing, you can exclude children
34495 This is done via the menu
34497 Document\SpecialChar \menuseparator
34498 Settings\SpecialChar \menuseparator
34502 You can exclude\SpecialChar \slash{}
34503 include children by double-clicking on the
34507 column of the respective child document in the list (note that this only
34508 works for documents embedded via
34509 \begin_inset Quotes eld
34513 \begin_inset Quotes erd
34517 \begin_inset Quotes eld
34521 \begin_inset Quotes erd
34527 Maintain counters and references
34529 is enabled, LyX will assure that all page numbers, references etc.
34530 \begin_inset space ~
34533 are correct as if the whole document was processed.
34534 This is useful if you want the selected sub-documents to look exactly as
34535 in the context of the whole document.
34536 However, LyX needs to process the whole document in the background for
34538 So if you want to save compile time and if counters and references do not
34539 need to be correct, disable this checkbox.
34542 \begin_layout Standard
34543 Alternatively, you can put each included file into a branch.
34547 \begin_layout Plain Layout
34548 Branches are described in section
34561 By enabling\SpecialChar \slash{}
34562 disabling branches you can decide which included files will
34563 appear in the output.
34564 This has the advantage that it also works with Input'ed sub-documents.
34565 However, counters and references will not be maintained with this approach.
34568 \begin_layout Chapter
34569 Program Code Listings
34570 \begin_inset CommandInset label
34572 name "cha:Program-Code-Listings"
34577 \begin_inset Index idx
34580 \begin_layout Plain Layout
34587 \begin_inset Index idx
34590 \begin_layout Plain Layout
34597 \begin_inset Index idx
34600 \begin_layout Plain Layout
34609 \begin_layout Standard
34610 To include and typeset program code you can use the
34614 inset that can be inserted via the menu
34616 Insert\SpecialChar \menuseparator
34625 \begin_inset Index idx
34628 \begin_layout Plain Layout
34629 LaTeX-packages ! listings
34634 provides a powerful and flexible way to insert program source code into
34638 \begin_layout Standard
34639 Right-clicking on a listings inset opens the context menu containing where
34640 you can set the listings format.
34643 \begin_layout Standard
34644 By default, a listing starts a new paragraph in the output.
34645 The placement option
34648 \begin_inset space ~
34653 prints the listing inline like this:
34654 \begin_inset listings
34655 lstparams "language={C++}"
34659 \begin_layout Plain Layout
34667 \begin_inset Newline newline
34674 creates a listings float where you can specify the placement options
34675 \begin_inset Quotes eld
34683 \begin_inset Quotes erd
34687 \begin_inset Quotes eld
34695 \begin_inset Quotes erd
34699 \begin_inset Quotes eld
34707 \begin_inset Quotes erd
34711 \begin_inset Quotes eld
34719 \begin_inset Quotes erd
34722 corresponding to the float placement options described in section
34723 \begin_inset space ~
34727 \begin_inset CommandInset ref
34729 reference "sec:Float-Placement"
34734 The placement options can be mixed and are inserted without any separation,
34736 \begin_inset space \thinspace{}
34740 \begin_inset space \space{}
34744 \begin_inset Quotes eld
34752 \begin_inset Quotes erd
34757 \begin_inset Quotes eld
34761 \begin_inset Quotes erd
34764 has sometimes no effect, but you don't need to use the
34768 option in this case as also non-float listings can have captions and be
34772 \begin_layout Standard
34773 You can add captions to listings with the menu
34775 Insert\SpecialChar \menuseparator
34779 Listings can be referenced like floats: Listing
34780 \begin_inset space ~
34784 \begin_inset CommandInset ref
34786 reference "lst:Example-Listing"
34793 \begin_layout Standard
34794 \begin_inset listings
34795 lstparams "language=Python"
34799 \begin_layout Plain Layout
34801 \begin_inset Caption
34803 \begin_layout Plain Layout
34804 \begin_inset CommandInset label
34806 name "lst:Example-Listing"
34810 Example Listing float
34815 # Example listing float
34818 \begin_layout Plain Layout
34823 \begin_layout Plain Layout
34825 'this is a python function'
34828 \begin_layout Plain Layout
34838 \begin_layout Standard
34839 When you have set a programming language in the listings dialog, the keywords
34840 of this language will be recognized and specially typeset in the output.
34841 In the example listings the Python keyword
34842 \begin_inset Quotes eld
34846 \begin_inset Quotes erd
34849 is recognized and printed bold in the output.
34852 \begin_layout Standard
34853 \begin_inset Note Greyedout
34856 \begin_layout Plain Layout
34861 If you don't get bold keywords when using typewriter fonts, your
34865 font probably doesn't provide a bold shape.
34866 In this case select a different one in the menu
34868 Document\SpecialChar \menuseparator
34869 Settings\SpecialChar \menuseparator
34881 provide bold shapes.)
34889 \begin_layout Standard
34893 \begin_inset space ~
34898 of the listings dialog you can specify the line numbering style.
34899 You can insert a number to specify which lines are numbered in the field
34906 \begin_inset space \thinspace{}
34910 \begin_inset space \space{}
34914 \begin_inset Quotes eld
34918 \begin_inset Quotes erd
34921 , only every 3rd line will be numbered.
34924 \begin_layout Standard
34925 You can furthermore specify a range of lines; only these will then appear
34929 Extended character table
34931 should be used when you use national characters like the German umlauts
34933 \begin_inset Newline newline
34936 Here is an example listing with left line numbering, step
34937 \begin_inset Quotes eld
34941 \begin_inset Quotes erd
34945 \begin_inset Quotes eld
34949 \begin_inset Quotes erd
34953 \begin_inset Quotes eld
34956 Extended character table
34957 \begin_inset Quotes erd
34961 \begin_inset Quotes eld
34965 \begin_inset space ~
34969 \begin_inset space ~
34973 \begin_inset Quotes erd
34977 \begin_inset space \thinspace{}
34981 \begin_inset space \thinspace{}
34987 \begin_layout Standard
34988 \begin_inset listings
34989 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
34993 \begin_layout Plain Layout
34998 \begin_layout Plain Layout
35000 'this is a python function'
35003 \begin_layout Plain Layout
35008 \begin_layout Plain Layout
35013 \begin_layout Plain Layout
35015 'This is a German word: Tschüß'
35018 \begin_layout Plain Layout
35023 \begin_layout Plain Layout
35028 \begin_layout Plain Layout
35030 'this is a python function'
35033 \begin_layout Plain Layout
35043 \begin_layout Standard
35044 When you have tabulators in your listing, you can specify the number of
35045 characters that are spanned by a tabulator in the field
35048 \begin_inset space ~
35056 \begin_layout Standard
35057 \begin_inset Note Greyedout
35060 \begin_layout Plain Layout
35065 Due to a bug in the
35069 package the line numbering is shifted by a line by every previous listing.
35070 That's the reason why the lines 2 and 5 are numbered in the above listing
35071 and not the lines 3 and 6.
35079 \begin_layout Standard
35080 \begin_inset VSpace bigskip
35086 \begin_layout Standard
35087 It is also possible to print lines from a file as listing.
35088 To do this, use the menu
35090 Insert\SpecialChar \menuseparator
35091 File\SpecialChar \menuseparator
35094 and choose the type
35102 \begin_layout Plain Layout
35103 The other child document types are described in section
35104 \begin_inset space ~
35108 \begin_inset CommandInset ref
35110 reference "sec:Child-Documents"
35119 In the child document dialog you can specify the listing parameters in
35121 To show a list of all available parameters, type in a question mark
35122 \begin_inset Quotes eld
35126 \begin_inset Quotes erd
35132 \begin_layout Standard
35133 To reference child document listings, write a label text into the corresponding
35134 field of the child document dialog.
35135 The label can then be referenced using the menu
35137 Insert\SpecialChar \menuseparator
35143 \begin_layout Standard
35145 \begin_inset space ~
35149 \begin_inset CommandInset ref
35151 reference "lst:file-listing"
35155 is an example for a listing of a file; there the lines 10
35156 \begin_inset space \thinspace{}
35160 \begin_inset space \thinspace{}
35163 15 of this LyX file are listed.
35166 \begin_layout Standard
35167 \begin_inset CommandInset include
35168 LatexCommand lstinputlisting
35169 filename "EmbeddedObjects.lyx"
35170 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35177 \begin_layout Standard
35178 \begin_inset VSpace bigskip
35184 \begin_layout Standard
35185 Inserting a formula into a listing can be done the following way:
35188 \begin_layout Enumerate
35189 Open the listings dialog and add
35190 \begin_inset Newline newline
35198 \begin_inset Newline newline
35201 to the field of the
35208 \begin_layout Enumerate
35209 Create a formula outside the listing
35212 \begin_layout Enumerate
35213 Copy the content of the formula (not the formula inset) to the clipboard
35223 \begin_layout Enumerate
35224 In the listing write
35225 \begin_inset Quotes eld
35233 \begin_inset Quotes erd
35236 and copy from the clipboard between the dollar-signs (shortcut
35245 \begin_layout Standard
35246 \begin_inset listings
35247 lstparams "language=Python,mathescape=true"
35251 \begin_layout Plain Layout
35253 \begin_inset Caption
35255 \begin_layout Plain Layout
35256 Example Listing float containing a formula
35261 # Example listing float
35264 \begin_layout Plain Layout
35269 \begin_layout Plain Layout
35282 \begin_layout Plain Layout
35292 \begin_layout Standard
35293 \begin_inset VSpace bigskip
35299 \begin_layout Standard
35300 Global listings settings can be set in the
35302 Document\SpecialChar \menuseparator
35303 Settings\SpecialChar \menuseparator
35307 To get there a list of available options, type in a question mark
35308 \begin_inset Quotes eld
35312 \begin_inset Quotes erd
35318 \begin_layout Standard
35319 For more information about the
35323 package, we refer to its documentation
35324 \begin_inset CommandInset citation
35333 \begin_layout Standard
35334 \begin_inset Newpage newpage
35340 \begin_layout Chapter
35342 Units available in LyX
35343 \begin_inset Index idx
35346 \begin_layout Plain Layout
35353 \begin_inset CommandInset label
35355 name "cha:Units-available-in"
35362 \begin_layout Standard
35363 To understand the units described in this documentation, Table
35364 \begin_inset space ~
35368 \begin_inset CommandInset ref
35370 reference "tab:Units"
35374 explains all units available in LyX.
35377 \begin_layout Standard
35378 \begin_inset Float table
35384 \begin_layout Plain Layout
35385 \begin_inset Caption
35387 \begin_layout Plain Layout
35388 \begin_inset CommandInset label
35402 \begin_layout Plain Layout
35403 \begin_inset VSpace medskip
35409 \begin_layout Plain Layout
35411 \begin_inset Tabular
35412 <lyxtabular version="3" rows="20" columns="2">
35413 <features tabularvalignment="middle">
35414 <column alignment="center" valignment="top" width="0">
35415 <column alignment="center" valignment="top" width="0">
35417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35420 \begin_layout Plain Layout
35426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35429 \begin_layout Plain Layout
35437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35440 \begin_layout Plain Layout
35446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35449 \begin_layout Plain Layout
35457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35460 \begin_layout Plain Layout
35466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35469 \begin_layout Plain Layout
35477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35480 \begin_layout Plain Layout
35486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35489 \begin_layout Plain Layout
35497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35500 \begin_layout Plain Layout
35506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35509 \begin_layout Plain Layout
35511 \begin_inset space \thinspace{}
35515 \begin_inset space \thinspace{}
35525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35528 \begin_layout Plain Layout
35534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35537 \begin_layout Plain Layout
35539 \begin_inset space \thinspace{}
35543 \begin_inset space \thinspace{}
35553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35556 \begin_layout Plain Layout
35562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35565 \begin_layout Plain Layout
35566 scaled point (65536
35567 \begin_inset space \thinspace{}
35571 \begin_inset space \thinspace{}
35581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35584 \begin_layout Plain Layout
35590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35593 \begin_layout Plain Layout
35595 \begin_inset space \thinspace{}
35599 \begin_inset space \thinspace{}
35609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35612 \begin_layout Plain Layout
35618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35621 \begin_layout Plain Layout
35623 \begin_inset space \thinspace{}
35627 \begin_inset Formula $\approx$
35631 \begin_inset space \thinspace{}
35641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35644 \begin_layout Plain Layout
35650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35653 \begin_layout Plain Layout
35655 \begin_inset space \thinspace{}
35659 \begin_inset space \thinspace{}
35669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35672 \begin_layout Plain Layout
35678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35681 \begin_layout Plain Layout
35682 % of original image width
35689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35692 \begin_layout Plain Layout
35698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35701 \begin_layout Plain Layout
35709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35712 \begin_layout Plain Layout
35718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35721 \begin_layout Plain Layout
35729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35732 \begin_layout Plain Layout
35738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35741 \begin_layout Plain Layout
35749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35752 \begin_layout Plain Layout
35758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35761 \begin_layout Plain Layout
35769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35772 \begin_layout Plain Layout
35778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35781 \begin_layout Plain Layout
35789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35792 \begin_layout Plain Layout
35798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35801 \begin_layout Plain Layout
35809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35812 \begin_layout Plain Layout
35818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35821 \begin_layout Plain Layout
35833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35836 \begin_layout Plain Layout
35842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35845 \begin_layout Plain Layout
35857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35860 \begin_layout Plain Layout
35866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35869 \begin_layout Plain Layout
35871 \begin_inset space \thinspace{}
35875 \begin_inset space \thinspace{}
35896 \begin_layout Chapter
35897 Output File Formats with Graphics
35898 \begin_inset CommandInset label
35900 name "cha:Output-File-Formats"
35907 \begin_layout Section
35909 \begin_inset Index idx
35912 \begin_layout Plain Layout
35919 \begin_inset Index idx
35922 \begin_layout Plain Layout
35927 \begin_layout Plain Layout
35938 \begin_layout Plain Layout
35953 \begin_layout Standard
35954 This file type has the extension
35955 \begin_inset Quotes eld
35963 \begin_inset Quotes erd
35968 \begin_inset Quotes eld
35972 \begin_inset Quotes erd
35975 (DVI), because it is completely portable; you can move them from one machine
35976 to another without needing to do any sort of conversion.
35977 At the time when this file-format was developed, this was no matter of
35979 DVIs are used for quick previews and as pre-stage for other output formats,
35983 \begin_layout Standard
35984 \begin_inset Note Greyedout
35987 \begin_layout Plain Layout
35992 DVI-files do not contain images; they will only be a linked.
35997 So don't forget this, if you move your
36001 file to another computer.
36002 This property can also slow down your computer when you view the DVI, because
36003 the DVI-viewer has to convert the image in the background to make it visible
36004 when you scroll in the DVI.
36005 So it is recommended that you use PDF for files with many images.
36008 \begin_layout Standard
36009 You can export your document to DVI by using the menu
36011 File\SpecialChar \menuseparator
36012 Export\SpecialChar \menuseparator
36016 You can view your document as DVI via the
36020 menu or by using the toolbar button
36021 \begin_inset Graphics
36022 filename ../images/buffer-view_dvi.png
36024 scaleBeforeRotation
36031 \begin_layout Section
36033 \begin_inset CommandInset label
36035 name "sec:PostScript"
36040 \begin_inset Index idx
36043 \begin_layout Plain Layout
36044 File Formats ! PostScript
36050 \begin_inset Index idx
36053 \begin_layout Plain Layout
36058 \begin_layout Plain Layout
36069 \begin_layout Plain Layout
36084 \begin_layout Standard
36085 This file type has the extension
36086 \begin_inset Quotes eld
36094 \begin_inset Quotes erd
36098 PostScript was developed by the company
36102 as a printer language.
36103 The file therefore contains commands that the printer uses to print the
36105 PostScript can be seen as a
36106 \begin_inset Quotes eld
36109 programming language
36110 \begin_inset Quotes erd
36113 ; you can calculate with it and draw diagrams and images
36117 \begin_layout Plain Layout
36118 If you are interested to learn more about this, have a look at the LaTeX-package
36124 \begin_inset CommandInset citation
36136 Due to this ability, the files are often bigger than PDFs.
36139 \begin_layout Standard
36140 PostScript can only contain images in the format
36141 \begin_inset Quotes eld
36144 Encapsulated PostScript
36145 \begin_inset Quotes erd
36148 (EPS, file extension
36149 \begin_inset Quotes eld
36157 \begin_inset Quotes erd
36161 As LyX allows you to use any known image format in your document, it has
36162 to convert images in the background to EPS.
36164 \begin_inset space ~
36168 \begin_inset space ~
36171 images in your document, LyX has to do 50
36172 \begin_inset space ~
36175 conversions whenever you view or export your document.
36176 This will slow down your work flow with LyX drastically.
36177 So if you plan to use PostScript, you can insert your images directly as
36178 EPS to avoid this problem.
36181 \begin_layout Standard
36182 You can export your document to PostScript using the menu
36184 File\SpecialChar \menuseparator
36185 Export\SpecialChar \menuseparator
36189 You can view your document as PostScript via the
36193 menu or by using the toolbar button
36194 \begin_inset Graphics
36195 filename ../images/buffer-view_ps.png
36197 scaleBeforeRotation
36204 \begin_layout Section
36206 \begin_inset Index idx
36209 \begin_layout Plain Layout
36216 \begin_inset Index idx
36219 \begin_layout Plain Layout
36228 \begin_layout Standard
36229 This file type has the extension
36230 \begin_inset Quotes eld
36238 \begin_inset Quotes erd
36243 \begin_inset Quotes eld
36246 Portable Document Format
36247 \begin_inset Quotes erd
36250 (PDF) was developed by
36254 as a derivative of PostScript.
36255 It is more compressed and it uses fewer commands than PostScript.
36257 \begin_inset Quotes eld
36261 \begin_inset Quotes erd
36264 implies, it can be processed at any computer system and the printed output
36265 looks exactly the same.
36268 \begin_layout Standard
36269 PDF can contain images in its own PDF format, in the format
36270 \begin_inset Quotes eld
36273 Joint Photographic Experts Group
36274 \begin_inset Quotes erd
36277 (JPG, file extension
36278 \begin_inset Quotes eld
36286 \begin_inset Quotes erd
36290 \begin_inset Quotes eld
36298 \begin_inset Quotes erd
36301 ), and in the format
36302 \begin_inset Quotes eld
36305 Portable Network Graphics
36306 \begin_inset Quotes erd
36309 (PNG, file extension
36310 \begin_inset Quotes eld
36318 \begin_inset Quotes erd
36322 Nevertheless you can use any other image format, because LyX converts them
36323 in the background to one of these formats.
36324 But as described in the section about PostScript, the image conversion
36325 will slow down your work flow.
36326 So it is recommended that you use images in one of the three mentioned
36330 \begin_layout Standard
36331 You can export your document to PDF via the menu
36333 File\SpecialChar \menuseparator
36336 in three different ways:
36339 \begin_layout Description
36341 \begin_inset space ~
36344 (ps2pdf) This uses the program
36348 that creates a PDF from a PostScript-version of your file.
36349 The PostScript-version is produced by the program
36353 which uses a DVI-version as intermediate step.
36354 So this export variant consists of three conversions.
36357 \begin_layout Description
36359 \begin_inset space ~
36362 (dvipdfm) This uses the program
36366 that converts your file in the background to DVI and in a second step to
36370 \begin_layout Description
36372 \begin_inset space ~
36375 (pdflatex) This uses the program
36379 that converts your file directly to PDF.
36382 \begin_layout Standard
36383 It is recommended that you use
36386 \begin_inset space ~
36395 supports all features of actual PDF-versions, is quick and works stable.
36400 is not under development and therefore a bit outdated.
36403 \begin_layout Standard
36404 You can view your document as PDF via the
36408 menu or by using the toolbar button
36409 \begin_inset Graphics
36410 filename ../images/buffer-view_pdf2.png
36412 scaleBeforeRotation
36423 \begin_inset space ~
36431 \begin_layout Chapter
36432 Explanation of Equation
36433 \begin_inset space ~
36437 \begin_inset CommandInset ref
36444 \begin_inset CommandInset label
36446 name "cha:Explanation-of-Equation"
36453 \begin_layout Standard
36454 We can calculate the total width of
36459 \begin_inset Formula $W_{\mathrm{tot\, n}}$
36465 \begin_layout Standard
36466 \begin_inset Formula
36468 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
36474 \begin_inset Formula $W_{g\, n}$
36477 is the given width of all cells,
36483 is the LaTeX-length between the cell text and the cell border (its default
36485 \begin_inset space \thinspace{}
36495 is the thickness of the cell border line, the default is 0.4
36496 \begin_inset space \thinspace{}
36502 \begin_layout Standard
36504 \begin_inset space ~
36508 \begin_inset CommandInset ref
36510 reference "eq:Wtot_n"
36514 , the total width of a multicolumn
36515 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
36521 \begin_layout Standard
36522 \begin_inset Formula
36524 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
36532 \begin_layout Standard
36533 By setting equation
36534 \begin_inset space ~
36538 \begin_inset CommandInset ref
36540 reference "eq:Wtot_n"
36545 \begin_inset CommandInset ref
36547 reference "eq:Wtot_mult"
36551 equal we can calculate the needed given width
36552 \begin_inset Formula $W_{g\, n}$
36559 columns are spanned, so that each column has a total width of
36560 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
36566 \begin_layout Standard
36567 \begin_inset Formula
36569 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
36577 \begin_layout Bibliography
36578 \labelwidthstring Bibliography
36579 \begin_inset CommandInset bibitem
36580 LatexCommand bibitem
36581 key "latexcompanion"
36585 Frank Mittelbach and Michel Goossens:
36587 The LaTeX Companion Second Edition.
36590 Addison-Wesley, 2004
36593 \begin_layout Bibliography
36594 \labelwidthstring Bibliography
36595 \begin_inset CommandInset bibitem
36596 LatexCommand bibitem
36601 Helmut Kopka and Patrick W.
36604 A Guide to LaTeX Fourth Edition.
36607 Addison-Wesley, 2003
36610 \begin_layout Bibliography
36611 \labelwidthstring Bibliography
36612 \begin_inset CommandInset bibitem
36613 LatexCommand bibitem
36620 LaTeX: A Document Preparation System.
36623 Addison-Wesley, second edition, 1994
36626 \begin_layout Bibliography
36627 \labelwidthstring Bibliography
36628 \begin_inset CommandInset bibitem
36629 LatexCommand bibitem
36634 Documentation of the LaTeX-package
36637 \begin_inset CommandInset href
36640 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
36647 \begin_inset Index idx
36650 \begin_layout Plain Layout
36651 LaTeX-packages ! booktabs
36659 \begin_layout Bibliography
36660 \labelwidthstring Bibliography
36661 \begin_inset CommandInset bibitem
36662 LatexCommand bibitem
36667 Documentation of the LaTeX-package
36670 \begin_inset CommandInset href
36673 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
36680 \begin_inset Index idx
36683 \begin_layout Plain Layout
36684 LaTeX-packages ! caption
36692 \begin_layout Bibliography
36693 \labelwidthstring Bibliography
36694 \begin_inset CommandInset bibitem
36695 LatexCommand bibitem
36700 Documentation of the LaTeX-package
36703 \begin_inset CommandInset href
36706 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
36713 \begin_inset Index idx
36716 \begin_layout Plain Layout
36717 LaTeX-packages ! endfloat
36725 \begin_layout Bibliography
36726 \labelwidthstring Bibliography
36727 \begin_inset CommandInset bibitem
36728 LatexCommand bibitem
36733 Documentation of the LaTeX-package
36736 \begin_inset CommandInset href
36739 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
36746 \begin_inset Index idx
36749 \begin_layout Plain Layout
36750 LaTeX-packages ! wrapfig
36754 \begin_layout Plain Layout
36771 \begin_layout Bibliography
36772 \labelwidthstring Bibliography
36773 \begin_inset CommandInset bibitem
36774 LatexCommand bibitem
36779 Documentation of the LaTeX-package
36782 \begin_inset CommandInset href
36785 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
36792 \begin_inset Index idx
36795 \begin_layout Plain Layout
36796 LaTeX-packages ! footmisc
36804 \begin_layout Bibliography
36805 \labelwidthstring Bibliography
36806 \begin_inset CommandInset bibitem
36807 LatexCommand bibitem
36812 Documentation of the LaTeX-package
36815 \begin_inset CommandInset href
36818 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
36825 \begin_inset Index idx
36828 \begin_layout Plain Layout
36829 LaTeX-packages ! hyperref
36837 \begin_layout Bibliography
36838 \labelwidthstring Bibliography
36839 \begin_inset CommandInset bibitem
36840 LatexCommand bibitem
36845 Documentation of the LaTeX-package
36848 \begin_inset CommandInset href
36851 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
36858 \begin_inset Index idx
36861 \begin_layout Plain Layout
36862 LaTeX-packages ! hyperref
36870 \begin_layout Bibliography
36871 \labelwidthstring Bibliography
36872 \begin_inset CommandInset bibitem
36873 LatexCommand bibitem
36878 Documentation of the LaTeX-package
36881 \begin_inset CommandInset href
36884 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
36891 \begin_inset Index idx
36894 \begin_layout Plain Layout
36895 LaTeX-packages ! KOMA-Script
36903 \begin_layout Bibliography
36904 \labelwidthstring Bibliography
36905 \begin_inset CommandInset bibitem
36906 LatexCommand bibitem
36911 Documentation of the LaTeX-package
36914 \begin_inset CommandInset href
36917 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
36924 \begin_inset Index idx
36927 \begin_layout Plain Layout
36928 LaTeX-packages ! listings
36936 \begin_layout Bibliography
36937 \labelwidthstring Bibliography
36938 \begin_inset CommandInset bibitem
36939 LatexCommand bibitem
36944 Documentation of the LaTeX-package
36947 \begin_inset CommandInset href
36950 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
36957 \begin_inset Index idx
36960 \begin_layout Plain Layout
36961 LaTeX-packages ! marginnote
36969 \begin_layout Bibliography
36970 \labelwidthstring Bibliography
36971 \begin_inset CommandInset bibitem
36972 LatexCommand bibitem
36977 Documentation of the LaTeX-package
36980 \begin_inset CommandInset href
36983 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
36990 \begin_inset CommandInset href
36993 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
36998 \begin_inset Index idx
37001 \begin_layout Plain Layout
37002 LaTeX-packages ! lettrine
37010 \begin_layout Bibliography
37011 \labelwidthstring Bibliography
37012 \begin_inset CommandInset bibitem
37013 LatexCommand bibitem
37018 Web page of the LaTeX-package
37021 \begin_inset CommandInset href
37024 target "http://tug.org/PSTricks/"
37031 \begin_inset Index idx
37034 \begin_layout Plain Layout
37035 LaTeX-packages ! PSTricks
37043 \begin_layout Bibliography
37044 \labelwidthstring Bibliography
37045 \begin_inset CommandInset bibitem
37046 LatexCommand bibitem
37051 Documentation of the LaTeX-package
37054 \begin_inset CommandInset href
37057 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
37064 \begin_inset Index idx
37067 \begin_layout Plain Layout
37068 LaTeX-packages ! sidecap
37076 \begin_layout Bibliography
37077 \labelwidthstring Bibliography
37078 \begin_inset CommandInset bibitem
37079 LatexCommand bibitem
37084 Documentation of the LaTeX-package
37087 \begin_inset CommandInset href
37090 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37097 \begin_inset Index idx
37100 \begin_layout Plain Layout
37101 LaTeX-packages ! prettyref
37109 \begin_layout Bibliography
37110 \labelwidthstring Bibliography
37111 \begin_inset CommandInset bibitem
37112 LatexCommand bibitem
37117 Documentation of the LaTeX-package
37120 \begin_inset CommandInset href
37123 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
37130 \begin_inset Index idx
37133 \begin_layout Plain Layout
37134 LaTeX-packages ! refstyle
37142 \begin_layout Bibliography
37143 \labelwidthstring Bibliography
37144 \begin_inset CommandInset bibitem
37145 LatexCommand bibitem
37151 \begin_inset CommandInset href
37154 target "http://wiki.lyx.org/LyX/NewInLyX20"
37158 about new features in
37165 \begin_layout Standard
37166 \begin_inset CommandInset index_print
37167 LatexCommand printindex