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
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used to have extra space in table cells
85 \@ifundefined{extrarowheight}
86 {\usepackage{array}}{}
87 \setlength{\extrarowheight}{2pt}
89 % used for customized tables
92 {>{\centering\hspace{0pt}}m{#1}}
95 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
98 {>{\columncolor{#1}\hspace{0pt}}c}
100 \newcolumntype{V}{!{\vrule width 1.5pt}}
102 \newcolumntype{W}{!{\color{green}\vline}}
105 % insert additional vertical space of
106 % 1.5 mm between footnotes
108 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
110 % number algorithm floats within chapters
111 \numberwithin{algorithm}{chapter}
113 % ------------------------------------
114 % used to check for needed LaTeX packages
117 % check for package arydshln
118 % used for tables with dashed lines
119 \newboolean{arydshln}
120 \IfFileExists{arydshln.sty}
121 {\usepackage{arydshln}
122 \setboolean{arydshln}{true}}
123 {\setboolean{arydshln}{false}}
125 % check for package marginnote
126 % used for margin notes
127 \newboolean{marginnote}
128 \IfFileExists{marginnote.sty}
129 {\usepackage{marginnote}
130 \let\marginpar\marginnote
131 \setboolean{marginnote}{true}}
132 {\setboolean{marginnote}{false}}
134 % check for package sidecap
135 % used for captions on the side
137 \IfFileExists{sidecap.sty}
138 {\usepackage{sidecap}
139 \setboolean{sidecap}{true}}
140 {\setboolean{sidecap}{false}}
143 % used for surrounded fixed objects
144 \newboolean{picinpar}
145 \IfFileExists{picinpar.sty}
146 {\usepackage{picinpar}
147 \setboolean{picinpar}{true}}
148 {\setboolean{picinpar}{false}}
151 \newboolean{lettrine}
152 \IfFileExists{lettrine.sty}
153 {\usepackage{lettrine}
154 \setboolean{lettrine}{true}}
155 {\setboolean{lettrine}{false}}
157 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
158 \use_default_options false
162 \maintain_unincluded_children false
164 \language_package default
169 \font_typewriter default
170 \font_default_family default
171 \use_non_tex_fonts false
178 \default_output_format default
180 \bibtex_command default
181 \index_command default
185 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
186 \pdf_author "LyX Team, Uwe Stöhr"
187 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
188 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
190 \pdf_bookmarksnumbered true
191 \pdf_bookmarksopen true
192 \pdf_bookmarksopenlevel 1
193 \pdf_breaklinks false
197 \pdf_pdfusetitle false
198 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
208 \paperorientation portrait
211 \notefontcolor #0000ff
218 \paragraph_separation skip
220 \quotes_language english
223 \paperpagestyle default
227 \tracking_changes false
228 \output_changes false
231 \html_be_strict false
237 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
246 \begin_layout Plain Layout
248 If you have comments or error corrections, please send them to the LyX Documenta
250 \begin_inset CommandInset href
252 name "lyx-docs@lists.lyx.org"
253 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
264 \begin_inset Note Note
267 \begin_layout Plain Layout
274 \begin_inset Newline newline
278 \begin_inset Newline newline
286 \begin_layout Standard
287 \begin_inset CommandInset toc
288 LatexCommand tableofcontents
295 \begin_layout Standard
296 \begin_inset Note Note
299 \begin_layout Plain Layout
300 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
311 lettrine, marginnote, picinpar
318 If they are not installed you can export the document anyway but the sections
319 where the packages are required won't appear in the output.
322 \begin_layout Plain Layout
323 The latest PDF-version of this document can be found here:
324 \begin_inset Newline newline
329 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
337 \begin_layout Chapter
339 \begin_inset Index idx
342 \begin_layout Plain Layout
349 \begin_inset Index idx
352 \begin_layout Plain Layout
357 \begin_layout Plain Layout
368 \begin_layout Plain Layout
383 \begin_layout Section
385 \begin_inset Index idx
388 \begin_layout Plain Layout
389 Figures ! Graphics Dialog
395 \begin_inset CommandInset label
397 name "sec:Graphics-Dialog"
404 \begin_layout Standard
405 To insert an image into your document, place the cursor at the text position
406 you want and click on the toolbar icon
411 arg "dialog-show-new-inset graphics"
418 Insert\SpecialChar \menuseparator
422 Then a dialog will appear to choose the file to load.
423 The image will appear in the output exactly at the position where it is
427 \begin_layout Standard
428 The graphics dialog can be called at any time by clicking on an image.
429 This dialog has three tabs:
432 \begin_layout Description
437 Here you can choose an image file and adjust its appearance in the output.
438 The available units for the image size are explained in appendix
443 \begin_inset CommandInset ref
445 reference "cha:Units-available-in"
450 \begin_inset Newline newline
454 \begin_inset Index idx
457 \begin_layout Plain Layout
463 You can rotate images counter-clockwise by setting a rotation angle and
465 The image will also be rotated inside LyX.
466 \begin_inset Newline newline
470 \begin_inset Index idx
473 \begin_layout Plain Layout
479 Images can be scaled by using a percentage value or by setting the width
480 and height explicitly.
481 If you set only the width or only the height, the other size will be determined
483 If you set both, then the image will be transformed to the given size,
484 possibly distorting it.
485 To prevent the image from distortion, use the option
487 Maintain aspect ratio
490 The image will then be scaled so that its width and height don't exceed
491 the specified dimensions.
492 \begin_inset Newline newline
495 Images can be opened in a program of your choice by right-clicking on it
496 and choosing the entry
505 The program can be set for every image format in the file format settings
506 in LyX's preferences.
509 \begin_layout Description
514 Alternatively to the usage of scaling units it is possible to set image
515 coordinates to adjust the height and width of the image in the output.
516 The coordinates can also be calculated automatically by pressing the button
546 will only print the image region within the given coordinates.
547 Normally you don't need to take care about image coordinates and can ignore
551 \begin_layout Description
568 In this tab you can modify the appearance of the image within LyX and LaTeX
569 experts can specify additional LaTeX options.
570 \begin_inset Newline newline
581 makes the image appear in the output only as a frame with the size of the
583 \begin_inset Newline newline
602 option only affects zipped EPS-graphics, e.
603 \begin_inset space \thinspace{}
607 \begin_inset space \space{}
615 When the option is used the images will not be unzipped on export, since
616 LaTeX can handle them as they are.
617 \begin_inset Newline newline
620 Zipped EPS-graphics are useful to save disk space when you choose PostScript
621 as output format, see appendix
626 \begin_inset CommandInset ref
628 reference "sec:PostScript"
633 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
635 \begin_inset Newline newline
643 \begin_inset Newline newline
648 zgrep %%Bounding x.eps.gz > x.eps.bb
651 \begin_inset Newline newline
654 The second command creates the bounding box file
655 \begin_inset Quotes eld
659 \begin_inset Quotes erd
662 that is needed by LaTeX for zipped graphics.
663 \begin_inset Newline newline
674 you can define or join an image settings group.
675 \begin_inset Index idx
678 \begin_layout Plain Layout
679 Figures ! Settings grouping
684 Images within such a group share their settings, so adjusting one image
685 of the group automatically also adjusts all other images of the group in
687 So you can for example change the size for a bunch of images without the
688 need to manually change each of them.
689 Joining an existing group can also be done using the context menu of the
690 image by checking the name of the desired group.
693 \begin_layout Standard
694 \begin_inset VSpace bigskip
700 \begin_layout Standard
701 This is an example image in EPS format
705 \begin_layout Plain Layout
706 Image formats are explained in section
711 \begin_inset CommandInset ref
713 reference "sec:Image-Formats"
722 within a separate, horizontally centered paragraph:
725 \begin_layout Standard
727 \begin_inset Graphics
728 filename clipart/mobius.eps
738 \begin_layout Standard
739 This is the same image like the one above but in draft mode:
742 \begin_layout Standard
744 \begin_inset Graphics
745 filename clipart/mobius.eps
756 \begin_layout Standard
757 \begin_inset Newpage newpage
763 \begin_layout Section
765 \begin_inset CommandInset label
767 name "sec:Figure-Floats"
772 \begin_inset Index idx
775 \begin_layout Plain Layout
782 \begin_inset Index idx
785 \begin_layout Plain Layout
794 \begin_layout Standard
795 For general explanations about floats, have a look at section
800 \begin_inset CommandInset ref
802 reference "sec:FloatIntroduction"
809 \begin_layout Standard
815 arg "float-insert figure"
822 Insert\SpecialChar \menuseparator
823 Float\SpecialChar \menuseparator
826 inserts a float with a caption that has the label
827 \begin_inset Quotes eld
835 \begin_inset Quotes erd
838 (# is the actual number).
839 You can insert the image above the caption, like in Figure
844 \begin_inset CommandInset ref
846 reference "fig:kill-plat"
850 or below the caption, like in Figure
855 \begin_inset CommandInset ref
857 reference "fig:escher"
862 More about caption placement is described in section
867 \begin_inset CommandInset ref
869 reference "sec:Caption-Placement"
876 \begin_layout Standard
877 \begin_inset Float figure
882 \begin_layout Plain Layout
884 \begin_inset Graphics
885 filename clipart/platypus.eps
895 \begin_layout Plain Layout
898 \begin_layout Plain Layout
899 \begin_inset CommandInset label
905 A severely distorted platypus in a float.
918 \begin_layout Standard
919 \begin_inset Float figure
924 \begin_layout Plain Layout
927 \begin_layout Plain Layout
928 \begin_inset CommandInset label
943 \begin_layout Plain Layout
945 \begin_inset Graphics
946 filename clipart/escher-lsd.eps
961 \begin_layout Standard
962 \begin_inset Index idx
965 \begin_layout Plain Layout
966 References ! to Figures
976 \begin_inset CommandInset ref
978 reference "fig:kill-plat"
983 \begin_inset CommandInset ref
985 reference "fig:escher"
989 are examples of referenced figures.
990 Figures can be referenced in the text by referencing their label.
991 To do this insert a label in the caption using the menu
993 Insert\SpecialChar \menuseparator
996 or the toolbar button
1007 You can now refer to the label using the menu
1009 Insert\SpecialChar \menuseparator
1011 \begin_inset space ~
1016 or the toolbar button
1021 arg "dialog-show-new-inset ref"
1027 It is important to use references to floats, rather than using vague references
1029 \begin_inset Quotes eld
1033 \begin_inset Quotes erd
1036 , because LaTeX will reposition the floats in the final document and it
1038 \begin_inset Quotes eld
1042 \begin_inset Quotes erd
1046 \begin_inset Newline newline
1049 Referencing is explained in detail in section
1050 \begin_inset space ~
1054 \begin_inset CommandInset ref
1056 reference "sec:Referencing-Floats"
1063 \begin_layout Standard
1064 Normally only one image is inserted to a figure float, but sometimes you
1065 might want to use two images with separate subcaptions.
1066 This can be done by inserting image floats into existing image floats.
1067 Note that only the main caption of the float is added to the List of Figures.
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "fig:Two-distorted-images"
1079 is an example of a figure float with two images set side by side.
1080 You can also set the images one below the other.
1082 \begin_inset space ~
1086 \begin_inset CommandInset ref
1088 reference "fig:Undefinable-structure"
1093 \begin_inset CommandInset ref
1095 reference "fig:A-Platypus"
1102 \begin_layout Standard
1103 \begin_inset Float figure
1108 \begin_layout Plain Layout
1109 \begin_inset space \hfill{}
1113 \begin_inset Float figure
1118 \begin_layout Plain Layout
1119 \begin_inset Caption
1121 \begin_layout Plain Layout
1122 \begin_inset CommandInset label
1124 name "fig:Undefinable-structure"
1128 Undefinable structure.
1136 \begin_layout Plain Layout
1137 \begin_inset Graphics
1138 filename clipart/escher-lsd.eps
1151 \begin_inset space \hfill{}
1155 \begin_inset Float figure
1160 \begin_layout Plain Layout
1161 \begin_inset Caption
1163 \begin_layout Plain Layout
1164 \begin_inset CommandInset label
1166 name "fig:A-Platypus"
1178 \begin_layout Plain Layout
1179 \begin_inset Graphics
1180 filename clipart/platypus.eps
1193 \begin_inset space \hfill{}
1199 \begin_layout Plain Layout
1200 \begin_inset Caption
1202 \begin_layout Plain Layout
1203 \begin_inset CommandInset label
1205 name "fig:Two-distorted-images"
1210 \begin_inset CommandInset label
1212 name "fig2:Two-distorted-images-2"
1216 Two distorted images.
1217 Both images are in the image settings group named
1218 \begin_inset Quotes eld
1222 \begin_inset Quotes erd
1238 \begin_layout Standard
1239 \begin_inset Newpage newpage
1245 \begin_layout Section
1247 \begin_inset CommandInset label
1249 name "sec:Image-Formats"
1254 \begin_inset Index idx
1257 \begin_layout Plain Layout
1264 \begin_inset Index idx
1267 \begin_layout Plain Layout
1268 Figures ! Image Formats
1276 \begin_layout Standard
1277 You can insert images in any known file format.
1278 But as explained in appendix
1279 \begin_inset space ~
1283 \begin_inset CommandInset ref
1285 reference "cha:Output-File-Formats"
1289 , each output document format allows only a few image formats.
1290 LyX uses therefore the program
1294 in the background to convert the images to the right format.
1295 To increase your work flow by avoiding these conversions in the background,
1296 you can use only the image formats that can directly be embedded in the
1298 The output file formats are explained in appendix
1299 \begin_inset space ~
1303 \begin_inset CommandInset ref
1305 reference "cha:Output-File-Formats"
1312 \begin_layout Standard
1313 Similar to fonts there are two types of image formats:
1316 \begin_layout Description
1318 \begin_inset space ~
1321 images consist of pixel values, often in a compressed form.
1322 They are therefore not fully scalable and look pixelated in large zooms.
1323 Well-known bitmap image formats are
1324 \begin_inset Quotes eld
1327 Graphics Interchange Format
1328 \begin_inset Quotes erd
1331 (GIF, file extension
1332 \begin_inset Quotes eld
1340 \begin_inset Quotes erd
1344 \begin_inset Index idx
1347 \begin_layout Plain Layout
1352 \begin_layout Plain Layout
1363 \begin_layout Plain Layout
1376 \begin_inset Quotes eld
1379 Portable Network Graphics
1380 \begin_inset Quotes erd
1383 (PNG, file extension
1384 \begin_inset Quotes eld
1392 \begin_inset Quotes erd
1396 \begin_inset Index idx
1399 \begin_layout Plain Layout
1404 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1428 \begin_inset Quotes eld
1431 Joint Photographic Experts Group
1432 \begin_inset Quotes erd
1435 (JPG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Quotes eld
1456 \begin_inset Quotes erd
1460 \begin_inset Index idx
1463 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1494 \begin_layout Description
1496 \begin_inset space ~
1499 images consist of vectors and can therefore be scaled to any size without
1501 The scaling ability is necessary if you want to create presentations, because
1502 presentations are always scaled by the video projector.
1503 Scaling is also useful for online documents to let the user zoom into diagrams.
1504 \begin_inset Newline newline
1507 Well-known scalable image formats are
1508 \begin_inset Quotes eld
1511 Scalable Vector Graphics
1512 \begin_inset Quotes erd
1515 (SVG, file extension
1516 \begin_inset Quotes eld
1524 \begin_inset Quotes erd
1528 \begin_inset Index idx
1531 \begin_layout Plain Layout
1536 \begin_layout Plain Layout
1547 \begin_layout Plain Layout
1560 \begin_inset Quotes eld
1563 Encapsulated PostScript
1564 \begin_inset Quotes erd
1567 (EPS, file extension
1568 \begin_inset Quotes eld
1576 \begin_inset Quotes erd
1580 \begin_inset Index idx
1583 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1615 Portable Document Format
1616 \begin_inset Quotes erd
1619 (PDF, file extension
1620 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1632 \begin_inset Index idx
1635 \begin_layout Plain Layout
1642 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 (WMF, file extension
1650 \begin_inset Quotes eld
1658 \begin_inset Quotes erd
1662 \begin_inset Index idx
1665 \begin_layout Plain Layout
1670 \begin_layout Plain Layout
1681 \begin_layout Plain Layout
1695 \begin_inset Quotes eld
1699 \begin_inset Quotes erd
1702 , because you can convert any bitmap image to a PDF or EPS-image and the
1703 result will still be a bitmap image.
1704 In such cases only a header with the image properties is added to the original
1709 \begin_layout Plain Layout
1710 In the case of PDF, the original image is additionally compressed.
1716 The PDF-files generated by
1720 are for example bitmap images.
1723 \begin_layout Standard
1724 Normally it is not possible to convert a bitmap image into a scalable one,
1726 Only the image formats PDF and EPS can directly be embedded to PDF and
1727 PostScript output files, respectively.
1728 SVG and WMF-images are recalculated to bitmaps when the output file is
1729 generated because there is currently no adequate WMF/SVG
1730 \begin_inset Formula $\to$
1733 PDF/EPS converter available.
1736 \begin_layout Chapter
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1750 \begin_layout Section
1752 \begin_inset Index idx
1755 \begin_layout Plain Layout
1756 Table ! Introduction
1764 \begin_layout Standard
1765 You can insert a table using either the toolbar button
1768 arg "tabular-insert"
1773 Insert\SpecialChar \menuseparator
1777 The toolbar button offers you a graphical selection: move the mouse to
1778 set the column/row number of the table that should be created and then
1779 press a mouse button.
1780 When you use the menu to create a table, a dialog will appear, asking you
1781 for the number of rows and columns.
1782 \begin_inset Newline newline
1785 The default table has lines around any cell and the first row appears separated
1786 from the rest of the table.
1787 This separation occurs due to a double line: The cells of the first row
1788 have a line below them and the cells of the second row have a line above
1790 Here is an example table:
1793 \begin_layout Standard
1795 \begin_inset Tabular
1796 <lyxtabular version="3" rows="4" columns="4">
1797 <features tabularvalignment="middle">
1798 <column alignment="center" valignment="top" width="0">
1799 <column alignment="center" valignment="top" width="0">
1800 <column alignment="center" valignment="top" width="0">
1801 <column alignment="center" valignment="top" width="0">
1803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1833 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1842 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1853 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1880 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1889 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1900 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1927 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1936 \begin_layout Plain Layout
1944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1947 \begin_layout Plain Layout
1962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1965 \begin_layout Plain Layout
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1974 \begin_layout Plain Layout
1980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1983 \begin_layout Plain Layout
1997 \begin_layout Section
1999 \begin_inset Index idx
2002 \begin_layout Plain Layout
2011 \begin_layout Standard
2012 You can alter a table by clicking on it with the right mouse button, which
2013 brings up the table dialog.
2014 Here you can adjust the settings of that cell and row/column respectively
2015 where the cursor is currently placed.
2016 Most of the dialog options also work on selections.
2017 This means if you select more cells, columns or rows, the action is done
2018 for the whole selection.
2019 Note that there is a difference between selecting the
2023 of the cell, and the cell itself.
2024 \begin_inset Newline newline
2027 With the dialog option
2030 \begin_inset space ~
2035 every change you make in the dialog is directly applied.
2036 If you move the cursor to another table cell the dialog will then also
2037 be updated with the parameters of the new cell.
2038 If you change length values in the dialog you must press return to get
2040 \begin_inset Newline newline
2043 You can alter tables with the following tabs of the table dialog:
2046 \begin_layout Description
2050 \begin_inset space ~
2055 Here you can set the table width
2056 \begin_inset Index idx
2059 \begin_layout Plain Layout
2065 , and the horizontal alignment and the width of the current column.
2069 \begin_inset space ~
2073 \begin_inset space ~
2078 is described in section
2079 \begin_inset space ~
2083 \begin_inset CommandInset ref
2085 reference "sub:Special-Cell-Alignment"
2090 When you have set a width you can also adjust the vertical alignment of
2092 A given width will allow the cell to have line breaks and multiple paragraphs
2093 of text, see section
2094 \begin_inset space ~
2098 \begin_inset CommandInset ref
2100 reference "sub:Multiple-Lines-in"
2105 If you set no width, the column is as wide as the content of its widest
2107 \begin_inset Newline newline
2110 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2112 \begin_inset space ~
2116 \begin_inset CommandInset ref
2118 reference "sub:Multicolumns"
2122 or the cells of one column as multirow cell, see section
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sub:Multirows"
2134 \begin_inset Newline newline
2137 The rotate check boxes rotate the current cell, a selection, or the whole
2138 table counter-clockwise by 90°.
2139 The rotation is not shown within LyX, only in the output.
2140 \begin_inset Newline newline
2144 \begin_inset Note Greyedout
2147 \begin_layout Plain Layout
2152 Not all DVI-viewers are able to display rotations.
2158 \begin_inset Newline newline
2161 The table-wide vertical alignment is used for tables within text lines:
2162 \begin_inset Newline newline
2165 A line with tables with different alignments:
2166 \begin_inset Tabular
2167 <lyxtabular version="3" rows="2" columns="2">
2168 <features tabularvalignment="top">
2169 <column alignment="center" valignment="top" width="0pt">
2170 <column alignment="center" valignment="top" width="0">
2172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2175 \begin_layout Plain Layout
2181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2184 \begin_layout Plain Layout
2201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2204 \begin_layout Plain Layout
2219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2222 \begin_layout Plain Layout
2234 \begin_inset Tabular
2235 <lyxtabular version="3" rows="2" columns="2">
2236 <features tabularvalignment="middle">
2237 <column alignment="center" valignment="top" width="0">
2238 <column alignment="center" valignment="top" width="0">
2240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2243 \begin_layout Plain Layout
2249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2252 \begin_layout Plain Layout
2269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2272 \begin_layout Plain Layout
2287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2290 \begin_layout Plain Layout
2302 \begin_inset Tabular
2303 <lyxtabular version="3" rows="2" columns="2">
2304 <features tabularvalignment="bottom">
2305 <column alignment="center" valignment="top" width="0pt">
2306 <column alignment="center" valignment="top" width="0">
2308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2311 \begin_layout Plain Layout
2317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2320 \begin_layout Plain Layout
2337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2340 \begin_layout Plain Layout
2355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2358 \begin_layout Plain Layout
2370 \begin_inset Newline newline
2373 It is also possible to enter a LaTeX-argument which is needed for special
2374 table formattings, see section
2375 \begin_inset space ~
2379 \begin_inset CommandInset ref
2381 reference "sub:Multicolumn-Calculations"
2386 \begin_inset CommandInset ref
2388 reference "sec:Colored-Tables"
2395 \begin_layout Description
2400 In this tab you can add and delete border lines for the current row/column.
2401 \begin_inset Newline newline
2404 Using the style option
2408 will convert the table to a formal table as described in section
2409 \begin_inset space ~
2413 \begin_inset CommandInset ref
2415 reference "sec:Formal-Tables"
2420 \begin_inset Newline newline
2423 You can also add here space to table rows as described in section
2424 \begin_inset space ~
2428 \begin_inset CommandInset ref
2430 reference "sub:Row-Spacing"
2437 \begin_layout Description
2442 This tab is to make a table a so called
2443 \begin_inset Quotes eld
2451 \begin_inset Quotes erd
2454 that can run over several pages.
2456 \begin_inset space ~
2460 \begin_inset CommandInset ref
2462 reference "sec:Longtables"
2467 \begin_inset CommandInset ref
2469 reference "sec:Special-Longtable-Issues"
2473 describe the longtable features in detail.
2476 \begin_layout Section
2478 \begin_inset Index idx
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 The table toolbar is an alternative to the table dialog to be able to alter
2493 It should normally appear at the bottom of LyX's main window when the cursor
2495 You can alternatively switch it on to appear always, by right-clicking
2496 in LyX's main menu bar.
2499 \begin_layout Standard
2500 The toolbar has the following icons:
2503 \begin_layout Labeling
2504 \labelwidthstring 00.00.0000
2509 arg "inset-modify tabular append-row"
2514 adds a row below the current cell or selection
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2523 arg "inset-modify tabular append-column"
2528 adds a column right beside the current cell or selection
2531 \begin_layout Labeling
2532 \labelwidthstring 00.00.0000
2537 arg "inset-modify tabular delete-row"
2542 deletes the current row or selection
2545 \begin_layout Labeling
2546 \labelwidthstring 00.00.0000
2551 arg "inset-modify tabular delete-column"
2556 deletes the current column or selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2565 arg "inset-modify tabular toggle-line-top"
2570 adds a line at the top of the current cell / row or of a selection
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2579 arg "inset-modify tabular toggle-line-bottom"
2584 adds a line at the bottom of the current cell / row or of a selection
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2593 arg "inset-modify tabular toggle-line-left"
2598 adds a line at the left side of the current cell / row or of a selection
2601 \begin_layout Labeling
2602 \labelwidthstring 00.00.0000
2607 arg "inset-modify tabular toggle-line-right"
2612 adds a line at the right side of the current cell / row or of a selection
2615 \begin_layout Labeling
2616 \labelwidthstring 00.00.0000
2621 arg "inset-modify tabular set-all-lines"
2626 adds lines around the current or selected cells - if the current cell no
2627 multicolumn cell this also affects the current row and column
2630 \begin_layout Labeling
2631 \labelwidthstring 00.00.0000
2636 arg "inset-modify tabular unset-all-lines"
2641 deletes all lines of the current or selected cells - if the current cell
2642 no multicolumn cell this also affects the current row and column
2645 \begin_layout Labeling
2646 \labelwidthstring 00.00.0000
2651 arg "inset-modify tabular m-align-left"
2656 left-aligns the content of the current cell / column
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2665 arg "inset-modify tabular m-align-center"
2670 centers the content of the current cell / column horizontally
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2679 arg "inset-modify tabular m-align-right"
2684 right-aligns the content of the current cell / column
2687 \begin_layout Labeling
2688 \labelwidthstring 00.00.0000
2693 arg "inset-modify tabular align-decimal"
2698 aligns the content of the current column at a character
2701 \begin_layout Labeling
2702 \labelwidthstring 00.00.0000
2707 arg "inset-modify tabular m-valign-top"
2712 aligns the content of the current cell vertically to the top
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2721 arg "inset-modify tabular m-valign-middle"
2726 centers the content of the current cell vertically
2729 \begin_layout Labeling
2730 \labelwidthstring 00.00.0000
2735 arg "inset-modify tabular m-valign-bottom"
2740 aligns the content of the current cell vertically to the bottom
2743 \begin_layout Labeling
2744 \labelwidthstring 00.00.0000
2749 arg "inset-modify tabular set-rotate-cell"
2754 rotates the current cell or selection counter-clockwise by 90°
2757 \begin_layout Labeling
2758 \labelwidthstring 00.00.0000
2763 arg "inset-modify tabular set-rotate-tabular"
2768 rotates the whole table counter-clockwise by 90°
2771 \begin_layout Labeling
2772 \labelwidthstring 00.00.0000
2777 arg "inset-modify tabular multicolumn"
2782 sets the current cell or selection as a multicolumn
2785 \begin_layout Labeling
2786 \labelwidthstring 00.00.0000
2791 arg "inset-modify tabular multirow"
2796 sets the current cell or selection as a multirow
2799 \begin_layout Standard
2800 \begin_inset Note Greyedout
2803 \begin_layout Plain Layout
2808 For the output the vertical alignment of the first cell in a row is used
2809 for all following cells in the row.
2817 \begin_layout Section
2819 \begin_inset Index idx
2822 \begin_layout Plain Layout
2831 \begin_layout Standard
2832 Additionally to the table dialog and toolbar, the menu
2834 Edit\SpecialChar \menuseparator
2837 allows you to add and delete border lines for the current row/column and
2838 to set the current selection as multicolumn.
2839 The menu is only available when the cursor is inside a table.
2842 \begin_layout Section
2844 \begin_inset CommandInset label
2846 name "sec:Table-Floats"
2851 \begin_inset Index idx
2854 \begin_layout Plain Layout
2861 \begin_inset Index idx
2864 \begin_layout Plain Layout
2873 \begin_layout Standard
2874 For general explanations about floats, have a look at section
2875 \begin_inset space ~
2879 \begin_inset CommandInset ref
2881 reference "sec:FloatIntroduction"
2888 \begin_layout Standard
2889 \begin_inset Float table
2895 \begin_layout Plain Layout
2896 \begin_inset Caption
2898 \begin_layout Plain Layout
2899 \begin_inset CommandInset label
2901 name "tab:a table float"
2913 \begin_layout Plain Layout
2915 \begin_inset Tabular
2916 <lyxtabular version="3" rows="3" columns="3">
2917 <features tabularvalignment="middle">
2918 <column alignment="center" valignment="top" width="0pt">
2919 <column alignment="center" valignment="top" width="0pt">
2920 <column alignment="center" valignment="top" width="0pt">
2922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2925 \begin_layout Plain Layout
2940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2943 \begin_layout Plain Layout
2958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2961 \begin_layout Plain Layout
2978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2981 \begin_layout Plain Layout
2996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2999 \begin_layout Plain Layout
3014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3017 \begin_layout Plain Layout
3034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3037 \begin_layout Plain Layout
3047 \begin_inset Formula $\int x^{2}dx$
3055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3058 \begin_layout Plain Layout
3068 \begin_inset Formula $\left[\begin{array}{cc}
3079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3082 \begin_layout Plain Layout
3092 \begin_inset Formula $1+1=2$
3113 \begin_layout Standard
3114 Table floats can be inserted using the menu
3116 Insert\SpecialChar \menuseparator
3117 Float\SpecialChar \menuseparator
3120 or the toolbar button
3125 arg "float-insert table"
3133 \begin_layout Standard
3134 The float appears as a collapsible box with a caption that has the label
3136 \begin_inset Quotes eld
3140 \begin_inset space ~
3144 \begin_inset Quotes erd
3147 (# is the actual table number).
3148 You can insert tables in the float above or below the caption.
3151 \begin_layout Standard
3153 \begin_inset space ~
3157 \begin_inset CommandInset ref
3159 reference "tab:a table float"
3163 is an example table within a table float.
3166 \begin_layout Standard
3167 Having the caption above the table is the common rule that is unfortunately
3168 not supported in LaTeX's standard classes.
3169 This means that, if you are using the document classes
3185 , there will be no space between the caption and the table.
3186 To insert the needed space, add the following option to the load command
3187 of the LaTeX-package
3192 \begin_inset Index idx
3195 \begin_layout Plain Layout
3196 LaTeX-packages ! caption
3201 in your document preamble
3205 \begin_layout Plain Layout
3206 For more information have a look at section
3207 \begin_inset space ~
3211 \begin_inset CommandInset ref
3213 reference "sec:Caption-Placement"
3225 \begin_layout Standard
3231 \begin_layout Standard
3236 , which is described in section
3237 \begin_inset space ~
3241 \begin_inset CommandInset ref
3243 reference "sec:Caption-Formatting"
3247 , is used to adjust the caption format.
3250 \begin_layout Standard
3251 \begin_inset Index idx
3254 \begin_layout Plain Layout
3255 References ! to Tables
3260 Tables can be cross-referenced in the text by referencing their label.
3261 To do this insert a label in the caption using the menu
3263 Insert\SpecialChar \menuseparator
3266 or the toolbar button
3277 You can now refer to the label using the menu
3279 Insert\SpecialChar \menuseparator
3281 \begin_inset space ~
3286 or the toolbar button
3291 arg "dialog-show-new-inset ref"
3297 \begin_inset Newline newline
3300 Referencing is explained in detail in section
3301 \begin_inset space ~
3305 \begin_inset CommandInset ref
3307 reference "sec:Referencing-Floats"
3314 \begin_layout Section
3316 \begin_inset CommandInset label
3318 name "sec:Longtables"
3323 \begin_inset Index idx
3326 \begin_layout Plain Layout
3333 \begin_inset Index idx
3336 \begin_layout Plain Layout
3345 \begin_layout Standard
3346 If the table is too long to fit on one page, you can use the option
3349 \begin_inset space ~
3353 \begin_inset space ~
3362 of the table dialog to split the table automatically over more pages.
3363 Doing this enables the following options:
3366 \begin_layout Description
3367 Header: The current row is defined to be a header row that appears on all
3368 pages of the longtable; except for the first page, if
3371 \begin_inset space ~
3377 This is therefore called the main header.
3380 \begin_layout Description
3382 \begin_inset space ~
3385 header: The current row is defined to be a header row that appears on the
3386 first page of the longtable.
3389 \begin_layout Description
3390 Footer: The current row is defined to be a footer row that appears on all
3391 pages of the longtable; except for the last page, if
3394 \begin_inset space ~
3402 \begin_layout Description
3404 \begin_inset space ~
3407 footer: The current row is defined to be a footer row that appears on the
3408 last page of the longtable.
3411 \begin_layout Description
3412 Caption: The current row contains the table caption.
3413 The row is reset as single column and a caption is inserted.
3414 More about longtable captions is explained in sec.
3415 \begin_inset space \thinspace{}
3419 \begin_inset CommandInset ref
3421 reference "sub:Longtable-Captions"
3428 \begin_layout Standard
3429 You can also specify a row where the table is split.
3430 See the following longtable to see how it works:
3433 \begin_layout Standard
3435 \begin_inset Tabular
3436 <lyxtabular version="3" rows="69" columns="3">
3437 <features islongtable="true" longtabularalignment="center">
3438 <column alignment="left" valignment="top" width="0cm">
3439 <column alignment="left" valignment="top" width="0pt">
3440 <column alignment="center" valignment="top" width="0pt">
3441 <row endfirsthead="true">
3442 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3445 \begin_layout Plain Layout
3448 Example Phone List (ignore the names)
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3472 <row endfirsthead="true">
3473 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3476 \begin_layout Plain Layout
3484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3505 <row endhead="true">
3506 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3509 \begin_layout Plain Layout
3517 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3520 \begin_layout Plain Layout
3526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3529 \begin_layout Plain Layout
3536 <row endhead="true">
3537 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3540 \begin_layout Plain Layout
3548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3551 \begin_layout Plain Layout
3557 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3560 \begin_layout Plain Layout
3569 <row endfoot="true">
3570 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3573 \begin_layout Plain Layout
3574 continued on next page
3579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3582 \begin_layout Plain Layout
3588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3591 \begin_layout Plain Layout
3599 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3602 \begin_layout Plain Layout
3610 <cell alignment="center" valignment="top" usebox="none">
3613 \begin_layout Plain Layout
3619 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Plain Layout
3630 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3633 \begin_layout Plain Layout
3641 <cell alignment="center" valignment="top" usebox="none">
3644 \begin_layout Plain Layout
3650 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Plain Layout
3661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3664 \begin_layout Plain Layout
3672 <cell alignment="center" valignment="top" usebox="none">
3675 \begin_layout Plain Layout
3681 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Plain Layout
3692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3695 \begin_layout Plain Layout
3703 <cell alignment="center" valignment="top" usebox="none">
3706 \begin_layout Plain Layout
3712 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Plain Layout
3723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3726 \begin_layout Plain Layout
3734 <cell alignment="center" valignment="top" usebox="none">
3737 \begin_layout Plain Layout
3743 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Plain Layout
3754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3757 \begin_layout Plain Layout
3765 <cell alignment="center" valignment="top" usebox="none">
3768 \begin_layout Plain Layout
3774 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Plain Layout
3785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3788 \begin_layout Plain Layout
3796 <cell alignment="center" valignment="top" usebox="none">
3799 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3819 \begin_layout Plain Layout
3827 <cell alignment="center" valignment="top" usebox="none">
3830 \begin_layout Plain Layout
3836 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Plain Layout
3847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3850 \begin_layout Plain Layout
3858 <cell alignment="center" valignment="top" usebox="none">
3861 \begin_layout Plain Layout
3867 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Plain Layout
3878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3881 \begin_layout Plain Layout
3889 <cell alignment="center" valignment="top" usebox="none">
3892 \begin_layout Plain Layout
3898 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Plain Layout
3909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3912 \begin_layout Plain Layout
3920 <cell alignment="center" valignment="top" usebox="none">
3923 \begin_layout Plain Layout
3929 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3943 \begin_layout Plain Layout
3951 <cell alignment="center" valignment="top" usebox="none">
3954 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3974 \begin_layout Plain Layout
3982 <cell alignment="center" valignment="top" usebox="none">
3985 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Plain Layout
4002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4005 \begin_layout Plain Layout
4013 <cell alignment="center" valignment="top" usebox="none">
4016 \begin_layout Plain Layout
4022 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Plain Layout
4033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4036 \begin_layout Plain Layout
4044 <cell alignment="center" valignment="top" usebox="none">
4047 \begin_layout Plain Layout
4053 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Plain Layout
4064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4067 \begin_layout Plain Layout
4075 <cell alignment="center" valignment="top" usebox="none">
4078 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4098 \begin_layout Plain Layout
4106 <cell alignment="center" valignment="top" usebox="none">
4109 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4129 \begin_layout Plain Layout
4137 <cell alignment="center" valignment="top" usebox="none">
4140 \begin_layout Plain Layout
4146 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Plain Layout
4157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4160 \begin_layout Plain Layout
4168 <cell alignment="center" valignment="top" usebox="none">
4171 \begin_layout Plain Layout
4177 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Plain Layout
4188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4191 \begin_layout Plain Layout
4199 <cell alignment="center" valignment="top" usebox="none">
4202 \begin_layout Plain Layout
4208 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4222 \begin_layout Plain Layout
4230 <cell alignment="center" valignment="top" usebox="none">
4233 \begin_layout Plain Layout
4239 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4253 \begin_layout Plain Layout
4261 <cell alignment="center" valignment="top" usebox="none">
4264 \begin_layout Plain Layout
4270 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4284 \begin_layout Plain Layout
4292 <cell alignment="center" valignment="top" usebox="none">
4295 \begin_layout Plain Layout
4301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4315 \begin_layout Plain Layout
4323 <cell alignment="center" valignment="top" usebox="none">
4326 \begin_layout Plain Layout
4332 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4346 \begin_layout Plain Layout
4354 <cell alignment="center" valignment="top" usebox="none">
4357 \begin_layout Plain Layout
4363 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4377 \begin_layout Plain Layout
4385 <cell alignment="center" valignment="top" usebox="none">
4388 \begin_layout Plain Layout
4394 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4408 \begin_layout Plain Layout
4416 <cell alignment="center" valignment="top" usebox="none">
4419 \begin_layout Plain Layout
4425 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4439 \begin_layout Plain Layout
4447 <cell alignment="center" valignment="top" usebox="none">
4450 \begin_layout Plain Layout
4456 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="center" valignment="top" usebox="none">
4481 \begin_layout Plain Layout
4487 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="center" valignment="top" usebox="none">
4512 \begin_layout Plain Layout
4518 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4543 \begin_layout Plain Layout
4549 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Plain Layout
4560 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4572 \begin_layout Plain Layout
4578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4581 \begin_layout Plain Layout
4589 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4592 \begin_layout Plain Layout
4600 <cell alignment="center" valignment="top" usebox="none">
4603 \begin_layout Plain Layout
4609 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4612 \begin_layout Plain Layout
4620 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4623 \begin_layout Plain Layout
4631 <cell alignment="center" valignment="top" usebox="none">
4634 \begin_layout Plain Layout
4640 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4643 \begin_layout Plain Layout
4651 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4654 \begin_layout Plain Layout
4662 <cell alignment="center" valignment="top" usebox="none">
4665 \begin_layout Plain Layout
4671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4674 \begin_layout Plain Layout
4682 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4685 \begin_layout Plain Layout
4693 <cell alignment="center" valignment="top" usebox="none">
4696 \begin_layout Plain Layout
4702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4705 \begin_layout Plain Layout
4713 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4716 \begin_layout Plain Layout
4724 <cell alignment="center" valignment="top" usebox="none">
4727 \begin_layout Plain Layout
4733 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4736 \begin_layout Plain Layout
4744 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4747 \begin_layout Plain Layout
4755 <cell alignment="center" valignment="top" usebox="none">
4758 \begin_layout Plain Layout
4764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4767 \begin_layout Plain Layout
4775 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4778 \begin_layout Plain Layout
4786 <cell alignment="center" valignment="top" usebox="none">
4789 \begin_layout Plain Layout
4795 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4798 \begin_layout Plain Layout
4806 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4809 \begin_layout Plain Layout
4817 <cell alignment="center" valignment="top" usebox="none">
4820 \begin_layout Plain Layout
4826 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4829 \begin_layout Plain Layout
4837 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4840 \begin_layout Plain Layout
4848 <cell alignment="center" valignment="top" usebox="none">
4851 \begin_layout Plain Layout
4857 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4860 \begin_layout Plain Layout
4868 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4871 \begin_layout Plain Layout
4879 <cell alignment="center" valignment="top" usebox="none">
4882 \begin_layout Plain Layout
4888 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4891 \begin_layout Plain Layout
4899 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4902 \begin_layout Plain Layout
4910 <cell alignment="center" valignment="top" usebox="none">
4913 \begin_layout Plain Layout
4919 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4922 \begin_layout Plain Layout
4930 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4933 \begin_layout Plain Layout
4941 <cell alignment="center" valignment="top" usebox="none">
4944 \begin_layout Plain Layout
4950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4953 \begin_layout Plain Layout
4961 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4964 \begin_layout Plain Layout
4972 <cell alignment="center" valignment="top" usebox="none">
4975 \begin_layout Plain Layout
4981 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4984 \begin_layout Plain Layout
4992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4995 \begin_layout Plain Layout
5003 <cell alignment="center" valignment="top" usebox="none">
5006 \begin_layout Plain Layout
5012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5015 \begin_layout Plain Layout
5023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5026 \begin_layout Plain Layout
5034 <cell alignment="center" valignment="top" usebox="none">
5037 \begin_layout Plain Layout
5043 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5046 \begin_layout Plain Layout
5054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5057 \begin_layout Plain Layout
5065 <cell alignment="center" valignment="top" usebox="none">
5068 \begin_layout Plain Layout
5074 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5077 \begin_layout Plain Layout
5085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5088 \begin_layout Plain Layout
5096 <cell alignment="center" valignment="top" usebox="none">
5099 \begin_layout Plain Layout
5105 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5108 \begin_layout Plain Layout
5116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5119 \begin_layout Plain Layout
5127 <cell alignment="center" valignment="top" usebox="none">
5130 \begin_layout Plain Layout
5136 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5139 \begin_layout Plain Layout
5147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5150 \begin_layout Plain Layout
5158 <cell alignment="center" valignment="top" usebox="none">
5161 \begin_layout Plain Layout
5167 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5170 \begin_layout Plain Layout
5178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5181 \begin_layout Plain Layout
5189 <cell alignment="center" valignment="top" usebox="none">
5192 \begin_layout Plain Layout
5198 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5201 \begin_layout Plain Layout
5209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5212 \begin_layout Plain Layout
5220 <cell alignment="center" valignment="top" usebox="none">
5223 \begin_layout Plain Layout
5229 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5232 \begin_layout Plain Layout
5240 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5243 \begin_layout Plain Layout
5251 <cell alignment="center" valignment="top" usebox="none">
5254 \begin_layout Plain Layout
5260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5263 \begin_layout Plain Layout
5271 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5274 \begin_layout Plain Layout
5282 <cell alignment="center" valignment="top" usebox="none">
5285 \begin_layout Plain Layout
5291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5294 \begin_layout Plain Layout
5302 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5305 \begin_layout Plain Layout
5313 <cell alignment="center" valignment="top" usebox="none">
5316 \begin_layout Plain Layout
5322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5325 \begin_layout Plain Layout
5333 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5336 \begin_layout Plain Layout
5344 <cell alignment="center" valignment="top" usebox="none">
5347 \begin_layout Plain Layout
5353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5356 \begin_layout Plain Layout
5364 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5367 \begin_layout Plain Layout
5375 <cell alignment="center" valignment="top" usebox="none">
5378 \begin_layout Plain Layout
5384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5387 \begin_layout Plain Layout
5395 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5398 \begin_layout Plain Layout
5406 <cell alignment="center" valignment="top" usebox="none">
5409 \begin_layout Plain Layout
5415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5418 \begin_layout Plain Layout
5426 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5429 \begin_layout Plain Layout
5437 <cell alignment="center" valignment="top" usebox="none">
5440 \begin_layout Plain Layout
5446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5449 \begin_layout Plain Layout
5457 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5460 \begin_layout Plain Layout
5468 <cell alignment="center" valignment="top" usebox="none">
5471 \begin_layout Plain Layout
5477 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5480 \begin_layout Plain Layout
5488 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5491 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5511 \begin_layout Plain Layout
5519 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5522 \begin_layout Plain Layout
5530 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5533 \begin_layout Plain Layout
5539 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5542 \begin_layout Plain Layout
5549 <row endlastfoot="true">
5550 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5586 \begin_layout Plain Layout
5590 addtocounter{table}{-1}
5596 \begin_inset Note Note
5599 \begin_layout Plain Layout
5600 See the first greyed-out note in section
5601 \begin_inset space ~
5605 \begin_inset CommandInset ref
5607 reference "sub:Longtable-Captions"
5611 for an explanation of this command.
5619 \begin_layout Subsection
5620 Footnotes in Longtables
5621 \begin_inset CommandInset label
5623 name "sub:Footnotes-in-Longtables"
5628 \begin_inset Index idx
5631 \begin_layout Plain Layout
5632 Longtables ! Footnotes
5640 \begin_layout Standard
5641 Footnotes can be inserted to every longtable cell.
5642 They appear at the bottom of the page where the table cell with the footnote
5645 \begin_inset space ~
5649 \begin_inset CommandInset ref
5651 reference "tab:DiffCaptions"
5655 has for example a footnote.
5658 \begin_layout Subsection
5660 \begin_inset Index idx
5663 \begin_layout Plain Layout
5664 Longtables ! Alignment
5672 \begin_layout Standard
5673 The horizontal alignment of longtables can be set in the table settings
5675 For left- and right-alignment the table will be directly at the page border.
5676 To add space between the table and the border one has to set the alignment
5677 to center and change the value of the LaTeX-lengths
5689 by inserting this line as TeX-Code before the longtable:
5692 \begin_layout Standard
5702 \begin_layout Standard
5703 The value can have any of the units listed in Table
5704 \begin_inset space ~
5708 \begin_inset CommandInset ref
5710 reference "tab:Units"
5721 controls the horizontal distance from the left page border to the longtable,
5728 the distance from the right side.
5729 The default value for both lengths is
5735 , which is in this case the same as an horizontal fill in LyX.
5738 \begin_layout Standard
5739 The following longtable was centered and
5755 \begin_layout Plain Layout
5771 \begin_layout Standard
5772 \begin_inset Tabular
5773 <lyxtabular version="3" rows="5" columns="5">
5774 <features islongtable="true" longtabularalignment="center">
5775 <column alignment="center" valignment="top" width="0">
5776 <column alignment="center" valignment="top" width="0pt">
5777 <column alignment="center" valignment="top" width="0">
5778 <column alignment="center" valignment="top" width="0">
5779 <column alignment="center" valignment="top" width="0">
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5784 \begin_layout Plain Layout
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5793 \begin_layout Plain Layout
5799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5802 \begin_layout Plain Layout
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5811 \begin_layout Plain Layout
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5820 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Plain Layout
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5849 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5858 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5867 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5887 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5896 \begin_layout Plain Layout
5902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5905 \begin_layout Plain Layout
5911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5914 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Plain Layout
5940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5943 \begin_layout Plain Layout
5949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5952 \begin_layout Plain Layout
5958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5961 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5981 \begin_layout Plain Layout
5987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5990 \begin_layout Plain Layout
5996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5999 \begin_layout Plain Layout
6005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6008 \begin_layout Plain Layout
6023 \begin_layout Plain Layout
6040 \begin_layout Plain Layout
6044 addtocounter{table}{-1}
6050 \begin_inset Note Note
6053 \begin_layout Plain Layout
6054 See the first greyed-out note in section
6055 \begin_inset space ~
6059 \begin_inset CommandInset ref
6061 reference "sub:Longtable-Captions"
6065 for an explanation of this command.
6073 \begin_layout Subsection
6075 \begin_inset Index idx
6078 \begin_layout Plain Layout
6079 Longtables ! Captions
6085 \begin_inset CommandInset label
6087 name "sub:Longtable-Captions"
6094 \begin_layout Standard
6095 A longtable cannot be put into a table float because floats can only be
6097 But the caption environment of floats can also be used for longtables when
6098 you use the longtable option
6102 as described in sec.
6103 \begin_inset space \thinspace{}
6107 \begin_inset CommandInset ref
6109 reference "sec:Longtables"
6114 Only one table row can contain the caption.
6117 \begin_layout Standard
6118 Here is a short longtable to see how it works:
6121 \begin_layout Standard
6122 \begin_inset Tabular
6123 <lyxtabular version="3" rows="6" columns="5">
6124 <features islongtable="true" longtabularalignment="center">
6125 <column alignment="center" valignment="top" width="0">
6126 <column alignment="center" valignment="top" width="0">
6127 <column alignment="center" valignment="top" width="0">
6128 <column alignment="center" valignment="top" width="0">
6129 <column alignment="center" valignment="top" width="0">
6130 <row caption="true">
6131 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6134 \begin_layout Plain Layout
6135 \begin_inset Caption
6137 \begin_layout Plain Layout
6138 Longtable with caption
6139 \begin_inset Argument
6142 \begin_layout Plain Layout
6158 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6161 \begin_layout Plain Layout
6167 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6170 \begin_layout Plain Layout
6176 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6179 \begin_layout Plain Layout
6185 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6188 \begin_layout Plain Layout
6196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6199 \begin_layout Plain Layout
6205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6208 \begin_layout Plain Layout
6214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6217 \begin_layout Plain Layout
6223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6226 \begin_layout Plain Layout
6232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6235 \begin_layout Plain Layout
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Plain Layout
6252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6255 \begin_layout Plain Layout
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6264 \begin_layout Plain Layout
6270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6273 \begin_layout Plain Layout
6279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6282 \begin_layout Plain Layout
6290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6293 \begin_layout Plain Layout
6299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6302 \begin_layout Plain Layout
6308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6311 \begin_layout Plain Layout
6317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6320 \begin_layout Plain Layout
6326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6329 \begin_layout Plain Layout
6337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6340 \begin_layout Plain Layout
6346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6349 \begin_layout Plain Layout
6355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6358 \begin_layout Plain Layout
6364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6367 \begin_layout Plain Layout
6373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6376 \begin_layout Plain Layout
6384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6387 \begin_layout Plain Layout
6393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6396 \begin_layout Plain Layout
6402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6405 \begin_layout Plain Layout
6411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6414 \begin_layout Plain Layout
6420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6423 \begin_layout Plain Layout
6437 \begin_layout Standard
6438 \begin_inset VSpace medskip
6442 \begin_inset Note Greyedout
6445 \begin_layout Plain Layout
6449 \begin_inset space ~
6454 The table number is increased for for every longtable, even if you did
6455 not set a caption for it.
6456 For this reason you could have the case that e.
6457 \begin_inset space \thinspace{}
6461 \begin_inset space \space{}
6465 \begin_inset space ~
6469 \begin_inset space ~
6472 2.1 in the list of tables if there are two longtables without captions.
6473 To avoid this you can add the following command in TeX-Code after every
6474 longtable without a caption:
6477 \begin_layout Plain Layout
6482 addtocounter{table}{-1}
6485 \begin_layout Plain Layout
6486 This is not needed when none of your longtables have a caption and you add
6487 the following code to the document preamble:
6490 \begin_layout Plain Layout
6500 \begin_inset Newline newline
6511 addtocounter{table}{-1}}
6519 \begin_layout Standard
6520 \begin_inset Note Greyedout
6523 \begin_layout Plain Layout
6527 \begin_inset space ~
6537 \begin_inset Index idx
6540 \begin_layout Plain Layout
6541 LaTeX-packages ! hyperref
6554 dialog to link cross-references, the link to a longtable caption will always
6555 point to the beginning of the document.
6563 \begin_layout Subsubsection
6564 References to Longtables
6565 \begin_inset Index idx
6568 \begin_layout Plain Layout
6569 Longtables ! References
6577 \begin_layout Standard
6578 \begin_inset Tabular
6579 <lyxtabular version="3" rows="6" columns="5">
6580 <features islongtable="true" longtabularalignment="center">
6581 <column alignment="center" valignment="top" width="0">
6582 <column alignment="center" valignment="top" width="0">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <row caption="true">
6587 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6590 \begin_layout Plain Layout
6591 \begin_inset Caption
6593 \begin_layout Plain Layout
6594 Referenced longtable
6595 \begin_inset CommandInset label
6597 name "tab:RefExample"
6611 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6614 \begin_layout Plain Layout
6620 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6623 \begin_layout Plain Layout
6629 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6632 \begin_layout Plain Layout
6638 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6641 \begin_layout Plain Layout
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Plain Layout
6658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6661 \begin_layout Plain Layout
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6670 \begin_layout Plain Layout
6676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6679 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6688 \begin_layout Plain Layout
6696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6699 \begin_layout Plain Layout
6705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6708 \begin_layout Plain Layout
6714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6717 \begin_layout Plain Layout
6723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6726 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6735 \begin_layout Plain Layout
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Plain Layout
6752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6755 \begin_layout Plain Layout
6761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6764 \begin_layout Plain Layout
6770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6773 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6782 \begin_layout Plain Layout
6790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6793 \begin_layout Plain Layout
6799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6802 \begin_layout Plain Layout
6808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6811 \begin_layout Plain Layout
6817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6820 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6829 \begin_layout Plain Layout
6837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6840 \begin_layout Plain Layout
6846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6849 \begin_layout Plain Layout
6855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6858 \begin_layout Plain Layout
6864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6867 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6876 \begin_layout Plain Layout
6890 \begin_layout Standard
6891 To reference a longtable, insert a label into the caption.
6894 \begin_layout Standard
6895 This is a reference to Table
6896 \begin_inset space ~
6900 \begin_inset CommandInset ref
6902 reference "tab:RefExample"
6909 \begin_layout Standard
6910 The caption layout can be set together with all other captions of your document
6911 using the LaTeX-package
6916 \begin_inset Index idx
6919 \begin_layout Plain Layout
6920 LaTeX-packages ! caption
6926 \begin_inset space ~
6930 \begin_inset CommandInset ref
6932 reference "sec:Caption-Formatting"
6939 \begin_layout Subsubsection
6941 \begin_inset Index idx
6944 \begin_layout Plain Layout
6945 Longtables ! Caption Width
6953 \begin_layout Standard
6954 The maximal width of of caption lines is defined by the length
6961 Its default value is 4
6962 \begin_inset space \thinspace{}
6966 To change it add the following command to your document preamble or as
6967 TeX-Code into your document before the longtable that should be affected
6970 \begin_layout Standard
6980 \begin_layout Standard
6981 where the width could have one of the units listed in appendix
6982 \begin_inset space ~
6986 \begin_inset CommandInset ref
6988 reference "cha:Units-available-in"
6995 \begin_layout Standard
6996 The following tables show the difference:
6999 \begin_layout Standard
7000 \begin_inset Tabular
7001 <lyxtabular version="3" rows="6" columns="5">
7002 <features islongtable="true" longtabularalignment="center">
7003 <column alignment="center" valignment="top" width="0">
7004 <column alignment="center" valignment="top" width="0">
7005 <column alignment="center" valignment="top" width="0">
7006 <column alignment="center" valignment="top" width="0">
7007 <column alignment="center" valignment="top" width="0">
7008 <row caption="true">
7009 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7012 \begin_layout Plain Layout
7013 \begin_inset Caption
7015 \begin_layout Plain Layout
7016 long full title with default width long full title with default width long
7017 full title with default width
7018 \begin_inset Argument
7021 \begin_layout Plain Layout
7022 caption with default width
7037 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7040 \begin_layout Plain Layout
7046 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7049 \begin_layout Plain Layout
7055 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7058 \begin_layout Plain Layout
7064 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7067 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7078 \begin_layout Plain Layout
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7096 \begin_layout Plain Layout
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7105 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7114 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7125 \begin_layout Plain Layout
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7134 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7143 \begin_layout Plain Layout
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7161 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7172 \begin_layout Plain Layout
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7181 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7190 \begin_layout Plain Layout
7196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7199 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7208 \begin_layout Plain Layout
7216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7219 \begin_layout Plain Layout
7225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7228 \begin_layout Plain Layout
7234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7237 \begin_layout Plain Layout
7243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7246 \begin_layout Plain Layout
7252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7255 \begin_layout Plain Layout
7263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7266 \begin_layout Plain Layout
7272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7275 \begin_layout Plain Layout
7281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7284 \begin_layout Plain Layout
7290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7293 \begin_layout Plain Layout
7299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7302 \begin_layout Plain Layout
7316 \begin_layout Standard
7320 \begin_layout Plain Layout
7332 \begin_inset Tabular
7333 <lyxtabular version="3" rows="6" columns="5">
7334 <features islongtable="true" longtabularalignment="center">
7335 <column alignment="center" valignment="top" width="0">
7336 <column alignment="center" valignment="top" width="0">
7337 <column alignment="center" valignment="top" width="0">
7338 <column alignment="center" valignment="top" width="0">
7339 <column alignment="center" valignment="top" width="0">
7340 <row caption="true">
7341 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7344 \begin_layout Plain Layout
7345 \begin_inset Caption
7347 \begin_layout Plain Layout
7348 long full title with width set to 5
7349 \begin_inset space \thinspace{}
7352 cm long full title with width set to 5
7353 \begin_inset space \thinspace{}
7356 cm long full title with width set to 5
7357 \begin_inset space \thinspace{}
7361 \begin_inset Argument
7364 \begin_layout Plain Layout
7366 \begin_inset space \thinspace{}
7370 \begin_inset space \thinspace{}
7374 \begin_inset space \thinspace{}
7392 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7395 \begin_layout Plain Layout
7401 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7404 \begin_layout Plain Layout
7410 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7413 \begin_layout Plain Layout
7419 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7422 \begin_layout Plain Layout
7430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7433 \begin_layout Plain Layout
7439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7442 \begin_layout Plain Layout
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7451 \begin_layout Plain Layout
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7460 \begin_layout Plain Layout
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7469 \begin_layout Plain Layout
7477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7480 \begin_layout Plain Layout
7486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7489 \begin_layout Plain Layout
7495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7498 \begin_layout Plain Layout
7504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7516 \begin_layout Plain Layout
7524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7527 \begin_layout Plain Layout
7533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7536 \begin_layout Plain Layout
7542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7545 \begin_layout Plain Layout
7551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7563 \begin_layout Plain Layout
7571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7574 \begin_layout Plain Layout
7580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7583 \begin_layout Plain Layout
7589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7592 \begin_layout Plain Layout
7598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7601 \begin_layout Plain Layout
7607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Plain Layout
7618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7621 \begin_layout Plain Layout
7627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7630 \begin_layout Plain Layout
7636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7639 \begin_layout Plain Layout
7645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7648 \begin_layout Plain Layout
7654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Plain Layout
7671 \begin_layout Standard
7675 \begin_layout Plain Layout
7689 \begin_layout Standard
7690 \begin_inset Note Greyedout
7693 \begin_layout Plain Layout
7698 When the LaTeX-package
7703 \begin_inset Index idx
7706 \begin_layout Plain Layout
7707 LaTeX-packages ! caption
7712 is used, as in this document, the full page width is used for the caption
7713 when you use the default value of 4
7714 \begin_inset space \thinspace{}
7724 To get in this case exactly a 4
7725 \begin_inset space \thinspace{}
7728 in wide caption, you can either use a value slightly different from 4.0
7729 \begin_inset space \thinspace{}
7733 \begin_inset space \thinspace{}
7737 \begin_inset space \space{}
7741 \begin_inset space \thinspace{}
7744 in, or the LaTeX-command
7748 captionsetup{width=value}
7750 that is provided by the
7762 \begin_layout Subsubsection
7763 Different Captions for Table Pages
7764 \begin_inset Index idx
7767 \begin_layout Plain Layout
7768 Longtables ! Different Captions for Pages
7776 \begin_layout Standard
7777 When the table captions for the following pages should differ from the one
7778 of the first table page, insert a caption with the TeX code command
7781 \begin_layout Standard
7786 caption*{caption text}
7793 \begin_layout Standard
7794 in a dummy caption row that is marked as a header.
7796 \begin_inset space ~
7800 \begin_inset CommandInset ref
7802 reference "tab:DiffCaptions"
7806 is an example of a longtable with different heading where the second caption
7807 doesn't include the table number.
7810 \begin_layout Standard
7812 \begin_inset Tabular
7813 <lyxtabular version="3" rows="59" columns="3">
7814 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7815 <column alignment="left" valignment="top" width="0cm">
7816 <column alignment="left" valignment="top" width="0pt">
7817 <column alignment="center" valignment="top" width="0pt">
7818 <row caption="true">
7819 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7822 \begin_layout Plain Layout
7823 \begin_inset Caption
7825 \begin_layout Plain Layout
7827 \begin_inset CommandInset label
7829 name "tab:DiffCaptions"
7834 \begin_inset Argument
7837 \begin_layout Plain Layout
7853 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7856 \begin_layout Plain Layout
7862 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7865 \begin_layout Plain Layout
7872 <row endfirsthead="true">
7873 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7876 \begin_layout Plain Layout
7879 Example Phone List (ignore the names)
7884 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7887 \begin_layout Plain Layout
7893 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7896 \begin_layout Plain Layout
7903 <row endfirsthead="true">
7904 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7907 \begin_layout Plain Layout
7915 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7918 \begin_layout Plain Layout
7924 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7927 \begin_layout Plain Layout
7936 <row endhead="true">
7937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7940 \begin_layout Plain Layout
7944 \begin_layout Plain Layout
7948 caption*{Continued Example Phone List}
7962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7965 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7974 \begin_layout Plain Layout
7981 <row endhead="true">
7982 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Plain Layout
7993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7996 \begin_layout Plain Layout
8002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8005 \begin_layout Plain Layout
8012 <row endhead="true">
8013 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8016 \begin_layout Plain Layout
8024 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8027 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8036 \begin_layout Plain Layout
8045 <row endfoot="true">
8046 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8049 \begin_layout Plain Layout
8050 continued on next page
8055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8058 \begin_layout Plain Layout
8064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8067 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8078 \begin_layout Plain Layout
8086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8089 \begin_layout Plain Layout
8095 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8098 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8109 \begin_layout Plain Layout
8117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8120 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8140 \begin_layout Plain Layout
8148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8151 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8171 \begin_layout Plain Layout
8179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8182 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8202 \begin_layout Plain Layout
8210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8213 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8233 \begin_layout Plain Layout
8241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8244 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8264 \begin_layout Plain Layout
8272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8275 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8295 \begin_layout Plain Layout
8303 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8306 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8326 \begin_layout Plain Layout
8334 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8337 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8357 \begin_layout Plain Layout
8365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8368 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8388 \begin_layout Plain Layout
8396 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8399 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8408 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8419 \begin_layout Plain Layout
8427 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8430 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8439 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8470 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8501 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8512 \begin_layout Plain Layout
8521 \begin_layout Plain Layout
8532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8535 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8544 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8555 \begin_layout Plain Layout
8563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8566 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8575 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8586 \begin_layout Plain Layout
8594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8597 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8606 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8617 \begin_layout Plain Layout
8625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8628 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8637 \begin_layout Plain Layout
8645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8648 \begin_layout Plain Layout
8656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8659 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8668 \begin_layout Plain Layout
8676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8699 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8947 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8978 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9009 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9037 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9040 \begin_layout Plain Layout
9048 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9057 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9060 \begin_layout Plain Layout
9066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9069 \begin_layout Plain Layout
9077 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9080 \begin_layout Plain Layout
9088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9091 \begin_layout Plain Layout
9097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9100 \begin_layout Plain Layout
9108 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9111 \begin_layout Plain Layout
9119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9122 \begin_layout Plain Layout
9128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9131 \begin_layout Plain Layout
9139 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9142 \begin_layout Plain Layout
9150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9153 \begin_layout Plain Layout
9159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9162 \begin_layout Plain Layout
9170 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9173 \begin_layout Plain Layout
9181 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9184 \begin_layout Plain Layout
9190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9193 \begin_layout Plain Layout
9201 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9204 \begin_layout Plain Layout
9212 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9215 \begin_layout Plain Layout
9221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9224 \begin_layout Plain Layout
9232 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9235 \begin_layout Plain Layout
9243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9246 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9255 \begin_layout Plain Layout
9263 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9266 \begin_layout Plain Layout
9274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9277 \begin_layout Plain Layout
9283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9286 \begin_layout Plain Layout
9294 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9297 \begin_layout Plain Layout
9305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9308 \begin_layout Plain Layout
9314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9317 \begin_layout Plain Layout
9325 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9328 \begin_layout Plain Layout
9336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9339 \begin_layout Plain Layout
9345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9348 \begin_layout Plain Layout
9356 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9359 \begin_layout Plain Layout
9367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9370 \begin_layout Plain Layout
9376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9379 \begin_layout Plain Layout
9387 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9390 \begin_layout Plain Layout
9398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9401 \begin_layout Plain Layout
9407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9410 \begin_layout Plain Layout
9418 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9421 \begin_layout Plain Layout
9429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9432 \begin_layout Plain Layout
9438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9441 \begin_layout Plain Layout
9449 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9452 \begin_layout Plain Layout
9460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9463 \begin_layout Plain Layout
9469 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9472 \begin_layout Plain Layout
9480 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9483 \begin_layout Plain Layout
9491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9494 \begin_layout Plain Layout
9500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9503 \begin_layout Plain Layout
9511 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9514 \begin_layout Plain Layout
9522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9525 \begin_layout Plain Layout
9531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9534 \begin_layout Plain Layout
9542 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9545 \begin_layout Plain Layout
9553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9556 \begin_layout Plain Layout
9562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9565 \begin_layout Plain Layout
9573 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9576 \begin_layout Plain Layout
9584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9587 \begin_layout Plain Layout
9593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9596 \begin_layout Plain Layout
9604 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9607 \begin_layout Plain Layout
9615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9618 \begin_layout Plain Layout
9624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9627 \begin_layout Plain Layout
9635 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9638 \begin_layout Plain Layout
9646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9649 \begin_layout Plain Layout
9655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9658 \begin_layout Plain Layout
9666 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9669 \begin_layout Plain Layout
9677 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9680 \begin_layout Plain Layout
9686 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9689 \begin_layout Plain Layout
9703 \begin_layout Section
9704 Special Longtable Issues
9705 \begin_inset CommandInset label
9707 name "sec:Special-Longtable-Issues"
9714 \begin_layout Subsection
9715 Longtable Calculation
9716 \begin_inset Index idx
9719 \begin_layout Plain Layout
9720 Longtables ! Calculation
9728 \begin_layout Standard
9729 LaTeX calculates the height of table pages and their page breaks using so
9731 Chunks are parts of tables that held at the same time in LaTeX's memory.
9732 The default value was historically set to only 20 table rows.
9733 If you are using longtables with many pages this may slow down the creation
9735 You can safely increase the chunk size to values of 100-1000 by adding
9736 this command line to your document preamble:
9739 \begin_layout Standard
9744 setcounter{LTchunksize}{100}
9747 \begin_layout Subsection
9748 Floats and Longtables
9749 \begin_inset Index idx
9752 \begin_layout Plain Layout
9761 \begin_layout Standard
9762 There might be problems when a float appears on the same page where a longtable
9764 To avoid such a situation, insert a
9765 \begin_inset Quotes eld
9769 \begin_inset Quotes erd
9774 Insert\SpecialChar \menuseparator
9775 Formatting\SpecialChar \menuseparator
9777 \begin_inset space ~
9782 ) before your longtable.
9785 \begin_layout Subsection
9787 \begin_inset Index idx
9790 \begin_layout Plain Layout
9791 Longtables ! Forced Page Breaks
9799 \begin_layout Standard
9800 By default tables are only broken between rows.
9801 If you have a cell with multiples lines and want to have a page break within
9802 the cell, insert the new line command
9803 \begin_inset Quotes eld
9815 \begin_inset Quotes erd
9818 as TeX-Code at the point of the cell where it can be broken.
9827 command you have to insert in TeX-Code as many
9828 \begin_inset Quotes eld
9836 \begin_inset Quotes erd
9839 characters as the number of the following table columns.
9844 is the character to separate table cells.
9845 Write in TeX-Code after each
9849 the content of the corresponding following cell and delete the content
9851 \begin_inset Newline newline
9862 command, insert as many
9866 characters as the number of table columns before the current column.
9868 \begin_inset space ~
9872 \begin_inset CommandInset ref
9874 reference "tab:ForcedPagebreak"
9878 the cell that should be broken is in the second column followed by another
9880 Therefore the following command was inserted in the cell as TeX-Code after
9882 \begin_inset Quotes eld
9890 \begin_inset Quotes erd
9896 \begin_layout Standard
9906 \begin_inset Newline newline
9912 \begin_layout Standard
9914 \begin_inset Quotes eld
9918 \begin_inset Quotes erd
9921 in the third column of the row was deleted.
9928 is only needed when a page break should definitely occur at this position,
9929 otherwise it would be a conditional break.
9930 If your footer row of the longtable has for a certain reason no upper line
9931 but you would have a horizontal line where the cell is broken, use this
9935 \begin_layout Standard
9943 \begin_inset Newline newline
9951 \begin_layout Standard
9952 When the cell to be broken is in the last column, the command
9955 \begin_layout Standard
9965 \begin_layout Standard
9966 must be inserted as TeX-Code at the beginning of the cell.
9967 This ensures that the part of the cell that will be displayed on the new
9968 page appears with the full width.
9971 \begin_layout Standard
9973 \begin_inset Tabular
9974 <lyxtabular version="3" rows="38" columns="3">
9975 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9976 <column alignment="left" valignment="top" width="0cm">
9977 <column alignment="left" valignment="top" width="3cm">
9978 <column alignment="center" valignment="top" width="0pt">
9979 <row caption="true">
9980 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9983 \begin_layout Plain Layout
9984 \begin_inset Caption
9986 \begin_layout Plain Layout
9987 Table with forced page break in table cell
9988 \begin_inset CommandInset label
9990 name "tab:ForcedPagebreak"
9995 \begin_inset Argument
9998 \begin_layout Plain Layout
9999 Table with forced page break in table cell
10014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10017 \begin_layout Plain Layout
10023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10026 \begin_layout Plain Layout
10033 <row endfirsthead="true">
10034 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10040 Example Phone List (ignore the names)
10045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10048 \begin_layout Plain Layout
10054 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10057 \begin_layout Plain Layout
10064 <row endfirsthead="true">
10065 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10068 \begin_layout Plain Layout
10076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10079 \begin_layout Plain Layout
10085 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10088 \begin_layout Plain Layout
10097 <row endhead="true">
10098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10101 \begin_layout Plain Layout
10105 \begin_layout Plain Layout
10109 caption*{Continued Example Phone List}
10123 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10126 \begin_layout Plain Layout
10132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10135 \begin_layout Plain Layout
10142 <row endhead="true">
10143 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10146 \begin_layout Plain Layout
10154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10157 \begin_layout Plain Layout
10163 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10166 \begin_layout Plain Layout
10173 <row endhead="true">
10174 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10177 \begin_layout Plain Layout
10185 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10188 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10197 \begin_layout Plain Layout
10206 <row endfoot="true">
10207 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10210 \begin_layout Plain Layout
10211 continued on next page
10216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10219 \begin_layout Plain Layout
10225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10239 \begin_layout Plain Layout
10247 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10250 \begin_layout Plain Layout
10256 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10270 \begin_layout Plain Layout
10278 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10281 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10301 \begin_layout Plain Layout
10309 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10312 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10332 \begin_layout Plain Layout
10340 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10343 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10363 \begin_layout Plain Layout
10371 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10374 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10394 \begin_layout Plain Layout
10402 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10405 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10425 \begin_layout Plain Layout
10433 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10436 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10456 \begin_layout Plain Layout
10464 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10467 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10487 \begin_layout Plain Layout
10495 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10498 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10507 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10518 \begin_layout Plain Layout
10526 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10529 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10538 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10549 \begin_layout Plain Layout
10557 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10560 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10569 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10580 \begin_layout Plain Layout
10588 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10591 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10600 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10611 \begin_layout Plain Layout
10619 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10622 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10631 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10642 \begin_layout Plain Layout
10650 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10653 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10673 \begin_layout Plain Layout
10681 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10684 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10704 \begin_layout Plain Layout
10712 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10715 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10735 \begin_layout Plain Layout
10743 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10746 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10766 \begin_layout Plain Layout
10774 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10777 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10786 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10797 \begin_layout Plain Layout
10805 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10808 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10817 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10828 \begin_layout Plain Layout
10836 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10839 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10848 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10859 \begin_layout Plain Layout
10867 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10870 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10890 \begin_layout Plain Layout
10898 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10901 \begin_layout Plain Layout
10907 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10910 \begin_layout Plain Layout
10918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10921 \begin_layout Plain Layout
10929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10932 \begin_layout Plain Layout
10934 Fürst von Montecompatri, 11.
10935 Fürst von Sulmona und Vivaro, 10.
10936 Fürst von Rossano, 5.
10937 Herzog von Canemorte, 11.
10938 Herzog von Palombara, 5.
10939 Herzog von Castelchiodato,
10943 \begin_layout Plain Layout
10954 \begin_layout Plain Layout
10962 Herzog von Poggionativo, 11.
10963 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10964 Graf von Valinfreda, 11.
10965 Baron von Cropalati, 11.
10966 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10971 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10974 \begin_layout Plain Layout
10982 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10985 \begin_layout Plain Layout
10993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10996 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11005 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11016 \begin_layout Plain Layout
11024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11027 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11036 \begin_layout Plain Layout
11044 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11047 \begin_layout Plain Layout
11055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11058 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11067 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11078 \begin_layout Plain Layout
11086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11089 \begin_layout Plain Layout
11095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11098 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11109 \begin_layout Plain Layout
11117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11120 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11140 \begin_layout Plain Layout
11148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11151 \begin_layout Plain Layout
11157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11160 \begin_layout Plain Layout
11168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11171 \begin_layout Plain Layout
11179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11182 \begin_layout Plain Layout
11188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11191 \begin_layout Plain Layout
11199 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11202 \begin_layout Plain Layout
11210 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11213 \begin_layout Plain Layout
11219 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11222 \begin_layout Plain Layout
11236 \begin_layout Section
11237 Multiple Lines Columns and Rows
11240 \begin_layout Subsection
11241 Multiple Lines in Table Cells
11242 \begin_inset CommandInset label
11244 name "sub:Multiple-Lines-in"
11249 \begin_inset Index idx
11252 \begin_layout Plain Layout
11253 Multiple Lines in Table Cells
11259 \begin_inset Index idx
11262 \begin_layout Plain Layout
11271 \begin_layout Standard
11273 \begin_inset Float table
11279 \begin_layout Plain Layout
11280 \begin_inset Caption
11282 \begin_layout Plain Layout
11283 \begin_inset CommandInset label
11285 name "tab:Table-with-multiple"
11289 Table with multiple lines in cells
11297 \begin_layout Plain Layout
11299 \begin_inset Tabular
11300 <lyxtabular version="3" rows="3" columns="3">
11301 <features tabularvalignment="middle">
11302 <column alignment="center" valignment="middle" width="2.5cm">
11303 <column alignment="center" valignment="middle" width="0">
11304 <column alignment="center" valignment="middle" width="0">
11306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11309 \begin_layout Plain Layout
11311 \begin_inset Newline linebreak
11319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11322 \begin_layout Plain Layout
11328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11331 \begin_layout Plain Layout
11339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11342 \begin_layout Plain Layout
11348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11351 \begin_layout Plain Layout
11357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11360 \begin_layout Plain Layout
11368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11371 \begin_layout Plain Layout
11377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11380 \begin_layout Plain Layout
11386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11389 \begin_layout Plain Layout
11408 \begin_layout Standard
11409 Setting a fixed width for a column enables you to enter text as a paragraph
11410 with multiple lines and hyphenation.
11413 \begin_layout Standard
11415 \begin_inset space ~
11419 \begin_inset CommandInset ref
11421 reference "tab:Table-with-multiple"
11425 , create a 3×3 table, mark the first cell and right-click on it.
11426 In the appearing table dialog we set a cell width of 2.5
11427 \begin_inset space \thinspace{}
11430 cm and choose centered for the vertical and horizontal alignment.
11431 The vertical alignment is used for all cells of the row.
11432 As our text is smaller than 2.5
11433 \begin_inset space \thinspace{}
11436 cm, only one line will appear.
11437 To get two lines, a justified line break (shortcut
11440 arg "newline-insert linebreak"
11444 If the text is wider than the set cell width, it will automatically be
11445 broken to several lines.
11448 \begin_layout Standard
11449 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11450 by LaTeX if it is the first entry.
11451 Therefore you need to insert something to prevent the word not being the
11453 So add a horizontal space of 0
11454 \begin_inset space \thinspace{}
11457 pt before the word.
11458 As the space is zero, it doesn't change the output.
11460 \begin_inset space ~
11464 \begin_inset CommandInset ref
11466 reference "tab:Table-with-and"
11473 \begin_layout Standard
11474 \begin_inset Float table
11480 \begin_layout Plain Layout
11481 \begin_inset Caption
11483 \begin_layout Plain Layout
11484 \begin_inset CommandInset label
11486 name "tab:Table-with-and"
11490 Table with and without hyphenation
11498 \begin_layout Plain Layout
11499 \begin_inset space \hfill{}
11503 \begin_inset Tabular
11504 <lyxtabular version="3" rows="3" columns="3">
11505 <features tabularvalignment="middle">
11506 <column alignment="center" valignment="middle" width="2.5cm">
11507 <column alignment="center" valignment="middle" width="0">
11508 <column alignment="center" valignment="middle" width="0">
11510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11513 \begin_layout Plain Layout
11514 verylongtablecellword
11519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11531 \begin_layout Plain Layout
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
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" bottomline="true" leftline="true" usebox="none">
11571 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11589 \begin_layout Plain Layout
11601 \begin_inset space \hfill{}
11605 \begin_inset Tabular
11606 <lyxtabular version="3" rows="3" columns="3">
11607 <features tabularvalignment="middle">
11608 <column alignment="center" valignment="middle" width="2.5cm">
11609 <column alignment="center" valignment="middle" width="0">
11610 <column alignment="center" valignment="middle" width="0">
11612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11615 \begin_layout Plain Layout
11616 \begin_inset space \hspace{}
11620 verylongtablecellword
11625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11628 \begin_layout Plain Layout
11634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11637 \begin_layout Plain Layout
11645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11648 \begin_layout Plain Layout
11654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11657 \begin_layout Plain Layout
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11666 \begin_layout Plain Layout
11674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11677 \begin_layout Plain Layout
11683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11695 \begin_layout Plain Layout
11707 \begin_inset space \hfill{}
11718 \begin_layout Subsection
11720 \begin_inset CommandInset label
11722 name "sub:Multicolumns"
11727 \begin_inset Index idx
11730 \begin_layout Plain Layout
11737 \begin_inset Index idx
11740 \begin_layout Plain Layout
11741 Table ! Multicolumns
11749 \begin_layout Subsubsection
11753 \begin_layout Standard
11754 To merge cells over multiple columns, select as many cells within a row
11755 as you want to merge and use either the table-toolbar button
11760 arg "inset-modify tabular multicolumn"
11767 Edit\SpecialChar \menuseparator
11768 Table\SpecialChar \menuseparator
11771 , or right click on the marked cells and choose
11775 in the context menu.
11778 \begin_layout Standard
11779 Multicolumns have there own cell settings.
11780 That means changing cell borders, cell alignment, and the width only affects
11782 Here is an example table with a multicolumn cell in the first row and one
11783 in the last row without the upper border:
11786 \begin_layout Standard
11788 \begin_inset Tabular
11789 <lyxtabular version="3" rows="3" columns="4">
11790 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11791 <column alignment="center" valignment="top" width="0pt">
11792 <column alignment="center" valignment="middle" width="0">
11793 <column alignment="center" valignment="top" width="0in">
11794 <column alignment="center" valignment="top" width="0pt">
11796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11799 \begin_layout Plain Layout
11805 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11808 \begin_layout Plain Layout
11814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11817 \begin_layout Plain Layout
11823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11826 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11837 \begin_layout Plain Layout
11852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11855 \begin_layout Plain Layout
11861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11864 \begin_layout Plain Layout
11870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11873 \begin_layout Plain Layout
11881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11884 \begin_layout Plain Layout
11890 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11893 \begin_layout Plain Layout
11899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11902 \begin_layout Plain Layout
11908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11911 \begin_layout Plain Layout
11925 \begin_layout Subsubsection
11926 Multicolumn Calculations
11927 \begin_inset CommandInset label
11929 name "sub:Multicolumn-Calculations"
11934 \begin_inset Index idx
11937 \begin_layout Plain Layout
11938 Multicolumns ! Calculations
11946 \begin_layout Standard
11947 LyX supports multicolumns directly, but we have to take account of the cell
11948 width of the columns spanned by the multicolumn cell.
11951 \begin_layout Standard
11952 \begin_inset Float table
11958 \begin_layout Plain Layout
11959 \begin_inset Caption
11961 \begin_layout Plain Layout
11962 \begin_inset CommandInset label
11964 name "tab:Table-with-centered"
11968 Table with centered multicolumn text above two columns that have exactly
11969 half the width of the multicolumn cell
11970 \begin_inset Argument
11973 \begin_layout Plain Layout
11974 Perfect multicolumn table
11987 \begin_layout Plain Layout
11989 \begin_inset Tabular
11990 <lyxtabular version="3" rows="3" columns="3">
11991 <features tabularvalignment="middle">
11992 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11993 <column alignment="center" valignment="middle" width="0">
11994 <column alignment="center" valignment="top" width="0">
11996 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11999 \begin_layout Plain Layout
12000 multiple lines multicolumn
12005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12008 \begin_layout Plain Layout
12014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12017 \begin_layout Plain Layout
12025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12028 \begin_layout Plain Layout
12034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12037 \begin_layout Plain Layout
12043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12046 \begin_layout Plain Layout
12054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12057 \begin_layout Plain Layout
12063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12066 \begin_layout Plain Layout
12072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12075 \begin_layout Plain Layout
12094 \begin_layout Standard
12095 To create for example Table
12096 \begin_inset space ~
12100 \begin_inset CommandInset ref
12102 reference "tab:Table-with-centered"
12106 , mark the first two cells in the first row of a 3×3 table and right-click
12108 Now choose for this cell
12117 \begin_inset space \thinspace{}
12120 cm in the table dialog.
12121 The merged columns should have exactly half the width of the multicolumn
12122 cell, so that you would set a width of 1.25
12123 \begin_inset space \thinspace{}
12126 cm for the first column.
12127 The second column has then automatically a width of 1.25
12128 \begin_inset space \thinspace{}
12131 cm (multicolumn width - width of first column).
12132 This was done for Table
12133 \begin_inset space ~
12137 \begin_inset CommandInset ref
12139 reference "tab:Table-without-half"
12146 \begin_layout Standard
12147 \begin_inset Float table
12152 \begin_layout Plain Layout
12153 \begin_inset Caption
12155 \begin_layout Plain Layout
12156 \begin_inset CommandInset label
12158 name "tab:Table-without-half"
12162 Table where the spanned table columns are not exactly half the width of
12163 the multicolumn cell
12164 \begin_inset Argument
12167 \begin_layout Plain Layout
12168 Imperfect multicolumn table
12181 \begin_layout Plain Layout
12183 \begin_inset Tabular
12184 <lyxtabular version="3" rows="3" columns="3">
12185 <features tabularvalignment="middle">
12186 <column alignment="center" valignment="top" width="1.25cm">
12187 <column alignment="center" valignment="top" width="0">
12188 <column alignment="center" valignment="top" width="0">
12190 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12193 \begin_layout Plain Layout
12194 multiple lines multicolumn
12199 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12202 \begin_layout Plain Layout
12208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12211 \begin_layout Plain Layout
12219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12222 \begin_layout Plain Layout
12228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12231 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12240 \begin_layout Plain Layout
12248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12251 \begin_layout Plain Layout
12257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12269 \begin_layout Plain Layout
12288 \begin_layout Standard
12289 You can see that the first column is not half the width of the multicolumn
12290 cell, it is a bit bigger.
12291 The reason is that the specified width of a cell
12292 \begin_inset Formula $W_{g}$
12295 is not its total width
12296 \begin_inset Formula $W_{\mathrm{tot}}$
12299 because a cell is always a bit larger than specified.
12301 \begin_inset space ~
12305 \begin_inset CommandInset ref
12307 reference "cha:Explanation-of-Equation"
12311 explains this in detail.
12314 \begin_layout Standard
12316 \begin_inset Formula $W_{g\, n}$
12319 which the user needs to set when
12323 columns are spanned can be calculated, so that each column has a total
12325 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12329 \begin_inset Formula
12331 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12339 \begin_layout Standard
12340 In our case we have
12341 \begin_inset Formula $n=2$
12345 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12348 cm and the default values for the lengths, so that equation
12349 \begin_inset CommandInset ref
12356 \begin_inset Formula
12358 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12366 \begin_layout Standard
12367 To enable calculations in LaTeX, the LaTeX-package
12371 must be loaded with the document preamble line
12372 \begin_inset Index idx
12375 \begin_layout Plain Layout
12376 LaTeX-packages ! calc
12384 \begin_layout Standard
12392 \begin_layout Standard
12393 LyX does not allow you to calculate lengths in the
12397 field of the table dialog.
12398 Therefore you have to format the column by inserting a LaTeX-argument in
12400 Here is an overview about the arguments:
12403 \begin_layout Itemize
12408 creates cell with a fixed width, its text is vertically top-aligned
12411 \begin_layout Itemize
12416 creates cell with a fixed width, its text is vertically centered
12419 \begin_layout Itemize
12424 creates cell with a fixed width, its text is vertically bottom-aligned
12427 \begin_layout Standard
12428 By entering a LaTeX-argument, all cell settings set in the table dialog
12432 \begin_layout Standard
12433 \begin_inset Note Greyedout
12436 \begin_layout Plain Layout
12441 Due to a bug, LyX shows the overwritten settings anyway.
12449 \begin_layout Standard
12450 As the text should be horizontally centered, the command
12457 You can now enter the following LaTeX-argument for the first spanned column:
12460 \begin_layout Standard
12465 centering}m{1.25cm-6.2pt}
12468 \begin_layout Standard
12473 means, that the commands inside the braces are applied before the cell
12477 \begin_layout Standard
12478 Although we have chosen centered alignment for the text of the multicolumn
12479 cell, it is still left aligned.
12480 This is because LyX only applies the alignment to single columns.
12481 So for the multicolumn cell we have to use the LaTeX-argument
12484 \begin_layout Standard
12492 \begin_layout Subsection
12494 \begin_inset CommandInset label
12496 name "sub:Multirows"
12501 \begin_inset Index idx
12504 \begin_layout Plain Layout
12511 \begin_inset Index idx
12514 \begin_layout Plain Layout
12523 \begin_layout Standard
12524 To merge cells over multiple rows, select as many cells within a column
12525 as you want to merge and use either the table-toolbar button
12530 arg "inset-modify tabular multirow"
12537 Edit\SpecialChar \menuseparator
12538 Table\SpecialChar \menuseparator
12541 , or right click on the marked cells and choose
12545 in the context menu.
12548 \begin_layout Standard
12549 Here is an example table with a multirow in the first column:
12552 \begin_layout Standard
12554 \begin_inset Tabular
12555 <lyxtabular version="3" rows="3" columns="3">
12556 <features tabularvalignment="middle">
12557 <column alignment="center" valignment="top" width="0pt">
12558 <column alignment="center" valignment="top" width="0">
12559 <column alignment="center" valignment="top" width="0">
12561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12564 \begin_layout Plain Layout
12570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12582 \begin_layout Plain Layout
12590 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12593 \begin_layout Plain Layout
12599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12611 \begin_layout Plain Layout
12619 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12622 \begin_layout Plain Layout
12628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12631 \begin_layout Plain Layout
12637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12640 \begin_layout Plain Layout
12654 \begin_layout Standard
12655 The width of multirow cells is set by setting the width and alignment for
12661 shifts the content of the multirow up/down if the offset is positive/negative.
12664 \begin_layout Standard
12665 If the column of a multirow cell has no explicit width, the multirow cell
12666 inherits the alignment of the column.
12667 Otherwise it is by default left-aligned.
12668 To override the default, renew the command
12677 \begin_layout Standard
12689 \begin_layout Standard
12690 in the document preamble.
12691 Then all entries of multirow cells in the document are centered.
12692 If centering is only needed for several tables, you can renew the command
12693 in a TeX-Code box just before the table instead of the preamble.
12694 If the text should be right-aligned, replace
12707 To return to left-alignment
12716 \begin_layout Standard
12717 This is an example table with a right-aligned multirow cell that has a vertical
12719 \begin_inset space \thinspace{}
12723 \begin_inset space \thinspace{}
12729 \begin_layout Standard
12735 \begin_layout Plain Layout
12749 \begin_inset Tabular
12750 <lyxtabular version="3" rows="4" columns="3">
12751 <features tabularvalignment="middle">
12752 <column alignment="center" valignment="top" width="3cm">
12753 <column alignment="center" valignment="top" width="0">
12754 <column alignment="center" valignment="top" width="0">
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12777 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12806 \begin_layout Plain Layout
12814 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12817 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12826 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12835 \begin_layout Plain Layout
12843 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12846 \begin_layout Plain Layout
12852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12855 \begin_layout Plain Layout
12861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12864 \begin_layout Plain Layout
12879 \begin_layout Plain Layout
12895 \begin_layout Standard
12896 To start a new line in a multirow you can use a forced line break (shortcut
12900 arg "newline-insert newline"
12903 ) but this will not respect the cell lines as demonstrated in this table:
12906 \begin_layout Standard
12909 \begin_inset Tabular
12910 <lyxtabular version="3" rows="3" columns="2">
12911 <features tabularvalignment="middle">
12912 <column alignment="left" valignment="middle" width="2cm">
12913 <column alignment="center" valignment="top" width="0">
12915 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12918 \begin_layout Plain Layout
12920 \begin_inset Newline newline
12924 \begin_inset Newline newline
12932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12935 \begin_layout Plain Layout
12943 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12946 \begin_layout Plain Layout
12952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12955 \begin_layout Plain Layout
12963 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12966 \begin_layout Plain Layout
12972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12975 \begin_layout Plain Layout
12989 \begin_layout Standard
12990 Therefore be careful with forced line breaks.
12993 \begin_layout Section
12995 \begin_inset CommandInset label
12997 name "sec:Formal-Tables"
13002 \begin_inset Index idx
13005 \begin_layout Plain Layout
13014 \begin_layout Standard
13015 Tables are often typeset in books similar to Table
13016 \begin_inset space ~
13020 \begin_inset CommandInset ref
13022 reference "tab:Example-booktabs-table"
13027 This kind of tables is called
13028 \begin_inset Quotes eld
13036 \begin_inset Quotes erd
13040 To make a table a formal table use the option
13048 tab of the table dialog.
13051 \begin_layout Standard
13052 \begin_inset Float table
13058 \begin_layout Plain Layout
13059 \begin_inset Caption
13061 \begin_layout Plain Layout
13062 \begin_inset CommandInset label
13064 name "tab:Example-booktabs-table"
13068 Example booktabs-table
13076 \begin_layout Plain Layout
13078 \begin_inset Tabular
13079 <lyxtabular version="3" rows="8" columns="4">
13080 <features booktabs="true" tabularvalignment="middle">
13081 <column alignment="center" valignment="top" width="0">
13082 <column alignment="center" valignment="top" width="0">
13083 <column alignment="center" valignment="top" width="0">
13084 <column alignment="center" valignment="top" width="0">
13086 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13089 \begin_layout Plain Layout
13095 <cell alignment="center" valignment="top" topline="true" usebox="none">
13098 \begin_layout Plain Layout
13100 \begin_inset space \thinspace{}
13108 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13111 \begin_layout Plain Layout
13113 \begin_inset space \thinspace{}
13121 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13124 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13135 \begin_layout Plain Layout
13139 \begin_layout Plain Layout
13152 \begin_layout Plain Layout
13161 Detector thickness in µm
13166 <cell alignment="center" valignment="top" usebox="none">
13169 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" usebox="none">
13187 \begin_layout Plain Layout
13195 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13198 \begin_layout Plain Layout
13204 <cell alignment="center" valignment="top" topline="true" usebox="none">
13207 \begin_layout Plain Layout
13213 <cell alignment="center" valignment="top" topline="true" usebox="none">
13216 \begin_layout Plain Layout
13222 <cell alignment="center" valignment="top" topline="true" usebox="none">
13225 \begin_layout Plain Layout
13232 <row topspace="default">
13233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13236 \begin_layout Plain Layout
13237 Spatial resolution in µm
13242 <cell alignment="center" valignment="top" usebox="none">
13245 \begin_layout Plain Layout
13251 <cell alignment="center" valignment="top" usebox="none">
13254 \begin_layout Plain Layout
13260 <cell alignment="center" valignment="top" usebox="none">
13263 \begin_layout Plain Layout
13270 <row topspace="default">
13271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13274 \begin_layout Plain Layout
13276 \begin_inset Formula $f_{\mathrm{max}}$
13284 <cell alignment="center" valignment="top" usebox="none">
13287 \begin_layout Plain Layout
13293 <cell alignment="center" valignment="top" usebox="none">
13296 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" usebox="none">
13305 \begin_layout Plain Layout
13312 <row topspace="default">
13313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13316 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13324 cmidrule(l{10pt}){1-1}
13329 LSF-spatial resolution
13334 <cell alignment="center" valignment="top" usebox="none">
13337 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" usebox="none">
13355 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" usebox="none">
13375 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" usebox="none">
13384 \begin_layout Plain Layout
13390 <cell alignment="center" valignment="top" usebox="none">
13393 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13422 \begin_layout Plain Layout
13428 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13431 \begin_layout Plain Layout
13450 \begin_layout Standard
13451 Spaces to table rows can be added using the
13455 tab of the table dialog as described in section
13456 \begin_inset space ~
13460 \begin_inset CommandInset ref
13462 reference "sub:Row-Spacing"
13469 \begin_layout Standard
13470 Unlike normal tables, formal tables have no vertical table lines.
13471 The horizontal table lines can be set as for normal tables but they appear
13472 with different widths in the output:
13473 \begin_inset Newline newline
13476 The first and the last table line have a default width of 0.08
13477 \begin_inset space \thinspace{}
13480 em while the other lines have a default width of 0.05
13481 \begin_inset space \thinspace{}
13487 \begin_layout Standard
13488 The default widths can be changed with the following preamble lines
13491 \begin_layout Standard
13501 \begin_inset Newline newline
13513 \begin_layout Standard
13514 This example is for the first line, the so called
13519 If you want to change the width for the last line, replace
13528 To change the width for the other lines replace
13537 You can use all units listed in appendix
13538 \begin_inset space ~
13542 \begin_inset CommandInset ref
13544 reference "cha:Units-available-in"
13551 \begin_layout Standard
13552 Lines that do not span all table columns can be created by setting a table
13553 line for multicolumn cells.
13554 LyX will then internally use the command
13560 to create this line.
13564 \begin_layout Standard
13569 cmidrule[width](trim){startcol-endcol}
13572 \begin_layout Standard
13579 are currently not supported by LyX so you have to use TeX-Code to be able
13587 s can manually be created by inserting the command as TeX-Code as the first
13588 cell entry of the first cell of a row.
13589 The line is then drawn in the output above the current row.
13592 \begin_layout Standard
13593 The default for the width is 0.03
13594 \begin_inset space \thinspace{}
13598 Startcol is the number of the column where the line starts and endcol the
13599 column number where the line ends.
13600 The endcol always needs to be specified, also when the line should span
13602 The optional parameter trim could be either
13610 where the trimwidth is also optional.
13611 Using for example the parameter
13615 means that the line is trimmed from its left end by 2
13616 \begin_inset space \thinspace{}
13620 If you don't specify the trimwidth the lines are trimmed by the default
13622 \begin_inset space \thinspace{}
13628 \begin_layout Standard
13629 \begin_inset VSpace bigskip
13633 \begin_inset space ~
13637 \begin_inset CommandInset ref
13639 reference "tab:Example-booktabs-table"
13643 was created using the commands
13646 \begin_layout Standard
13656 \begin_layout Standard
13657 at the beginning of the second row and
13660 \begin_layout Standard
13665 cmidrule(l{10pt}){1-1}
13668 \begin_layout Standard
13672 \begin_layout Standard
13673 \begin_inset VSpace bigskip
13679 \begin_layout Standard
13680 You might want to have overlapping
13687 \begin_inset space ~
13691 \begin_inset CommandInset ref
13693 reference "tab:Special-booktabs-table"
13698 This can be achieved with the TeX-Code command
13701 \begin_layout Standard
13709 \begin_layout Standard
13710 The command that was used for the second row of Table
13711 \begin_inset space ~
13715 \begin_inset CommandInset ref
13717 reference "tab:Special-booktabs-table"
13724 \begin_layout Standard
13738 \begin_layout Standard
13739 The command for the sixth row is
13742 \begin_layout Standard
13754 \begin_layout Standard
13755 \begin_inset VSpace bigskip
13761 \begin_layout Standard
13762 If you are anyway not satisfied with the border line spacing, you can use
13763 the following command to produce lines that span over all table columns
13768 \begin_layout Standard
13773 specialrule{width}{space above}{space below}
13776 \begin_layout Standard
13777 For more information about these features, refer to the manual of the LaTeX-pack
13783 \begin_inset CommandInset citation
13790 \begin_inset Index idx
13793 \begin_layout Plain Layout
13794 LaTeX-packages ! booktabs
13802 \begin_layout Standard
13803 \begin_inset Float table
13809 \begin_layout Plain Layout
13810 \begin_inset Caption
13812 \begin_layout Plain Layout
13813 \begin_inset CommandInset label
13815 name "tab:Special-booktabs-table"
13819 Special booktabs-table
13827 \begin_layout Plain Layout
13829 \begin_inset Tabular
13830 <lyxtabular version="3" rows="8" columns="4">
13831 <features booktabs="true" tabularvalignment="middle">
13832 <column alignment="center" valignment="top" width="0">
13833 <column alignment="center" valignment="top" width="0">
13834 <column alignment="center" valignment="top" width="0">
13835 <column alignment="center" valignment="top" width="0">
13837 <cell alignment="center" valignment="top" topline="true" usebox="none">
13840 \begin_layout Plain Layout
13846 <cell alignment="center" valignment="top" topline="true" usebox="none">
13849 \begin_layout Plain Layout
13851 \begin_inset space \thinspace{}
13859 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13862 \begin_layout Plain Layout
13864 \begin_inset space \thinspace{}
13872 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13875 \begin_layout Plain Layout
13883 <cell alignment="center" valignment="top" usebox="none">
13886 \begin_layout Plain Layout
13890 \begin_layout Plain Layout
13903 \begin_layout Plain Layout
13916 \begin_layout Plain Layout
13929 \begin_layout Plain Layout
13938 Detector thickness in µm
13943 <cell alignment="center" valignment="top" usebox="none">
13946 \begin_layout Plain Layout
13952 <cell alignment="center" valignment="top" usebox="none">
13955 \begin_layout Plain Layout
13961 <cell alignment="center" valignment="top" usebox="none">
13964 \begin_layout Plain Layout
13972 <cell alignment="center" valignment="top" topline="true" usebox="none">
13975 \begin_layout Plain Layout
13981 <cell alignment="center" valignment="top" topline="true" usebox="none">
13984 \begin_layout Plain Layout
13990 <cell alignment="center" valignment="top" topline="true" usebox="none">
13993 \begin_layout Plain Layout
13999 <cell alignment="center" valignment="top" topline="true" usebox="none">
14002 \begin_layout Plain Layout
14009 <row topspace="default">
14010 <cell alignment="center" valignment="top" usebox="none">
14013 \begin_layout Plain Layout
14014 Spatial resolution in µm
14019 <cell alignment="center" valignment="top" usebox="none">
14022 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" usebox="none">
14040 \begin_layout Plain Layout
14047 <row topspace="default">
14048 <cell alignment="center" valignment="top" usebox="none">
14051 \begin_layout Plain Layout
14053 \begin_inset Formula $f_{\mathrm{max}}$
14061 <cell alignment="center" valignment="top" usebox="none">
14064 \begin_layout Plain Layout
14070 <cell alignment="center" valignment="top" usebox="none">
14073 \begin_layout Plain Layout
14079 <cell alignment="center" valignment="top" usebox="none">
14082 \begin_layout Plain Layout
14090 <cell alignment="center" valignment="top" topline="true" usebox="none">
14093 \begin_layout Plain Layout
14097 \begin_layout Plain Layout
14110 \begin_layout Plain Layout
14119 LSF-spatial resolution
14124 <cell alignment="center" valignment="top" topline="true" usebox="none">
14127 \begin_layout Plain Layout
14133 <cell alignment="center" valignment="top" topline="true" usebox="none">
14136 \begin_layout Plain Layout
14142 <cell alignment="center" valignment="top" topline="true" usebox="none">
14145 \begin_layout Plain Layout
14153 <cell alignment="center" valignment="top" usebox="none">
14156 \begin_layout Plain Layout
14162 <cell alignment="center" valignment="top" usebox="none">
14165 \begin_layout Plain Layout
14171 <cell alignment="center" valignment="top" usebox="none">
14174 \begin_layout Plain Layout
14180 <cell alignment="center" valignment="top" usebox="none">
14183 \begin_layout Plain Layout
14191 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14194 \begin_layout Plain Layout
14200 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14203 \begin_layout Plain Layout
14209 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14212 \begin_layout Plain Layout
14218 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14221 \begin_layout Plain Layout
14240 \begin_layout Section
14241 Vertical Table Alignment
14242 \begin_inset Index idx
14245 \begin_layout Plain Layout
14254 \begin_layout Standard
14255 To align tables vertically in a text line the table must be inside a box.
14256 The box can then be vertically aligned as described in section
14257 \begin_inset space ~
14261 \begin_inset CommandInset ref
14263 reference "sec:Box-Dialog"
14270 \begin_layout Standard
14271 In the following example the tables are inside a minipage
14275 \begin_layout Plain Layout
14276 Minipages are described in section
14277 \begin_inset space ~
14281 \begin_inset CommandInset ref
14283 reference "sec:Minipages"
14292 box that has a width of 15
14293 \begin_inset space \thinspace{}
14299 \begin_layout Itemize
14301 \begin_inset Box Frameless
14311 height_special "totalheight"
14314 \begin_layout Plain Layout
14315 \begin_inset Tabular
14316 <lyxtabular version="3" rows="3" columns="3">
14317 <features tabularvalignment="middle">
14318 <column alignment="center" valignment="top" width="0">
14319 <column alignment="center" valignment="top" width="0">
14320 <column alignment="center" valignment="top" width="0">
14322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14325 \begin_layout Plain Layout
14331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14334 \begin_layout Plain Layout
14340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14343 \begin_layout Plain Layout
14351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14354 \begin_layout Plain Layout
14360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14363 \begin_layout Plain Layout
14369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14372 \begin_layout Plain Layout
14380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14383 \begin_layout Plain Layout
14389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14392 \begin_layout Plain Layout
14398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14401 \begin_layout Plain Layout
14421 \begin_layout Plain Layout
14433 \begin_inset Box Frameless
14443 height_special "totalheight"
14446 \begin_layout Plain Layout
14447 \begin_inset Tabular
14448 <lyxtabular version="3" rows="3" columns="3">
14449 <features tabularvalignment="middle">
14450 <column alignment="center" valignment="top" width="0">
14451 <column alignment="center" valignment="top" width="0">
14452 <column alignment="center" valignment="top" width="0">
14454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14457 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14466 \begin_layout Plain Layout
14472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14475 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14486 \begin_layout Plain Layout
14492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14495 \begin_layout Plain Layout
14501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14504 \begin_layout Plain Layout
14512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14515 \begin_layout Plain Layout
14521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14524 \begin_layout Plain Layout
14530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14533 \begin_layout Plain Layout
14553 \begin_layout Plain Layout
14563 \begin_layout Itemize
14565 \begin_inset Box Frameless
14575 height_special "totalheight"
14578 \begin_layout Plain Layout
14579 \begin_inset Tabular
14580 <lyxtabular version="3" rows="3" columns="3">
14581 <features tabularvalignment="middle">
14582 <column alignment="center" valignment="top" width="0">
14583 <column alignment="center" valignment="top" width="0">
14584 <column alignment="center" valignment="top" width="0">
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14589 \begin_layout Plain Layout
14595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14598 \begin_layout Plain Layout
14604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14607 \begin_layout Plain Layout
14615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14618 \begin_layout Plain Layout
14624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14627 \begin_layout Plain Layout
14633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14636 \begin_layout Plain Layout
14644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14647 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14656 \begin_layout Plain Layout
14662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14665 \begin_layout Plain Layout
14684 \begin_layout Itemize
14686 \begin_inset Box Frameless
14696 height_special "totalheight"
14699 \begin_layout Plain Layout
14700 \begin_inset Tabular
14701 <lyxtabular version="3" rows="3" columns="3">
14702 <features tabularvalignment="middle">
14703 <column alignment="center" valignment="top" width="0">
14704 <column alignment="center" valignment="top" width="0">
14705 <column alignment="center" valignment="top" width="0">
14707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14710 \begin_layout Plain Layout
14716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14719 \begin_layout Plain Layout
14725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14728 \begin_layout Plain Layout
14736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14739 \begin_layout Plain Layout
14745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14748 \begin_layout Plain Layout
14754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14757 \begin_layout Plain Layout
14765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14768 \begin_layout Plain Layout
14774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14777 \begin_layout Plain Layout
14783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14786 \begin_layout Plain Layout
14806 \begin_layout Plain Layout
14818 \begin_inset Box Frameless
14828 height_special "totalheight"
14831 \begin_layout Plain Layout
14832 \begin_inset Tabular
14833 <lyxtabular version="3" rows="3" columns="3">
14834 <features tabularvalignment="middle">
14835 <column alignment="center" valignment="top" width="0">
14836 <column alignment="center" valignment="top" width="0">
14837 <column alignment="center" valignment="top" width="0">
14839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14842 \begin_layout Plain Layout
14848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14851 \begin_layout Plain Layout
14857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14860 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14871 \begin_layout Plain Layout
14877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14880 \begin_layout Plain Layout
14886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14889 \begin_layout Plain Layout
14897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14900 \begin_layout Plain Layout
14906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14909 \begin_layout Plain Layout
14915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14918 \begin_layout Plain Layout
14938 \begin_layout Plain Layout
14948 \begin_layout Standard
14949 As you will see, the content of the first and last table row is not correctly
14951 To get this alignment, the minipage box must be set into a raisebox
14955 \begin_layout Plain Layout
14956 Raiseboxes are described in section
14957 \begin_inset space ~
14961 \begin_inset CommandInset ref
14963 reference "sub:Vertical-Alignment"
14973 In the example above the second table in the first item is aligned using
14974 the TeX-Code-command
14977 \begin_layout Standard
14987 \begin_layout Standard
14989 After the box the closing brace
14993 is inserted as TeX-Code.
14994 For the second table in the last item the command
14997 \begin_layout Standard
15007 \begin_layout Standard
15011 \begin_layout Standard
15012 \begin_inset Note Greyedout
15015 \begin_layout Plain Layout
15020 The alignment of the table row content to the surrounding text line is
15022 The required value for the
15028 command for this alignment depends on the document font, the font size,
15029 and the table line thickness.
15037 \begin_layout Section
15039 \begin_inset CommandInset label
15041 name "sec:Colored-Tables"
15046 \begin_inset Index idx
15049 \begin_layout Plain Layout
15058 \begin_layout Subsection
15060 \begin_inset Index idx
15063 \begin_layout Plain Layout
15064 Table Color ! for Cells
15070 \begin_inset Index idx
15073 \begin_layout Plain Layout
15074 Color ! for Table Cells
15082 \begin_layout Standard
15083 \begin_inset Float table
15089 \begin_layout Plain Layout
15090 \begin_inset Caption
15092 \begin_layout Plain Layout
15093 \begin_inset CommandInset label
15095 name "tab:Table-colored-without"
15099 Table colored without using the package
15104 \begin_inset Argument
15107 \begin_layout Plain Layout
15108 Table without colortbl
15121 \begin_layout Plain Layout
15123 \begin_inset Tabular
15124 <lyxtabular version="3" rows="3" columns="3">
15125 <features tabularvalignment="middle">
15126 <column alignment="center" valignment="top" width="0">
15127 <column alignment="center" valignment="top" width="0">
15128 <column alignment="center" valignment="top" width="0">
15130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15133 \begin_layout Plain Layout
15141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15144 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15155 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15168 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15179 \begin_layout Plain Layout
15187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15190 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15203 \begin_layout Plain Layout
15211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15214 \begin_layout Plain Layout
15222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15225 \begin_layout Plain Layout
15246 \begin_layout Standard
15247 If you only need colored text, mark the cells and choose a color in the
15250 Edit\SpecialChar \menuseparator
15252 \begin_inset space ~
15258 This was used to create Table
15259 \begin_inset space ~
15263 \begin_inset CommandInset ref
15265 reference "tab:Table-colored-without"
15270 In any other case you have to use the LaTeX-package
15275 \begin_inset Index idx
15278 \begin_layout Plain Layout
15279 LaTeX-packages ! colortbl
15287 \begin_layout Standard
15291 \begin_layout Plain Layout
15301 \begin_inset Note Note
15304 \begin_layout Plain Layout
15305 The following section part will only be displayed when the LaTeX-package
15318 \begin_layout Standard
15319 To create colored tables,
15323 must be loaded in the preamble with the line
15326 \begin_layout Standard
15331 usepackage{colortbl}
15334 \begin_layout Standard
15335 The color of a column is adjusted with the command
15338 \begin_layout Standard
15343 columncolor{name of color}
15346 \begin_layout Standard
15352 More about the command
15356 is contained in section
15357 \begin_inset space ~
15361 \begin_inset CommandInset ref
15363 reference "sub:Multicolumn-Calculations"
15370 \begin_layout Standard
15371 The following color names are predefined:
15374 \begin_layout Standard
15408 \begin_layout Standard
15409 \begin_inset VSpace medskip
15415 \begin_layout Standard
15416 If you add the options
15419 \begin_layout Standard
15422 usenames,dvipsnames
15425 \begin_layout Standard
15426 to the document class options in the document settings, you can additionally
15428 \begin_inset space ~
15432 These colors are listed in appendix
15433 \begin_inset space ~
15437 \begin_inset CommandInset ref
15439 reference "chap:List-of-dvips-colornames"
15444 One of these colors,
15448 , is used as example in Table
15449 \begin_inset space ~
15453 \begin_inset CommandInset ref
15455 reference "tab:Table-colored-using"
15462 \begin_layout Standard
15463 \begin_inset VSpace medskip
15469 \begin_layout Standard
15470 You can also define your own color with the command
15473 \begin_layout Standard
15478 definecolor{color name}{color model}{color values}
15481 \begin_layout Standard
15482 The color model can be
15485 \begin_layout Labeling
15486 \labelwidthstring 00.00.0000
15487 cmyk: cyan, magenta, yellow, black
15490 \begin_layout Labeling
15491 \labelwidthstring 00.00.0000
15492 rgb: red, green blue
15495 \begin_layout Labeling
15496 \labelwidthstring 00.00.0000
15500 \begin_layout Standard
15501 and the color values are comma separated numbers between 0 and 1 describing
15502 the factor for the corresponding color of the color model.
15505 \begin_layout Standard
15507 \begin_inset space \thinspace{}
15511 \begin_inset space \space{}
15518 " in the preamble with
15521 \begin_layout Standard
15526 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15529 \begin_layout Standard
15537 \begin_layout Standard
15542 definecolor{lightgray}{gray}{0.8}
15545 \begin_layout Standard
15546 \begin_inset VSpace medskip
15552 \begin_layout Standard
15553 Lines are colored with the command
15556 \begin_layout Standard
15561 rowcolor{name of color}
15564 \begin_layout Standard
15565 and cells are colored with the command
15568 \begin_layout Standard
15573 cellcolor{name of color}
15576 \begin_layout Standard
15577 Both commands are inserted at the beginning of a cell as TeX-Code.
15580 \begin_layout Standard
15581 To color characters in the table, mark the cells and use the LyX menu
15583 Edit\SpecialChar \menuseparator
15585 \begin_inset space ~
15591 If a cell contains TeX-Code mark only the characters, otherwise the colored
15592 TeX-Code will cause LaTeX-errors.
15595 \begin_layout Standard
15596 \begin_inset Note Greyedout
15599 \begin_layout Plain Layout
15604 Not all DVI-viewers are able to display self-defined colors.
15612 \begin_layout Standard
15613 \begin_inset VSpace bigskip
15619 \begin_layout Standard
15621 \begin_inset space ~
15625 \begin_inset CommandInset ref
15627 reference "tab:Table-colored-using"
15631 do the following: The color of the first column should be
15639 \begin_layout Standard
15644 columncolor{darkgreen}
15649 \begin_layout Standard
15650 as LaTeX-argument for this column.
15651 The first row should be light blue, therefore the TeX-Code command
15654 \begin_layout Standard
15662 \begin_layout Standard
15663 is inserted to the first cell of this row.
15664 Note that this overwrites the column color for the first cell.
15665 The last cell of the last row is colored maroon by inserting the TeX-Code
15669 \begin_layout Standard
15677 \begin_layout Standard
15678 The characters could now be colored using the menu
15680 Edit\SpecialChar \menuseparator
15682 \begin_inset space ~
15690 \begin_layout Standard
15691 \begin_inset Float table
15697 \begin_layout Plain Layout
15698 \begin_inset Caption
15700 \begin_layout Plain Layout
15701 \begin_inset CommandInset label
15703 name "tab:Table-colored-using"
15707 Table colored using the package
15712 \begin_inset Argument
15715 \begin_layout Plain Layout
15716 Table with colortbl
15729 \begin_layout Plain Layout
15731 \begin_inset Tabular
15732 <lyxtabular version="3" rows="3" columns="3">
15733 <features tabularvalignment="middle">
15734 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15735 <column alignment="center" valignment="top" width="0">
15736 <column alignment="center" valignment="top" width="0">
15738 <cell alignment="center" valignment="top" usebox="none">
15741 \begin_layout Plain Layout
15745 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" usebox="none">
15764 \begin_layout Plain Layout
15772 <cell alignment="center" valignment="top" usebox="none">
15775 \begin_layout Plain Layout
15785 <cell alignment="center" valignment="top" usebox="none">
15788 \begin_layout Plain Layout
15796 <cell alignment="center" valignment="top" usebox="none">
15799 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15820 <cell alignment="center" valignment="top" usebox="none">
15823 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" usebox="none">
15834 \begin_layout Plain Layout
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15849 \begin_layout Plain Layout
15878 \begin_layout Standard
15882 \begin_layout Plain Layout
15892 \begin_inset Note Note
15895 \begin_layout Plain Layout
15896 The following will be displayed when the LaTeX-package
15908 \begin_layout Standard
15909 You need to install the package
15913 to see the content of this section in the output.
15916 \begin_layout Standard
15920 \begin_layout Plain Layout
15932 \begin_layout Subsection
15934 \begin_inset Index idx
15937 \begin_layout Plain Layout
15938 Table Color ! for Lines
15944 \begin_inset Index idx
15947 \begin_layout Plain Layout
15948 Color ! for Table Lines
15956 \begin_layout Standard
15957 As described in section
15958 \begin_inset space ~
15962 \begin_inset CommandInset ref
15964 reference "sub:Line-Thickness"
15968 , the line thickness for all lines in a table can be adjusted with the length
15977 \begin_inset space \thinspace{}
15980 pt for all tables of this section.
15984 \begin_layout Plain Layout
15990 arrayrulewidth}{1.5pt}
15998 \begin_layout Standard
15999 To color vertical lines for example with green, create the following column
16000 format in the document preamble, according to the description in section
16001 \begin_inset space ~
16005 \begin_inset CommandInset ref
16007 reference "sub:Customized-Format"
16014 \begin_layout Standard
16019 newcolumntype{W}{!{
16026 \begin_layout Standard
16028 \begin_inset space ~
16032 \begin_inset CommandInset ref
16034 reference "tab:Table-with-vertical-colored"
16042 was used for the last column and
16046 for the other columns.
16049 \begin_layout Standard
16050 If you want to have several colors, define more column formats.
16053 \begin_layout Standard
16054 \begin_inset Float table
16060 \begin_layout Plain Layout
16061 \begin_inset Caption
16063 \begin_layout Plain Layout
16064 \begin_inset CommandInset label
16066 name "tab:Table-with-vertical-colored"
16070 Table with colored vertical lines
16078 \begin_layout Plain Layout
16080 \begin_inset Tabular
16081 <lyxtabular version="3" rows="3" columns="3">
16082 <features tabularvalignment="middle">
16083 <column alignment="center" valignment="top" width="0" special="Wc">
16084 <column alignment="center" valignment="top" width="0" special="Wc">
16085 <column alignment="center" valignment="top" width="0" special="WcW">
16087 <cell alignment="center" valignment="top" topline="true" usebox="none">
16090 \begin_layout Plain Layout
16096 <cell alignment="center" valignment="top" topline="true" usebox="none">
16099 \begin_layout Plain Layout
16105 <cell alignment="center" valignment="top" topline="true" usebox="none">
16108 \begin_layout Plain Layout
16116 <cell alignment="center" valignment="top" topline="true" usebox="none">
16119 \begin_layout Plain Layout
16125 <cell alignment="center" valignment="top" topline="true" usebox="none">
16128 \begin_layout Plain Layout
16134 <cell alignment="center" valignment="top" topline="true" usebox="none">
16137 \begin_layout Plain Layout
16145 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16148 \begin_layout Plain Layout
16154 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16157 \begin_layout Plain Layout
16163 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16166 \begin_layout Plain Layout
16185 \begin_layout Standard
16186 \begin_inset VSpace bigskip
16189 To color horizontal lines for example with red, as in Table
16190 \begin_inset space ~
16194 \begin_inset CommandInset ref
16196 reference "tab:Table-with-horizontal-colored"
16200 , insert these commands in TeX-Code before the table or table float:
16203 \begin_layout Standard
16213 \begin_inset Newline newline
16221 \begin_inset Newline newline
16225 \begin_inset Phantom HPhantom
16228 \begin_layout Plain Layout
16231 \begin_inset space ~
16241 arrayrulecolor{red}
16245 arrayrulecolor{black}}
16248 \begin_layout Standard
16252 \begin_layout Plain Layout
16263 \begin_layout Plain Layout
16272 \begin_layout Plain Layout
16276 arrayrulecolor{red}
16280 arrayrulecolor{black}}
16286 \begin_inset Float table
16292 \begin_layout Plain Layout
16293 \begin_inset Caption
16295 \begin_layout Plain Layout
16296 \begin_inset CommandInset label
16298 name "tab:Table-with-horizontal-colored"
16302 Table with colored horizontal lines
16310 \begin_layout Plain Layout
16312 \begin_inset Tabular
16313 <lyxtabular version="3" rows="3" columns="3">
16314 <features tabularvalignment="middle">
16315 <column alignment="center" valignment="top" width="0">
16316 <column alignment="center" valignment="top" width="0">
16317 <column alignment="center" valignment="top" width="0">
16319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16322 \begin_layout Plain Layout
16328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16331 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16340 \begin_layout Plain Layout
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16351 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16369 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16380 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16398 \begin_layout Plain Layout
16417 \begin_layout Standard
16418 To return to the default line color black, insert this command in TeX-Code
16419 after the table or table float:
16422 \begin_layout Standard
16434 \begin_layout Standard
16436 \begin_inset space ~
16440 \begin_inset CommandInset ref
16442 reference "tab:Table-with-colored"
16446 is an example with colored vertical and horizontal lines.
16449 \begin_layout Standard
16450 \begin_inset Float table
16456 \begin_layout Plain Layout
16457 \begin_inset Caption
16459 \begin_layout Plain Layout
16460 \begin_inset CommandInset label
16462 name "tab:Table-with-colored"
16466 Table with colored lines
16474 \begin_layout Plain Layout
16476 \begin_inset Tabular
16477 <lyxtabular version="3" rows="3" columns="3">
16478 <features tabularvalignment="middle">
16479 <column alignment="center" valignment="top" width="0" special="Wc">
16480 <column alignment="center" valignment="top" width="0" special="Wc">
16481 <column alignment="center" valignment="top" width="0" special="WcW">
16483 <cell alignment="center" valignment="top" topline="true" usebox="none">
16486 \begin_layout Plain Layout
16492 <cell alignment="center" valignment="top" topline="true" usebox="none">
16495 \begin_layout Plain Layout
16501 <cell alignment="center" valignment="top" topline="true" usebox="none">
16504 \begin_layout Plain Layout
16512 <cell alignment="center" valignment="top" topline="true" usebox="none">
16515 \begin_layout Plain Layout
16521 <cell alignment="center" valignment="top" topline="true" usebox="none">
16524 \begin_layout Plain Layout
16530 <cell alignment="center" valignment="top" topline="true" usebox="none">
16533 \begin_layout Plain Layout
16540 <row topspace="default">
16541 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16544 \begin_layout Plain Layout
16550 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16553 \begin_layout Plain Layout
16559 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16562 \begin_layout Plain Layout
16581 \begin_layout Standard
16585 \begin_layout Plain Layout
16601 \begin_layout Standard
16605 \begin_layout Plain Layout
16611 arrayrulewidth}{0.4pt}
16619 \begin_layout Section
16620 Table Customization
16621 \begin_inset Index idx
16624 \begin_layout Plain Layout
16625 Table Customization
16631 \begin_inset Index idx
16634 \begin_layout Plain Layout
16635 Table ! Customization
16643 \begin_layout Subsection
16645 \begin_inset CommandInset label
16647 name "sub:Row-Spacing"
16652 \begin_inset Index idx
16655 \begin_layout Plain Layout
16656 Table Customization ! Row Spacing
16664 \begin_layout Standard
16665 You can add vertical space to table rows in the
16669 tab of the table dialog.
16670 You find there three possibilities:
16673 \begin_layout Description
16675 \begin_inset space ~
16679 \begin_inset space ~
16682 row will add space above the characters of the table row.
16683 If the table is a formal table
16687 \begin_layout Plain Layout
16688 Formal tables are explained in section
16689 \begin_inset space ~
16693 \begin_inset CommandInset ref
16695 reference "sec:Formal-Tables"
16704 LyX will insert as default 0.5
16705 \begin_inset space \thinspace{}
16709 For normal tables the inserted space will unfortunately destroy the vertical
16710 table lines as in the following table:
16711 \begin_inset VSpace medskip
16715 \begin_inset Newline newline
16719 \begin_inset space \hspace*{}
16724 \begin_inset space \hfill{}
16728 \begin_inset Tabular
16729 <lyxtabular version="3" rows="3" columns="1">
16730 <features tabularvalignment="middle">
16731 <column alignment="center" valignment="top" width="0">
16733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16736 \begin_layout Plain Layout
16743 <row topspace="3mm">
16744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16747 \begin_layout Plain Layout
16749 \begin_inset space \thinspace{}
16752 mm space top of row
16759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16762 \begin_layout Plain Layout
16774 \begin_inset space \hfill{}
16778 \begin_inset space \hspace*{}
16783 \begin_inset VSpace medskip
16787 \begin_inset Newline newline
16790 So inserting space in the top of row for normal tables is only useful when
16791 you don't have vertical lines.
16794 \begin_layout Description
16796 \begin_inset space ~
16800 \begin_inset space ~
16803 row will add space below the characters of the table row.
16804 If the table is a formal table LyX will insert as default 0.5
16805 \begin_inset space \thinspace{}
16808 em space, for normal tables the default size is 2
16809 \begin_inset space \thinspace{}
16815 \begin_layout Description
16817 \begin_inset space ~
16820 rows adds space between the current and the following row.
16821 If the table is a formal table LyX will insert as default 0.5
16822 \begin_inset space \thinspace{}
16826 For normal tables the inserted space will unfortunately destroy the vertical
16827 table lines as in the following table:
16828 \begin_inset VSpace medskip
16832 \begin_inset Newline newline
16836 \begin_inset space \hspace*{}
16841 \begin_inset space \hfill{}
16845 \begin_inset Tabular
16846 <lyxtabular version="3" rows="3" columns="1">
16847 <features tabularvalignment="middle">
16848 <column alignment="center" valignment="top" width="0">
16850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16853 \begin_layout Plain Layout
16860 <row interlinespace="3mm">
16861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16864 \begin_layout Plain Layout
16865 \begin_inset Formula $\downarrow$
16869 \begin_inset space \thinspace{}
16872 mm space between row
16873 \begin_inset Formula $\downarrow$
16883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16886 \begin_layout Plain Layout
16887 \begin_inset Formula $\uparrow$
16891 \begin_inset space \thinspace{}
16894 mm space between row
16895 \begin_inset Formula $\uparrow$
16909 \begin_inset space \hfill{}
16913 \begin_inset space \hspace*{}
16918 \begin_inset VSpace medskip
16922 \begin_inset Newline newline
16925 So inserting space between rows for normal tables is only useful when you
16926 don't have vertical lines.
16929 \begin_layout Standard
16930 \begin_inset VSpace bigskip
16933 When you want to add extra height to all cells of all tables, you can do
16934 this with the following preamble lines:
16937 \begin_layout Standard
16942 @ifundefined{extrarowheight}
16943 \begin_inset Newline newline
16947 \begin_inset Phantom HPhantom
16950 \begin_layout Plain Layout
16953 \begin_inset space ~
16963 usepackage{array}}{}
16964 \begin_inset Newline newline
16971 extrarowheight}{height}
16974 \begin_layout Standard
16975 But this has the disadvantage that the cell texts are no longer exactly
16976 vertically centered.
16981 will be loaded automatically by LyX when you use self defined table formats.
16982 To avoid that it being loaded twice the command
16988 is used in the above command.)
16991 \begin_layout Standard
16992 If you are using font sizes larger than the normal size, the table borders
16993 are often too close to the letters.
16994 This can be corrected by inserting the command
17000 in TeX code at the beginning of a table row.
17002 \begin_inset space ~
17006 \begin_inset CommandInset ref
17008 reference "tab:Vertical-alignment-of"
17012 illustrates the effect.
17015 \begin_layout Standard
17017 \begin_inset Float table
17023 \begin_layout Plain Layout
17024 \begin_inset Caption
17026 \begin_layout Plain Layout
17027 \begin_inset CommandInset label
17029 name "tab:Vertical-alignment-of"
17033 Vertical alignment of text with large font sizes.
17041 \begin_layout Plain Layout
17042 \begin_inset space \hfill{}
17046 \begin_inset Float table
17051 \begin_layout Plain Layout
17052 \begin_inset Caption
17054 \begin_layout Plain Layout
17063 \begin_layout Plain Layout
17066 \begin_inset Tabular
17067 <lyxtabular version="3" rows="6" columns="1">
17068 <features tabularvalignment="middle">
17069 <column alignment="left" valignment="top" width="0">
17071 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17074 \begin_layout Plain Layout
17082 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17085 \begin_layout Plain Layout
17095 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17098 \begin_layout Plain Layout
17108 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17111 \begin_layout Plain Layout
17121 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17124 \begin_layout Plain Layout
17134 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17137 \begin_layout Plain Layout
17156 \begin_inset space \hfill{}
17160 \begin_inset Float table
17165 \begin_layout Plain Layout
17166 \begin_inset Caption
17168 \begin_layout Plain Layout
17169 Table using the command
17183 \begin_layout Plain Layout
17186 \begin_inset Tabular
17187 <lyxtabular version="3" rows="6" columns="1">
17188 <features tabularvalignment="middle">
17189 <column alignment="left" valignment="top" width="0">
17191 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17194 \begin_layout Plain Layout
17202 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17205 \begin_layout Plain Layout
17211 \begin_layout Plain Layout
17227 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17230 \begin_layout Plain Layout
17236 \begin_layout Plain Layout
17252 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17255 \begin_layout Plain Layout
17261 \begin_layout Plain Layout
17277 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17280 \begin_layout Plain Layout
17286 \begin_layout Plain Layout
17302 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17305 \begin_layout Plain Layout
17311 \begin_layout Plain Layout
17338 \begin_inset space \hfill{}
17349 \begin_layout Subsection
17350 Special Cell Alignment
17351 \begin_inset CommandInset label
17353 name "sub:Special-Cell-Alignment"
17358 \begin_inset Index idx
17361 \begin_layout Plain Layout
17362 Table Customization ! Special Cell Alignment
17370 \begin_layout Standard
17371 Sometimes it looks better when the cell entries of a column are aligned
17372 with a special character, e.
17373 \begin_inset space \thinspace{}
17377 \begin_inset space \space{}
17380 with the decimal separator as in Table
17381 \begin_inset space ~
17385 \begin_inset CommandInset ref
17387 reference "tab:Table-cells-align"
17392 This alignment is achieved by setting the cursor into the column and then
17393 either pressing the toolbar button
17394 \begin_inset Graphics
17395 filename ../images/tabular-feature_align-decimal.png
17397 scaleBeforeRotation
17401 or setting the alignment in the table settings to
17404 \begin_inset space ~
17408 \begin_inset space ~
17414 The alignment character can be a character of your choice and is specified
17415 in the table settings.
17418 \begin_layout Standard
17419 \begin_inset Float table
17425 \begin_layout Plain Layout
17426 \begin_inset Caption
17428 \begin_layout Plain Layout
17429 \begin_inset CommandInset label
17431 name "tab:Table-cells-align"
17435 Table cells of a column aligned with the decimal separator.
17443 \begin_layout Plain Layout
17445 \begin_inset Tabular
17446 <lyxtabular version="3" rows="4" columns="1">
17447 <features booktabs="true" tabularvalignment="middle">
17448 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17453 \begin_layout Plain Layout
17461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17464 \begin_layout Plain Layout
17472 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17475 \begin_layout Plain Layout
17483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17486 \begin_layout Plain Layout
17505 \begin_layout Standard
17506 \begin_inset Float table
17512 \begin_layout Plain Layout
17513 \begin_inset Caption
17515 \begin_layout Plain Layout
17516 \begin_inset CommandInset label
17518 name "tab:Table-align-operator"
17522 Table cells of a column aligned with the operators.
17530 \begin_layout Plain Layout
17532 \begin_inset Tabular
17533 <lyxtabular version="3" rows="4" columns="2">
17534 <features booktabs="true" tabularvalignment="middle">
17535 <column alignment="right" valignment="top" width="0pt">
17536 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17538 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17541 \begin_layout Plain Layout
17547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17550 \begin_layout Plain Layout
17558 <cell alignment="center" valignment="top" usebox="none">
17561 \begin_layout Plain Layout
17562 \begin_inset Formula $12\,+$
17570 <cell alignment="center" valignment="top" usebox="none">
17573 \begin_layout Plain Layout
17574 \begin_inset Formula $\,6$
17584 <cell alignment="center" valignment="top" usebox="none">
17587 \begin_layout Plain Layout
17588 \begin_inset Formula $0\,-$
17596 <cell alignment="center" valignment="top" usebox="none">
17599 \begin_layout Plain Layout
17600 \begin_inset Formula $\,68$
17610 <cell alignment="center" valignment="top" usebox="none">
17613 \begin_layout Plain Layout
17614 \begin_inset Formula $-123\,/$
17622 <cell alignment="center" valignment="top" usebox="none">
17625 \begin_layout Plain Layout
17626 \begin_inset Formula $\,0$
17647 \begin_layout Standard
17648 For alignments at characters in formulas this method does not work because
17649 the field to specify the alignment character does not allow formulas.
17650 In this case one need to use the method from Table
17651 \begin_inset space ~
17655 \begin_inset CommandInset ref
17657 reference "tab:Table-align-operator"
17662 This table was created with a 4×2 table.
17663 The heading is a centered multicolumn.
17664 The first column is right-aligned and contains the first part including
17666 The second column is left aligned and contains the rest.
17667 A small space was added at the beginning of each cell of the second column
17668 to get the space that is usually around operators.
17669 To omit the space that is normally between two table columns, the following
17670 LaTeX-argument was used for the second column:
17673 \begin_layout Standard
17679 \begin_layout Standard
17681 \begin_inset space ~
17685 \begin_inset CommandInset ref
17687 reference "tab:Several-table-cell"
17691 shows some example alignments.
17692 For the alignment with the relation sign, a small space was added like
17693 for the second column of Table
17694 \begin_inset space ~
17698 \begin_inset CommandInset ref
17700 reference "tab:Table-align-operator"
17707 \begin_layout Standard
17708 \begin_inset Float table
17714 \begin_layout Plain Layout
17715 \begin_inset Caption
17717 \begin_layout Plain Layout
17718 \begin_inset CommandInset label
17720 name "tab:Several-table-cell"
17724 Several table cell alignments.
17732 \begin_layout Plain Layout
17734 \begin_inset Tabular
17735 <lyxtabular version="3" rows="4" columns="6">
17736 <features tabularvalignment="middle">
17737 <column alignment="right" valignment="top" width="0">
17738 <column alignment="left" valignment="top" width="0" special="@{}l">
17739 <column alignment="right" valignment="top" width="0">
17740 <column alignment="left" valignment="top" width="0" special="@{}l">
17741 <column alignment="right" valignment="top" width="0">
17742 <column alignment="left" valignment="top" width="0" special="@{}l">
17744 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17747 \begin_layout Plain Layout
17753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17756 \begin_layout Plain Layout
17762 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17765 \begin_layout Plain Layout
17771 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17774 \begin_layout Plain Layout
17780 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17783 \begin_layout Plain Layout
17789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17792 \begin_layout Plain Layout
17800 <cell alignment="center" valignment="top" usebox="none">
17803 \begin_layout Plain Layout
17809 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17812 \begin_layout Plain Layout
17814 \begin_inset space \thinspace{}
17822 <cell alignment="center" valignment="top" usebox="none">
17825 \begin_layout Plain Layout
17826 \begin_inset Formula $10\cdot$
17834 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17837 \begin_layout Plain Layout
17838 \begin_inset Formula $10^{\mbox{-}17}$
17846 <cell alignment="center" valignment="top" usebox="none">
17849 \begin_layout Plain Layout
17850 \begin_inset Formula $\Gamma(t)\propto$
17858 <cell alignment="center" valignment="top" usebox="none">
17861 \begin_layout Plain Layout
17862 \begin_inset Formula $\:\Upsilon(t)$
17872 <cell alignment="center" valignment="top" usebox="none">
17875 \begin_layout Plain Layout
17881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17884 \begin_layout Plain Layout
17886 \begin_inset space \thinspace{}
17894 <cell alignment="center" valignment="top" usebox="none">
17897 \begin_layout Plain Layout
17898 \begin_inset Formula $5.78\cdot$
17906 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17909 \begin_layout Plain Layout
17910 \begin_inset Formula $10^{7}$
17918 <cell alignment="center" valignment="top" usebox="none">
17921 \begin_layout Plain Layout
17922 \begin_inset Formula $A\ne$
17930 <cell alignment="center" valignment="top" usebox="none">
17933 \begin_layout Plain Layout
17934 \begin_inset Formula $\: B_{\mathrm{red}}$
17944 <cell alignment="center" valignment="top" usebox="none">
17947 \begin_layout Plain Layout
17953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17956 \begin_layout Plain Layout
17958 \begin_inset space \thinspace{}
17966 <cell alignment="center" valignment="top" usebox="none">
17969 \begin_layout Plain Layout
17971 \begin_inset Formula $33.5\cdot$
17979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17982 \begin_layout Plain Layout
17983 \begin_inset Formula $10^{4}$
17991 <cell alignment="center" valignment="top" usebox="none">
17994 \begin_layout Plain Layout
17995 \begin_inset Formula $\sin(\alpha)\ge$
18003 <cell alignment="center" valignment="top" usebox="none">
18006 \begin_layout Plain Layout
18007 \begin_inset Formula $\:\sin(\beta)$
18028 \begin_layout Subsection
18029 Customized Cell/Column Format
18030 \begin_inset CommandInset label
18032 name "sub:Customized-Format"
18037 \begin_inset Index idx
18040 \begin_layout Plain Layout
18041 Table Customization ! Cell/Column Format
18049 \begin_layout Standard
18050 Calculating the required width for spanned columns as in section
18051 \begin_inset space ~
18055 \begin_inset CommandInset ref
18057 reference "sub:Multicolumn-Calculations"
18061 is very annoying if you have several tables with multicolumn cells.
18062 To make life easier, you can define a cell/column format in the preamble,
18063 so that it can be used in all tables of the document.
18064 The format is defined with the command
18067 \begin_layout Standard
18072 newcolumntype{name of format}[number of arguments]{commands}
18075 \begin_layout Standard
18076 The format name may only consist of one letter.
18101 are predefined and cannot be used.
18102 But all letters are allowed as capitals.
18105 \begin_layout Standard
18106 \begin_inset VSpace medskip
18112 \begin_layout Standard
18113 For vertically and horizontally centered multicolumn cells with a fixed
18114 width you can define the cell format
18117 \begin_layout Standard
18122 newcolumntype{M}[1]{>{
18129 \begin_layout Standard
18136 avoids the problem of hyphenating the first word, as described in section
18137 \begin_inset space ~
18141 \begin_inset CommandInset ref
18143 reference "sub:Multiple-Lines-in"
18148 Now you can simply enter
18151 \begin_layout Standard
18157 \begin_layout Standard
18158 as LaTeX-argument in the table dialog to create a multicolumn.
18161 \begin_layout Standard
18162 \begin_inset VSpace bigskip
18168 \begin_layout Standard
18169 For cells spanned by a multicolumn cell, you can define the format
18172 \begin_layout Standard
18177 newcolumntype{S}[2]{>{
18182 \begin_inset Newline newline
18186 \begin_inset Phantom HPhantom
18189 \begin_layout Plain Layout
18203 arrayrulewidth)*(1-#2))/#2}}
18206 \begin_layout Standard
18207 This format uses equation
18208 \begin_inset CommandInset ref
18214 to calculate the required width so that each spanned cell has the same
18218 \begin_layout Standard
18222 \begin_layout Standard
18225 S{width of multicolumn cell}{number of spanned columns}
18228 \begin_layout Standard
18229 as LaTeX-argument of the column.
18232 \begin_layout Standard
18233 \begin_inset VSpace bigskip
18239 \begin_layout Standard
18240 For colored columns, you can define
18243 \begin_layout Standard
18248 newcolumntype{K}[1]{>{
18255 \begin_layout Standard
18257 \begin_inset Quotes eld
18261 \begin_inset Quotes erd
18264 at the end creates a column with a flexible width whose text is horizontally
18269 \begin_layout Standard
18275 \begin_layout Standard
18279 \begin_layout Standard
18280 \begin_inset VSpace bigskip
18286 \begin_layout Standard
18288 \begin_inset space ~
18292 \begin_inset CommandInset ref
18294 reference "tab:Table-using-user-defined"
18298 use the LaTeX-arguments
18301 \begin_layout Standard
18307 \begin_layout Standard
18308 for the first column and the multicolumn,
18311 \begin_layout Standard
18317 \begin_layout Standard
18318 for the last column, and
18321 \begin_layout Standard
18327 \begin_layout Standard
18328 for the cells in the second column.
18331 \begin_layout Standard
18332 \begin_inset Float table
18338 \begin_layout Plain Layout
18339 \begin_inset Caption
18341 \begin_layout Plain Layout
18342 \begin_inset CommandInset label
18344 name "tab:Table-using-user-defined"
18348 Table using user-defined table formats
18356 \begin_layout Plain Layout
18358 \begin_inset Tabular
18359 <lyxtabular version="3" rows="3" columns="4">
18360 <features tabularvalignment="middle">
18361 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18362 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18363 <column alignment="center" valignment="middle" width="0">
18364 <column alignment="center" valignment="middle" width="0" special="K{red}">
18366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18369 \begin_layout Plain Layout
18370 verylongtablecellword
18375 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18378 \begin_layout Plain Layout
18379 multiple lines multicolumn
18384 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18387 \begin_layout Plain Layout
18393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18396 \begin_layout Plain Layout
18404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18407 \begin_layout Plain Layout
18413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18416 \begin_layout Plain Layout
18422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18425 \begin_layout Plain Layout
18431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18434 \begin_layout Plain Layout
18442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18445 \begin_layout Plain Layout
18451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18454 \begin_layout Plain Layout
18460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18472 \begin_layout Plain Layout
18491 \begin_layout Subsection
18493 \begin_inset CommandInset label
18495 name "sub:Line-Thickness"
18500 \begin_inset Index idx
18503 \begin_layout Plain Layout
18504 Table Customization ! Line Thickness
18512 \begin_layout Standard
18513 The line thickness for all lines in a table can be adjusted with the length
18521 To set for example a line thickness of 1.5
18522 \begin_inset space \thinspace{}
18526 \begin_inset space ~
18530 \begin_inset CommandInset ref
18532 reference "tab:Table-with-1.5"
18536 , insert the command
18539 \begin_layout Standard
18546 arrayrulewidth}{1.5pt}
18549 \begin_layout Standard
18550 in TeX-Code before the table or table float.
18551 The changed thickness is valid for all subsequent tables.
18552 To use the default value again, set
18559 \begin_inset space \thinspace{}
18562 pt in TeX-Code after the table or table float.
18565 \begin_layout Standard
18569 \begin_layout Plain Layout
18575 arrayrulewidth}{1.5pt}
18581 \begin_inset Float table
18586 \begin_layout Plain Layout
18587 \begin_inset Caption
18589 \begin_layout Plain Layout
18590 \begin_inset CommandInset label
18592 name "tab:Table-with-1.5"
18597 \begin_inset space \thinspace{}
18608 \begin_layout Plain Layout
18610 \begin_inset Tabular
18611 <lyxtabular version="3" rows="3" columns="3">
18612 <features tabularvalignment="middle">
18613 <column alignment="center" valignment="top" width="0">
18614 <column alignment="center" valignment="top" width="0">
18615 <column alignment="center" valignment="top" width="0">
18617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18620 \begin_layout Plain Layout
18626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18629 \begin_layout Plain Layout
18635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18638 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18649 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18658 \begin_layout Plain Layout
18664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18667 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18678 \begin_layout Plain Layout
18684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18687 \begin_layout Plain Layout
18693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18696 \begin_layout Plain Layout
18716 \begin_layout Plain Layout
18722 arrayrulewidth}{0.4pt}
18730 \begin_layout Standard
18731 \begin_inset VSpace bigskip
18734 To set the line thickness to 1.5
18735 \begin_inset space \thinspace{}
18738 pt only for horizontal lines, as in Table
18739 \begin_inset space ~
18743 \begin_inset CommandInset ref
18745 reference "tab:Table-with-horizontal"
18749 , insert these commands in TeX-Code before the table or table float:
18752 \begin_layout Standard
18762 \begin_inset Newline newline
18770 \begin_inset Newline newline
18779 arrayrulewidth 1.5pt}
18780 \begin_inset Newline newline
18791 arrayrulewidth 0.4pt}}
18794 \begin_layout Standard
18795 To return to the default line thickness, insert this command in TeX-Code
18796 after the table or table float:
18799 \begin_layout Standard
18811 \begin_layout Standard
18815 \begin_layout Plain Layout
18826 \begin_layout Plain Layout
18835 \begin_layout Plain Layout
18843 arrayrulewidth 1.5pt}
18846 \begin_layout Plain Layout
18856 arrayrulewidth 0.4pt}}
18862 \begin_inset Float table
18867 \begin_layout Plain Layout
18868 \begin_inset Caption
18870 \begin_layout Plain Layout
18871 \begin_inset CommandInset label
18873 name "tab:Table-with-horizontal"
18878 \begin_inset space \thinspace{}
18881 pt thick horizontal lines
18889 \begin_layout Plain Layout
18891 \begin_inset Tabular
18892 <lyxtabular version="3" rows="3" columns="3">
18893 <features tabularvalignment="middle">
18894 <column alignment="center" valignment="top" width="0">
18895 <column alignment="center" valignment="top" width="0">
18896 <column alignment="center" valignment="top" width="0">
18898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18910 \begin_layout Plain Layout
18916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18919 \begin_layout Plain Layout
18927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18930 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18948 \begin_layout Plain Layout
18956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18959 \begin_layout Plain Layout
18965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18968 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18977 \begin_layout Plain Layout
18997 \begin_layout Plain Layout
19013 \begin_layout Standard
19014 \begin_inset VSpace bigskip
19017 To set the line thickness to 1.5
19018 \begin_inset space \thinspace{}
19021 pt only for vertical lines, create the following column format in the document
19022 preamble, according to the description in section
19023 \begin_inset space ~
19027 \begin_inset CommandInset ref
19029 reference "sub:Customized-Format"
19036 \begin_layout Standard
19041 newcolumntype{V}{!{
19043 vrule width 1.5pt}}
19046 \begin_layout Standard
19048 \begin_inset space ~
19052 \begin_inset CommandInset ref
19054 reference "tab:Table-with-vertical"
19061 \begin_layout Standard
19067 \begin_layout Standard
19068 was used for the last column and
19071 \begin_layout Standard
19077 \begin_layout Standard
19078 for the other columns.
19081 \begin_layout Standard
19082 \begin_inset Float table
19087 \begin_layout Plain Layout
19088 \begin_inset Caption
19090 \begin_layout Plain Layout
19091 \begin_inset CommandInset label
19093 name "tab:Table-with-vertical"
19098 \begin_inset space \thinspace{}
19101 pt thick vertical lines
19109 \begin_layout Plain Layout
19111 \begin_inset Tabular
19112 <lyxtabular version="3" rows="3" columns="3">
19113 <features tabularvalignment="middle">
19114 <column alignment="center" valignment="top" width="0" special="Vc">
19115 <column alignment="center" valignment="top" width="0" special="Vc">
19116 <column alignment="center" valignment="top" width="0" special="VcV">
19118 <cell alignment="center" valignment="top" topline="true" usebox="none">
19121 \begin_layout Plain Layout
19127 <cell alignment="center" valignment="top" topline="true" usebox="none">
19130 \begin_layout Plain Layout
19136 <cell alignment="center" valignment="top" topline="true" usebox="none">
19139 \begin_layout Plain Layout
19147 <cell alignment="center" valignment="top" topline="true" usebox="none">
19150 \begin_layout Plain Layout
19156 <cell alignment="center" valignment="top" topline="true" usebox="none">
19159 \begin_layout Plain Layout
19165 <cell alignment="center" valignment="top" topline="true" usebox="none">
19168 \begin_layout Plain Layout
19176 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19179 \begin_layout Plain Layout
19185 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19188 \begin_layout Plain Layout
19194 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19197 \begin_layout Plain Layout
19216 \begin_layout Subsection
19218 \begin_inset Index idx
19221 \begin_layout Plain Layout
19222 Table Customization ! Dashed Lines
19230 \begin_layout Standard
19234 \begin_layout Plain Layout
19244 \begin_inset Note Note
19247 \begin_layout Plain Layout
19248 The following section will only be displayed when the LaTeX-package
19260 \begin_layout Standard
19261 \begin_inset Float table
19267 \begin_layout Plain Layout
19268 \begin_inset Caption
19270 \begin_layout Plain Layout
19271 \begin_inset CommandInset label
19273 name "tab:Table-with-dashed"
19277 Table with dashed lines
19285 \begin_layout Plain Layout
19287 \begin_inset Tabular
19288 <lyxtabular version="3" rows="5" columns="5">
19289 <features tabularvalignment="middle">
19290 <column alignment="center" valignment="top" width="0">
19291 <column alignment="center" valignment="top" width="0">
19292 <column alignment="center" valignment="top" width="0" special=":c">
19293 <column alignment="center" valignment="top" width="0">
19294 <column alignment="center" valignment="top" width="0">
19296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19299 \begin_layout Plain Layout
19305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19308 \begin_layout Plain Layout
19314 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19317 \begin_layout Plain Layout
19323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19326 \begin_layout Plain Layout
19332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19335 \begin_layout Plain Layout
19343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19346 \begin_layout Plain Layout
19352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19355 \begin_layout Plain Layout
19361 <cell alignment="center" valignment="top" topline="true" usebox="none">
19364 \begin_layout Plain Layout
19370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19373 \begin_layout Plain Layout
19379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19382 \begin_layout Plain Layout
19390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19393 \begin_layout Plain Layout
19397 \begin_layout Plain Layout
19411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19414 \begin_layout Plain Layout
19420 <cell alignment="center" valignment="top" usebox="none">
19423 \begin_layout Plain Layout
19429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19432 \begin_layout Plain Layout
19438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19441 \begin_layout Plain Layout
19449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19452 \begin_layout Plain Layout
19456 \begin_layout Plain Layout
19470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19473 \begin_layout Plain Layout
19479 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19482 \begin_layout Plain Layout
19488 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19491 \begin_layout Plain Layout
19497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19500 \begin_layout Plain Layout
19508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19511 \begin_layout Plain Layout
19517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19520 \begin_layout Plain Layout
19526 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19529 \begin_layout Plain Layout
19535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19538 \begin_layout Plain Layout
19544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19547 \begin_layout Plain Layout
19566 \begin_layout Standard
19567 LyX does not natively support dashed lines, so you have to use TeX-Code.
19568 As a prerequisite the LaTeX-package
19573 \begin_inset Index idx
19576 \begin_layout Plain Layout
19577 LaTeX-packages ! arydshln
19582 must be loaded in the document preamble with the command
19585 \begin_layout Standard
19590 usepackage{arydshln}
19593 \begin_layout Standard
19594 To make a vertical line dashed, enter the colon
19595 \begin_inset Quotes eld
19599 \begin_inset Quotes erd
19602 together with the character for the horizontal alignment as LaTeX-argument
19603 in the table cell dialog.
19606 \begin_layout Standard
19607 For a horizontal dashed line add the command
19610 \begin_layout Standard
19618 \begin_layout Standard
19619 in TeX-Code as first element of the first cell in the table row.
19622 \begin_layout Standard
19623 For dashed multicolumn lines use the command
19626 \begin_layout Standard
19631 cdashline{line number
19636 \begin_layout Standard
19637 in TeX-Code as the first element of the first cell in the table row.
19638 If you have for example a multicolumn spanning columns 2 to 4 and you want
19639 to have a dashed line above, add the command
19642 \begin_layout Standard
19650 \begin_layout Standard
19651 as the first element of the first cell in the row of the multicolumn.
19654 \begin_layout Standard
19655 \begin_inset VSpace bigskip
19661 \begin_layout Standard
19663 \begin_inset space ~
19667 \begin_inset CommandInset ref
19669 reference "tab:Table-with-dashed"
19674 \begin_inset Quotes eld
19682 \begin_inset Quotes erd
19685 as LaTeX-argument of the third column.
19686 The TeX-Code command
19692 was inserted in the first cell of the third row and the TeX-Code command
19693 \begin_inset Newline newline
19702 was inserted in the first cell of the fourth row.
19705 \begin_layout Standard
19706 \begin_inset Note Greyedout
19709 \begin_layout Plain Layout
19718 is apparently not compatible with the LaTeX-package
19723 \begin_inset Index idx
19726 \begin_layout Plain Layout
19727 LaTeX-packages ! colortbl
19732 that is used for colored tables in section
19733 \begin_inset space ~
19737 \begin_inset CommandInset ref
19739 reference "sec:Colored-Tables"
19744 That means colored tables cannot have dashed lines.
19752 \begin_layout Standard
19756 \begin_layout Plain Layout
19766 \begin_inset Note Note
19769 \begin_layout Plain Layout
19770 The following will be displayed when the LaTeX-package
19782 \begin_layout Standard
19783 You need to install the package
19787 to see the content of this section in the output.
19790 \begin_layout Standard
19794 \begin_layout Plain Layout
19806 \begin_layout Chapter
19808 \begin_inset CommandInset label
19815 \begin_inset Index idx
19818 \begin_layout Plain Layout
19827 \begin_layout Section
19829 \begin_inset CommandInset label
19831 name "sec:FloatIntroduction"
19836 \begin_inset Index idx
19839 \begin_layout Plain Layout
19840 Floats ! Introduction
19848 \begin_layout Standard
19849 A float is a block of text associated with some sort of label, which doesn't
19850 have a fixed location.
19852 \begin_inset Quotes eld
19856 \begin_inset Quotes erd
19859 forward or backward a page or two, to wherever it fits best.
19867 \begin_inset space ~
19872 are also floats, because they can float to the next page when there are
19873 too many notes on the page.
19876 \begin_layout Standard
19877 Floats allow a high quality layout.
19878 Images and tables can be spread evenly to the pages to avoid white space
19879 and pages without text.
19880 As the floating often destroys the context between the text and the image/table
19881 , every float can be referenced in the text.
19882 Floats are therefore numbered.
19883 Referencing is described in section
19884 \begin_inset space ~
19888 \begin_inset CommandInset ref
19890 reference "sec:Referencing-Floats"
19897 \begin_layout Standard
19898 To insert a float, use the menu
19900 Insert\SpecialChar \menuseparator
19908 inset, a box with a label.
19909 The label will automatically be translated to the document language in
19911 After the label you can insert the caption text.
19912 The image or table is inserted above or below the caption in a separate
19913 paragraph within the float.
19914 More about the caption placement is contained in section
19915 \begin_inset space ~
19919 \begin_inset CommandInset ref
19921 reference "sec:Caption-Placement"
19926 To keep your LyX-document readable, you can open and close the float box
19927 by left-clicking on the box label.
19928 A closed float box looks like this:
19929 \begin_inset Graphics
19930 filename clipart/floatQt4.png
19932 scaleBeforeRotation
19936 – a gray button with a red label.
19939 \begin_layout Standard
19940 It is recommended that you insert floats as a separate standard paragraph
19941 to avoid possible LaTeX-errors that can occur when the surrounding text
19942 is specially formatted.
19945 \begin_layout Standard
19946 Existing figures or tables can be put into a float by highlighting them
19947 and then pressing the corresponding toolbar button for a new float.
19950 \begin_layout Section
19954 \begin_layout Standard
19955 Besides figure and table floats that are described in sections
19956 \begin_inset space ~
19960 \begin_inset CommandInset ref
19962 reference "sec:Figure-Floats"
19967 \begin_inset CommandInset ref
19969 reference "sec:Table-Floats"
19973 respectively, LyX offers the float types
19982 The latter are explained in sec.
19983 \begin_inset space \thinspace{}
19987 \begin_inset CommandInset ref
19989 reference "sec:Wrap-Floats"
19996 \begin_layout Subsection
19998 \begin_inset Index idx
20001 \begin_layout Plain Layout
20002 Floats ! Algorithms
20010 \begin_layout Standard
20011 \begin_inset Float algorithm
20017 \begin_layout Plain Layout
20018 \begin_inset Caption
20020 \begin_layout Plain Layout
20021 \begin_inset CommandInset label
20023 name "alg:Example-Algorithm-float"
20027 Example Algorithm float
20035 \begin_layout LyX-Code
20037 \begin_inset Newline newline
20040 Sum:= Sum + A(I); /*comment*/
20041 \begin_inset Newline newline
20045 \begin_inset VSpace -4mm
20056 \begin_layout Standard
20057 This float type is inserted with the menu
20059 Insert\SpecialChar \menuseparator
20060 Floats\SpecialChar \menuseparator
20064 It is used for program codes and descriptions of algorithms and can be
20065 seen as an alternative to program code listings that are explained in chapter
20066 \begin_inset space ~
20070 \begin_inset CommandInset ref
20072 reference "cha:Program-Code-Listings"
20077 A possible environment for algorithms is the
20081 , described in LyX's
20087 \begin_inset space ~
20091 \begin_inset CommandInset ref
20093 reference "alg:Example-Algorithm-float"
20097 is an example of an algorithm float where -4
20098 \begin_inset space \thinspace{}
20101 mm vertical space was added at the end of the float to have the bottom rule
20102 exactly below the last text line.
20105 \begin_layout Standard
20106 The float label is not automatically translated into the document language.
20107 If your document is not in English, you have to do this manually by adding
20108 the following line to the document preamble
20113 \begin_layout Standard
20118 floatname{algorithm}{your
20119 \begin_inset space ~
20125 \begin_layout Standard
20129 \begin_inset space ~
20135 \begin_inset Quotes eld
20143 \begin_inset Quotes erd
20149 \begin_layout Standard
20150 To insert the list of algorithms you can use the menu
20152 Insert\SpecialChar \menuseparator
20154 \begin_inset space \thinspace{}
20158 \begin_inset space \thinspace{}
20161 TOC\SpecialChar \menuseparator
20164 when your document has the same language as LyX's menu names.
20165 In other cases use this command in TeX-Code instead:
20168 \begin_layout Standard
20173 listof{algorithm}{your
20174 \begin_inset space ~
20180 \begin_layout Standard
20184 \begin_inset space ~
20190 \begin_inset Quotes eld
20198 \begin_inset Quotes erd
20204 \begin_layout Standard
20205 Algorithm floats are not by default numbered in the scheme
20206 \begin_inset Quotes eld
20210 \begin_inset Quotes erd
20213 as is the case for table and figure floats in many document-classes.
20214 To number algorithm floats in the same scheme, add this command to your
20218 \begin_layout Standard
20223 numberwithin{algorithm}{chapter}
20226 \begin_layout Standard
20227 To be able to use the command
20236 \begin_inset space ~
20241 in the document settings the option
20244 \begin_inset space ~
20248 \begin_inset space ~
20252 \begin_inset space ~
20260 \begin_layout Section
20262 \begin_inset Index idx
20265 \begin_layout Plain Layout
20274 \begin_layout Standard
20275 Floats are usually numbered either independently from the sections the floats
20276 are in, or in the scheme
20277 \begin_inset Quotes eld
20281 \begin_inset Quotes erd
20285 \begin_inset Quotes eld
20289 \begin_inset Quotes erd
20293 This depends on the document class used.
20296 \begin_layout Standard
20297 To change section-independent numbering, you can use this command in the
20301 \begin_layout Standard
20313 \begin_layout Standard
20320 is the command that prints the table number, for figure floats, the command
20334 in the command above prints the table number as small roman number.
20337 \begin_layout Standard
20338 To change the numbering scheme for example to
20339 \begin_inset Quotes eld
20343 \begin_inset Quotes erd
20346 , use this command in the preamble:
20349 \begin_layout Standard
20354 numberwithin{table}{subsection}
20357 \begin_layout Standard
20358 To be able to use the command
20367 \begin_inset space ~
20372 in the document settings the option
20375 \begin_inset space ~
20379 \begin_inset space ~
20383 \begin_inset space ~
20391 \begin_layout Standard
20392 Please also have a look at section
20393 \begin_inset space ~
20397 \begin_inset CommandInset ref
20399 reference "sub:Footnote-Numbering"
20403 for the details and important notes about the numbering commands.
20406 \begin_layout Section
20408 \begin_inset CommandInset label
20410 name "sec:Referencing-Floats"
20415 \begin_inset Index idx
20418 \begin_layout Plain Layout
20419 Floats ! References
20425 \begin_inset Index idx
20428 \begin_layout Plain Layout
20429 References ! to Floats
20437 \begin_layout Standard
20438 To reference a float, insert a label into its caption using the menu
20440 Insert\SpecialChar \menuseparator
20443 or the toolbar button
20454 A grey label box like this one:
20455 \begin_inset Graphics
20456 filename clipart/labelQt4.png
20458 scaleBeforeRotation
20462 will be inserted and the label window pops up asking for the label text.
20463 LyX offers as text the first words of the caption with a prefix.
20464 The prefix depends on the float type, e.
20465 \begin_inset space \thinspace{}
20469 \begin_inset space \space{}
20472 for figure floats the prefix will be "
20479 \begin_layout Standard
20480 The label is used as anchor and name for the reference.
20481 You can refer to the label using the menu
20483 Insert\SpecialChar \menuseparator
20486 or the toolbar button
20491 arg "dialog-show-new-inset ref"
20497 A grey cross-reference box like this one:
20498 \begin_inset Graphics
20499 filename clipart/referenceQt4.png
20501 scaleBeforeRotation
20505 will be inserted and the cross-reference window appear showing all labels
20507 If you have multiple LyX-documents opened, choose the one you are working
20508 on from the drop-list at the top of the dialog.
20509 You can now sort the labels alphabetically and then choose one.
20510 At the position of the cross-reference box the float number will appear
20514 \begin_layout Standard
20515 It is recommended that you use a protected space between the cross-reference
20516 name and its number to avoid line breaks between them.
20517 If a cross-reference refers to a non-existing label, you will see two question
20518 marks in the output instead of the reference.
20521 \begin_layout Standard
20522 You can change labels at any time by clicking on the label box.
20523 References to the changed label will automatically change its link to the
20524 new label text, so that you don't need to take care about this.
20527 \begin_layout Standard
20531 \begin_inset space ~
20535 \begin_inset space ~
20540 in the cross-reference window sets the cursor before the referred label.
20541 The button text changes then to Go
20542 \begin_inset space ~
20545 Back and you can use it to set the cursor back to the cross-reference.
20546 Right-clicking on a cross-reference box also sets the cursor before the
20547 referenced label but without the possibility of going back.
20550 \begin_layout Subsection
20551 Cross-Reference Formats
20552 \begin_inset CommandInset label
20554 name "sub:Cross-Reference-Formats"
20559 \begin_inset Index idx
20562 \begin_layout Plain Layout
20563 References ! Formats
20571 \begin_layout Standard
20572 There are six varieties of cross-references:
20575 \begin_layout Description
20576 <reference>: prints the float number, this is the default:
20577 \begin_inset CommandInset ref
20579 reference "fig:Two-distorted-images"
20586 \begin_layout Description
20587 (<reference>): prints the float number within two parentheses, this is the
20588 style normally used to reference formulas, especially when the reference
20590 \begin_inset Quotes eld
20594 \begin_inset Quotes erd
20598 \begin_inset CommandInset ref
20607 \begin_layout Description
20608 <page>: prints the page number: Page
20609 \begin_inset space ~
20613 \begin_inset CommandInset ref
20614 LatexCommand pageref
20615 reference "fig:Two-distorted-images"
20622 \begin_layout Description
20624 \begin_inset space ~
20628 \begin_inset space ~
20631 <page>: prints the text "on page" and the page number:
20632 \begin_inset CommandInset ref
20633 LatexCommand vpageref
20634 reference "fig:Two-distorted-images"
20641 \begin_layout Description
20643 \begin_inset space ~
20647 \begin_inset space ~
20651 \begin_inset space ~
20654 <page>: prints the float number, the text "on page", and the page number:
20656 \begin_inset CommandInset ref
20658 reference "fig:Two-distorted-images"
20665 \begin_layout Description
20667 \begin_inset space ~
20670 reference: prints a self-defined cross-reference format.
20671 \begin_inset Newline newline
20675 \begin_inset Note Greyedout
20678 \begin_layout Plain Layout
20683 This feature is only available when you have the LaTeX-package
20692 \begin_inset Index idx
20695 \begin_layout Plain Layout
20696 LaTeX-packages ! prettyref
20702 \begin_inset Index idx
20705 \begin_layout Plain Layout
20706 LaTeX-packages ! refstyle
20717 \begin_inset Newline newline
20720 You can select which LaTeX-package should be used for this feature by setting
20723 Use refstyle (not prettyref) for cross-references
20727 Document\SpecialChar \menuseparator
20728 Settings\SpecialChar \menuseparator
20732 The format is specified by adding the command
20744 (refstyle) to the preamble of the document.
20745 For example redefining all references to figures (which have the label
20747 \begin_inset Quotes eld
20755 \begin_inset Quotes erd
20758 ) can be done with this command
20759 \begin_inset Newline newline
20766 newref{fig}{refcmd={Image on page
20771 \begin_inset Newline newline
20774 For more information about the format, have a look at the package documentations
20776 \begin_inset CommandInset citation
20778 key "prettyref,refstyle"
20785 \begin_layout Description
20787 \begin_inset space ~
20790 reference: prints the caption of the reference:
20791 \begin_inset CommandInset ref
20792 LatexCommand nameref
20793 reference "fig:Two-distorted-images"
20800 \begin_layout Standard
20805 will not print the page number if the label is on the previous, the same,
20808 \begin_inset space \thinspace{}
20812 \begin_inset space \space{}
20816 \begin_inset Quotes eld
20824 \begin_inset Quotes erd
20830 <reference> on page <page>
20832 will not print anything about the page if the label is on the same page.
20835 \begin_layout Standard
20836 The number and current page of the part of the document referred to in the
20837 output is automatically calculated by LaTeX.
20838 The varieties are adjusted in the field
20842 of the cross-reference window that appears when you click on the cross-referenc
20846 \begin_layout Standard
20847 \begin_inset Note Greyedout
20850 \begin_layout Plain Layout
20855 It is recommended to use the LaTeX-package
20860 \begin_inset Index idx
20863 \begin_layout Plain Layout
20864 LaTeX-packages ! refstyle
20874 \begin_inset Index idx
20877 \begin_layout Plain Layout
20878 LaTeX-packages ! prettyref
20883 does not know all of LyX's possible label shortcuts
20887 \begin_layout Plain Layout
20888 \begin_inset Quotes eld
20892 \begin_inset Quotes erd
20895 is for example LyX's shortcut for labels in figure captions.
20900 and is not internationalized.
20908 \begin_layout Standard
20909 \begin_inset Note Greyedout
20912 \begin_layout Plain Layout
20917 Due to a bug in the LaTeX-package
20921 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20922 languages that make the period character active (like French).
20923 For a workaround, see
20924 \begin_inset Newline newline
20928 \begin_inset CommandInset href
20930 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20942 \begin_layout Subsection
20943 Automatic Reference Naming
20944 \begin_inset Index idx
20947 \begin_layout Plain Layout
20948 References ! Automatic Reference Naming
20956 \begin_layout Standard
20962 \begin_inset Index idx
20965 \begin_layout Plain Layout
20966 LaTeX-packages ! hyperref
20971 , that is enabled in the
20979 dialog, provides a very useful feature that cross-references automatically
20980 include the name of the referenced floats (or text parts like
20985 So you will save having to write e.
20986 \begin_inset space \thinspace{}
20990 \begin_inset space \space{}
20994 \begin_inset Quotes eld
20998 \begin_inset Quotes erd
21001 before every reference to a figure.
21002 To use this feature, enable
21006 and insert this line to the LaTeX preamble:
21009 \begin_layout Standard
21025 \begin_layout Standard
21026 When you prefer other reference names than the default ones, for example
21027 you want instead of
21028 \begin_inset Quotes eld
21032 \begin_inset Quotes erd
21036 \begin_inset Quotes eld
21040 \begin_inset space \thinspace{}
21044 \begin_inset Quotes eld
21047 , you can redefine the name by inserting this in the preamble:
21050 \begin_layout Standard
21061 sectionautorefname}
21062 \begin_inset Newline newline
21066 \begin_inset Phantom HPhantom
21069 \begin_layout Plain Layout
21072 \begin_inset space ~
21085 \begin_layout Standard
21086 When you are using another document language than English, replace
21087 \begin_inset Newline newline
21102 , where *** is the name of the language used.
21105 \begin_layout Standard
21106 To get automatic names, but not for certain reference types, for example
21107 not for equations, use this preamble code:
21110 \begin_layout Standard
21118 \begin_inset Newline newline
21128 \begin_inset Newline newline
21139 equationautorefname}
21140 \begin_inset Newline newline
21144 \begin_inset Phantom HPhantom
21147 \begin_layout Plain Layout
21150 \begin_inset space ~
21165 \begin_layout Standard
21166 More about this topic can be found in
21171 \begin_inset CommandInset citation
21180 \begin_layout Standard
21181 \begin_inset Note Greyedout
21184 \begin_layout Plain Layout
21189 Automatic reference naming cannot be used when you use cross-references
21193 \begin_inset space ~
21198 style, as described in section
21199 \begin_inset space ~
21203 \begin_inset CommandInset ref
21205 reference "sub:Cross-Reference-Formats"
21217 \begin_layout Standard
21222 manual is an example where automatic reference naming is used.
21225 \begin_layout Subsection
21227 \begin_inset CommandInset label
21229 name "sub:Reference-Position"
21234 \begin_inset Index idx
21237 \begin_layout Plain Layout
21238 References ! Reference Position
21246 \begin_layout Standard
21252 \begin_inset Index idx
21255 \begin_layout Plain Layout
21256 LaTeX-packages ! hyperref
21269 dialog to link cross-references in the output, you will see that clicking
21270 on an image float reference jumps to the image label.
21271 The caption will be the first text part on the screen, so that you cannot
21272 see the image without scrolling.
21273 This is because the reference link anchor is placed at the position of
21275 With the use of the package
21280 \begin_inset Index idx
21283 \begin_layout Plain Layout
21284 LaTeX-packages ! hypcap
21289 , which is part of the LaTeX-package
21294 \begin_inset Index idx
21297 \begin_layout Plain Layout
21298 LaTeX-packages ! oberdiek
21303 , the link anchor is placed at the beginning of a float.
21304 To use this feature for figure floats, load
21308 in the document preamble with the line
21311 \begin_layout Standard
21316 usepackage[figure]{hypcap}
21319 \begin_layout Standard
21324 for all float types but this is not recommended for stability reasons.
21325 For more information, have a look at
21330 \begin_inset CommandInset citation
21339 \begin_layout Standard
21340 \begin_inset Note Greyedout
21343 \begin_layout Plain Layout
21352 has no effect on references to subfigures.
21360 \begin_layout Section
21362 \begin_inset CommandInset label
21364 name "sec:Float-Placement"
21369 \begin_inset Index idx
21372 \begin_layout Plain Layout
21381 \begin_layout Standard
21382 Right-clicking on a float-box opens a dialog where you can alter the placement
21383 options that LaTeX uses for positioning the float.
21384 \begin_inset Newline newline
21390 \begin_inset space ~
21395 is only useful for two-column documents: If you select it, the float will
21396 span both columns on the page instead of being confined to just one.
21397 \begin_inset Newline newline
21403 \begin_inset space ~
21408 is used to rotate floats, see section
21409 \begin_inset CommandInset ref
21411 reference "sec:Rotated-Floats"
21418 \begin_layout Standard
21419 You can use one ore more of the following options in the float dialog to
21420 set the placement for a particular float when you uncheck the option
21423 \begin_inset space ~
21427 \begin_inset space ~
21435 \begin_layout Description
21437 \begin_inset space ~
21441 \begin_inset space ~
21444 possible try to place the float on the position where it has been inserted
21447 \begin_layout Description
21449 \begin_inset space ~
21453 \begin_inset space ~
21456 page try to place the float at the top of the current page
21459 \begin_layout Description
21461 \begin_inset space ~
21465 \begin_inset space ~
21468 page try to place the float at the bottom of the current page
21471 \begin_layout Description
21473 \begin_inset space ~
21477 \begin_inset space ~
21480 floats try to place the float on its own page
21483 \begin_layout Standard
21484 The order of the above option is
21489 That means, if you use the default placement, LaTeX will first try out
21493 \begin_inset space ~
21497 \begin_inset space ~
21505 \begin_inset space ~
21509 \begin_inset space ~
21514 , and then the others.
21515 If you do not use the default, LaTeX will try only the checked options
21516 but in the same order.
21518 \begin_inset space ~
21521 placements are possible the procedure is internally repeated but it is tried
21522 to put the float on the following page.
21525 \begin_layout Standard
21526 By default, each option has its own rules:
21529 \begin_layout Labeling
21530 \labelwidthstring 00.00.0000
21534 \begin_inset space ~
21538 \begin_inset space ~
21543 only floats occupying less than 70
21544 \begin_inset space \thinspace{}
21547 % of the page can be placed at the top of a page (
21556 \begin_layout Labeling
21557 \labelwidthstring 00.00.0000
21561 \begin_inset space ~
21565 \begin_inset space ~
21570 : only floats occupying less than 30
21571 \begin_inset space \thinspace{}
21574 % of the page can be placed at the bottom of a page.
21584 \begin_layout Labeling
21585 \labelwidthstring 00.00.0000
21589 \begin_inset space ~
21593 \begin_inset space ~
21598 : only if more than 50
21599 \begin_inset space \thinspace{}
21602 % of the page are occupied by floats, several floats can be set together
21613 \begin_layout Standard
21614 If you don't like these rules, you can ignore them by using the additional
21618 \begin_inset space ~
21622 \begin_inset space ~
21628 \begin_inset Newline newline
21631 You can also redefine the rules with LaTeX-commands that are given in parenthese
21632 s after the rules description above.
21633 To increase for example the often too small default of the bottom-rule
21635 \begin_inset space \thinspace{}
21638 % of the page, add this line to your document preamble:
21641 \begin_layout Standard
21648 bottomfraction}{0.5}
21651 \begin_layout Standard
21652 Sometimes you might need, under all circumstances, a float to be placed
21653 exactly at the position where it is inserted.
21654 For this case you can use the option
21657 \begin_inset space ~
21663 Use this option very rarely and only if the document is almost ready to
21664 be printed, because the float is then no longer able to
21665 \begin_inset Quotes eld
21669 \begin_inset Quotes erd
21672 when you change your document and this will often destroy the page layout.
21675 \begin_layout Standard
21676 There are no placement options for text wrap floats, because they are always
21677 surrounded by the text of a certain paragraph.
21678 \begin_inset VSpace bigskip
21684 \begin_layout Standard
21685 Sometimes you have the problem that a float is placed at the top of a page
21686 while its corresponding section starts at the middle of the page, so that
21687 the reader could think the float is part of the previous section.
21688 To avoid this the LaTeX-command
21695 It suppresses a given float placement for the page where it is inserted
21696 and can therefore be used to avoid floats being set before a section starts.
21697 To get this, add these commands to your document preamble:
21700 \begin_layout Standard
21710 \begin_inset Newline newline
21724 \begin_layout Standard
21725 You can define the same for all section headings, like chapters and subsections.
21726 This definition is not recommended to be used for small text parts like
21727 subsubsections because LaTeX may then have problems finding a suitable
21731 \begin_layout Standard
21732 \begin_inset VSpace bigskip
21735 In some cases it is required to have all figures/tables at the end of the
21737 For this purpose the LaTeX-package
21742 \begin_inset Index idx
21745 \begin_layout Plain Layout
21746 LaTeX-packages ! endfloat
21752 It puts all figure and table floats at the end of the document into their
21754 At the original float position a text hint like
21755 \begin_inset Quotes eld
21761 \begin_inset space ~
21767 \begin_inset Quotes erd
21771 The endfloat-package is loaded in the preamble with the line
21774 \begin_layout Standard
21779 usepackage[options]{endfloat}
21782 \begin_layout Standard
21783 There are various package options to format the created figure/table sections.
21784 For more information we refer to the
21789 \begin_inset CommandInset citation
21796 \begin_inset Newline newline
21800 \begin_inset Note Greyedout
21803 \begin_layout Plain Layout
21808 doesn't provide an automatic translation for the text hint, you have to
21809 do this manually, see section
21810 \begin_inset space ~
21814 \begin_inset CommandInset citation
21826 \begin_inset Newline newline
21830 \begin_inset Note Greyedout
21833 \begin_layout Plain Layout
21838 There is currently a bug in
21842 when the caption contains a German
21843 \begin_inset Quotes eld
21847 \begin_inset Quotes erd
21851 Use in this case the command
21852 \begin_inset Quotes eld
21862 \begin_inset Quotes erd
21865 in TeX-Code instead of
21866 \begin_inset Quotes eld
21870 \begin_inset Quotes erd
21881 \begin_layout Standard
21882 \begin_inset VSpace bigskip
21885 For more details about float placements, have a look at LaTeX books,
21886 \begin_inset CommandInset citation
21888 key "latexcompanion,latexguide,latexbook"
21895 \begin_layout Section
21897 \begin_inset CommandInset label
21899 name "sec:Rotated-Floats"
21904 \begin_inset Index idx
21907 \begin_layout Plain Layout
21916 \begin_layout Standard
21917 Especially for wide tables you might have floats rotated.
21918 To rotate a whole float including the caption, right-click on the float-box
21922 \begin_inset space ~
21930 \begin_layout Standard
21931 Rotated floats are always placed on a page of their own (or column of their
21932 own; in case you have a multi-column document).
21933 You can let them span several columns using the float settings option
21936 \begin_inset space ~
21942 Floats are rotated so that you can read them from the outside margin.
21943 To force a certain rotation direction for all pages, you can add either
21952 to the document class options.
21955 \begin_layout Standard
21956 Referencing rotated floats is the same as for normal floats, the caption
21957 format is also the same: Table
21958 \begin_inset space ~
21962 \begin_inset CommandInset ref
21964 reference "tab:Rotated-table"
21968 is an example of a rotated table float.
21971 \begin_layout Standard
21972 \begin_inset Note Greyedout
21975 \begin_layout Plain Layout
21980 Not all DVI-viewers are able to display rotated floats.
21988 \begin_layout Standard
21989 \begin_inset Float table
21994 \begin_layout Plain Layout
21995 \begin_inset Caption
21997 \begin_layout Plain Layout
21998 \begin_inset CommandInset label
22000 name "tab:Rotated-table"
22012 \begin_layout Plain Layout
22014 \begin_inset Tabular
22015 <lyxtabular version="3" rows="1" columns="5">
22016 <features tabularvalignment="middle">
22017 <column alignment="center" valignment="top" width="0">
22018 <column alignment="center" valignment="top" width="0">
22019 <column alignment="center" valignment="top" width="0">
22020 <column alignment="center" valignment="top" width="0">
22021 <column alignment="center" valignment="top" width="0">
22023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22026 \begin_layout Plain Layout
22032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22035 \begin_layout Plain Layout
22041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22044 \begin_layout Plain Layout
22050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22053 \begin_layout Plain Layout
22059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22062 \begin_layout Plain Layout
22081 \begin_layout Section
22083 \begin_inset Index idx
22086 \begin_layout Plain Layout
22095 \begin_layout Standard
22096 Subfloats are for example used when a figure consists of several images.
22097 They are created by inserting a float into an existing float.
22098 The placement of the subfloats can be controlled in the same way as for
22099 paragraphs as shown in table
22100 \begin_inset space ~
22104 \begin_inset CommandInset ref
22106 reference "tab:Two-subtables-side"
22111 \begin_inset CommandInset ref
22113 reference "tab:Two-subtables-upon"
22120 \begin_layout Standard
22121 Referencing subfloats works as for normal floats: Table
22122 \begin_inset space ~
22126 \begin_inset CommandInset ref
22128 reference "tab:This-is-subtable-a"
22133 \begin_inset CommandInset ref
22135 reference "tab:This-is-subtable-b"
22139 are subtables of table
22140 \begin_inset space ~
22144 \begin_inset CommandInset ref
22146 reference "tab:Two-subtables-side"
22153 \begin_layout Standard
22154 \begin_inset Float table
22159 \begin_layout Plain Layout
22160 \begin_inset Caption
22162 \begin_layout Plain Layout
22163 \begin_inset CommandInset label
22165 name "tab:Two-subtables-side"
22169 Two subtables placed side by side.
22177 \begin_layout Plain Layout
22179 \begin_inset space \hfill{}
22183 \begin_inset Float table
22188 \begin_layout Plain Layout
22189 \begin_inset Caption
22191 \begin_layout Plain Layout
22192 \begin_inset CommandInset label
22194 name "tab:This-is-subtable-a"
22198 This is subtable a.
22206 \begin_layout Plain Layout
22208 \begin_inset Tabular
22209 <lyxtabular version="3" rows="1" columns="5">
22210 <features tabularvalignment="middle">
22211 <column alignment="center" valignment="top" width="0">
22212 <column alignment="center" valignment="top" width="0">
22213 <column alignment="center" valignment="top" width="0">
22214 <column alignment="center" valignment="top" width="0">
22215 <column alignment="center" valignment="top" width="0">
22217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22220 \begin_layout Plain Layout
22226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22229 \begin_layout Plain Layout
22235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22238 \begin_layout Plain Layout
22244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22247 \begin_layout Plain Layout
22253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22256 \begin_layout Plain Layout
22273 \begin_inset space \hfill{}
22277 \begin_inset Float table
22282 \begin_layout Plain Layout
22283 \begin_inset Caption
22285 \begin_layout Plain Layout
22286 \begin_inset CommandInset label
22288 name "tab:This-is-subtable-b"
22292 This is subtable b.
22300 \begin_layout Plain Layout
22302 \begin_inset Tabular
22303 <lyxtabular version="3" rows="1" columns="5">
22304 <features tabularvalignment="middle">
22305 <column alignment="center" valignment="top" width="0">
22306 <column alignment="center" valignment="top" width="0">
22307 <column alignment="center" valignment="top" width="0">
22308 <column alignment="center" valignment="top" width="0">
22309 <column alignment="center" valignment="top" width="0">
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" usebox="none">
22323 \begin_layout Plain Layout
22329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22332 \begin_layout Plain Layout
22338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22341 \begin_layout Plain Layout
22347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22350 \begin_layout Plain Layout
22367 \begin_inset space \hfill{}
22378 \begin_layout Standard
22379 \begin_inset Float table
22384 \begin_layout Plain Layout
22385 \begin_inset Caption
22387 \begin_layout Plain Layout
22388 \begin_inset CommandInset label
22390 name "tab:Two-subtables-upon"
22394 Two subtables placed one above the other.
22395 (a) table with 4 cells, (b) table with 5 cells.
22403 \begin_layout Plain Layout
22405 \begin_inset Float table
22410 \begin_layout Plain Layout
22411 \begin_inset Caption
22413 \begin_layout Plain Layout
22422 \begin_layout Plain Layout
22424 \begin_inset Tabular
22425 <lyxtabular version="3" rows="1" columns="4">
22426 <features tabularvalignment="middle">
22427 <column alignment="center" valignment="top" width="0">
22428 <column alignment="center" valignment="top" width="0">
22429 <column alignment="center" valignment="top" width="0">
22430 <column alignment="center" valignment="top" width="0">
22432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22435 \begin_layout Plain Layout
22441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22444 \begin_layout Plain Layout
22450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22453 \begin_layout Plain Layout
22459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22462 \begin_layout Plain Layout
22481 \begin_layout Plain Layout
22483 \begin_inset Float table
22488 \begin_layout Plain Layout
22489 \begin_inset Caption
22491 \begin_layout Plain Layout
22500 \begin_layout Plain Layout
22502 \begin_inset Tabular
22503 <lyxtabular version="3" rows="1" columns="5">
22504 <features tabularvalignment="middle">
22505 <column alignment="center" valignment="top" width="0">
22506 <column alignment="center" valignment="top" width="0">
22507 <column alignment="center" valignment="top" width="0">
22508 <column alignment="center" valignment="top" width="0">
22509 <column alignment="center" valignment="top" width="0">
22511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22514 \begin_layout Plain Layout
22520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22523 \begin_layout Plain Layout
22529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22532 \begin_layout Plain Layout
22538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22541 \begin_layout Plain Layout
22547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22550 \begin_layout Plain Layout
22574 \begin_layout Section
22575 Floats Side by Side
22576 \begin_inset Index idx
22579 \begin_layout Plain Layout
22580 Floats ! Side by side
22588 \begin_layout Standard
22589 To place floats side by side, as in Figures
22590 \begin_inset space ~
22594 \begin_inset CommandInset ref
22596 reference "fig:Float-left"
22601 \begin_inset CommandInset ref
22603 reference "fig:Float-right"
22612 In it two minipage boxes are inserted.
22616 \begin_layout Plain Layout
22617 Minipages are explained in section
22618 \begin_inset space ~
22622 \begin_inset CommandInset ref
22624 reference "sec:Minipages"
22633 The width is set to 45
22634 \begin_inset space \thinspace{}
22638 \begin_inset space \thinspace{}
22641 column% and the box alignment to
22646 The minipage boxes contain the image and the caption in the same way as
22647 they are in a float.
22648 The only difference is that the image unit
22651 \begin_inset space ~
22655 \begin_inset space ~
22660 is now calculated according to the width of the minipage boxes.
22663 \begin_layout Standard
22664 \begin_inset Float figure
22669 \begin_layout Plain Layout
22670 \begin_inset Box Frameless
22680 height_special "totalheight"
22683 \begin_layout Plain Layout
22685 \begin_inset Graphics
22686 filename clipart/mobius.eps
22689 scaleBeforeRotation
22696 \begin_layout Plain Layout
22697 \begin_inset Caption
22699 \begin_layout Plain Layout
22700 \begin_inset CommandInset label
22702 name "fig:Float-left"
22706 Float on the left side.
22717 \begin_inset space \hfill{}
22721 \begin_inset Box Frameless
22731 height_special "totalheight"
22734 \begin_layout Plain Layout
22736 \begin_inset Graphics
22737 filename clipart/platypus.eps
22740 scaleBeforeRotation
22747 \begin_layout Plain Layout
22748 \begin_inset Caption
22750 \begin_layout Plain Layout
22751 \begin_inset CommandInset label
22753 name "fig:Float-right"
22757 Float on the right side.
22770 \begin_layout Plain Layout
22779 \begin_layout Section
22781 \begin_inset Index idx
22784 \begin_layout Plain Layout
22785 Caption ! Formatting
22791 \begin_inset Index idx
22794 \begin_layout Plain Layout
22795 Floats ! Caption Formatting
22801 \begin_inset CommandInset label
22803 name "sec:Caption-Formatting"
22810 \begin_layout Standard
22815 environment is the default paragraph environment for
22820 On the LyX screen captions appear as label, e.
22821 \begin_inset space \thinspace{}
22825 \begin_inset space \space{}
22829 \begin_inset Quotes eld
22837 \begin_inset Quotes erd
22840 followed by the caption text.
22842 \begin_inset Quotes eld
22846 \begin_inset Quotes erd
22849 is the actual reference number.
22850 By default the label and the number are in the same font as the caption
22851 text and a colon follows the number to divide the label from the text.
22852 This caption format is not suitable for all document formats.
22856 \begin_layout Standard
22857 To change the default caption format, load the LaTeX-package
22862 \begin_inset Index idx
22865 \begin_layout Plain Layout
22866 LaTeX-packages ! caption
22871 in the document preamble with this line:
22874 \begin_layout Standard
22879 usepackage[format definition]{caption}
22882 \begin_layout Standard
22883 To have for example the label and the number in sans-serif bold font and
22884 the table captions always above the table as in this document, use the
22888 \begin_layout Standard
22893 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22896 \begin_layout Standard
22897 You can also define different caption formats for the different float types.
22898 In this case load the
22902 package without format specific options and define the different formats
22903 with the help of the command
22906 \begin_layout Standard
22911 captionsetup[float type]{format definition}
22914 \begin_layout Standard
22915 in the document preamble.
22916 For example the caption formats of Figure
22917 \begin_inset space ~
22921 \begin_inset CommandInset ref
22923 reference "fig:This-is-an-fig"
22928 \begin_inset space ~
22932 \begin_inset CommandInset ref
22934 reference "tab:This-is-an-tab"
22938 can be created using these commands in the document preamble:
22941 \begin_layout Standard
22946 usepackage[tableposition=top]{caption}
22949 \begin_inset Newline newline
22956 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22957 \begin_inset Newline newline
22961 \begin_inset Phantom HPhantom
22964 \begin_layout Plain Layout
22969 captionsetup[figure]{
22975 \begin_inset Newline newline
22980 captionsetup[table]{labelfont={bf,sf}}
22983 \begin_layout Standard
22984 \begin_inset Note Greyedout
22987 \begin_layout Plain Layout
22996 has no effect when a
23001 \begin_inset Index idx
23004 \begin_layout Plain Layout
23005 LaTeX-packages ! KOMA-Script
23010 document class is used.
23011 In this case the document class option
23013 captions=tableheading
23023 \begin_layout Standard
23024 For more information about the package
23028 we refer to its documentation
23029 \begin_inset CommandInset citation
23038 \begin_layout Standard
23039 To change the label name from e.
23040 \begin_inset space \thinspace{}
23044 \begin_inset space \space{}
23048 \begin_inset Quotes eld
23052 \begin_inset Quotes erd
23056 \begin_inset Quotes eld
23060 \begin_inset Quotes erd
23063 use this preamble command:
23066 \begin_layout Standard
23073 fnum@figure}{Image~
23078 \begin_layout Standard
23085 inserts the figure number and
23088 \begin_inset Quotes eld
23094 \begin_inset Quotes erd
23097 creates a protected space.
23100 \begin_layout Standard
23101 \begin_inset VSpace bigskip
23109 \begin_inset Index idx
23112 \begin_layout Plain Layout
23113 LaTeX-packages ! KOMA-Script
23120 article (KOMA-Script)
23128 letter (KOMA-Script)
23132 report (KOMA-Script)
23135 \begin_inset space \thinspace{}
23138 ), you can alternatively to the
23146 's built-in command
23153 For example, to have the caption label in bold, add this command to your
23157 \begin_layout Standard
23162 setkomafont{captionlabel}{
23167 \begin_layout Standard
23168 For more information about
23179 \begin_inset CommandInset citation
23188 \begin_layout Standard
23192 \begin_layout Plain Layout
23196 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23203 \begin_inset Note Note
23206 \begin_layout Plain Layout
23207 The caption format is changed only for this example.
23215 \begin_layout Standard
23216 \begin_inset Float figure
23222 \begin_layout Plain Layout
23224 \begin_inset Graphics
23225 filename clipart/mobius.eps
23228 scaleBeforeRotation
23235 \begin_layout Plain Layout
23236 \begin_inset Caption
23238 \begin_layout Plain Layout
23239 \begin_inset CommandInset label
23241 name "fig:This-is-an-fig"
23245 This is an example figure caption that is longer than one line to show the
23246 different caption format.
23247 Here a self-defined caption format is used.
23260 \begin_layout Standard
23264 \begin_layout Plain Layout
23268 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23277 \begin_layout Standard
23278 \begin_inset Float table
23284 \begin_layout Plain Layout
23285 \begin_inset Caption
23287 \begin_layout Plain Layout
23288 \begin_inset CommandInset label
23290 name "tab:This-is-an-tab"
23294 This is an example table caption that is longer than one line to show the
23295 different caption format.
23296 Here the standard caption format for tables in this document is used.
23304 \begin_layout Plain Layout
23306 \begin_inset Tabular
23307 <lyxtabular version="3" rows="1" columns="5">
23308 <features tabularvalignment="middle">
23309 <column alignment="center" valignment="top" width="0">
23310 <column alignment="center" valignment="top" width="0">
23311 <column alignment="center" valignment="top" width="0">
23312 <column alignment="center" valignment="top" width="0">
23313 <column alignment="center" valignment="top" width="0">
23315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23318 \begin_layout Plain Layout
23324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23327 \begin_layout Plain Layout
23333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23336 \begin_layout Plain Layout
23342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23345 \begin_layout Plain Layout
23351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23354 \begin_layout Plain Layout
23373 \begin_layout Section
23375 \begin_inset Index idx
23378 \begin_layout Plain Layout
23379 Caption ! Placement
23385 \begin_inset Index idx
23388 \begin_layout Plain Layout
23389 Floats ! Caption Placement
23395 \begin_inset CommandInset label
23397 name "sec:Caption-Placement"
23404 \begin_layout Standard
23405 The common caption placement rule is:
23408 \begin_layout Description
23409 Figure: Caption is set below the figure
23412 \begin_layout Description
23413 Table: Caption is set above the table
23416 \begin_layout Standard
23417 Having the caption above the table is unfortunately not supported in LaTeX's
23419 That means if you are using the document classes
23435 there will be no space between the caption and the table.
23436 To insert the necessary space, add the following option to the load command
23437 of the LaTeX-package
23441 in your document preamble
23445 \begin_layout Plain Layout
23447 \begin_inset space ~
23451 \begin_inset CommandInset ref
23453 reference "sec:Caption-Formatting"
23457 for more information of the package
23469 \begin_layout Standard
23475 \begin_layout Standard
23481 \begin_inset Index idx
23484 \begin_layout Plain Layout
23485 LaTeX-packages ! KOMA-Script
23492 article (KOMA-Script)
23500 letter (KOMA-Script)
23504 report (KOMA-Script)
23507 \begin_inset space \thinspace{}
23510 ), you can alternatively to the
23514 package set the document class option
23516 captions=tableheading
23521 \begin_layout Standard
23522 \begin_inset VSpace bigskip
23525 It is also possible to set the caption beside a figure or table.
23526 To get this the LaTeX-package
23531 \begin_inset Index idx
23534 \begin_layout Plain Layout
23535 LaTeX-packages ! sidecap
23540 has to be loaded in the document preamble with the line
23543 \begin_layout Standard
23548 usepackage[option]{sidecap}
23551 \begin_layout Standard
23552 If you set no option, the caption is placed on the side of the outer page
23553 margin – to the right on odd pages, to the left on even pages.
23554 You can change the placement to inner margin with the option
23559 To force the placement always to the right or left, use the option
23570 \begin_layout Standard
23574 \begin_layout Plain Layout
23584 \begin_inset Note Note
23587 \begin_layout Plain Layout
23588 The following section will only be displayed when the LaTeX-package
23600 \begin_layout Standard
23601 To place in LyX the caption of a float on the side, it is necessary to add
23602 these commands to the document preamble:
23605 \begin_layout Standard
23606 \begin_inset Newpage pagebreak
23612 \begin_layout Standard
23614 \begin_inset CommandInset line
23625 \begin_layout Standard
23632 TabBesBeg}[1][1.0]{%
23633 \begin_inset Newline newline
23637 \begin_inset Phantom HPhantom
23640 \begin_layout Plain Layout
23641 \begin_inset space ~
23656 \begin_inset Newline newline
23660 \begin_inset Phantom HPhantom
23663 \begin_layout Plain Layout
23666 \begin_inset space ~
23681 \begin_inset Newline newline
23685 \begin_inset Phantom HPhantom
23688 \begin_layout Plain Layout
23691 \begin_inset space ~
23701 renewenvironment{table}[1]{
23703 begin{SCtable}[#1]##1}{
23708 \begin_layout Standard
23716 \begin_inset Newline newline
23720 \begin_inset Phantom HPhantom
23723 \begin_layout Plain Layout
23724 \begin_inset space ~
23739 \begin_inset Newline newline
23743 \begin_inset Phantom HPhantom
23746 \begin_layout Plain Layout
23747 \begin_inset space ~
23764 \begin_layout Standard
23771 FigBesBeg}[1][1.0]{%
23772 \begin_inset Newline newline
23776 \begin_inset Phantom HPhantom
23779 \begin_layout Plain Layout
23780 \begin_inset space ~
23795 \begin_inset Newline newline
23799 \begin_inset Phantom HPhantom
23802 \begin_layout Plain Layout
23803 \begin_inset space ~
23818 \begin_inset Newline newline
23822 \begin_inset Phantom HPhantom
23825 \begin_layout Plain Layout
23826 \begin_inset space ~
23836 renewenvironment{figure}[1]{
23838 begin{SCfigure}[#1]##1}{
23843 \begin_layout Standard
23851 \begin_inset Newline newline
23855 \begin_inset Phantom HPhantom
23858 \begin_layout Plain Layout
23859 \begin_inset space ~
23874 \begin_inset Newline newline
23878 \begin_inset Phantom HPhantom
23881 \begin_layout Plain Layout
23882 \begin_inset space ~
23899 \begin_layout Standard
23901 \begin_inset CommandInset line
23912 \begin_layout Standard
23913 The commands allow you to redefine the floats so that the caption is set
23915 For figure floats use the command
23918 \begin_layout Standard
23926 \begin_layout Standard
23927 in TeX-Code before the float.
23928 And insert the command
23931 \begin_layout Standard
23939 \begin_layout Standard
23940 in TeX-Code at the point where you want to get back to the original float
23944 \begin_layout Standard
23945 For table floats use the corresponding commands
23948 \begin_layout Standard
23962 \begin_layout Standard
23964 \begin_inset space ~
23968 \begin_inset CommandInset ref
23970 reference "fig:cap-beside-fig"
23975 \begin_inset space ~
23979 \begin_inset CommandInset ref
23981 reference "tab:cap-beside-tab"
23985 are examples where the caption is set beside.
23988 \begin_layout Standard
23989 You can see in the examples that the caption text appears at the top of
23990 the floats for table floats and at the bottom for figure floats.
23991 To change this, you can use the command
23994 \begin_layout Standard
23999 sidecaptionvpos{float type}{placement}
24002 \begin_layout Standard
24003 in the document preamble or in TeX-Code before the float.
24004 The float type is either
24012 , the placement can be
24013 \begin_inset Quotes eld
24021 \begin_inset Quotes erd
24025 \begin_inset Quotes eld
24033 \begin_inset Quotes erd
24037 \begin_inset Quotes eld
24045 \begin_inset Quotes erd
24049 To have for example the caption of figure floats vertically centered, use
24053 \begin_layout Standard
24058 sidecaptionvpos{figure}{c}
24061 \begin_layout Standard
24062 This was used for Figure
24063 \begin_inset space ~
24067 \begin_inset CommandInset ref
24069 reference "fig:cap-beside-fig-2"
24076 \begin_layout Standard
24077 \begin_inset VSpace medskip
24083 \begin_layout Standard
24084 The default caption width is the width of the image/table.
24085 For thin image/tables, like in Table
24086 \begin_inset space ~
24090 \begin_inset CommandInset ref
24092 reference "tab:cap-beside-tab"
24096 , this leads to captions that are too thin.
24097 You can increase the width by specifying a factor that will be multiplied
24098 with the image/table width to get the caption width.
24099 The caption width will automatically be recalculated in case it would protrude
24100 over the page or column margin due to the specified width.
24105 can either be given as optional argument for
24114 \begin_layout Standard
24122 \begin_layout Standard
24123 or in the definition of
24133 with another value.
24134 If you do the latter, your factor will be the default if
24140 is used without an argument.
24142 \begin_inset space ~
24146 \begin_inset CommandInset ref
24148 reference "tab:cap-beside-tab-wider"
24152 the factor 5 was used.
24155 \begin_layout Standard
24156 \begin_inset Note Greyedout
24159 \begin_layout Plain Layout
24164 For floats with captions set beside, you cannot use the float placement
24168 \begin_inset space ~
24173 because it is not supported by
24185 \begin_layout Standard
24186 \begin_inset VSpace medskip
24189 For more information about the package
24193 we refer to its documentation
24194 \begin_inset CommandInset citation
24203 \begin_layout Standard
24204 \begin_inset Note Greyedout
24207 \begin_layout Plain Layout
24217 \begin_inset Index idx
24220 \begin_layout Plain Layout
24221 LaTeX-packages ! hypcap
24226 , described in section
24227 \begin_inset space ~
24231 \begin_inset CommandInset ref
24233 reference "sub:Reference-Position"
24237 , has no effect on floats with the caption set beside.
24245 \begin_layout Standard
24249 \begin_layout Plain Layout
24261 \begin_layout Standard
24262 \begin_inset Float figure
24267 \begin_layout Plain Layout
24268 \begin_inset Graphics
24269 filename clipart/escher-lsd.eps
24271 scaleBeforeRotation
24278 \begin_layout Plain Layout
24279 \begin_inset Caption
24281 \begin_layout Plain Layout
24282 \begin_inset CommandInset label
24284 name "fig:cap-beside-fig"
24288 This is a caption beside a figure.
24301 \begin_layout Standard
24305 \begin_layout Plain Layout
24317 \begin_layout Standard
24321 \begin_layout Plain Layout
24333 \begin_layout Standard
24334 \begin_inset Float table
24339 \begin_layout Plain Layout
24340 \begin_inset Caption
24342 \begin_layout Plain Layout
24343 \begin_inset CommandInset label
24345 name "tab:cap-beside-tab"
24349 This is a caption beside a table.
24357 \begin_layout Plain Layout
24358 \begin_inset Tabular
24359 <lyxtabular version="3" rows="4" columns="5">
24360 <features tabularvalignment="middle">
24361 <column alignment="center" valignment="top" width="0">
24362 <column alignment="center" valignment="top" width="0">
24363 <column alignment="center" valignment="top" width="0">
24364 <column alignment="center" valignment="top" width="0">
24365 <column alignment="center" valignment="top" width="0">
24367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24370 \begin_layout Plain Layout
24376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24379 \begin_layout Plain Layout
24385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24388 \begin_layout Plain Layout
24394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24397 \begin_layout Plain Layout
24403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24406 \begin_layout Plain Layout
24414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24417 \begin_layout Plain Layout
24423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24426 \begin_layout Plain Layout
24432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24435 \begin_layout Plain Layout
24441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24444 \begin_layout Plain Layout
24450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24453 \begin_layout Plain Layout
24461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24464 \begin_layout Plain Layout
24470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24473 \begin_layout Plain Layout
24479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24482 \begin_layout Plain Layout
24488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24491 \begin_layout Plain Layout
24497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24500 \begin_layout Plain Layout
24508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24511 \begin_layout Plain Layout
24517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24520 \begin_layout Plain Layout
24526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24529 \begin_layout Plain Layout
24535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24538 \begin_layout Plain Layout
24544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24547 \begin_layout Plain Layout
24566 \begin_layout Standard
24570 \begin_layout Plain Layout
24582 \begin_layout Standard
24586 \begin_layout Plain Layout
24590 sidecaptionvpos{figure}{c}
24596 \begin_inset Float figure
24601 \begin_layout Plain Layout
24602 \begin_inset Graphics
24603 filename clipart/escher-lsd.eps
24605 scaleBeforeRotation
24612 \begin_layout Plain Layout
24613 \begin_inset Caption
24615 \begin_layout Plain Layout
24616 \begin_inset CommandInset label
24618 name "fig:cap-beside-fig-2"
24622 This is a vertically centered caption beside a figure.
24635 \begin_layout Standard
24639 \begin_layout Plain Layout
24651 \begin_layout Standard
24655 \begin_layout Plain Layout
24667 \begin_layout Standard
24668 \begin_inset Float table
24673 \begin_layout Plain Layout
24674 \begin_inset Caption
24676 \begin_layout Plain Layout
24677 \begin_inset CommandInset label
24679 name "tab:cap-beside-tab-wider"
24683 This is a caption is wider than the one in Table
24684 \begin_inset space ~
24688 \begin_inset CommandInset ref
24690 reference "tab:cap-beside-tab"
24702 \begin_layout Plain Layout
24703 \begin_inset Tabular
24704 <lyxtabular version="3" rows="4" columns="5">
24705 <features tabularvalignment="middle">
24706 <column alignment="center" valignment="top" width="0">
24707 <column alignment="center" valignment="top" width="0">
24708 <column alignment="center" valignment="top" width="0">
24709 <column alignment="center" valignment="top" width="0">
24710 <column alignment="center" valignment="top" width="0">
24712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24715 \begin_layout Plain Layout
24721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24724 \begin_layout Plain Layout
24730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24733 \begin_layout Plain Layout
24739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24742 \begin_layout Plain Layout
24748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24751 \begin_layout Plain Layout
24759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24762 \begin_layout Plain Layout
24768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24771 \begin_layout Plain Layout
24777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24780 \begin_layout Plain Layout
24786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24789 \begin_layout Plain Layout
24795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24798 \begin_layout Plain Layout
24806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24809 \begin_layout Plain Layout
24815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24818 \begin_layout Plain Layout
24824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24827 \begin_layout Plain Layout
24833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24836 \begin_layout Plain Layout
24842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24845 \begin_layout Plain Layout
24853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24856 \begin_layout Plain Layout
24862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24865 \begin_layout Plain Layout
24871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24874 \begin_layout Plain Layout
24880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24883 \begin_layout Plain Layout
24889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24892 \begin_layout Plain Layout
24911 \begin_layout Standard
24915 \begin_layout Plain Layout
24927 \begin_layout Standard
24931 \begin_layout Plain Layout
24941 \begin_inset Note Note
24944 \begin_layout Plain Layout
24945 The following will be displayed when the LaTeX-package
24957 \begin_layout Standard
24958 You need to install the LaTeX-package
24962 to see the following part of this section in the output.
24965 \begin_layout Standard
24969 \begin_layout Plain Layout
24981 \begin_layout Section
24983 \begin_inset Index idx
24986 \begin_layout Plain Layout
24987 Floats ! Float Lists
24995 \begin_layout Standard
24996 Similar to the table of contents where the sections of the document are
24997 listed, there are listings for all float types, like the figures of the
24999 You can insert them via the
25001 Insert\SpecialChar \menuseparator
25003 \begin_inset space ~
25007 \begin_inset space ~
25015 \begin_layout Standard
25016 The list entries are the float captions or its short title, the float number,
25017 and the page number where they appear in the document.
25020 \begin_layout Standard
25021 You can find the list of figures and tables at the end of this document.
25024 \begin_layout Chapter
25028 \begin_layout Section
25030 \begin_inset Index idx
25033 \begin_layout Plain Layout
25042 \begin_layout Standard
25043 Notes are inserted with the toolbar button
25055 Insert\SpecialChar \menuseparator
25059 There are three types of notes:
25062 \begin_layout Description
25064 \begin_inset space ~
25067 Note This note type is for internal notes that won't appear in the output.
25068 Its note-box looks like this:
25069 \begin_inset Newline newline
25073 \begin_inset Newline newline
25077 \begin_inset Graphics
25078 filename clipart/LyXNoteImageQt4.png
25081 scaleBeforeRotation
25086 \begin_inset Note Note
25089 \begin_layout Plain Layout
25090 This is text in a note box that doesn't appear in the output.
25098 \begin_layout Description
25099 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
25100 ent, when you export the document to LaTeX via the menu
25102 File\SpecialChar \menuseparator
25103 Export\SpecialChar \menuseparator
25104 LaTeX (pdflatex) / (plain)
25107 Its note-box looks like this:
25108 \begin_inset Newline newline
25112 \begin_inset Newline newline
25116 \begin_inset Graphics
25117 filename clipart/CommentNoteImageQt4.png
25120 scaleBeforeRotation
25125 \begin_inset Note Comment
25128 \begin_layout Plain Layout
25129 This is text in a note box that only appears as comment in LaTeX-files.
25137 \begin_layout Description
25139 \begin_inset space ~
25142 Out This note will appear in the output as grey text.
25143 Its note-box looks like this:
25144 \begin_inset Newline newline
25148 \begin_inset Newline newline
25152 \begin_inset Graphics
25153 filename clipart/GreyedOutNoteImageQt4.png
25156 scaleBeforeRotation
25161 \begin_inset Newline newline
25168 \begin_layout Plain Layout
25172 renewenvironment{lyxgreyedout}
25175 \begin_layout Plain Layout
25179 textcolor[gray]{0.8}
25189 \begin_inset Note Greyedout
25192 \begin_layout Plain Layout
25197 \begin_layout Plain Layout
25198 This is an example footnote within a greyed out note.
25203 of a comment that appears in the output as grey text.
25212 \begin_layout Plain Layout
25216 renewenvironment{lyxgreyedout}
25219 \begin_layout Plain Layout
25233 \begin_inset Note Note
25236 \begin_layout Plain Layout
25237 The greyed out note is here redefined to show it with the original LyX definitio
25238 n because greyed out notes are redefined in the preamble of this document,
25239 as described below, to have blue text.
25245 \begin_inset Newline newline
25249 \begin_inset Newline newline
25252 As you can see in the example, the first line of greyed out notes is a bit
25253 indented and greyed out notes can have footnotes.
25256 \begin_layout Standard
25257 \begin_inset VSpace bigskip
25260 When you use the toolbar button
25273 \begin_inset space ~
25279 You can switch between the five note types by right-clicking on the note-box.
25284 If you want to turn existing text into a note, mark it and click on the
25298 To change a note to text, press the backspace key when the cursor is in
25299 the first position of a note, or press the delete key when the cursor is
25300 in the very last position of the note, respectively.
25303 \begin_layout Standard
25304 \begin_inset VSpace bigskip
25307 You can change the text color of the greyed out notes in the menu
25309 Document\SpecialChar \menuseparator
25310 Settings\SpecialChar \menuseparator
25316 \begin_layout Section
25318 \begin_inset CommandInset label
25320 name "sec:Footnotes"
25325 \begin_inset Index idx
25328 \begin_layout Plain Layout
25335 \begin_inset Index idx
25338 \begin_layout Plain Layout
25347 \begin_layout Standard
25348 Footnotes can be inserted using the toolbar button
25353 arg "footnote-insert"
25360 Insert\SpecialChar \menuseparator
25372 then the following footnote-box:
25373 \begin_inset Graphics
25374 filename clipart/footnoteQt4.png
25376 scaleBeforeRotation
25384 where you can enter the footnote text.
25385 If you want to turn existing text into a footnote, mark it and click on
25411 key when the cursor is in the first position of a
25423 key when the cursor is in the very last position of the
25434 \begin_layout Standard
25435 Here is an example footnote:
25443 \begin_layout Plain Layout
25444 \begin_inset CommandInset label
25446 name "foot:This-is-an"
25450 This is an example footnote.
25463 \begin_layout Plain Layout
25467 newcounter{MyRepeatFoot}
25470 \begin_layout Plain Layout
25474 setcounter{MyRepeatFoot}{
25484 \begin_layout Standard
25485 The footnote will appear in the output as a superscript number at the text
25486 position where the footnote box is placed.
25487 The footnote text is placed at the bottom of the current page.
25488 The footnote number is calculated by LaTeX; the numbers are consecutive.
25489 It depends on your document-class, whether the footnote number is reset
25493 \begin_layout Standard
25494 Footnotes can be referenced like floats: Insert a label into the footnote
25495 and cross-reference this label in the text as described in section
25496 \begin_inset space ~
25500 \begin_inset CommandInset ref
25502 reference "sec:Referencing-Floats"
25507 \begin_inset Newline newline
25510 This is a cross-reference of Footnote
25511 \begin_inset space ~
25515 \begin_inset CommandInset ref
25517 reference "foot:This-is-an"
25524 \begin_layout Standard
25525 \begin_inset VSpace defskip
25528 Footnotes in tables are not printed by LaTeX due to technical reasons.
25529 However there exists another method to print them: Instead of the footnote
25536 is inserted as TeX-code.
25537 The text of the footnote is entered as an argument of the TeX-code command
25545 \begin_inset Newline newline
25548 This was done for the following table with the command
25551 \begin_layout Standard
25558 Printed table footnote.
25563 \begin_layout Standard
25564 \begin_inset Tabular
25565 <lyxtabular version="3" rows="2" columns="1">
25566 <features tabularvalignment="middle">
25567 <column alignment="center" valignment="top" width="0">
25569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25572 \begin_layout Plain Layout
25573 This an example text.
25577 \begin_layout Plain Layout
25578 This footnote will not be printed!
25590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25593 \begin_layout Plain Layout
25594 This an example text.
25598 \begin_layout Plain Layout
25621 \begin_layout Plain Layout
25630 Printed table footnote.
25634 \begin_layout Plain Layout
25644 \begin_layout Standard
25645 Footnotes in longtables are described in section
25646 \begin_inset space ~
25650 \begin_inset CommandInset ref
25652 reference "sub:Footnotes-in-Longtables"
25659 \begin_layout Standard
25660 Footnotes in minipage boxes are printed, but inside the box and with a different
25661 numbering because a minipage box is like a page inside a page.
25662 (For more about minipages, see section
25663 \begin_inset space ~
25667 \begin_inset CommandInset ref
25669 reference "sec:Minipages"
25673 .) To get a footnote in the minipage that is output at the bottom of the
25674 page like normal footnotes, also use the method of
25689 \begin_layout Standard
25690 \begin_inset Box Frameless
25700 height_special "totalheight"
25703 \begin_layout Plain Layout
25704 This an example text in a minipage.
25708 \begin_layout Plain Layout
25709 Footnote in the minipage.
25717 \begin_layout Plain Layout
25718 This an example text in a minipage.
25722 \begin_layout Plain Layout
25739 \begin_layout Standard
25743 \begin_layout Plain Layout
25752 Footnote outside the minipage.
25756 \begin_layout Plain Layout
25766 \begin_layout Standard
25767 \begin_inset VSpace defskip
25773 \begin_layout Standard
25774 To refer to the same footnote several times without printing the footnote
25775 text every time, use the command
25779 footnotemark[number]
25782 \begin_inset Newline newline
25785 As you do not know the number of the repeating footnote while you are writing
25786 the text, you have to store its number.
25787 For the following footnote mark example, these commands were inserted in
25788 TeX-code after Footnote
25789 \begin_inset space ~
25793 \begin_inset CommandInset ref
25795 reference "foot:This-is-an"
25799 to store the footnote number:
25802 \begin_layout Standard
25807 newcounter{MyRepeatFoot}
25808 \begin_inset Newline newline
25813 setcounter{MyRepeatFoot}{
25818 \begin_layout Standard
25819 The footnote mark was then created with this command:
25822 \begin_layout Standard
25832 \begin_layout Standard
25833 Here is a repeated footnote:
25841 \begin_layout Plain Layout
25855 \begin_layout Standard
25856 If you want to repeat the previous footnote, you can omit the storage of
25857 the footnote number and just use this command instead:
25860 \begin_layout Standard
25870 \begin_layout Standard
25871 Here is another repeated footnote:
25879 \begin_layout Plain Layout
25893 \begin_layout Subsection
25895 \begin_inset CommandInset label
25897 name "sub:Footnote-Numbering"
25902 \begin_inset Index idx
25905 \begin_layout Plain Layout
25906 Footnotes ! Numbering
25914 \begin_layout Standard
25915 To reset the footnote number back to 1 after each section
25917 , add this command to your document preamble:
25920 \begin_layout Standard
25925 @addtoreset{footnote}{section}
25928 \begin_layout Standard
25929 \begin_inset VSpace bigskip
25932 The following preamble command changes the footnote numbering style to small
25936 \begin_layout Standard
25948 \begin_layout Standard
25952 \begin_layout Plain Layout
25965 This is a footnote with roman numbering:
25969 \begin_layout Plain Layout
25970 This is an example footnote with roman numbering.
25978 \begin_layout Standard
25979 To change the numbering style to capital roman numerals replace in the command
25994 \begin_inset Quotes eld
25998 \begin_inset Quotes erd
26001 footnotes with capital or small Latin letters use
26015 \begin_inset Quotes eld
26019 \begin_inset Quotes erd
26022 footnotes with symbols use
26031 \begin_layout Standard
26032 \begin_inset Note Greyedout
26035 \begin_layout Plain Layout
26040 You can only number 26 footnotes with Latin letters, because this numbering
26041 is limited to single letters.
26047 \begin_inset Newline newline
26051 \begin_inset Note Greyedout
26054 \begin_layout Plain Layout
26059 You can only number 9 footnotes with symbols.
26067 \begin_layout Standard
26068 To return to the default numbering style after you have changed to another
26081 in the command above.
26085 \begin_layout Plain Layout
26101 \begin_layout Standard
26102 \begin_inset VSpace bigskip
26108 \begin_layout Standard
26109 If you want to have footnotes numbered in the scheme
26110 \begin_inset Quotes eld
26114 \begin_inset Quotes erd
26117 , add the following command to your document preamble:
26120 \begin_layout Standard
26125 numberwithin{footnote}{chapter}
26128 \begin_layout Standard
26129 To be able to use the command
26138 \begin_inset space ~
26143 in the document settings the option
26146 \begin_inset space ~
26150 \begin_inset space ~
26154 \begin_inset space ~
26162 \begin_layout Standard
26166 \begin_layout Plain Layout
26170 numberwithin{footnote}{chapter}
26175 This is another example footnote:
26181 \begin_layout Plain Layout
26182 This is a footnote numbered in the scheme
26183 \begin_inset Quotes eld
26187 \begin_inset Quotes erd
26201 \begin_layout Plain Layout
26217 \begin_layout Standard
26218 \begin_inset Note Greyedout
26221 \begin_layout Plain Layout
26232 always prints out the footnote number as arabic number; previous redefinitions
26233 to get non-arabic numbers are overwritten.
26241 \begin_layout Standard
26242 So to get for example the scheme
26243 \begin_inset Quotes eld
26249 \begin_inset Quotes erd
26252 , use this command instead of
26261 \begin_layout Standard
26275 \begin_layout Subsection
26277 \begin_inset Index idx
26280 \begin_layout Plain Layout
26281 Footnotes ! Placement
26289 \begin_layout Standard
26290 If you have several footnotes in one page, they appear without vertical
26291 space between them at the bottom of the page.
26292 To make them more readable you can e.
26293 \begin_inset space \thinspace{}
26297 \begin_inset space \space{}
26301 \begin_inset space \thinspace{}
26304 mm space with the following preamble command:
26307 \begin_layout Standard
26317 \begin_inset Newline newline
26331 \begin_layout Standard
26332 \begin_inset VSpace bigskip
26335 In a two-column document the footnotes appear at the bottom of every column,
26337 \begin_inset space ~
26341 \begin_inset CommandInset ref
26343 reference "fig:Standard-footnote-placement"
26348 If the footnotes should only appear at the bottom of the right column,
26350 \begin_inset space ~
26354 \begin_inset CommandInset ref
26356 reference "fig:Footnote-placement-in"
26360 , use the LaTeX-package
26365 \begin_inset Index idx
26368 \begin_layout Plain Layout
26369 LaTeX-packages ! ftnright
26374 with this command in the document preamble:
26377 \begin_layout Standard
26382 usepackage{ftnright}
26385 \begin_layout Standard
26386 \begin_inset Float figure
26392 \begin_layout Plain Layout
26396 \begin_layout Plain Layout
26406 \begin_inset Graphics
26407 filename clipart/without_fntright.pdf
26409 scaleBeforeRotation
26417 \begin_layout Plain Layout
26427 \begin_layout Plain Layout
26428 \begin_inset Caption
26430 \begin_layout Plain Layout
26431 \begin_inset CommandInset label
26433 name "fig:Standard-footnote-placement"
26437 Standard footnote placement in two-column documents.
26450 \begin_layout Standard
26451 \begin_inset Float figure
26457 \begin_layout Plain Layout
26461 \begin_layout Plain Layout
26471 \begin_inset Graphics
26472 filename clipart/with_fntright.pdf
26474 scaleBeforeRotation
26482 \begin_layout Plain Layout
26492 \begin_layout Plain Layout
26493 \begin_inset Caption
26495 \begin_layout Plain Layout
26496 \begin_inset CommandInset label
26498 name "fig:Footnote-placement-in"
26502 Footnote placement in two-column documents when the LaTeX-package
26519 \begin_layout Standard
26520 \begin_inset VSpace bigskip
26523 In some scientific literature it is usual to collect the footnotes and print
26524 them in a separate paragraph at the end of a section, as in Figure
26525 \begin_inset space ~
26529 \begin_inset CommandInset ref
26531 reference "fig:Endnotes"
26536 They are then called
26537 \begin_inset Quotes eld
26541 \begin_inset Quotes erd
26545 \begin_inset Index idx
26548 \begin_layout Plain Layout
26554 To use endnotes instead of footnotes in your document, load in the menu
26557 Document\SpecialChar \menuseparator
26558 Settings\SpecialChar \menuseparator
26564 \begin_inset space ~
26568 \begin_inset space ~
26574 To insert the collected footnotes, insert the command
26577 \begin_layout Standard
26585 \begin_layout Standard
26586 in TeX-Code at the end of a section or chapter.
26589 \begin_layout Standard
26590 \begin_inset Float figure
26595 \begin_layout Plain Layout
26600 \begin_layout Plain Layout
26610 \begin_inset Graphics
26611 filename clipart/endnotes.pdf
26612 scaleBeforeRotation
26620 \begin_layout Plain Layout
26630 \begin_layout Plain Layout
26631 \begin_inset Caption
26633 \begin_layout Plain Layout
26634 \begin_inset CommandInset label
26636 name "fig:Endnotes"
26640 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26654 \begin_layout Standard
26655 \begin_inset VSpace medskip
26658 The paragraph heading for the endnotes isn't automatically translated into
26659 the document language, this must be done manually.
26660 The following preamble command translates the default English
26661 \begin_inset Quotes eld
26665 \begin_inset Quotes erd
26669 \begin_inset Quotes eld
26673 \begin_inset Quotes erd
26679 \begin_layout Standard
26686 notesname}{Anmerkungen}
26689 \begin_layout Standard
26690 \begin_inset VSpace medskip
26693 The numbering of endnotes can be changed like the footnote numbering as
26694 described in section
26695 \begin_inset space ~
26699 \begin_inset CommandInset ref
26701 reference "sub:Footnote-Numbering"
26705 ; just replace the command
26718 To reset the endnote number use the command
26724 as described in section
26725 \begin_inset space ~
26729 \begin_inset CommandInset ref
26731 reference "sub:Footnote-Numbering"
26735 and replace the command parameter
26746 \begin_layout Standard
26747 For endnotes there is the command
26751 endnotemark[number]
26753 similar to the command
26759 , that is described in section
26760 \begin_inset space ~
26764 \begin_inset CommandInset ref
26766 reference "sec:Footnotes"
26773 \begin_layout Standard
26774 \begin_inset VSpace bigskip
26777 Footnotes can also be placed in the page margin and the footnote text alignment
26778 can be changed, see the LaTeX-package
26783 \begin_inset Index idx
26786 \begin_layout Plain Layout
26787 LaTeX-packages ! footmisc
26793 \begin_inset CommandInset citation
26799 for more information about this.
26802 \begin_layout Standard
26803 For various further footnote formatting issues have a look at LaTeX-books,
26805 \begin_inset CommandInset citation
26807 key "latexcompanion,latexguide,latexbook"
26817 \begin_inset Index idx
26820 \begin_layout Plain Layout
26821 LaTeX-packages ! KOMA-Script
26826 document class, you can adjust all footnote settings using class-specific
26828 \begin_inset CommandInset citation
26837 \begin_layout Section
26839 \begin_inset Index idx
26842 \begin_layout Plain Layout
26843 Notes ! Margin Notes
26851 \begin_layout Standard
26852 Margin notes look and behave in LyX like footnotes.
26853 They are inserted via the menu
26855 Insert\SpecialChar \menuseparator
26857 \begin_inset space ~
26862 or the toolbar button
26867 arg "marginalnote-insert"
26883 \begin_inset Quotes eld
26887 \begin_inset Quotes erd
26890 appears where you can enter the text of the margin note.
26893 \begin_layout Standard
26894 At the side is an example margin note.
26899 \begin_inset Marginal
26902 \begin_layout Plain Layout
26903 This is a margin note.
26911 \begin_layout Standard
26912 Margin notes appear at the right side in single-sided documents.
26913 In double-sided documents they appear in the outer margin – left on even
26914 pages, right on odd pages.
26915 The text of margin notes is aligned opposite to the outer margin – right-aligne
26916 d when the note appears in the left margin.
26917 The first line of the margin note is placed at the position of the text
26918 line where it is inserted in the document.
26921 \begin_layout Standard
26922 \begin_inset VSpace bigskip
26925 To place the margin note in the inner margin, add the command
26928 \begin_layout Standard
26936 \begin_layout Standard
26937 in TeX-Code before a margin note.
26938 The new placement is valid for all subsequent margin notes.
26943 \begin_layout Plain Layout
26953 \begin_inset Marginal
26956 \begin_layout Plain Layout
26957 This is a margin note in the inner margin.
26965 \begin_inset Newline newline
26971 \begin_inset Note Greyedout
26974 \begin_layout Plain Layout
26979 There is often not enough space in the inner margin so that the notes are
26980 not correctly displayed in the output.
26988 \begin_layout Standard
26989 To return to the default placement insert the command
26992 \begin_layout Standard
27000 \begin_layout Standard
27005 \begin_layout Plain Layout
27015 \begin_inset Note Greyedout
27018 \begin_layout Plain Layout
27023 The command is ignored when it is within a paragraph where also the command
27038 \begin_layout Standard
27039 \begin_inset VSpace bigskip
27046 \begin_inset Marginal
27049 \begin_layout Plain Layout
27050 AVeryLongMarginParWord that isn't hyphenated.
27058 Similar to the case described in section
27059 \begin_inset space ~
27063 \begin_inset CommandInset ref
27065 reference "sub:Multiple-Lines-in"
27069 , long words cannot be hyphenated when they are the first word in a margin
27071 To avoid this, insert 0
27072 \begin_inset space \thinspace{}
27075 pt horizontal space before the word
27080 \begin_inset Marginal
27083 \begin_layout Plain Layout
27084 \begin_inset space \hspace*{}
27088 AVeryLongMarginParWord that is hyphenated.
27096 \begin_layout Standard
27097 \begin_inset VSpace bigskip
27103 \begin_layout Standard
27104 \begin_inset Note Greyedout
27107 \begin_layout Plain Layout
27112 Margin notes can normally not be used inside tables, floats, and footnotes.
27120 \begin_layout Standard
27121 \begin_inset VSpace bigskip
27127 \begin_layout Standard
27131 \begin_layout Plain Layout
27141 \begin_inset Note Note
27144 \begin_layout Plain Layout
27145 The following section will only be displayed when the LaTeX-package
27157 \begin_layout Standard
27158 This restriction can be evaded by using the LaTeX-package
27163 \begin_inset Index idx
27166 \begin_layout Plain Layout
27167 LaTeX-packages ! marginnote
27173 By adding these two lines to your document preamble, the command used by
27174 LyX for margin notes is redefined to use the command provided by the
27181 \begin_layout Standard
27186 usepackage{marginnote}
27187 \begin_inset Newline newline
27199 \begin_layout Standard
27200 This is also used in this document because
27204 has another useful feature: You can set a vertical offset for the note.
27205 This is often needed when too many margin notes are too close together
27206 or for a better page layout.
27207 The offset is set in LyX as TeX-Code directly after the margin note in
27211 \begin_layout Standard
27217 \begin_layout Standard
27218 where the offset is a length with one of the units listed in Table
27219 \begin_inset space ~
27223 \begin_inset CommandInset ref
27225 reference "tab:Units"
27230 A negative value shifts the note up, a positive value shifts it down.
27234 For example the margin note beside this text line is shifted up 1.5
27235 \begin_inset space \thinspace{}
27238 cm with the TeX-Code-command
27239 \begin_inset Quotes eld
27249 \begin_inset Quotes erd
27253 \begin_inset Marginal
27256 \begin_layout Plain Layout
27257 This margin note is shifted up 1.5
27258 \begin_inset space \thinspace{}
27261 cm from its original position.
27273 \begin_layout Plain Layout
27283 \begin_layout Standard
27284 \begin_inset VSpace medskip
27291 you can also change the alignment of the text in the margin note.
27292 For example the commands
27295 \begin_layout Standard
27302 raggedleftmarginnote}{
27305 \begin_inset Newline newline
27312 raggedrightmarginnote}{
27317 \begin_layout Standard
27318 set the alignment to centered.
27323 raggedleftmarginnote
27325 denotes margin notes that appear at the left side.
27332 \begin_layout Plain Layout
27338 raggedleftmarginnote}{
27343 \begin_layout Plain Layout
27349 raggedrightmarginnote}{
27357 \begin_inset Marginal
27360 \begin_layout Plain Layout
27361 The text of this margin note is centered.
27372 \begin_layout Standard
27379 raggedleftmarginnote}{
27382 \begin_inset Newline newline
27389 raggedrightmarginnote}{
27398 \begin_layout Plain Layout
27404 raggedleftmarginnote}{
27409 \begin_layout Plain Layout
27415 raggedrightmarginnote}{
27425 \begin_layout Standard
27426 \begin_inset VSpace medskip
27429 For the other features of
27433 refer to its documentation
27434 \begin_inset CommandInset citation
27443 \begin_layout Standard
27444 \begin_inset VSpace bigskip
27447 You can adjust the layout of margin notes by changing its definition.
27448 To create for example a header for all margin notes with the underlined,
27449 sans-serif, and bold header text
27450 \begin_inset Quotes eld
27462 \begin_inset Quotes erd
27465 , add this to your document preamble:
27468 \begin_layout Standard
27478 \begin_inset Newline newline
27488 \begin_inset Newline newline
27492 \begin_inset Phantom HPhantom
27495 \begin_layout Plain Layout
27498 \begin_inset space ~
27514 underbar{Attention!}}}%
27515 \begin_inset Newline newline
27519 \begin_inset Phantom HPhantom
27522 \begin_layout Plain Layout
27525 \begin_inset space ~
27542 \begin_layout Standard
27549 \begin_layout Plain Layout
27560 \begin_layout Plain Layout
27571 \begin_layout Plain Layout
27579 underbar{Attention!}}}%
27582 \begin_layout Plain Layout
27596 \begin_inset Marginal
27599 \begin_layout Plain Layout
27600 This is a margin note with a defined heading.
27612 \begin_layout Plain Layout
27626 \begin_layout Plain Layout
27643 \begin_inset Note Note
27646 \begin_layout Plain Layout
27647 The margin note format is changed only for this example.
27655 \begin_layout Standard
27659 \begin_layout Plain Layout
27669 \begin_inset Note Note
27672 \begin_layout Plain Layout
27673 The following will be displayed when the LaTeX-package
27685 \begin_layout Standard
27686 You need to install the LaTeX-package
27690 to see the following part of this section in the output.
27693 \begin_layout Standard
27697 \begin_layout Plain Layout
27709 \begin_layout Chapter
27713 \begin_layout Section
27715 \begin_inset Index idx
27718 \begin_layout Plain Layout
27719 Boxes ! Introduction
27727 \begin_layout Standard
27728 Boxes are used to format a block of text.
27729 Boxes can be used to write documents with multiple languages, see section
27730 \begin_inset space ~
27734 \begin_inset CommandInset ref
27736 reference "sec:Minipages"
27740 , to frame texts, see section
27741 \begin_inset space ~
27745 \begin_inset CommandInset ref
27747 reference "sec:Decoration"
27751 , to prevent words from being hyphenated, see section
27752 \begin_inset space ~
27756 \begin_inset CommandInset ref
27758 reference "sec:Prevent-Hyphenation"
27762 , to align text, see section
27763 \begin_inset space ~
27767 \begin_inset CommandInset ref
27769 reference "sub:Vertical-Alignment"
27773 , or to set the background color of texts, see section
27774 \begin_inset space ~
27778 \begin_inset CommandInset ref
27780 reference "sec:Colored-Boxes"
27787 \begin_layout Standard
27788 Boxes can be inserted with the menu
27790 Insert\SpecialChar \menuseparator
27793 or the toolbar button
27798 arg "box-insert Frameless"
27804 A grey box with the label
27809 \begin_inset Graphics
27810 filename clipart/BoxInsetDefaultQt4.png
27812 scaleBeforeRotation
27817 The box type can be specified by right-clicking on the box and selecting
27823 The box dialog offers the
27826 \begin_inset space ~
27848 is the default for new boxes and is explained in section
27849 \begin_inset space ~
27853 \begin_inset CommandInset ref
27855 reference "sec:Minipages"
27863 is described in section
27864 \begin_inset space ~
27868 \begin_inset CommandInset ref
27870 reference "sec:Parboxes"
27879 \begin_inset CommandInset ref
27881 reference "sec:Prevent-Hyphenation"
27888 \begin_layout Standard
27889 Boxes are not numbered and can therefore not be referenced like floats or
27893 \begin_layout Standard
27894 \begin_inset Note Greyedout
27897 \begin_layout Plain Layout
27902 Boxes must not be the item in an
27918 \begin_layout Standard
27919 \begin_inset Note Greyedout
27922 \begin_layout Plain Layout
27927 For an unknown reason you can only set the
27930 \begin_inset space ~
27939 when you use a framed box.
27943 \begin_inset space ~
27948 type and without frames are explained in section
27949 \begin_inset space ~
27953 \begin_inset CommandInset ref
27955 reference "sec:Prevent-Hyphenation"
27967 \begin_layout Section
27969 \begin_inset CommandInset label
27971 name "sec:Box-Dialog"
27976 \begin_inset Index idx
27979 \begin_layout Plain Layout
27988 \begin_layout Subsection
27990 \begin_inset Index idx
27993 \begin_layout Plain Layout
28002 \begin_layout Standard
28003 In the box dialog you can adjust the box geometry in the fields
28012 The available units for the geometry are explained in Table
28013 \begin_inset space ~
28017 \begin_inset CommandInset ref
28019 reference "tab:Units"
28028 offers the following additional sizes:
28031 \begin_layout Description
28032 Depth This is the plain text
28033 \begin_inset Quotes eld
28037 \begin_inset Quotes erd
28041 It ignores the total depth when there are multiple text lines in the box:
28042 \begin_inset Newline newline
28046 \begin_inset Newline newline
28050 \begin_inset Newline newline
28054 \begin_inset Box Boxed
28064 height_special "depth"
28067 \begin_layout Plain Layout
28069 Box height set to 1
28070 \begin_inset space \thinspace{}
28079 \begin_inset Newline newline
28083 \begin_inset Newline newline
28089 \begin_layout Description
28090 Height This is the height of the text that is inside the box.
28092 \begin_inset space \thinspace{}
28096 \begin_inset space \space{}
28099 2 for this size will set the box height to 2
28100 \begin_inset space ~
28103 times the text height:
28104 \begin_inset Box Boxed
28114 height_special "height"
28117 \begin_layout Plain Layout
28119 Box height set to 2
28120 \begin_inset space \thinspace{}
28131 \begin_layout Description
28133 \begin_inset space ~
28136 Height This is the Height
28137 \begin_inset space \thinspace{}
28141 \begin_inset space \thinspace{}
28145 \begin_inset Box Boxed
28155 height_special "totalheight"
28158 \begin_layout Plain Layout
28160 Box height set to 1
28161 \begin_inset space \thinspace{}
28165 \begin_inset space ~
28176 \begin_layout Description
28177 Width This sets the width of the box as height:
28178 \begin_inset Box Boxed
28188 height_special "width"
28191 \begin_layout Plain Layout
28193 Box height set to 1
28194 \begin_inset space \thinspace{}
28205 \begin_layout Subsection
28207 \begin_inset Index idx
28210 \begin_layout Plain Layout
28219 \begin_layout Standard
28220 When you have chosen an
28223 \begin_inset space ~
28228 , the vertical box alignment can be:
28231 \begin_layout Description
28232 Top This is an example text line.
28234 \begin_inset Box Boxed
28244 height_special "totalheight"
28247 \begin_layout Plain Layout
28249 This box is top-aligned.
28254 This is an example text line.
28257 \begin_layout Description
28258 Middle This is an example text line.
28260 \begin_inset Box Boxed
28270 height_special "totalheight"
28273 \begin_layout Plain Layout
28275 This box is middle-aligned.
28280 This is an example text line.
28283 \begin_layout Description
28284 Bottom This is an example text line.
28286 \begin_inset Box Boxed
28296 height_special "totalheight"
28299 \begin_layout Plain Layout
28301 This box is bottom-aligned.
28306 This is an example text line.
28309 \begin_layout Standard
28310 \begin_inset Note Greyedout
28313 \begin_layout Plain Layout
28318 The vertical box alignment can be lost in the output when you have two
28319 boxes in a line and one has e.
28320 \begin_inset space \thinspace{}
28324 \begin_inset space \space{}
28327 a shadow and the other one not.
28335 \begin_layout Standard
28336 The horizontal box alignment can be set via LyX's paragraph dialog when
28337 you set the box into its own paragraph.
28340 \begin_layout Standard
28341 \begin_inset VSpace bigskip
28344 When you have chosen an
28347 \begin_inset space ~
28352 , the box content can be aligned vertically to:
28355 \begin_layout Description
28356 top This is an example text line.
28358 \begin_inset Box Boxed
28368 height_special "totalheight"
28371 \begin_layout Plain Layout
28373 This box text is top-aligned.
28378 This is an example text line.
28381 \begin_layout Description
28382 middle This is an example text line.
28384 \begin_inset Box Boxed
28394 height_special "totalheight"
28397 \begin_layout Plain Layout
28399 This box text is middle-aligned.
28404 This is an example text line.
28407 \begin_layout Description
28408 bottom This is an example text line.
28410 \begin_inset Box Boxed
28420 height_special "totalheight"
28423 \begin_layout Plain Layout
28425 This box text is bottom-aligned.
28430 This is an example text line.
28433 \begin_layout Description
28434 stretch This is an example text line.
28436 \begin_inset Box Boxed
28446 height_special "totalheight"
28449 \begin_layout Plain Layout
28454 \begin_layout Plain Layout
28459 \begin_layout Plain Layout
28466 This is an example text line.
28469 \begin_layout Standard
28470 To stretch the box content, it must consist of more than one paragraph.
28471 In the example above every text line is in an own paragraph.
28474 \begin_layout Standard
28475 \begin_inset VSpace bigskip
28478 To align the box content horizontally you can use LyX's paragraph dialog
28479 when you have chosen an
28482 \begin_inset space ~
28490 \begin_layout Standard
28492 \begin_inset Box Boxed
28502 height_special "totalheight"
28505 \begin_layout Plain Layout
28510 \begin_layout Plain Layout
28515 \begin_layout Plain Layout
28525 \begin_layout Standard
28526 If you have not set an
28529 \begin_inset space ~
28534 , you can align the box content horizontally in the box dialog.
28537 \begin_layout Standard
28539 \begin_inset Box Boxed
28549 height_special "totalheight"
28552 \begin_layout Plain Layout
28553 This box text is horizontally stretched.
28561 \begin_layout Subsection
28563 \begin_inset CommandInset label
28565 name "sec:Decoration"
28570 \begin_inset Index idx
28573 \begin_layout Plain Layout
28582 \begin_layout Standard
28583 The type of the box can be specified in the box dialog in the drop-down
28589 The following types are possible:
28592 \begin_layout Description
28594 \begin_inset space ~
28597 frame Nothing is drawn.
28600 \begin_layout Description
28602 \begin_inset space ~
28606 \begin_inset space ~
28609 frame This draws a rectangular frame around the box.
28610 The frame line thickness has the size of
28618 \begin_inset Box Boxed
28628 height_special "totalheight"
28631 \begin_layout Plain Layout
28641 \begin_layout Description
28643 \begin_inset space ~
28647 \begin_inset space ~
28650 thin This draws an oval frame around the box.
28651 The frame line thickness has the size 0.4
28652 \begin_inset space \thinspace{}
28657 \begin_inset Box ovalbox
28667 height_special "totalheight"
28670 \begin_layout Plain Layout
28680 \begin_layout Description
28682 \begin_inset space ~
28686 \begin_inset space ~
28689 thick This draws an oval frame around the box.
28690 The frame line thickness has the size 0.8
28691 \begin_inset space \thinspace{}
28696 \begin_inset Box Ovalbox
28706 height_special "totalheight"
28709 \begin_layout Plain Layout
28719 \begin_layout Description
28721 \begin_inset space ~
28724 shadow This draws a rectangular frame with a shadow around the box.
28725 The frame line thickness has the size of
28731 , the shadow has a width of 4
28732 \begin_inset space \thinspace{}
28737 \begin_inset Box Shadowbox
28747 height_special "totalheight"
28750 \begin_layout Plain Layout
28760 \begin_layout Description
28762 \begin_inset space ~
28765 background This draws a box with a red background.
28766 Unlike colored boxes
28770 \begin_layout Plain Layout
28772 \begin_inset space \thinspace{}
28776 \begin_inset CommandInset ref
28778 reference "sec:Colored-Boxes"
28787 , it always uses the whole column width and the box is set as its own paragraph.
28789 \begin_inset Box Shaded
28799 height_special "totalheight"
28802 \begin_layout Plain Layout
28803 Shaded background box
28811 \begin_layout Description
28813 \begin_inset space ~
28817 \begin_inset space ~
28820 frame This draws a double-line rectangular frame around the box.
28821 The line thickness of the inner frame is 0.75
28822 \begin_inset space \thinspace{}
28831 , the thickness of the outer frame is 1.5
28832 \begin_inset space \thinspace{}
28842 The distance between the lines is 1.5
28843 \begin_inset space \thinspace{}
28853 \begin_inset space \thinspace{}
28857 \begin_inset space \thinspace{}
28861 \begin_inset space \thinspace{}
28866 \begin_inset Box Doublebox
28876 height_special "totalheight"
28879 \begin_layout Plain Layout
28881 Double rectangular box
28889 \begin_layout Standard
28890 \begin_inset VSpace bigskip
28893 LyX's box label will reflect the different frame types.
28894 To be able to use all types, the LaTeX-package
28899 \begin_inset Index idx
28902 \begin_layout Plain Layout
28903 LaTeX-packages ! fancybox
28911 \begin_layout Standard
28912 \begin_inset VSpace bigskip
28915 When you use the decoration
28917 simple rectangular frame
28919 and no inner box, you can allow page breaks within a box.
28920 Note that then, unlike other framed boxes, the frame always uses the whole
28921 column width, the box is set as its own paragraph, and
28933 have no effect on this box type.
28934 The frame line thickness has the size of
28942 \begin_inset Box Framed
28952 height_special "totalheight"
28955 \begin_layout Plain Layout
28956 Allow page break box
28964 \begin_layout Section
28966 \begin_inset Index idx
28969 \begin_layout Plain Layout
28970 Boxes ! Customization
28978 \begin_layout Standard
28979 The default value for the size
28986 \begin_inset space \thinspace{}
28990 It can be changed with the following command in TeX-code to e.
28991 \begin_inset space \thinspace{}
28995 \begin_inset space \space{}
28999 \begin_inset space \thinspace{}
29005 \begin_layout Standard
29015 \begin_layout Standard
29019 \begin_layout Plain Layout
29031 \begin_inset Box Boxed
29041 height_special "totalheight"
29044 \begin_layout Plain Layout
29046 Rectangular box with
29053 \begin_inset space \thinspace{}
29057 \begin_inset space \thinspace{}
29061 \begin_inset space \thinspace{}
29073 \begin_layout Plain Layout
29087 \begin_layout Standard
29088 \begin_inset VSpace bigskip
29091 The space between the frame and the box content is for all frame styles
29093 \begin_inset space \thinspace{}
29097 You can change it by setting the length
29104 For example the command
29107 \begin_layout Standard
29117 \begin_layout Standard
29118 sets the value to 10
29119 \begin_inset space \thinspace{}
29122 pt, as with the following box:
29125 \begin_layout Standard
29129 \begin_layout Plain Layout
29141 \begin_inset Box Boxed
29151 height_special "totalheight"
29154 \begin_layout Plain Layout
29156 Rectangular box with
29163 \begin_inset space \thinspace{}
29167 \begin_inset space \thinspace{}
29171 \begin_inset space \thinspace{}
29183 \begin_layout Plain Layout
29197 \begin_layout Standard
29198 \begin_inset VSpace bigskip
29201 The diameter of the round corners of the oval boxes can be set with the
29212 \begin_layout Standard
29220 \begin_layout Standard
29221 sets the diameter to 1
29222 \begin_inset space \thinspace{}
29229 \begin_layout Standard
29237 \begin_layout Standard
29238 sets the diameter to
29241 \begin_inset space \thinspace{}
29245 \begin_inset space \thinspace{}
29248 minimum(width and height of box)
29260 \begin_layout Standard
29264 \begin_layout Plain Layout
29274 \begin_inset Box Ovalbox
29284 height_special "totalheight"
29287 \begin_layout Plain Layout
29296 \begin_inset space \thinspace{}
29300 \begin_inset space \thinspace{}
29304 \begin_inset space \thinspace{}
29316 \begin_layout Plain Layout
29328 \begin_layout Standard
29329 \begin_inset VSpace bigskip
29332 The size of the shadow can be adjusted by changing the length
29340 \begin_inset space \thinspace{}
29343 pt for the following box by this command:
29346 \begin_layout Standard
29356 \begin_layout Standard
29360 \begin_layout Plain Layout
29372 \begin_inset Box Shadowbox
29382 height_special "totalheight"
29385 \begin_layout Plain Layout
29394 \begin_inset space \thinspace{}
29398 \begin_inset space \thinspace{}
29402 \begin_inset space \thinspace{}
29414 \begin_layout Plain Layout
29428 \begin_layout Standard
29429 \begin_inset VSpace bigskip
29435 \begin_layout Standard
29436 The default value for the size
29443 \begin_inset space \thinspace{}
29447 The default space between the note content and the frame is 9
29448 \begin_inset space \thinspace{}
29451 pt and can be changed with the value of
29458 For example the frame appearance of the following
29462 is set with the TeX-Code commands
29465 \begin_layout Standard
29473 \begin_inset Newline newline
29483 \begin_layout Standard
29487 \begin_layout Plain Layout
29496 \begin_layout Plain Layout
29508 \begin_inset Box Framed
29518 height_special "totalheight"
29521 \begin_layout Plain Layout
29535 \begin_layout Plain Layout
29544 \begin_layout Plain Layout
29558 \begin_layout Standard
29559 \begin_inset VSpace bigskip
29565 \begin_layout Standard
29570 boxes the default space between the box content and the box border is 3
29571 \begin_inset space \thinspace{}
29574 pt and can be changed with the value of
29581 The default background color red can either be changed locally with the
29586 definecolor{shadecolor}
29588 or globally with the menu
29590 Tools\SpecialChar \menuseparator
29591 Preferences\SpecialChar \menuseparator
29592 Colors\SpecialChar \menuseparator
29594 \begin_inset space ~
29606 command is explained in section
29607 \begin_inset space ~
29611 \begin_inset CommandInset ref
29613 reference "sec:Colored-Tables"
29621 \begin_layout Plain Layout
29628 requires the LaTeX-package
29632 in the preamble, see section
29633 \begin_inset space ~
29637 \begin_inset CommandInset ref
29639 reference "sec:Colored-Boxes"
29648 For example the appearance of the following shaded background box is set
29649 with the TeX-Code commands
29652 \begin_layout Standard
29662 \begin_inset Newline newline
29669 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29672 \begin_layout Standard
29676 \begin_layout Plain Layout
29685 \begin_layout Plain Layout
29689 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29695 \begin_inset Box Shaded
29705 height_special "totalheight"
29708 \begin_layout Plain Layout
29711 This is yellow text in a
29721 box with dark green background.
29730 \begin_layout Plain Layout
29739 \begin_layout Plain Layout
29743 definecolor{shadecolor}{rgb}{1,0,0}
29751 \begin_layout Standard
29752 \begin_inset VSpace bigskip
29755 Changed lengths and widths are valid for all boxes following the commands
29759 \begin_layout Section
29761 \begin_inset CommandInset label
29763 name "sec:Minipages"
29768 \begin_inset Index idx
29771 \begin_layout Plain Layout
29780 \begin_layout Standard
29781 Minipages are treated by LaTeX as pages within pages and can therefore for
29782 example have their own footnotes.
29785 \begin_layout Standard
29786 Minipages are useful when you write documents with different languages.
29789 \begin_layout Standard
29790 Below are two example minipages side by side.
29791 Their width is set to 45
29792 \begin_inset space \thinspace{}
29795 col% and they are separated by a horizontal fill, that was inserted via
29798 Insert\SpecialChar \menuseparator
29800 \begin_inset space ~
29803 Formatting\SpecialChar \menuseparator
29805 \begin_inset space ~
29811 \begin_inset Newpage newpage
29817 \begin_layout Standard
29818 \begin_inset Box Frameless
29828 height_special "totalheight"
29831 \begin_layout Plain Layout
29834 Dies ist ein deutscher Text.
29835 Dies ist ein deutscher Text.
29836 Dies ist ein deutscher Text.
29837 Dies ist ein deutscher Text.
29838 Dies ist ein deutscher Text.
29839 Dies ist ein deutscher Text.
29840 Dies ist ein deutscher Text.
29841 Dies ist ein deutscher Text.
29842 Dies ist ein deutscher Text.
29843 Dies ist ein deutscher Text.
29844 Dies ist ein deutscher Text.
29845 Dies ist ein deutscher Text.
29846 Dies ist ein deutscher Text
29850 \begin_layout Plain Layout
29853 Dies ist eine deutsche Fußnote.
29859 Dies ist ein deutscher Text.
29860 Dies ist ein deutscher Text.
29866 \begin_inset space \hfill{}
29870 \begin_inset Box Frameless
29880 height_special "totalheight"
29883 \begin_layout Plain Layout
29884 This is an English Text.
29885 This is an English Text.
29886 This is an English Text.
29887 This is an English Text.
29888 This is an English Text.
29889 This is an English Text.
29890 This is an English Text.
29891 This is an English Text.
29892 This is an English Text.
29893 This is an English Text.
29894 This is an English Text.
29895 This is an English Text.
29896 This is an English Text.
29897 This is an English Text.
29898 This is an English Text.
29899 This is an English Text.
29903 \begin_layout Plain Layout
29904 This is an English footnote.
29909 This is an English Text.
29918 \begin_layout Standard
29919 \begin_inset VSpace bigskip
29922 The document-wide paragraph settings are ignored within minipages.
29923 That means that there will be no space between paragraphs in minipages
29924 although you set it to e.
29925 \begin_inset space \thinspace{}
29929 \begin_inset space \space{}
29936 in the document settings.
29939 \begin_layout Standard
29940 Minipages can also be used to set a background color for text parts, see
29942 \begin_inset space ~
29946 \begin_inset CommandInset ref
29948 reference "sub:Color-for-Paragraphs"
29955 \begin_layout Standard
29956 \begin_inset Note Greyedout
29959 \begin_layout Plain Layout
29964 You cannot have floats or margin notes inside minipages but minipages can
29965 be used inside tables, floats, and other boxes.
29973 \begin_layout Section
29975 \begin_inset CommandInset label
29977 name "sec:Parboxes"
29982 \begin_inset Index idx
29985 \begin_layout Plain Layout
29994 \begin_layout Standard
29995 Parboxes are very similar to minipages with the difference that they cannot
29999 \begin_layout Standard
30001 \begin_inset Box Frameless
30011 height_special "totalheight"
30014 \begin_layout Plain Layout
30015 This a text within a parbox.
30016 This a text within a parbox.
30019 \begin_layout Plain Layout
30020 This footnote won't appear:
30024 \begin_layout Plain Layout
30025 This footnote is inside a parbox and will therefore not appear.
30038 \begin_layout Section
30039 Boxes for Words and Characters
30040 \begin_inset Index idx
30043 \begin_layout Plain Layout
30044 Boxes ! for Characters
30052 \begin_layout Subsection
30053 Prevent Hyphenation
30054 \begin_inset CommandInset label
30056 name "sec:Prevent-Hyphenation"
30061 \begin_inset Index idx
30064 \begin_layout Plain Layout
30065 Boxes ! to Prevent Hyphenation
30073 \begin_layout Standard
30074 You can use the box type
30078 to prevent words or text from being hyphenated.
30079 \begin_inset Newline newline
30082 Here is an example text:
30085 \begin_layout Standard
30086 This line is an example to show how you can prevent the hyphenation of
30087 \begin_inset Quotes eld
30091 \begin_inset Quotes erd
30097 \begin_layout Standard
30098 To prevent the hyphenation of the word
30099 \begin_inset Quotes eld
30103 \begin_inset Quotes erd
30106 , put the word into a box, set the
30109 \begin_inset space ~
30119 \begin_inset space \thinspace{}
30125 \begin_layout Standard
30126 This is the result:
30129 \begin_layout Standard
30130 This line is an example to show how you can prevent the hyphenation of
30131 \begin_inset Box Frameless
30141 height_special "totalheight"
30144 \begin_layout Plain Layout
30145 \begin_inset Quotes eld
30149 \begin_inset Quotes erd
30160 \begin_layout Standard
30161 You can alternatively set the command
30162 \begin_inset Quotes eld
30172 \begin_inset Quotes grd
30175 as TeX-Code directly before the word:
30178 \begin_layout Standard
30179 This line is an example to show how you can prevent the hyphenation of
30180 \begin_inset Quotes eld
30187 \begin_layout Plain Layout
30197 \begin_inset Quotes erd
30203 \begin_layout Standard
30204 Of course the word now protrudes over the side margin.
30205 To avoid this, add via the menu
30207 Insert\SpecialChar \menuseparator
30208 Formatting\SpecialChar \menuseparator
30210 \begin_inset space ~
30214 \begin_inset space ~
30222 arg "newline-insert newline"
30225 ) a line break before the word:
30228 \begin_layout Standard
30229 This line is an example to show how you can prevent the hyphenation of
30230 \begin_inset Newline newline
30234 \begin_inset Box Frameless
30244 height_special "totalheight"
30247 \begin_layout Plain Layout
30248 \begin_inset Quotes eld
30252 \begin_inset Quotes erd
30263 \begin_layout Subsection
30265 \begin_inset CommandInset label
30267 name "sub:Vertical-Alignment"
30272 \begin_inset Index idx
30275 \begin_layout Plain Layout
30276 Boxes ! for Vertical Alignment
30282 \begin_inset Index idx
30285 \begin_layout Plain Layout
30294 \begin_layout Standard
30295 With the help of the command
30301 you can align words, characters or other boxes vertically relative to the
30309 is used with the following scheme:
30312 \begin_layout Standard
30317 raisebox{lift}[height][depth]{box content}
30320 \begin_layout Standard
30321 The lift can be a positive value to raise the box or a negative value to
30325 \begin_layout Standard
30326 To align for example the word
30327 \begin_inset Quotes eld
30331 \begin_inset Quotes erd
30334 so that the bottom of the
30335 \begin_inset Quotes eld
30339 \begin_inset Quotes erd
30343 \begin_inset Quotes eld
30347 \begin_inset Quotes erd
30350 is at the baseline, insert the command
30353 \begin_layout Standard
30363 \begin_layout Standard
30364 in TeX-Code before the word.
30365 After the word insert a closing brace
30366 \begin_inset Quotes eld
30374 \begin_inset Quotes erd
30378 \begin_inset Newline newline
30381 This is the result:
30384 \begin_layout Standard
30385 This is a text line with the word
30389 \begin_layout Plain Layout
30401 \begin_inset Quotes eld
30405 \begin_inset Quotes erd
30412 \begin_layout Plain Layout
30422 \begin_layout Standard
30423 \begin_inset VSpace bigskip
30426 When you raise or lower characters in a line, the line distance will be
30430 \begin_layout Standard
30431 This is a text line with the word
30435 \begin_layout Plain Layout
30447 \begin_inset Quotes eld
30451 \begin_inset Quotes erd
30458 \begin_layout Plain Layout
30466 \begin_inset Newline newline
30469 This is a text line with the word
30473 \begin_layout Plain Layout
30483 \begin_inset Quotes eld
30487 \begin_inset Quotes erd
30494 \begin_layout Plain Layout
30504 \begin_layout Standard
30505 If you want to prevent this for a certain reason, set the box height to
30510 \begin_layout Standard
30520 \begin_layout Standard
30521 This is a text line with the word
30525 \begin_layout Plain Layout
30537 \begin_inset Quotes eld
30541 \begin_inset Quotes erd
30548 \begin_layout Plain Layout
30556 \begin_inset Newline newline
30559 This is a text line with the word
30563 \begin_layout Plain Layout
30567 raisebox{0.5cm}[0pt]{
30573 \begin_inset Quotes eld
30577 \begin_inset Quotes erd
30584 \begin_layout Plain Layout
30594 \begin_layout Section
30596 \begin_inset CommandInset label
30598 name "sec:Colored-Boxes"
30603 \begin_inset Index idx
30606 \begin_layout Plain Layout
30615 \begin_layout Subsection
30617 \begin_inset Index idx
30620 \begin_layout Plain Layout
30629 \begin_layout Standard
30630 To color the background of text the text must be put into a so called
30631 \begin_inset Quotes eld
30635 \begin_inset Quotes erd
30639 This requires that the LaTeX-package
30644 \begin_inset Index idx
30647 \begin_layout Plain Layout
30648 LaTeX-packages ! color
30653 is loaded in the document preamble with the command
30656 \begin_layout Standard
30661 @ifundefined{textcolor}
30662 \begin_inset Newline newline
30666 \begin_inset Phantom HPhantom
30669 \begin_layout Plain Layout
30672 \begin_inset space ~
30682 usepackage{color}}{}
30685 \begin_layout Standard
30690 will be loaded automatically by LyX when you color text.
30694 \begin_layout Plain Layout
30695 To avoid it being loaded twice the command
30709 \begin_layout Standard
30710 \begin_inset VSpace medskip
30713 Colorboxes are created with the command
30720 This will be used with the following scheme:
30723 \begin_layout Standard
30728 colorbox{color}{box content}
30731 \begin_layout Standard
30732 The box content can also be a box and colorboxes can also be within other
30736 \begin_layout Standard
30737 The following colors are predefined:
30738 \begin_inset Newline newline
30777 \begin_inset Newline newline
30780 You can also define your own color as described in section
30781 \begin_inset space ~
30785 \begin_inset CommandInset ref
30787 reference "sec:Colored-Tables"
30794 \begin_layout Standard
30796 \begin_inset space \thinspace{}
30800 \begin_inset space \space{}
30803 a red background for a word, insert the command
30806 \begin_layout Standard
30814 \begin_layout Standard
30815 before the word in TeX-Code.
30816 After the word insert a closing brace
30817 \begin_inset Quotes eld
30825 \begin_inset Quotes erd
30829 \begin_inset Newline newline
30832 This is the result:
30835 \begin_layout Standard
30836 This is a line where the word
30840 \begin_layout Plain Layout
30850 \begin_inset Quotes eld
30854 \begin_inset Quotes erd
30861 \begin_layout Plain Layout
30868 has a red background.
30871 \begin_layout Standard
30872 \begin_inset VSpace bigskip
30875 If you would like the box frame in a different color, you can use the command
30882 with the following scheme:
30885 \begin_layout Standard
30890 fcolorbox{frame color}{box color}{box content}
30893 \begin_layout Standard
30907 The frame thickness and the space between the frame and the box content
30908 can be adjusted with the lengths
30920 , respectively, as described in section
30921 \begin_inset space ~
30925 \begin_inset CommandInset ref
30927 reference "sec:Decoration"
30934 \begin_layout Standard
30935 For the following example the command
30938 \begin_layout Standard
30943 fcolorbox{cyan}{magenta}{
30946 \begin_layout Standard
30950 \begin_layout Standard
30951 Here is an example where the frame line thickness was set to 1
30952 \begin_inset space \thinspace{}
30956 \begin_inset Newline newline
30963 \begin_layout Plain Layout
30978 \begin_layout Plain Layout
30982 fcolorbox{cyan}{magenta}{
30987 This is text within a colored, framed box.
30991 \begin_layout Plain Layout
31001 \begin_layout Standard
31002 \begin_inset VSpace bigskip
31005 Of course you can also have colored text inside a colorbox:
31006 \begin_inset Newline newline
31013 \begin_layout Plain Layout
31017 fcolorbox{cyan}{magenta}{
31024 This is colored text within a colored, framed box.
31030 \begin_layout Plain Layout
31041 \begin_layout Plain Layout
31055 \begin_layout Standard
31056 \begin_inset VSpace medskip
31062 \begin_layout Standard
31063 \begin_inset Note Greyedout
31066 \begin_layout Plain Layout
31071 Text in colorboxes cannot have line breaks.
31072 To color multiple text lines or paragraphs, use a box inside a colorbox
31073 as described in the following.
31081 \begin_layout Subsection
31082 Color for Paragraphs
31083 \begin_inset CommandInset label
31085 name "sub:Color-for-Paragraphs"
31090 \begin_inset Index idx
31093 \begin_layout Plain Layout
31094 Color ! for Paragraphs
31102 \begin_layout Standard
31103 To set the background color for more than one text line, put the text into
31105 Before the minipage insert the
31114 \begin_layout Standard
31122 \begin_layout Standard
31124 After the minipage insert a closing brace
31125 \begin_inset Quotes eld
31133 \begin_inset Quotes erd
31139 \begin_layout Standard
31143 \begin_layout Plain Layout
31147 colorbox{lightgrey}{
31153 \begin_inset Box Frameless
31163 height_special "totalheight"
31166 \begin_layout Plain Layout
31167 This is text with background color.
31168 This is text with background color.
31171 \begin_layout Plain Layout
31172 \begin_inset VSpace defskip
31175 The text can have footnotes
31179 \begin_layout Plain Layout
31180 Another example footnote
31185 and can include tables and figures.
31188 \begin_layout Plain Layout
31190 \begin_inset Tabular
31191 <lyxtabular version="3" rows="3" columns="3">
31192 <features tabularvalignment="middle">
31193 <column alignment="center" valignment="top" width="0">
31194 <column alignment="center" valignment="top" width="0">
31195 <column alignment="center" valignment="top" width="0">
31197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31200 \begin_layout Plain Layout
31206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31209 \begin_layout Plain Layout
31215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31218 \begin_layout Plain Layout
31226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31229 \begin_layout Plain Layout
31235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31238 \begin_layout Plain Layout
31240 \begin_inset Quotes erd
31248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31251 \begin_layout Plain Layout
31259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31262 \begin_layout Plain Layout
31268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31271 \begin_layout Plain Layout
31277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31280 \begin_layout Plain Layout
31300 \begin_layout Plain Layout
31310 \begin_layout Section
31311 Rotated and Scaled Boxes
31314 \begin_layout Standard
31315 To use the commands described in this section, the LaTeX-package
31320 \begin_inset Index idx
31323 \begin_layout Plain Layout
31324 LaTeX-packages ! graphicx
31329 needs to be loaded in the document preamble with the command
31332 \begin_layout Standard
31337 @ifundefined{rotatebox}
31338 \begin_inset Newline newline
31342 \begin_inset Phantom HPhantom
31345 \begin_layout Plain Layout
31348 \begin_inset space ~
31358 usepackage{graphicx}}{}
31361 \begin_layout Standard
31362 \begin_inset Note Greyedout
31365 \begin_layout Plain Layout
31370 Some DVI-viewers can't display rotated or scaled material.
31378 \begin_layout Standard
31379 \begin_inset Note Greyedout
31382 \begin_layout Plain Layout
31387 Floats mustn't be inside a rotated or scaled box.
31395 \begin_layout Subsection
31397 \begin_inset Index idx
31400 \begin_layout Plain Layout
31407 \begin_inset Index idx
31410 \begin_layout Plain Layout
31417 \begin_inset Index idx
31420 \begin_layout Plain Layout
31427 \begin_inset Index idx
31430 \begin_layout Plain Layout
31431 Table Customization ! Rotating
31439 \begin_layout Standard
31440 To rotate material, you can put it into a rotated box.
31441 Such a box is created using the command
31447 in TeX-Code with the following scheme:
31450 \begin_layout Standard
31455 rotatebox[rotation origin]{rotation angle}{box content}
31458 \begin_layout Standard
31459 The rotation origin is specified in the form
31464 The following positions are possible:
31484 (top), along with meaningful combinations of the four base positions.
31489 means that the rotation origin is at the top left corner of the box.
31490 When no rotation origin is specified, the position
31495 The rotation angle is a number that can be negative that specifies the
31497 The rotation direction is counterclockwise.
31500 \begin_layout Standard
31501 In the following example the command
31505 rotatebox[origin=c]{60}{
31507 was inserted as TeX-Code before the text
31508 \begin_inset Quotes eld
31512 \begin_inset Quotes erd
31515 ; after the text the box was closed by a closing brace
31522 \begin_layout Standard
31527 \begin_layout Plain Layout
31531 rotatebox[origin=c]{60}{
31540 \begin_layout Plain Layout
31550 \begin_layout Standard
31551 The box content can also be another box or an inline formula:
31554 \begin_layout Standard
31559 \begin_layout Plain Layout
31563 rotatebox[origin=r]{-60}{
31569 \begin_inset Box Doublebox
31579 height_special "totalheight"
31582 \begin_layout Plain Layout
31592 \begin_layout Plain Layout
31603 \begin_layout Plain Layout
31607 rotatebox[origin=lb]{60}{
31613 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31620 \begin_layout Plain Layout
31630 \begin_layout Standard
31631 or an image or table:
31634 \begin_layout Standard
31639 \begin_layout Plain Layout
31643 rotatebox[origin=lb]{90}{
31649 \begin_inset Graphics
31650 filename clipart/platypus.eps
31660 \begin_layout Plain Layout
31667 with a rotated image
31671 \begin_layout Plain Layout
31675 rotatebox[origin=l]{-90}{
31681 \begin_inset Tabular
31682 <lyxtabular version="3" rows="2" columns="2">
31683 <features tabularvalignment="middle">
31684 <column alignment="center" valignment="top" width="0">
31685 <column alignment="center" valignment="top" width="0">
31687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31690 \begin_layout Plain Layout
31696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31699 \begin_layout Plain Layout
31707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31710 \begin_layout Plain Layout
31716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31719 \begin_layout Plain Layout
31734 \begin_layout Plain Layout
31744 \begin_layout Subsection
31746 \begin_inset Index idx
31749 \begin_layout Plain Layout
31756 \begin_inset Index idx
31759 \begin_layout Plain Layout
31766 \begin_inset Index idx
31769 \begin_layout Plain Layout
31776 \begin_inset Index idx
31779 \begin_layout Plain Layout
31780 Table Customization ! Scaling
31788 \begin_layout Standard
31789 To scale material the commands
31801 can be used as TeX-Code.
31804 \begin_layout Standard
31811 is used with the following scheme:
31814 \begin_layout Standard
31819 scalebox{horizontal}[vertical]{box content}
31822 \begin_layout Standard
31823 Horizontal and vertical are the corresponding scaling factors.
31824 If no vertical scaling factor is given, the horizontal factor will also
31825 be used as the vertical one.
31828 \begin_layout Standard
31835 creates for example a double size
31839 \begin_layout Plain Layout
31852 \begin_layout Plain Layout
31859 , compared with the document text size.
31862 \begin_layout Standard
31867 scalebox{2}[1]{Hello}
31869 on the other hand distorts the
31873 \begin_layout Plain Layout
31886 \begin_layout Plain Layout
31896 \begin_layout Standard
31897 If the scaling factor is negative, the box content will be mirrored.
31898 Therefore the command
31902 scalebox{-1}[1]{Hello}
31904 can be used to create mirror writing:
31908 \begin_layout Plain Layout
31921 \begin_layout Plain Layout
31931 \begin_layout Standard
31936 scalebox{1}[-1]{Hello}
31942 \begin_layout Plain Layout
31955 \begin_layout Plain Layout
31965 \begin_layout Standard
31970 scalebox{-1}[1]{box content}
31972 there exists the command
31973 \begin_inset Newline newline
31980 reflectbox{box content}
31985 \begin_layout Standard
31986 \begin_inset VSpace bigskip
31995 is used to scale the box to a defined width and height.
31996 The command scheme is:
31999 \begin_layout Standard
32004 resizebox{width}{height}{box content}
32007 \begin_layout Standard
32008 If one of the two command arguments given is an exclamation mark
32012 , the size is set so that the aspect ratio of the box content is kept.
32015 \begin_layout Standard
32020 resizebox{2cm}{1cm}{Hello}
32026 \begin_layout Plain Layout
32030 resizebox{2cm}{1cm}{
32039 \begin_layout Plain Layout
32047 \begin_inset Newline newline
32054 resizebox{2cm}{!}{Hello}
32060 \begin_layout Plain Layout
32073 \begin_layout Plain Layout
32083 \begin_layout Standard
32084 \begin_inset VSpace bigskip
32088 \begin_inset Note Greyedout
32091 \begin_layout Plain Layout
32108 are set to zero, no LaTeX-errors occur when exporting the document but
32109 the exported files can not or only partly be displayed.
32117 \begin_layout Standard
32118 \begin_inset VSpace bigskip
32124 \begin_layout Standard
32125 The boxes can be combined in any order.
32127 \begin_inset space \thinspace{}
32131 \begin_inset space \space{}
32135 \begin_inset Newline newline
32142 rotatebox[origin=c]{-45}{
32146 reflectbox{Hello}}}
32147 \begin_inset Newline newline
32155 \begin_layout Standard
32160 \begin_layout Plain Layout
32164 rotatebox[origin=c]{-45}{
32177 \begin_layout Plain Layout
32187 \begin_layout Standard
32189 Images, tables, and inline formulas are allowed as box content:
32192 \begin_layout Standard
32197 \begin_layout Plain Layout
32201 rotatebox[origin=c]{-30}{
32211 \begin_inset Graphics
32212 filename clipart/platypus.eps
32222 \begin_layout Plain Layout
32233 \begin_layout Plain Layout
32237 rotatebox[origin=c]{-45}{
32247 \begin_inset Tabular
32248 <lyxtabular version="3" rows="2" columns="2">
32249 <features tabularvalignment="middle">
32250 <column alignment="center" valignment="top" width="0">
32251 <column alignment="center" valignment="top" width="0">
32253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32256 \begin_layout Plain Layout
32262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32265 \begin_layout Plain Layout
32273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32276 \begin_layout Plain Layout
32282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32285 \begin_layout Plain Layout
32300 \begin_layout Plain Layout
32311 \begin_layout Plain Layout
32315 rotatebox[origin=c]{-45}{
32325 \begin_inset Formula $\int A\,\mathrm{d}x=B$
32332 \begin_layout Plain Layout
32342 \begin_layout Standard
32343 When the global formula style
32347 is used in the document
32351 \begin_layout Plain Layout
32353 \begin_inset Quotes eld
32357 \begin_inset Quotes erd
32360 is added to the document class options.
32365 , display style formulas can also be scaled.
32368 \begin_layout Chapter
32369 Objects Surrounded by Text
32370 \begin_inset Index idx
32373 \begin_layout Plain Layout
32382 \begin_layout Section
32384 \begin_inset CommandInset label
32386 name "sec:Wrap-Floats"
32391 \begin_inset Index idx
32394 \begin_layout Plain Layout
32395 Floats ! Wrap Floats
32401 \begin_inset Index idx
32404 \begin_layout Plain Layout
32405 Surrounded by text ! Wrap Floats
32413 \begin_layout Standard
32414 \begin_inset Wrap figure
32421 \begin_layout Plain Layout
32422 \begin_inset Graphics
32423 filename clipart/mobius.eps
32425 scaleBeforeRotation
32426 rotateOrigin center
32433 \begin_layout Plain Layout
32434 \begin_inset Caption
32436 \begin_layout Plain Layout
32437 \begin_inset CommandInset label
32439 name "fig:This-is-a"
32443 This is a figure wrap float.
32453 This float type is used if you want to wrap text around a figure or table
32454 so that it only occupies some fraction of the column width.
32455 It can be inserted using the menu
32457 Insert\SpecialChar \menuseparator
32458 Floats\SpecialChar \menuseparator
32460 \begin_inset space ~
32464 \begin_inset space ~
32472 \begin_inset space ~
32476 \begin_inset space ~
32481 if the LaTeX-package
32486 \begin_inset Index idx
32489 \begin_layout Plain Layout
32490 LaTeX-packages ! wrapfig
32494 \begin_layout Plain Layout
32512 \begin_layout Plain Layout
32513 Installing a LaTeX-package is explained it in the
32516 \begin_inset space ~
32526 The settings of the float can be modified by right-clicking on the float
32528 The mandatory settings are the float
32541 that specifies how much the float is set into the paragraph
32542 \begin_inset space \thinspace{}
32546 \begin_inset space \thinspace{}
32549 page margin, and the
32552 \begin_inset space ~
32557 that specifies how many text lines the float will approximately need.
32558 The line span is often hard to approximate; so it is better only to use
32559 it when you encounter float placement problems.
32560 You can furthermore decide if LaTeX is allowed to let the float float within
32561 the paragraph or to surrounding paragraphs.
32563 \begin_inset space ~
32567 \begin_inset CommandInset ref
32569 reference "fig:This-is-a"
32573 is an example text wrap float with a width of 40
32574 \begin_inset space \thinspace{}
32578 \begin_inset space \thinspace{}
32581 cm overhang, set to the left.
32584 \begin_layout Standard
32585 \begin_inset Note Greyedout
32588 \begin_layout Plain Layout
32594 \begin_inset space ~
32597 wrap float floats are fragile! E.
32598 \begin_inset space \thinspace{}
32602 \begin_inset space \space{}
32605 having a figure too close to the bottom of the page can mess things up in
32606 such a way that the float does not appear in the output or that it is placed
32607 over some other text.
32615 \begin_layout Standard
32616 In general, the following applies for wrap floats:
32619 \begin_layout Itemize
32620 They should not be placed in paragraphs that run over a page break.
32621 That means that wrap floats are better inserted in their exact place when
32622 the document is almost finished and you are able to estimate where page
32623 breaks will appear.
32626 \begin_layout Itemize
32627 They should either be placed in their own paragraph before the paragraph
32628 where they should wrap into or within a paragraph.
32631 \begin_layout Itemize
32632 In consecutive paragraphs they may cause troubles, so ensure that there
32633 is a text paragraph between them as separator.
32636 \begin_layout Itemize
32637 They are not allowed in section headings or tables.
32640 \begin_layout Itemize
32641 Their numbering and referencing works as described in chap.
32642 \begin_inset space \thinspace{}
32646 \begin_inset CommandInset ref
32648 reference "chap:Floats"
32655 \begin_layout Section
32656 Surrounded Fixed Objects
32657 \begin_inset Index idx
32660 \begin_layout Plain Layout
32661 Surrounded by text ! Fixed objects
32669 \begin_layout Standard
32670 The wrap floats described in sec.
32671 \begin_inset space \thinspace{}
32675 \begin_inset CommandInset ref
32677 reference "sec:Wrap-Floats"
32681 have these positions in the paragraph:
32684 \begin_layout Standard
32687 \begin_inset Tabular
32688 <lyxtabular version="3" rows="2" columns="2">
32689 <features tabularvalignment="middle">
32690 <column alignment="center" valignment="top" width="0">
32691 <column alignment="center" valignment="top" width="0">
32693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32696 \begin_layout Plain Layout
32697 \begin_inset Graphics
32698 filename ../images/dialog-show-new-inset_graphics.png
32700 scaleBeforeRotation
32709 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32712 \begin_layout Plain Layout
32720 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32723 \begin_layout Plain Layout
32729 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32732 \begin_layout Plain Layout
32744 \begin_inset Tabular
32745 <lyxtabular version="3" rows="2" columns="2">
32746 <features tabularvalignment="middle">
32747 <column alignment="center" valignment="top" width="0">
32748 <column alignment="center" valignment="top" width="0">
32750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32753 \begin_layout Plain Layout
32759 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32762 \begin_layout Plain Layout
32763 \begin_inset Graphics
32764 filename ../images/dialog-show-new-inset_graphics.png
32766 scaleBeforeRotation
32777 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32780 \begin_layout Plain Layout
32786 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32789 \begin_layout Plain Layout
32803 \begin_layout Standard
32804 To get an object exactly at the position where it is inserted, for example
32805 to get one of these positions:
32806 \begin_inset VSpace defskip
32812 \begin_layout Standard
32815 \begin_inset Tabular
32816 <lyxtabular version="3" rows="2" columns="2">
32817 <features tabularvalignment="middle">
32818 <column alignment="center" valignment="top" width="0">
32819 <column alignment="center" valignment="top" width="0">
32821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32824 \begin_layout Plain Layout
32830 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32833 \begin_layout Plain Layout
32841 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32844 \begin_layout Plain Layout
32845 \begin_inset Graphics
32846 filename ../images/dialog-show-new-inset_graphics.png
32848 scaleBeforeRotation
32857 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32860 \begin_layout Plain Layout
32872 \begin_inset Tabular
32873 <lyxtabular version="3" rows="2" columns="2">
32874 <features tabularvalignment="middle">
32875 <column alignment="center" valignment="top" width="0">
32876 <column alignment="center" valignment="top" width="0">
32878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32881 \begin_layout Plain Layout
32887 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32890 \begin_layout Plain Layout
32898 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32901 \begin_layout Plain Layout
32907 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32910 \begin_layout Plain Layout
32911 \begin_inset Graphics
32912 filename ../images/dialog-show-new-inset_graphics.png
32914 scaleBeforeRotation
32929 \begin_inset Tabular
32930 <lyxtabular version="3" rows="2" columns="3">
32931 <features tabularvalignment="middle">
32932 <column alignment="center" valignment="top" width="0">
32933 <column alignment="center" valignment="top" width="0">
32934 <column alignment="center" valignment="top" width="0">
32936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32939 \begin_layout Plain Layout
32945 <cell alignment="center" valignment="top" topline="true" usebox="none">
32948 \begin_layout Plain Layout
32949 \begin_inset Graphics
32950 filename ../images/dialog-show-new-inset_graphics.png
32952 scaleBeforeRotation
32961 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32964 \begin_layout Plain Layout
32972 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32975 \begin_layout Plain Layout
32981 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32984 \begin_layout Plain Layout
32990 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32993 \begin_layout Plain Layout
33005 \begin_inset Tabular
33006 <lyxtabular version="3" rows="2" columns="3">
33007 <features tabularvalignment="middle">
33008 <column alignment="center" valignment="top" width="0">
33009 <column alignment="center" valignment="top" width="0">
33010 <column alignment="center" valignment="top" width="0">
33012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33015 \begin_layout Plain Layout
33021 <cell alignment="center" valignment="top" topline="true" usebox="none">
33024 \begin_layout Plain Layout
33030 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33033 \begin_layout Plain Layout
33041 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33044 \begin_layout Plain Layout
33050 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33053 \begin_layout Plain Layout
33054 \begin_inset Graphics
33055 filename ../images/dialog-show-new-inset_graphics.png
33057 scaleBeforeRotation
33066 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33069 \begin_layout Plain Layout
33083 \begin_layout Standard
33086 \begin_inset Tabular
33087 <lyxtabular version="3" rows="3" columns="2">
33088 <features tabularvalignment="middle">
33089 <column alignment="center" valignment="top" width="0">
33090 <column alignment="center" valignment="top" width="0">
33092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33095 \begin_layout Plain Layout
33101 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33104 \begin_layout Plain Layout
33112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33115 \begin_layout Plain Layout
33116 \begin_inset Graphics
33117 filename ../images/dialog-show-new-inset_graphics.png
33119 scaleBeforeRotation
33128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33131 \begin_layout Plain Layout
33139 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33142 \begin_layout Plain Layout
33148 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33151 \begin_layout Plain Layout
33163 \begin_inset Tabular
33164 <lyxtabular version="3" rows="3" columns="3">
33165 <features tabularvalignment="middle">
33166 <column alignment="center" valignment="top" width="0">
33167 <column alignment="center" valignment="top" width="0">
33168 <column alignment="center" valignment="top" width="0">
33170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33173 \begin_layout Plain Layout
33179 <cell alignment="center" valignment="top" topline="true" usebox="none">
33182 \begin_layout Plain Layout
33188 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33191 \begin_layout Plain Layout
33199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33202 \begin_layout Plain Layout
33208 <cell alignment="center" valignment="top" usebox="none">
33211 \begin_layout Plain Layout
33212 \begin_inset Graphics
33213 filename ../images/dialog-show-new-inset_graphics.png
33215 scaleBeforeRotation
33224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33227 \begin_layout Plain Layout
33235 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33238 \begin_layout Plain Layout
33244 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33247 \begin_layout Plain Layout
33253 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33256 \begin_layout Plain Layout
33268 \begin_inset Tabular
33269 <lyxtabular version="3" rows="3" columns="2">
33270 <features tabularvalignment="middle">
33271 <column alignment="center" valignment="top" width="0">
33272 <column alignment="center" valignment="top" width="0">
33274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33277 \begin_layout Plain Layout
33283 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33286 \begin_layout Plain Layout
33294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33297 \begin_layout Plain Layout
33303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33306 \begin_layout Plain Layout
33307 \begin_inset Graphics
33308 filename ../images/dialog-show-new-inset_graphics.png
33310 scaleBeforeRotation
33321 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33324 \begin_layout Plain Layout
33330 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33333 \begin_layout Plain Layout
33347 \begin_layout Standard
33349 you can use the LaTeX-package
33354 \begin_inset Index idx
33357 \begin_layout Plain Layout
33358 LaTeX-packages ! picinpar
33364 Here is an example:
33367 \begin_layout Standard
33371 \begin_layout Plain Layout
33381 \begin_inset Note Note
33384 \begin_layout Plain Layout
33385 The following section will only be displayed when the LaTeX-package
33397 \begin_layout Standard
33401 \begin_layout Plain Layout
33405 begin{window}[2,c,{
33411 \begin_inset Graphics
33412 filename clipart/mobius.eps
33415 scaleBeforeRotation
33416 rotateOrigin center
33424 \begin_layout Plain Layout
33429 \begin_layout Plain Layout
33438 It was in the spring of the year 1894 that all London was interested, and
33439 the fashionable world dismayed, by the murder of the Honourable Ronald
33440 Adair under most unusual and inexplicable circumstances.
33441 The public has already learned those particulars of the crime which
33447 \begin_layout Plain Layout
33458 came out in the police investigation, but a good deal was suppressed upon
33459 that occasion, since the case for the prosecution was so overwhelmingly
33460 strong that it was not necessary to bring forward all the facts.
33461 Only now, at the end of nearly ten years, am I allowed to supply those
33462 missing links which make up the whole of that remarkable chain.
33468 \begin_layout Plain Layout
33480 \begin_layout Standard
33484 \begin_layout Plain Layout
33493 Footnote of the paragraph with the fixed object.
33497 \begin_layout Plain Layout
33507 \begin_layout Standard
33508 Surrounded fixed objects are used to let text float around them, at which
33509 the object's position in the paragraph can be determined by the number
33511 In contrary to floats is it not possible to have a numbered caption.
33514 \begin_layout Standard
33515 A fixed object is inserted by adding the command
33518 \begin_layout Standard
33523 begin{window}[2,c,{
33526 \begin_layout Standard
33527 as TeX Code at the beginning of the paragraph.
33528 The first parameter in the bracket, here '2', defines the number of lines
33529 above the object, the second, here 'c', the position of the object.
33530 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
33531 Behind the command you insert the object.
33532 In this example an image with a width of 40
33533 \begin_inset space \thinspace{}
33536 % of the text column width was inserted.
33537 The object can also be a table, a box or an equation.
33538 Behind the object the command
33541 \begin_layout Standard
33544 },description text]
33545 \begin_inset Newline newline
33551 \begin_layout Standard
33554 \begin_inset Quotes eld
33562 \begin_inset Quotes erd
33565 is in the second line.
33566 The description text is optional.
33567 The text surrounding the object must be in the same paragraph as the object,
33568 so it must begin directly after the
33573 At the end of the paragraph insert the command:
33576 \begin_layout Standard
33584 \begin_layout Standard
33585 Within a paragraph with a fixed object, you cannot insert footnotes in the
33587 You have to use instead the command
33593 inside the paragraph and outside the command
33599 as described in sec.
33600 \begin_inset space \thinspace{}
33604 \begin_inset CommandInset ref
33606 reference "sec:Footnotes"
33613 \begin_layout Standard
33617 \begin_layout Plain Layout
33627 \begin_inset Note Note
33630 \begin_layout Plain Layout
33631 The following will be displayed when the LaTeX-package
33643 \begin_layout Standard
33644 You need to install the LaTeX-package
33648 to see the following part of this section in the output.
33651 \begin_layout Standard
33655 \begin_layout Plain Layout
33667 \begin_layout Section
33669 \begin_inset Index idx
33672 \begin_layout Plain Layout
33679 \begin_inset Index idx
33682 \begin_layout Plain Layout
33683 Surrounded by text ! Initials
33691 \begin_layout Standard
33692 To use initials, you must have the LaTeX-package
33697 \begin_inset Index idx
33700 \begin_layout Plain Layout
33701 LaTeX-packages ! lettrine
33706 installed and use the module
33710 in your document (menu
33712 Document\SpecialChar \menuseparator
33713 Settings\SpecialChar \menuseparator
33717 To insert an initial, use the style
33722 This style has a mandatory and an optional argument.
33723 The mandatory argument is inserted via the menu
33725 Insert\SpecialChar \menuseparator
33727 \begin_inset space ~
33732 and contains the letter that is the initial.
33733 To use also the optional argument, insert another argument in front of
33734 the mandatory argument.
33735 This one contains parameters to modify the initial.
33736 For more information about the possible parameters see the documentation
33742 \begin_inset CommandInset citation
33749 The style itself contains the text that is surrounding the initial.
33750 The usual style is hereby that the word whose first letter is the initial,
33756 To tell LaTeX where this word is finished, add a closing brace '
33760 ' as TeX Code behind it.
33761 At the end of the style there must be an opening brace '
33768 \begin_layout Standard
33769 Here are some examples:
33772 \begin_layout Standard
33776 \begin_layout Plain Layout
33786 \begin_inset Note Note
33789 \begin_layout Plain Layout
33790 The following section will only be displayed when the LaTeX-package
33802 \begin_layout Enumerate
33803 No optional argument, the initial is the letter 'I' in the math font
33804 \begin_inset Formula $\mathfrak{Fraktur}$
33811 \begin_layout Initial
33812 \begin_inset Argument
33815 \begin_layout Plain Layout
33816 \begin_inset Formula $\mathfrak{I}$
33828 \begin_layout Plain Layout
33835 was in the spring of the year 1894 that all London was interested, and
33836 the fashionable world dismayed, by the murder of the Honourable Ronald
33837 Adair under most unusual and inexplicable circumstances.
33838 The public has already learned those particulars of the crime which came
33839 out in the police investigation, but a good deal was suppressed upon that
33840 occasion, since the case for the prosecution was so overwhelmingly strong
33841 that it was not necessary to bring forward all the facts.
33845 \begin_layout Plain Layout
33853 \begin_inset Newpage newpage
33860 \begin_layout Enumerate
33861 Only one line is surrounding the initial, which is formed by two letters
33862 in standard font and no text is printed in small caps:
33866 \begin_layout Initial
33867 \begin_inset Argument
33870 \begin_layout Plain Layout
33877 \begin_inset Argument
33880 \begin_layout Plain Layout
33890 \begin_layout Plain Layout
33897 was in the spring of the year 1894 that all London was interested, and
33898 the fashionable world dismayed, by the murder of the Honourable Ronald
33899 Adair under most unusual and inexplicable circumstances.
33900 The public has already learned those particulars of the crime which came
33901 out in the police investigation, but a good deal was suppressed upon that
33902 occasion, since the case for the prosecution was so overwhelmingly strong
33903 that it was not necessary to bring forward all the facts.
33907 \begin_layout Plain Layout
33918 \begin_layout Enumerate
33919 Magenta, hanging initial over 3
33920 \begin_inset space ~
33923 lines in the math font
33924 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33928 \begin_inset Quotes eld
33931 t was in the spring
33932 \begin_inset Quotes erd
33939 ; to color the initial, you must insert this command before the initial:
33940 \begin_inset Newline newline
33954 \begin_inset Newline newline
33962 \begin_inset Quotes eld
33966 \begin_inset Quotes erd
33970 \begin_inset Quotes eld
33974 \begin_inset Quotes erd
33978 \begin_inset Quotes eld
33982 \begin_inset Quotes erd
33986 \begin_inset Quotes eld
33990 \begin_inset Quotes erd
33994 \begin_inset Quotes eld
33998 \begin_inset Quotes erd
34002 \begin_inset Quotes eld
34006 \begin_inset Quotes erd
34010 \begin_inset Quotes eld
34014 \begin_inset Quotes erd
34018 \begin_inset Quotes eld
34022 \begin_inset Quotes erd
34025 , and add this command to the document preamble:
34026 \begin_inset Newline newline
34033 @ifundefined{textcolor}
34034 \begin_inset Newline newline
34038 \begin_inset space ~
34043 usepackage{color}}{}
34047 \begin_layout Standard
34051 \begin_layout Plain Layout
34065 \begin_inset Note Note
34068 \begin_layout Plain Layout
34069 makes the initial magenta
34077 \begin_layout Initial
34078 \begin_inset Argument
34081 \begin_layout Plain Layout
34082 lines=3, lhang=0.33, loversize=0.25
34088 \begin_inset Argument
34091 \begin_layout Plain Layout
34092 \begin_inset Formula $\mathcal{I}$
34100 t was in the spring
34104 \begin_layout Plain Layout
34111 of the year 1894 that all London was interested, and the fashionable world
34112 dismayed, by the murder of the Honourable Ronald Adair under most unusual
34113 and inexplicable circumstances.
34114 The public has already learned those particulars of the crime which came
34115 out in the police investigation, but a good deal was suppressed upon that
34116 occasion, since the case for the prosecution was so overwhelmingly strong
34117 that it was not necessary to bring forward all the facts.
34121 \begin_layout Plain Layout
34132 \begin_layout Standard
34136 \begin_layout Plain Layout
34146 \begin_inset Note Note
34149 \begin_layout Plain Layout
34150 The following will be displayed when the LaTeX-package
34162 \begin_layout Standard
34163 You need to install the LaTeX-package
34167 to see the following part of this section in the output.
34170 \begin_layout Standard
34174 \begin_layout Plain Layout
34186 \begin_layout Chapter
34187 External Document Parts
34188 \begin_inset Index idx
34191 \begin_layout Plain Layout
34192 External Document Parts
34200 \begin_layout Standard
34203 Insert\SpecialChar \menuseparator
34206 you can insert external material to your document.
34210 \begin_layout Description
34212 \begin_inset space ~
34215 Document Another LyX document; its content is directly inserted to your
34219 \begin_layout Description
34221 \begin_inset space ~
34224 Text A text document; each line is inserted in your document as a separate
34228 \begin_layout Description
34230 \begin_inset space ~
34234 \begin_inset space ~
34238 \begin_inset space ~
34241 Lines A text document; text lines are inserted in your document continuously
34242 but an empty text line creates a new paragraph.
34245 \begin_layout Description
34247 \begin_inset space ~
34250 Material Files in various formats.
34253 \begin_layout Description
34255 \begin_inset space ~
34258 Document LyX or LaTeX-documents.
34261 \begin_layout Section
34263 \begin_inset Index idx
34266 \begin_layout Plain Layout
34267 External Document Parts ! External Material
34275 \begin_layout Standard
34276 The external material feature allows you to insert files in to your document
34277 without converting them to a format that can be read by the document output
34279 LyX takes care of the necessary conversions.
34280 This is similar to images that can be inserted in various image formats
34282 When you have enabled Instant Preview in LyX's preferences under
34285 \begin_inset space ~
34289 \begin_inset space ~
34292 feel\SpecialChar \menuseparator
34295 , the external material types Dia and Xfig are directly shown in LyX.
34298 \begin_layout Standard
34299 External material can be inserted via the
34303 dialog that is accessible with the menu
34305 Insert\SpecialChar \menuseparator
34306 File\SpecialChar \menuseparator
34308 \begin_inset space ~
34314 Currently the following file types (
34321 \begin_layout Description
34322 ChessDiagram This template supports chess position diagrams made with the
34326 \begin_inset CommandInset href
34329 target "http://en.wikipedia.org/wiki/XBoard"
34338 \begin_layout Description
34339 Date This inserts the date in the form
34344 This is a date inserted as external material:
34345 \begin_inset External
34352 \begin_inset space ~
34356 \begin_inset Note Note
34359 \begin_layout Plain Layout
34360 Remove the protected space when bug 4398 is fixed!
34366 \begin_inset Newline newline
34369 The date is not shown within LyX, only in the output.
34370 There are two other methods of inserting a date: Via menu
34372 Insert\SpecialChar \menuseparator
34375 and with the LaTeX command
34382 The different methods are compared in Table
34383 \begin_inset space ~
34387 \begin_inset CommandInset ref
34389 reference "tab:Comparison-of-the"
34396 \begin_layout Description
34397 Dia This template supports diagrams created with the program
34400 \begin_inset CommandInset href
34403 target "http://en.wikipedia.org/wiki/Dia_(software)"
34412 \begin_layout Description
34413 GnumericSpreadsheet With this template you can insert spreadsheets
34414 \begin_inset space \thinspace{}
34418 \begin_inset space \thinspace{}
34421 tables in the format of
34424 \begin_inset CommandInset href
34427 target "http://en.wikipedia.org/wiki/Gnumeric"
34434 \begin_inset CommandInset href
34436 name "OpenDocument"
34437 target "http://en.wikipedia.org/wiki/OpenDocument"
34442 \begin_inset CommandInset href
34444 name "Microsoft Office XML"
34445 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
34450 \begin_inset CommandInset href
34452 name "Office Open XML"
34453 target "http://en.wikipedia.org/wiki/Office_Open_XML"
34458 For this feature LyX must have found the program
34462 during its configuration.
34463 This program is part of Gnumeric, so that you must have Gnumeric installed,
34464 also if you don't have tables in the Gnumeric format.
34465 For examples and possible limitations have a look at LyX's example file
34473 \begin_layout Description
34474 LilyPond This template is used for music notation typeset with the program
34475 \begin_inset Newline linebreak
34481 \begin_inset CommandInset href
34484 target "http://en.wikipedia.org/wiki/LilyPond"
34491 For LyX's extended support for LilyPond have a look at LyX's example file
34499 \begin_layout Description
34500 PDFPages With this template you can insert PDF documents to your document.
34501 To specify the range of pages that should be included, use the option
34511 LaTeX and LyX options
34514 The argument of this option is a comma separated list, containing page
34515 numbers (insert as option
34519 ), ranges of page numbers (
34523 ) or any combination.
34524 To insert empty pages use {}.
34526 \begin_inset space \thinspace{}
34530 \begin_inset space ~
34535 pages={3,{},8-11,15}
34537 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
34538 Page ranges are specified in the syntax
34547 This selects all pages from
34560 defaults to the first page; omitting
34564 defaults to the last page of the document.
34565 The last page can also be selected with the keyword
34570 (This is only permitted in a page range.) So
34574 will insert all pages of the document and
34578 will insert all pages in reverse order.
34579 If the pages option is not specified, only the first page of the PDF is
34581 \begin_inset Newline newline
34588 inserts the pages with their original size, if this option is not given,
34589 the pages will be resized to fith the width of the page of your document.
34594 you can specify the width and height of the input pages and their rotation.
34595 If another width than 100
34596 \begin_inset space \thinspace{}
34599 Scale% is used, the option
34603 will be overwritten.
34604 For more info and possible options, have a look into the documentation
34605 of the LaTeX-package
34610 \begin_inset CommandInset citation
34617 \begin_inset Index idx
34620 \begin_layout Plain Layout
34621 LaTeX-packages ! pdfpages
34627 \begin_inset Newline newline
34630 To use this template in a
34634 presentation you need to first insert an
34638 environment and in a subsequent paragraph a TeX Code box containing the
34643 setbeamertemplate{background canvas}{}
34646 Then you can insert as many paragraphs containing the PDFPages template
34648 Behind the included PDF pages you can resume the Beamer presentation by
34649 beginning a new frame or by starting a new section.
34650 To avoid stray blank pages prior to the PDF pages, make sure to use the
34655 alignment for the paragraph containing the template.
34656 \begin_inset Newline newline
34659 Here is an included PDF which is rotated by -5°:
34660 \begin_inset External
34662 filename clipart/Abstract.pdf
34663 extra LaTeX "noautoscale, pages=-"
34665 rotateOrigin bottomleft
34672 \begin_layout Description
34673 RasterImage This can be used for bitmap images.
34674 The image can be treated in the
34678 dialog like the images that are usually included via the
34682 dialog as described in section
34683 \begin_inset space ~
34687 \begin_inset CommandInset ref
34689 reference "sec:Graphics-Dialog"
34694 The difference to the normal image input is that only raster images are
34695 allowed; that means that PDF and EPS-images are not supported.
34696 Here is an inserted raster image:
34697 \begin_inset External
34698 template RasterImage
34699 filename clipart/ToolbarEnvBox.png
34706 \begin_layout Description
34707 XFig This template supports images created with the program
34710 \begin_inset CommandInset href
34713 target "http://en.wikipedia.org/wiki/Xfig"
34722 \begin_layout Standard
34723 \begin_inset Float table
34729 \begin_layout Plain Layout
34730 \begin_inset Caption
34732 \begin_layout Plain Layout
34733 \begin_inset CommandInset label
34735 name "tab:Comparison-of-the"
34739 Comparison of the date input methods.
34747 \begin_layout Plain Layout
34749 \begin_inset Tabular
34750 <lyxtabular version="3" rows="4" columns="4">
34751 <features tabularvalignment="middle">
34752 <column alignment="center" valignment="top" width="0">
34753 <column alignment="center" valignment="top" width="0">
34754 <column alignment="center" valignment="top" width="0">
34755 <column alignment="center" valignment="top" width="0">
34757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34760 \begin_layout Plain Layout
34766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34769 \begin_layout Plain Layout
34772 External Material\SpecialChar \menuseparator
34778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34781 \begin_layout Plain Layout
34784 Insert\SpecialChar \menuseparator
34790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34793 \begin_layout Plain Layout
34805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34808 \begin_layout Plain Layout
34814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34817 \begin_layout Plain Layout
34823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34826 \begin_layout Plain Layout
34832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34835 \begin_layout Plain Layout
34836 as TeX-Code inset box
34843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34846 \begin_layout Plain Layout
34852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34855 \begin_layout Plain Layout
34861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34864 \begin_layout Plain Layout
34870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34873 \begin_layout Plain Layout
34881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34884 \begin_layout Plain Layout
34890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34893 \begin_layout Plain Layout
34899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34902 \begin_layout Plain Layout
34908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34911 \begin_layout Plain Layout
34930 \begin_layout Standard
34931 When you use the option
34943 dialog, only the path to the inserted file is shown in the output.
34944 \begin_inset Newline newline
34947 External material is displayed in LyX either as a box like this:
34948 \begin_inset Graphics
34949 filename clipart/ExternalMaterialQt4.png
34951 scaleBeforeRotation
34955 or as image, depending on the option
34961 LaTeX and LyX options
34966 \begin_layout Standard
34973 manual explains how you can define your own templates.
34976 \begin_layout Section
34978 \begin_inset CommandInset label
34980 name "sec:Child-Documents"
34985 \begin_inset Index idx
34988 \begin_layout Plain Layout
34989 External Document Parts ! Child Documents
34995 \begin_inset Index idx
34998 \begin_layout Plain Layout
35007 \begin_layout Standard
35008 Child documents are used if you have a long document consisting of several
35009 larger parts or sections.
35010 For maintenance it is often useful and sometimes even required to split
35011 the document into several files that can be revised separately.
35012 The different documents are then the so called
35013 \begin_inset Quotes eld
35017 \begin_inset Quotes erd
35020 , and a master document connects them to print the full document or parts
35022 A child document inherits elements of its master, for example the LaTeX
35023 preamble, the bibliography, and labels for cross-references.
35026 \begin_layout Standard
35027 To be able to work on child documents without the need to open their master,
35028 specify in the child document the master in the menu
35030 Document\SpecialChar \menuseparator
35031 Settings\SpecialChar \menuseparator
35033 \begin_inset space ~
35039 This master document will then be used in the background by LyX when you
35040 edit the child document.
35043 \begin_layout Standard
35044 Included documents are displayed in LyX as a box like this:
35045 \begin_inset Graphics
35046 filename clipart/ChildDocumentQt4.png
35048 scaleBeforeRotation
35052 To include child documents in a master document use the menu
35054 Insert\SpecialChar \menuseparator
35055 File\SpecialChar \menuseparator
35057 \begin_inset space ~
35063 A dialog pops up where you can choose between four include methods:
35066 \begin_layout Description
35067 Include You can include LyX- and LaTeX-documents.
35076 dialog, the included documents will be opened in LyX in a new file tab
35077 so that you can modify them.
35078 \begin_inset Newline newline
35084 \begin_layout Standard
35085 Here is a child document inserted using
35090 \begin_inset CommandInset include
35091 LatexCommand include
35092 filename "DummyDocument1.lyx"
35099 \begin_layout Standard
35100 The section numbering includes the sections of the included files in the
35101 order they are inserted in the master document.
35102 The included example document has for example a subsection that is numbered
35103 as a subsection of this section.
35104 Labels of included documents can be referenced: Subsection
35105 \begin_inset space ~
35109 \begin_inset CommandInset ref
35111 reference "sub:External-Subsection-1"
35118 \begin_layout Standard
35119 The preamble of the child document is ignored; only the preamble of the
35120 master document is used.
35121 Branches in child documents will be ignored by the master document when
35122 the master document does not have a branch with the same name.
35123 Included documents are inserted starting on a new page and ending with
35127 \begin_layout Standard
35128 \begin_inset Note Greyedout
35131 \begin_layout Plain Layout
35136 If you have included a LyX- or LaTeX-file, you are warned when you export/view
35137 the document in case the child document uses another document class than
35138 the master document as this will lead to unexpected outputs.
35146 \begin_layout Description
35147 Input This method is very similar to the Include method.
35148 The differences are:
35152 \begin_layout Itemize
35153 Input files don't start with a new page and don't end with a page break.
35156 \begin_layout Itemize
35157 Input files can be previewed in LyX when
35160 \begin_inset space ~
35165 is enabled in LyX's preferences under
35168 \begin_inset space ~
35172 \begin_inset space ~
35175 feel\SpecialChar \menuseparator
35181 \begin_layout Itemize
35182 You cannot exclude Input files via the menu
35184 Document\SpecialChar \menuseparator
35185 Settings\SpecialChar \menuseparator
35192 \begin_layout Standard
35193 Here is a child document inserted using
35198 \begin_inset CommandInset include
35200 filename "DummyDocument2.lyx"
35207 \begin_layout Description
35208 Verbatim With this method any text file can be included.
35209 The file is shown in the output with its source code; no command used in
35210 the text is invoked.
35211 You can use the option
35213 Mark spaces in output
35215 that displays the character
35216 \begin_inset Quotes eld
35223 \begin_layout Plain Layout
35233 \begin_inset Quotes erd
35236 for every space character in the source code.
35237 The difference from the method via the menu
35239 Insert\SpecialChar \menuseparator
35240 File\SpecialChar \menuseparator
35242 \begin_inset space ~
35247 is that the document content is not shown in LyX.
35250 \begin_layout Standard
35251 Here is a child document inserted as Verbatim:
35252 \begin_inset CommandInset include
35253 LatexCommand verbatiminput
35254 filename "DummyTextDocument.txt"
35259 \begin_inset VSpace bigskip
35262 Here is a child document inserted as Verbatim using the
35264 Mark spaces in output
35267 \begin_inset CommandInset include
35268 LatexCommand verbatiminput*
35269 filename "DummyTextDocument.txt"
35276 \begin_layout Standard
35277 \begin_inset VSpace bigskip
35283 \begin_layout Standard
35284 \begin_inset Note Greyedout
35287 \begin_layout Plain Layout
35292 As you can see in the examples above, the text of the documents included
35297 is not broken at the end of the document lines.
35305 \begin_layout Description
35306 Listings This type is described in chapter
35307 \begin_inset space ~
35311 \begin_inset CommandInset ref
35313 reference "cha:Program-Code-Listings"
35320 \begin_layout Standard
35321 \begin_inset Note Greyedout
35324 \begin_layout Plain Layout
35329 Including the same document twice in a document using different methods
35330 could cause LaTeX-problems.
35338 \begin_layout Standard
35339 If you want to view/export only selected children of your master document,
35340 either because you want to save compiling time or because you want to distribut
35341 e single chapters of the book you are just writing, you can exclude children
35343 This is done via the menu
35345 Document\SpecialChar \menuseparator
35346 Settings\SpecialChar \menuseparator
35350 You can exclude\SpecialChar \slash{}
35351 include children by double-clicking on the
35355 column of the respective child document in the list (note that this only
35356 works for documents embedded via
35357 \begin_inset Quotes eld
35361 \begin_inset Quotes erd
35365 \begin_inset Quotes eld
35369 \begin_inset Quotes erd
35375 Maintain counters and references
35377 is enabled, LyX will assure that all page numbers, references etc.
35378 \begin_inset space ~
35381 are correct as if the whole document was processed.
35382 This is useful if you want the selected sub-documents to look exactly as
35383 in the context of the whole document.
35384 However, LyX needs to process the whole document in the background for
35386 So if you want to save compile time and if counters and references do not
35387 need to be correct, disable this checkbox.
35390 \begin_layout Standard
35391 Alternatively, you can put each included file into a branch.
35395 \begin_layout Plain Layout
35396 Branches are described in section
35409 By enabling\SpecialChar \slash{}
35410 disabling branches you can decide which included files will
35411 appear in the output.
35412 This has the advantage that it also works with Input'ed sub-documents.
35413 However, counters and references will not be maintained with this approach.
35416 \begin_layout Chapter
35417 Program Code Listings
35418 \begin_inset CommandInset label
35420 name "cha:Program-Code-Listings"
35425 \begin_inset Index idx
35428 \begin_layout Plain Layout
35435 \begin_inset Index idx
35438 \begin_layout Plain Layout
35445 \begin_inset Index idx
35448 \begin_layout Plain Layout
35457 \begin_layout Standard
35458 To include and typeset program code you can use the
35462 inset that can be inserted via the menu
35464 Insert\SpecialChar \menuseparator
35473 \begin_inset Index idx
35476 \begin_layout Plain Layout
35477 LaTeX-packages ! listings
35482 provides a powerful and flexible way to insert program source code into
35486 \begin_layout Standard
35487 Right-clicking on a listings inset opens the context menu containing where
35488 you can set the listings format.
35491 \begin_layout Standard
35492 By default, a listing starts a new paragraph in the output.
35493 The placement option
35496 \begin_inset space ~
35501 prints the listing inline like this:
35502 \begin_inset listings
35503 lstparams "language={C++}"
35507 \begin_layout Plain Layout
35515 \begin_inset Newline newline
35522 creates a listings float where you can specify the placement options
35523 \begin_inset Quotes eld
35531 \begin_inset Quotes erd
35535 \begin_inset Quotes eld
35543 \begin_inset Quotes erd
35547 \begin_inset Quotes eld
35555 \begin_inset Quotes erd
35559 \begin_inset Quotes eld
35567 \begin_inset Quotes erd
35570 corresponding to the float placement options described in section
35571 \begin_inset space ~
35575 \begin_inset CommandInset ref
35577 reference "sec:Float-Placement"
35582 The placement options can be mixed and are inserted without any separation,
35584 \begin_inset space \thinspace{}
35588 \begin_inset space \space{}
35592 \begin_inset Quotes eld
35600 \begin_inset Quotes erd
35605 \begin_inset Quotes eld
35609 \begin_inset Quotes erd
35612 has sometimes no effect, but you don't need to use the
35616 option in this case as also non-float listings can have captions and be
35620 \begin_layout Standard
35621 You can add captions to listings with the menu
35623 Insert\SpecialChar \menuseparator
35627 Listings can be referenced like floats: Listing
35628 \begin_inset space ~
35632 \begin_inset CommandInset ref
35634 reference "lst:Example-Listing"
35641 \begin_layout Standard
35642 \begin_inset listings
35643 lstparams "language=Python"
35647 \begin_layout Plain Layout
35649 \begin_inset Caption
35651 \begin_layout Plain Layout
35652 \begin_inset CommandInset label
35654 name "lst:Example-Listing"
35658 Example Listing float
35663 # Example listing float
35666 \begin_layout Plain Layout
35671 \begin_layout Plain Layout
35673 'this is a python function'
35676 \begin_layout Plain Layout
35686 \begin_layout Standard
35687 When you have set a programming language in the listings dialog, the keywords
35688 of this language will be recognized and specially typeset in the output.
35689 In the example listings the Python keyword
35690 \begin_inset Quotes eld
35694 \begin_inset Quotes erd
35697 is recognized and printed bold in the output.
35700 \begin_layout Standard
35701 \begin_inset Note Greyedout
35704 \begin_layout Plain Layout
35709 If you don't get bold keywords when using typewriter fonts, your
35713 font probably doesn't provide a bold shape.
35714 In this case select a different one in the menu
35716 Document\SpecialChar \menuseparator
35717 Settings\SpecialChar \menuseparator
35729 provide bold shapes.)
35737 \begin_layout Standard
35741 \begin_inset space ~
35746 of the listings dialog you can specify the line numbering style.
35747 You can insert a number to specify which lines are numbered in the field
35754 \begin_inset space \thinspace{}
35758 \begin_inset space \space{}
35762 \begin_inset Quotes eld
35766 \begin_inset Quotes erd
35769 , only every 3rd line will be numbered.
35772 \begin_layout Standard
35773 You can furthermore specify a range of lines; only these will then appear
35777 Extended character table
35779 should be used when you use national characters like the German umlauts
35781 \begin_inset Newline newline
35784 Here is an example listing with left line numbering, step
35785 \begin_inset Quotes eld
35789 \begin_inset Quotes erd
35793 \begin_inset Quotes eld
35797 \begin_inset Quotes erd
35801 \begin_inset Quotes eld
35804 Extended character table
35805 \begin_inset Quotes erd
35809 \begin_inset Quotes eld
35813 \begin_inset space ~
35817 \begin_inset space ~
35821 \begin_inset Quotes erd
35825 \begin_inset space \thinspace{}
35829 \begin_inset space \thinspace{}
35835 \begin_layout Standard
35836 \begin_inset listings
35837 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
35841 \begin_layout Plain Layout
35846 \begin_layout Plain Layout
35848 'this is a python function'
35851 \begin_layout Plain Layout
35856 \begin_layout Plain Layout
35861 \begin_layout Plain Layout
35863 'This is a German word: Tschüß'
35866 \begin_layout Plain Layout
35871 \begin_layout Plain Layout
35876 \begin_layout Plain Layout
35878 'this is a python function'
35881 \begin_layout Plain Layout
35891 \begin_layout Standard
35892 When you have tabulators in your listing, you can specify the number of
35893 characters that are spanned by a tabulator in the field
35896 \begin_inset space ~
35904 \begin_layout Standard
35905 \begin_inset Note Greyedout
35908 \begin_layout Plain Layout
35913 Due to a bug in the
35917 package the line numbering is shifted by a line by every previous listing.
35918 That's the reason why the lines 2 and 5 are numbered in the above listing
35919 and not the lines 3 and 6.
35927 \begin_layout Standard
35928 \begin_inset VSpace bigskip
35934 \begin_layout Standard
35935 It is also possible to print lines from a file as listing.
35936 To do this, use the menu
35938 Insert\SpecialChar \menuseparator
35939 File\SpecialChar \menuseparator
35942 and choose the type
35950 \begin_layout Plain Layout
35951 The other child document types are described in section
35952 \begin_inset space ~
35956 \begin_inset CommandInset ref
35958 reference "sec:Child-Documents"
35967 In the child document dialog you can specify the listing parameters in
35969 To show a list of all available parameters, type in a question mark
35970 \begin_inset Quotes eld
35974 \begin_inset Quotes erd
35980 \begin_layout Standard
35981 To reference child document listings, write a label text into the corresponding
35982 field of the child document dialog.
35983 The label can then be referenced using the menu
35985 Insert\SpecialChar \menuseparator
35991 \begin_layout Standard
35993 \begin_inset space ~
35997 \begin_inset CommandInset ref
35999 reference "lst:file-listing"
36003 is an example for a listing of a file; there the lines 10
36004 \begin_inset space \thinspace{}
36008 \begin_inset space \thinspace{}
36011 15 of this LyX file are listed.
36014 \begin_layout Standard
36015 \begin_inset CommandInset include
36016 LatexCommand lstinputlisting
36017 filename "EmbeddedObjects.lyx"
36018 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
36025 \begin_layout Standard
36026 \begin_inset VSpace bigskip
36032 \begin_layout Standard
36033 Inserting a formula into a listing can be done the following way:
36036 \begin_layout Enumerate
36037 Open the listings dialog and add
36038 \begin_inset Newline newline
36046 \begin_inset Newline newline
36049 to the field of the
36056 \begin_layout Enumerate
36057 Create a formula outside the listing
36060 \begin_layout Enumerate
36061 Copy the content of the formula (not the formula inset) to the clipboard
36071 \begin_layout Enumerate
36072 In the listing write
36073 \begin_inset Quotes eld
36081 \begin_inset Quotes erd
36084 and copy from the clipboard between the dollar-signs (shortcut
36093 \begin_layout Standard
36094 \begin_inset listings
36095 lstparams "language=Python,mathescape=true"
36099 \begin_layout Plain Layout
36101 \begin_inset Caption
36103 \begin_layout Plain Layout
36104 Example Listing float containing a formula
36109 # Example listing float
36112 \begin_layout Plain Layout
36117 \begin_layout Plain Layout
36130 \begin_layout Plain Layout
36140 \begin_layout Standard
36141 \begin_inset VSpace bigskip
36147 \begin_layout Standard
36148 Global listings settings can be set in the
36150 Document\SpecialChar \menuseparator
36151 Settings\SpecialChar \menuseparator
36155 To get there a list of available options, type in a question mark
36156 \begin_inset Quotes eld
36160 \begin_inset Quotes erd
36166 \begin_layout Standard
36167 For more information about the
36171 package, we refer to its documentation
36172 \begin_inset CommandInset citation
36181 \begin_layout Standard
36182 \begin_inset Newpage newpage
36188 \begin_layout Chapter
36190 Units available in LyX
36191 \begin_inset Index idx
36194 \begin_layout Plain Layout
36201 \begin_inset CommandInset label
36203 name "cha:Units-available-in"
36210 \begin_layout Standard
36211 To understand the units described in this documentation, Table
36212 \begin_inset space ~
36216 \begin_inset CommandInset ref
36218 reference "tab:Units"
36222 explains all units available in LyX.
36225 \begin_layout Standard
36226 \begin_inset Float table
36232 \begin_layout Plain Layout
36233 \begin_inset Caption
36235 \begin_layout Plain Layout
36236 \begin_inset CommandInset label
36250 \begin_layout Plain Layout
36251 \begin_inset VSpace medskip
36257 \begin_layout Plain Layout
36259 \begin_inset Tabular
36260 <lyxtabular version="3" rows="20" columns="2">
36261 <features tabularvalignment="middle">
36262 <column alignment="center" valignment="top" width="0">
36263 <column alignment="center" valignment="top" width="0">
36265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36268 \begin_layout Plain Layout
36274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36277 \begin_layout Plain Layout
36285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36288 \begin_layout Plain Layout
36294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36297 \begin_layout Plain Layout
36305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36308 \begin_layout Plain Layout
36314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36317 \begin_layout Plain Layout
36325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36328 \begin_layout Plain Layout
36334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36337 \begin_layout Plain Layout
36345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36348 \begin_layout Plain Layout
36354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36357 \begin_layout Plain Layout
36359 \begin_inset space \thinspace{}
36363 \begin_inset space \thinspace{}
36373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36376 \begin_layout Plain Layout
36382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36385 \begin_layout Plain Layout
36387 \begin_inset space \thinspace{}
36391 \begin_inset space \thinspace{}
36401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36404 \begin_layout Plain Layout
36410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36413 \begin_layout Plain Layout
36414 scaled point (65536
36415 \begin_inset space \thinspace{}
36419 \begin_inset space \thinspace{}
36429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36432 \begin_layout Plain Layout
36438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36441 \begin_layout Plain Layout
36443 \begin_inset space \thinspace{}
36447 \begin_inset space \thinspace{}
36457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36460 \begin_layout Plain Layout
36466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36469 \begin_layout Plain Layout
36471 \begin_inset space \thinspace{}
36475 \begin_inset Formula $\approx$
36479 \begin_inset space \thinspace{}
36489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36492 \begin_layout Plain Layout
36498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36501 \begin_layout Plain Layout
36503 \begin_inset space \thinspace{}
36507 \begin_inset space \thinspace{}
36517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36520 \begin_layout Plain Layout
36526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36529 \begin_layout Plain Layout
36530 % of original image width
36537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36540 \begin_layout Plain Layout
36546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36549 \begin_layout Plain Layout
36557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36560 \begin_layout Plain Layout
36566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36569 \begin_layout Plain Layout
36577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36580 \begin_layout Plain Layout
36586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36589 \begin_layout Plain Layout
36597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36600 \begin_layout Plain Layout
36606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36609 \begin_layout Plain Layout
36617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36620 \begin_layout Plain Layout
36626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36629 \begin_layout Plain Layout
36637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36640 \begin_layout Plain Layout
36646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36649 \begin_layout Plain Layout
36657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36660 \begin_layout Plain Layout
36666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36669 \begin_layout Plain Layout
36681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36684 \begin_layout Plain Layout
36690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36693 \begin_layout Plain Layout
36705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36708 \begin_layout Plain Layout
36714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36717 \begin_layout Plain Layout
36719 \begin_inset space \thinspace{}
36723 \begin_inset space \thinspace{}
36744 \begin_layout Chapter
36745 Output File Formats with Graphics
36746 \begin_inset CommandInset label
36748 name "cha:Output-File-Formats"
36755 \begin_layout Section
36757 \begin_inset Index idx
36760 \begin_layout Plain Layout
36767 \begin_inset Index idx
36770 \begin_layout Plain Layout
36775 \begin_layout Plain Layout
36786 \begin_layout Plain Layout
36801 \begin_layout Standard
36802 This file type has the extension
36803 \begin_inset Quotes eld
36811 \begin_inset Quotes erd
36816 \begin_inset Quotes eld
36820 \begin_inset Quotes erd
36823 (DVI), because it is completely portable; you can move them from one machine
36824 to another without needing to do any sort of conversion.
36825 At the time when this file-format was developed, this was no matter of
36827 DVIs are used for quick previews and as pre-stage for other output formats,
36831 \begin_layout Standard
36832 \begin_inset Note Greyedout
36835 \begin_layout Plain Layout
36840 DVI-files do not contain images; they will only be a linked.
36845 So don't forget this, if you move your
36849 file to another computer.
36850 This property can also slow down your computer when you view the DVI, because
36851 the DVI-viewer has to convert the image in the background to make it visible
36852 when you scroll in the DVI.
36853 So it is recommended that you use PDF for files with many images.
36856 \begin_layout Standard
36857 You can export your document to DVI by using the menu
36859 File\SpecialChar \menuseparator
36860 Export\SpecialChar \menuseparator
36864 You can view your document as DVI via the
36871 \begin_layout Section
36873 \begin_inset CommandInset label
36875 name "sec:PostScript"
36880 \begin_inset Index idx
36883 \begin_layout Plain Layout
36884 File Formats ! PostScript
36890 \begin_inset Index idx
36893 \begin_layout Plain Layout
36898 \begin_layout Plain Layout
36909 \begin_layout Plain Layout
36924 \begin_layout Standard
36925 This file type has the extension
36926 \begin_inset Quotes eld
36934 \begin_inset Quotes erd
36938 PostScript was developed by the company
36942 as a printer language.
36943 The file therefore contains commands that the printer uses to print the
36945 PostScript can be seen as a
36946 \begin_inset Quotes eld
36949 programming language
36950 \begin_inset Quotes erd
36953 ; you can calculate with it and draw diagrams and images
36957 \begin_layout Plain Layout
36958 If you are interested to learn more about this, have a look at the LaTeX-package
36964 \begin_inset CommandInset citation
36976 Due to this ability, the files are often bigger than PDFs.
36979 \begin_layout Standard
36980 PostScript can only contain images in the format
36981 \begin_inset Quotes eld
36984 Encapsulated PostScript
36985 \begin_inset Quotes erd
36988 (EPS, file extension
36989 \begin_inset Quotes eld
36997 \begin_inset Quotes erd
37001 As LyX allows you to use any known image format in your document, it has
37002 to convert images in the background to EPS.
37004 \begin_inset space ~
37008 \begin_inset space ~
37011 images in your document, LyX has to do 50
37012 \begin_inset space ~
37015 conversions whenever you view or export your document.
37016 This will slow down your work flow with LyX drastically.
37017 So if you plan to use PostScript, you can insert your images directly as
37018 EPS to avoid this problem.
37021 \begin_layout Standard
37022 You can export your document to PostScript using the menu
37024 File\SpecialChar \menuseparator
37025 Export\SpecialChar \menuseparator
37029 You can view your document as PostScript via the
37033 menu or by using the toolbar button
37034 \begin_inset Graphics
37035 filename ../images/buffer-view_ps.png
37037 scaleBeforeRotation
37044 \begin_layout Section
37046 \begin_inset Index idx
37049 \begin_layout Plain Layout
37056 \begin_inset Index idx
37059 \begin_layout Plain Layout
37068 \begin_layout Standard
37069 This file type has the extension
37070 \begin_inset Quotes eld
37078 \begin_inset Quotes erd
37083 \begin_inset Quotes eld
37086 Portable Document Format
37087 \begin_inset Quotes erd
37090 (PDF) was developed by
37094 as a derivative of PostScript.
37095 It is more compressed and it uses fewer commands than PostScript.
37097 \begin_inset Quotes eld
37101 \begin_inset Quotes erd
37104 implies, it can be processed at any computer system and the printed output
37105 looks exactly the same.
37108 \begin_layout Standard
37109 PDF can contain images in its own PDF format, in the format
37110 \begin_inset Quotes eld
37113 Joint Photographic Experts Group
37114 \begin_inset Quotes erd
37117 (JPG, file extension
37118 \begin_inset Quotes eld
37126 \begin_inset Quotes erd
37130 \begin_inset Quotes eld
37138 \begin_inset Quotes erd
37141 ), and in the format
37142 \begin_inset Quotes eld
37145 Portable Network Graphics
37146 \begin_inset Quotes erd
37149 (PNG, file extension
37150 \begin_inset Quotes eld
37158 \begin_inset Quotes erd
37162 Nevertheless you can use any other image format, because LyX converts them
37163 in the background to one of these formats.
37164 But as described in the section about PostScript, the image conversion
37165 will slow down your work flow.
37166 So it is recommended that you use images in one of the three mentioned
37170 \begin_layout Standard
37171 You can export your document to PDF via the menu
37173 File\SpecialChar \menuseparator
37176 in three different ways:
37179 \begin_layout Description
37181 \begin_inset space ~
37184 (ps2pdf) This uses the program
37188 that creates a PDF from a PostScript-version of your file.
37189 The PostScript-version is produced by the program
37193 which uses a DVI-version as intermediate step.
37194 So this export variant consists of three conversions.
37197 \begin_layout Description
37199 \begin_inset space ~
37202 (dvipdfm) This uses the program
37206 that converts your file in the background to DVI and in a second step to
37210 \begin_layout Description
37212 \begin_inset space ~
37215 (pdflatex) This uses the program
37219 that converts your file directly to PDF.
37222 \begin_layout Standard
37223 It is recommended that you use
37226 \begin_inset space ~
37235 supports all features of actual PDF-versions, is quick and works stable.
37240 is not under development and therefore a bit outdated.
37243 \begin_layout Standard
37244 You can view your document as PDF via the
37248 menu or by using the toolbar button
37249 \begin_inset Graphics
37250 filename ../images/buffer-view_pdf2.png
37252 scaleBeforeRotation
37263 \begin_inset space ~
37271 \begin_layout Chapter
37272 List of dvips color names
37273 \begin_inset CommandInset label
37275 name "chap:List-of-dvips-colornames"
37282 \begin_layout Standard
37283 \begin_inset Tabular
37284 <lyxtabular version="3" rows="17" columns="4">
37285 <features tabularvalignment="middle">
37286 <column alignment="left" valignment="top" width="0pt">
37287 <column alignment="left" valignment="top" width="0pt">
37288 <column alignment="left" valignment="top" width="0pt">
37289 <column alignment="left" valignment="top" width="0pt">
37291 <cell alignment="left" valignment="top" usebox="none">
37294 \begin_layout Plain Layout
37298 \begin_layout Plain Layout
37311 \begin_layout Plain Layout
37322 \begin_layout Plain Layout
37334 <cell alignment="left" valignment="top" usebox="none">
37337 \begin_layout Plain Layout
37341 \begin_layout Plain Layout
37354 \begin_layout Plain Layout
37365 \begin_layout Plain Layout
37377 <cell alignment="left" valignment="top" usebox="none">
37380 \begin_layout Plain Layout
37384 \begin_layout Plain Layout
37397 \begin_layout Plain Layout
37408 \begin_layout Plain Layout
37420 <cell alignment="left" valignment="top" usebox="none">
37423 \begin_layout Plain Layout
37427 \begin_layout Plain Layout
37440 \begin_layout Plain Layout
37451 \begin_layout Plain Layout
37465 <cell alignment="center" valignment="top" usebox="none">
37468 \begin_layout Plain Layout
37472 \begin_layout Plain Layout
37485 \begin_layout Plain Layout
37493 \begin_inset Phantom Phantom
37496 \begin_layout Plain Layout
37506 \begin_layout Plain Layout
37518 <cell alignment="center" valignment="top" usebox="none">
37521 \begin_layout Plain Layout
37525 \begin_layout Plain Layout
37538 \begin_layout Plain Layout
37546 \begin_inset Phantom Phantom
37549 \begin_layout Plain Layout
37559 \begin_layout Plain Layout
37571 <cell alignment="center" valignment="top" usebox="none">
37574 \begin_layout Plain Layout
37578 \begin_layout Plain Layout
37591 \begin_layout Plain Layout
37599 \begin_inset Phantom Phantom
37602 \begin_layout Plain Layout
37612 \begin_layout Plain Layout
37624 <cell alignment="center" valignment="top" usebox="none">
37627 \begin_layout Plain Layout
37631 \begin_layout Plain Layout
37644 \begin_layout Plain Layout
37652 \begin_inset Phantom Phantom
37655 \begin_layout Plain Layout
37665 \begin_layout Plain Layout
37679 <cell alignment="left" valignment="top" usebox="none">
37682 \begin_layout Plain Layout
37686 \begin_layout Plain Layout
37699 \begin_layout Plain Layout
37707 \begin_inset Phantom Phantom
37710 \begin_layout Plain Layout
37720 \begin_layout Plain Layout
37732 <cell alignment="left" valignment="top" usebox="none">
37735 \begin_layout Plain Layout
37739 \begin_layout Plain Layout
37752 \begin_layout Plain Layout
37760 \begin_inset Phantom Phantom
37763 \begin_layout Plain Layout
37773 \begin_layout Plain Layout
37785 <cell alignment="left" valignment="top" usebox="none">
37788 \begin_layout Plain Layout
37792 \begin_layout Plain Layout
37805 \begin_layout Plain Layout
37813 \begin_inset Phantom Phantom
37816 \begin_layout Plain Layout
37826 \begin_layout Plain Layout
37838 <cell alignment="left" valignment="top" usebox="none">
37841 \begin_layout Plain Layout
37845 \begin_layout Plain Layout
37858 \begin_layout Plain Layout
37866 \begin_inset Phantom Phantom
37869 \begin_layout Plain Layout
37879 \begin_layout Plain Layout
37893 <cell alignment="left" valignment="top" usebox="none">
37896 \begin_layout Plain Layout
37900 \begin_layout Plain Layout
37913 \begin_layout Plain Layout
37921 \begin_inset Phantom Phantom
37924 \begin_layout Plain Layout
37934 \begin_layout Plain Layout
37946 <cell alignment="left" valignment="top" usebox="none">
37949 \begin_layout Plain Layout
37953 \begin_layout Plain Layout
37966 \begin_layout Plain Layout
37974 \begin_inset Phantom Phantom
37977 \begin_layout Plain Layout
37987 \begin_layout Plain Layout
37999 <cell alignment="left" valignment="top" usebox="none">
38002 \begin_layout Plain Layout
38006 \begin_layout Plain Layout
38019 \begin_layout Plain Layout
38027 \begin_inset Phantom Phantom
38030 \begin_layout Plain Layout
38040 \begin_layout Plain Layout
38052 <cell alignment="left" valignment="top" usebox="none">
38055 \begin_layout Plain Layout
38059 \begin_layout Plain Layout
38072 \begin_layout Plain Layout
38080 \begin_inset Phantom Phantom
38083 \begin_layout Plain Layout
38093 \begin_layout Plain Layout
38107 <cell alignment="left" valignment="top" usebox="none">
38110 \begin_layout Plain Layout
38114 \begin_layout Plain Layout
38127 \begin_layout Plain Layout
38135 \begin_inset Phantom Phantom
38138 \begin_layout Plain Layout
38148 \begin_layout Plain Layout
38160 <cell alignment="left" valignment="top" usebox="none">
38163 \begin_layout Plain Layout
38167 \begin_layout Plain Layout
38180 \begin_layout Plain Layout
38188 \begin_inset Phantom Phantom
38191 \begin_layout Plain Layout
38201 \begin_layout Plain Layout
38213 <cell alignment="left" valignment="top" usebox="none">
38216 \begin_layout Plain Layout
38220 \begin_layout Plain Layout
38233 \begin_layout Plain Layout
38241 \begin_inset Phantom Phantom
38244 \begin_layout Plain Layout
38254 \begin_layout Plain Layout
38266 <cell alignment="left" valignment="top" usebox="none">
38269 \begin_layout Plain Layout
38273 \begin_layout Plain Layout
38286 \begin_layout Plain Layout
38294 \begin_inset Phantom Phantom
38297 \begin_layout Plain Layout
38307 \begin_layout Plain Layout
38321 <cell alignment="left" valignment="top" usebox="none">
38324 \begin_layout Plain Layout
38328 \begin_layout Plain Layout
38341 \begin_layout Plain Layout
38349 \begin_inset Phantom Phantom
38352 \begin_layout Plain Layout
38362 \begin_layout Plain Layout
38374 <cell alignment="left" valignment="top" usebox="none">
38377 \begin_layout Plain Layout
38381 \begin_layout Plain Layout
38394 \begin_layout Plain Layout
38402 \begin_inset Phantom Phantom
38405 \begin_layout Plain Layout
38415 \begin_layout Plain Layout
38427 <cell alignment="left" valignment="top" usebox="none">
38430 \begin_layout Plain Layout
38434 \begin_layout Plain Layout
38447 \begin_layout Plain Layout
38455 \begin_inset Phantom Phantom
38458 \begin_layout Plain Layout
38468 \begin_layout Plain Layout
38480 <cell alignment="left" valignment="top" usebox="none">
38483 \begin_layout Plain Layout
38487 \begin_layout Plain Layout
38500 \begin_layout Plain Layout
38508 \begin_inset Phantom Phantom
38511 \begin_layout Plain Layout
38521 \begin_layout Plain Layout
38535 <cell alignment="center" valignment="top" usebox="none">
38538 \begin_layout Plain Layout
38542 \begin_layout Plain Layout
38555 \begin_layout Plain Layout
38563 \begin_inset Phantom Phantom
38566 \begin_layout Plain Layout
38576 \begin_layout Plain Layout
38588 <cell alignment="center" valignment="top" usebox="none">
38591 \begin_layout Plain Layout
38595 \begin_layout Plain Layout
38608 \begin_layout Plain Layout
38616 \begin_inset Phantom Phantom
38619 \begin_layout Plain Layout
38629 \begin_layout Plain Layout
38641 <cell alignment="center" valignment="top" usebox="none">
38644 \begin_layout Plain Layout
38648 \begin_layout Plain Layout
38661 \begin_layout Plain Layout
38669 \begin_inset Phantom Phantom
38672 \begin_layout Plain Layout
38682 \begin_layout Plain Layout
38694 <cell alignment="center" valignment="top" usebox="none">
38697 \begin_layout Plain Layout
38701 \begin_layout Plain Layout
38714 \begin_layout Plain Layout
38722 \begin_inset Phantom Phantom
38725 \begin_layout Plain Layout
38735 \begin_layout Plain Layout
38749 <cell alignment="left" valignment="top" usebox="none">
38752 \begin_layout Plain Layout
38756 \begin_layout Plain Layout
38769 \begin_layout Plain Layout
38777 \begin_inset Phantom Phantom
38780 \begin_layout Plain Layout
38790 \begin_layout Plain Layout
38802 <cell alignment="left" valignment="top" usebox="none">
38805 \begin_layout Plain Layout
38809 \begin_layout Plain Layout
38822 \begin_layout Plain Layout
38830 \begin_inset Phantom Phantom
38833 \begin_layout Plain Layout
38843 \begin_layout Plain Layout
38855 <cell alignment="left" valignment="top" usebox="none">
38858 \begin_layout Plain Layout
38862 \begin_layout Plain Layout
38875 \begin_layout Plain Layout
38883 \begin_inset Phantom Phantom
38886 \begin_layout Plain Layout
38896 \begin_layout Plain Layout
38908 <cell alignment="left" valignment="top" usebox="none">
38911 \begin_layout Plain Layout
38915 \begin_layout Plain Layout
38928 \begin_layout Plain Layout
38936 \begin_inset Phantom Phantom
38939 \begin_layout Plain Layout
38949 \begin_layout Plain Layout
38963 <cell alignment="left" valignment="top" usebox="none">
38966 \begin_layout Plain Layout
38970 \begin_layout Plain Layout
38983 \begin_layout Plain Layout
38991 \begin_inset Phantom Phantom
38994 \begin_layout Plain Layout
39004 \begin_layout Plain Layout
39016 <cell alignment="left" valignment="top" usebox="none">
39019 \begin_layout Plain Layout
39023 \begin_layout Plain Layout
39036 \begin_layout Plain Layout
39044 \begin_inset Phantom Phantom
39047 \begin_layout Plain Layout
39057 \begin_layout Plain Layout
39069 <cell alignment="left" valignment="top" usebox="none">
39072 \begin_layout Plain Layout
39076 \begin_layout Plain Layout
39089 \begin_layout Plain Layout
39097 \begin_inset Phantom Phantom
39100 \begin_layout Plain Layout
39110 \begin_layout Plain Layout
39122 <cell alignment="left" valignment="top" usebox="none">
39125 \begin_layout Plain Layout
39129 \begin_layout Plain Layout
39142 \begin_layout Plain Layout
39150 \begin_inset Phantom Phantom
39153 \begin_layout Plain Layout
39163 \begin_layout Plain Layout
39177 <cell alignment="left" valignment="top" usebox="none">
39180 \begin_layout Plain Layout
39184 \begin_layout Plain Layout
39197 \begin_layout Plain Layout
39205 \begin_inset Phantom Phantom
39208 \begin_layout Plain Layout
39218 \begin_layout Plain Layout
39230 <cell alignment="left" valignment="top" usebox="none">
39233 \begin_layout Plain Layout
39237 \begin_layout Plain Layout
39250 \begin_layout Plain Layout
39258 \begin_inset Phantom Phantom
39261 \begin_layout Plain Layout
39271 \begin_layout Plain Layout
39283 <cell alignment="left" valignment="top" usebox="none">
39286 \begin_layout Plain Layout
39290 \begin_layout Plain Layout
39303 \begin_layout Plain Layout
39311 \begin_inset Phantom Phantom
39314 \begin_layout Plain Layout
39324 \begin_layout Plain Layout
39336 <cell alignment="left" valignment="top" usebox="none">
39339 \begin_layout Plain Layout
39343 \begin_layout Plain Layout
39356 \begin_layout Plain Layout
39364 \begin_inset Phantom Phantom
39367 \begin_layout Plain Layout
39377 \begin_layout Plain Layout
39391 <cell alignment="left" valignment="top" usebox="none">
39394 \begin_layout Plain Layout
39398 \begin_layout Plain Layout
39411 \begin_layout Plain Layout
39419 \begin_inset Phantom Phantom
39422 \begin_layout Plain Layout
39432 \begin_layout Plain Layout
39444 <cell alignment="left" valignment="top" usebox="none">
39447 \begin_layout Plain Layout
39451 \begin_layout Plain Layout
39464 \begin_layout Plain Layout
39472 \begin_inset Phantom Phantom
39475 \begin_layout Plain Layout
39485 \begin_layout Plain Layout
39497 <cell alignment="left" valignment="top" usebox="none">
39500 \begin_layout Plain Layout
39504 \begin_layout Plain Layout
39517 \begin_layout Plain Layout
39525 \begin_inset Phantom Phantom
39528 \begin_layout Plain Layout
39538 \begin_layout Plain Layout
39550 <cell alignment="left" valignment="top" usebox="none">
39553 \begin_layout Plain Layout
39557 \begin_layout Plain Layout
39570 \begin_layout Plain Layout
39578 \begin_inset Phantom Phantom
39581 \begin_layout Plain Layout
39591 \begin_layout Plain Layout
39605 <cell alignment="left" valignment="top" usebox="none">
39608 \begin_layout Plain Layout
39612 \begin_layout Plain Layout
39625 \begin_layout Plain Layout
39633 \begin_inset Phantom Phantom
39636 \begin_layout Plain Layout
39646 \begin_layout Plain Layout
39658 <cell alignment="left" valignment="top" usebox="none">
39661 \begin_layout Plain Layout
39665 \begin_layout Plain Layout
39678 \begin_layout Plain Layout
39686 \begin_inset Phantom Phantom
39689 \begin_layout Plain Layout
39699 \begin_layout Plain Layout
39711 <cell alignment="left" valignment="top" usebox="none">
39714 \begin_layout Plain Layout
39718 \begin_layout Plain Layout
39731 \begin_layout Plain Layout
39739 \begin_inset Phantom Phantom
39742 \begin_layout Plain Layout
39752 \begin_layout Plain Layout
39764 <cell alignment="left" valignment="top" usebox="none">
39767 \begin_layout Plain Layout
39771 \begin_layout Plain Layout
39784 \begin_layout Plain Layout
39792 \begin_inset Phantom Phantom
39795 \begin_layout Plain Layout
39805 \begin_layout Plain Layout
39819 <cell alignment="left" valignment="top" usebox="none">
39822 \begin_layout Plain Layout
39826 \begin_layout Plain Layout
39839 \begin_layout Plain Layout
39847 \begin_inset Phantom Phantom
39850 \begin_layout Plain Layout
39860 \begin_layout Plain Layout
39872 <cell alignment="left" valignment="top" usebox="none">
39875 \begin_layout Plain Layout
39879 \begin_layout Plain Layout
39892 \begin_layout Plain Layout
39900 \begin_inset Phantom Phantom
39903 \begin_layout Plain Layout
39913 \begin_layout Plain Layout
39925 <cell alignment="left" valignment="top" usebox="none">
39928 \begin_layout Plain Layout
39932 \begin_layout Plain Layout
39945 \begin_layout Plain Layout
39953 \begin_inset Phantom Phantom
39956 \begin_layout Plain Layout
39966 \begin_layout Plain Layout
39978 <cell alignment="left" valignment="top" usebox="none">
39981 \begin_layout Plain Layout
39985 \begin_layout Plain Layout
39998 \begin_layout Plain Layout
40006 \begin_inset Phantom Phantom
40009 \begin_layout Plain Layout
40019 \begin_layout Plain Layout
40033 <cell alignment="left" valignment="top" usebox="none">
40036 \begin_layout Plain Layout
40040 \begin_layout Plain Layout
40053 \begin_layout Plain Layout
40061 \begin_inset Phantom Phantom
40064 \begin_layout Plain Layout
40074 \begin_layout Plain Layout
40086 <cell alignment="left" valignment="top" usebox="none">
40089 \begin_layout Plain Layout
40093 \begin_layout Plain Layout
40106 \begin_layout Plain Layout
40114 \begin_inset Phantom Phantom
40117 \begin_layout Plain Layout
40127 \begin_layout Plain Layout
40139 <cell alignment="left" valignment="top" usebox="none">
40142 \begin_layout Plain Layout
40146 \begin_layout Plain Layout
40159 \begin_layout Plain Layout
40167 \begin_inset Phantom Phantom
40170 \begin_layout Plain Layout
40180 \begin_layout Plain Layout
40192 <cell alignment="left" valignment="top" usebox="none">
40195 \begin_layout Plain Layout
40199 \begin_layout Plain Layout
40212 \begin_layout Plain Layout
40220 \begin_inset Phantom Phantom
40223 \begin_layout Plain Layout
40233 \begin_layout Plain Layout
40247 <cell alignment="left" valignment="top" usebox="none">
40250 \begin_layout Plain Layout
40254 \begin_layout Plain Layout
40267 \begin_layout Plain Layout
40275 \begin_inset Phantom Phantom
40278 \begin_layout Plain Layout
40288 \begin_layout Plain Layout
40300 <cell alignment="left" valignment="top" usebox="none">
40303 \begin_layout Plain Layout
40307 \begin_layout Plain Layout
40320 \begin_layout Plain Layout
40328 \begin_inset Phantom Phantom
40331 \begin_layout Plain Layout
40341 \begin_layout Plain Layout
40353 <cell alignment="left" valignment="top" usebox="none">
40356 \begin_layout Plain Layout
40360 \begin_layout Plain Layout
40373 \begin_layout Plain Layout
40381 \begin_inset Phantom Phantom
40384 \begin_layout Plain Layout
40394 \begin_layout Plain Layout
40406 <cell alignment="left" valignment="top" usebox="none">
40409 \begin_layout Plain Layout
40413 \begin_layout Plain Layout
40426 \begin_layout Plain Layout
40434 \begin_inset Phantom Phantom
40437 \begin_layout Plain Layout
40447 \begin_layout Plain Layout
40461 <cell alignment="left" valignment="top" usebox="none">
40464 \begin_layout Plain Layout
40468 \begin_layout Plain Layout
40481 \begin_layout Plain Layout
40489 \begin_inset Phantom Phantom
40492 \begin_layout Plain Layout
40502 \begin_layout Plain Layout
40514 <cell alignment="left" valignment="top" usebox="none">
40517 \begin_layout Plain Layout
40521 \begin_layout Plain Layout
40534 \begin_layout Plain Layout
40542 \begin_inset Phantom Phantom
40545 \begin_layout Plain Layout
40555 \begin_layout Plain Layout
40567 <cell alignment="left" valignment="top" usebox="none">
40570 \begin_layout Plain Layout
40574 \begin_layout Plain Layout
40587 \begin_layout Plain Layout
40595 \begin_inset Phantom Phantom
40598 \begin_layout Plain Layout
40608 \begin_layout Plain Layout
40620 <cell alignment="left" valignment="top" usebox="none">
40623 \begin_layout Plain Layout
40627 \begin_layout Plain Layout
40640 \begin_layout Plain Layout
40648 \begin_inset Phantom Phantom
40651 \begin_layout Plain Layout
40661 \begin_layout Plain Layout
40675 <cell alignment="left" valignment="top" usebox="none">
40678 \begin_layout Plain Layout
40682 \begin_layout Plain Layout
40695 \begin_layout Plain Layout
40703 \begin_inset Phantom Phantom
40706 \begin_layout Plain Layout
40716 \begin_layout Plain Layout
40728 <cell alignment="left" valignment="top" usebox="none">
40731 \begin_layout Plain Layout
40737 <cell alignment="left" valignment="top" usebox="none">
40740 \begin_layout Plain Layout
40746 <cell alignment="left" valignment="top" usebox="none">
40749 \begin_layout Plain Layout
40763 \begin_layout Chapter
40764 Explanation of Equation
40765 \begin_inset space ~
40769 \begin_inset CommandInset ref
40776 \begin_inset CommandInset label
40778 name "cha:Explanation-of-Equation"
40785 \begin_layout Standard
40786 We can calculate the total width of
40791 \begin_inset Formula $W_{\mathrm{tot\, n}}$
40795 \begin_inset Formula
40797 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
40803 \begin_inset Formula $W_{g\, n}$
40806 is the given width of all cells,
40812 is the LaTeX-length between the cell text and the cell border (its default
40814 \begin_inset space \thinspace{}
40824 is the thickness of the cell border line, the default is 0.4
40825 \begin_inset space \thinspace{}
40831 \begin_layout Standard
40833 \begin_inset space ~
40837 \begin_inset CommandInset ref
40839 reference "eq:Wtot_n"
40843 , the total width of a multicolumn
40844 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
40848 \begin_inset Formula
40850 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
40858 \begin_layout Standard
40859 By setting equation
40860 \begin_inset space ~
40864 \begin_inset CommandInset ref
40866 reference "eq:Wtot_n"
40871 \begin_inset CommandInset ref
40873 reference "eq:Wtot_mult"
40877 equal we can calculate the needed given width
40878 \begin_inset Formula $W_{g\, n}$
40885 columns are spanned, so that each column has a total width of
40886 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
40890 \begin_inset Formula
40892 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
40900 \begin_layout Bibliography
40901 \labelwidthstring Bibliography
40902 \begin_inset CommandInset bibitem
40903 LatexCommand bibitem
40904 key "latexcompanion"
40908 Frank Mittelbach and Michel Goossens:
40910 The LaTeX Companion Second Edition.
40913 Addison-Wesley, 2004
40916 \begin_layout Bibliography
40917 \labelwidthstring Bibliography
40918 \begin_inset CommandInset bibitem
40919 LatexCommand bibitem
40924 Helmut Kopka and Patrick W.
40927 A Guide to LaTeX Fourth Edition.
40930 Addison-Wesley, 2003
40933 \begin_layout Bibliography
40934 \labelwidthstring Bibliography
40935 \begin_inset CommandInset bibitem
40936 LatexCommand bibitem
40943 LaTeX: A Document Preparation System.
40946 Addison-Wesley, second edition, 1994
40949 \begin_layout Bibliography
40950 \labelwidthstring Bibliography
40951 \begin_inset CommandInset bibitem
40952 LatexCommand bibitem
40957 Documentation of the LaTeX-package
40960 \begin_inset CommandInset href
40963 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
40970 \begin_inset Index idx
40973 \begin_layout Plain Layout
40974 LaTeX-packages ! booktabs
40982 \begin_layout Bibliography
40983 \labelwidthstring Bibliography
40984 \begin_inset CommandInset bibitem
40985 LatexCommand bibitem
40990 Documentation of the LaTeX-package
40993 \begin_inset CommandInset href
40996 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
41003 \begin_inset Index idx
41006 \begin_layout Plain Layout
41007 LaTeX-packages ! caption
41015 \begin_layout Bibliography
41016 \labelwidthstring Bibliography
41017 \begin_inset CommandInset bibitem
41018 LatexCommand bibitem
41023 Documentation of the LaTeX-package
41026 \begin_inset CommandInset href
41029 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
41036 \begin_inset Index idx
41039 \begin_layout Plain Layout
41040 LaTeX-packages ! endfloat
41048 \begin_layout Bibliography
41049 \labelwidthstring Bibliography
41050 \begin_inset CommandInset bibitem
41051 LatexCommand bibitem
41056 Documentation of the LaTeX-package
41059 \begin_inset CommandInset href
41062 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
41069 \begin_inset Index idx
41072 \begin_layout Plain Layout
41073 LaTeX-packages ! footmisc
41081 \begin_layout Bibliography
41082 \labelwidthstring Bibliography
41083 \begin_inset CommandInset bibitem
41084 LatexCommand bibitem
41089 Documentation of the LaTeX-package
41092 \begin_inset CommandInset href
41095 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
41102 \begin_inset Index idx
41105 \begin_layout Plain Layout
41106 LaTeX-packages ! hyperref
41114 \begin_layout Bibliography
41115 \labelwidthstring Bibliography
41116 \begin_inset CommandInset bibitem
41117 LatexCommand bibitem
41122 Documentation of the LaTeX-package
41125 \begin_inset CommandInset href
41128 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
41135 \begin_inset Index idx
41138 \begin_layout Plain Layout
41139 LaTeX-packages ! hyperref
41147 \begin_layout Bibliography
41148 \labelwidthstring Bibliography
41149 \begin_inset CommandInset bibitem
41150 LatexCommand bibitem
41155 Documentation of the LaTeX-package
41158 \begin_inset CommandInset href
41161 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
41168 \begin_inset Index idx
41171 \begin_layout Plain Layout
41172 LaTeX-packages ! KOMA-Script
41180 \begin_layout Bibliography
41181 \labelwidthstring Bibliography
41182 \begin_inset CommandInset bibitem
41183 LatexCommand bibitem
41188 Documentation of the LaTeX-package
41191 \begin_inset CommandInset href
41194 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
41201 \begin_inset Index idx
41204 \begin_layout Plain Layout
41205 LaTeX-packages ! listings
41213 \begin_layout Bibliography
41214 \labelwidthstring Bibliography
41215 \begin_inset CommandInset bibitem
41216 LatexCommand bibitem
41221 Documentation of the LaTeX-package
41224 \begin_inset CommandInset href
41227 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
41234 \begin_inset Index idx
41237 \begin_layout Plain Layout
41238 LaTeX-packages ! marginnote
41246 \begin_layout Bibliography
41247 \labelwidthstring Bibliography
41248 \begin_inset CommandInset bibitem
41249 LatexCommand bibitem
41254 Documentation of the LaTeX-package
41257 \begin_inset CommandInset href
41260 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
41267 \begin_inset CommandInset href
41270 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
41275 \begin_inset Index idx
41278 \begin_layout Plain Layout
41279 LaTeX-packages ! lettrine
41287 \begin_layout Bibliography
41288 \labelwidthstring Bibliography
41289 \begin_inset CommandInset bibitem
41290 LatexCommand bibitem
41295 Web page of the LaTeX-package
41298 \begin_inset CommandInset href
41301 target "http://tug.org/PSTricks/"
41308 \begin_inset Index idx
41311 \begin_layout Plain Layout
41312 LaTeX-packages ! PSTricks
41320 \begin_layout Bibliography
41321 \labelwidthstring Bibliography
41322 \begin_inset CommandInset bibitem
41323 LatexCommand bibitem
41328 Documentation of the LaTeX-package
41331 \begin_inset CommandInset href
41334 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
41341 \begin_inset Index idx
41344 \begin_layout Plain Layout
41345 LaTeX-packages ! sidecap
41353 \begin_layout Bibliography
41354 \labelwidthstring Bibliography
41355 \begin_inset CommandInset bibitem
41356 LatexCommand bibitem
41361 Documentation of the LaTeX-package
41364 \begin_inset CommandInset href
41367 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
41374 \begin_inset Index idx
41377 \begin_layout Plain Layout
41378 LaTeX-packages ! pdfpages
41386 \begin_layout Bibliography
41387 \labelwidthstring Bibliography
41388 \begin_inset CommandInset bibitem
41389 LatexCommand bibitem
41394 Documentation of the LaTeX-package
41397 \begin_inset CommandInset href
41400 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
41407 \begin_inset Index idx
41410 \begin_layout Plain Layout
41411 LaTeX-packages ! prettyref
41419 \begin_layout Bibliography
41420 \labelwidthstring Bibliography
41421 \begin_inset CommandInset bibitem
41422 LatexCommand bibitem
41427 Documentation of the LaTeX-package
41430 \begin_inset CommandInset href
41433 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
41440 \begin_inset Index idx
41443 \begin_layout Plain Layout
41444 LaTeX-packages ! refstyle
41452 \begin_layout Bibliography
41453 \labelwidthstring Bibliography
41454 \begin_inset CommandInset bibitem
41455 LatexCommand bibitem
41461 \begin_inset CommandInset href
41464 target "http://wiki.lyx.org/LyX/NewInLyX20"
41468 about new features in
41475 \begin_layout Standard
41476 \begin_inset CommandInset index_print
41477 LatexCommand printindex