1 #LyX 2.0.0svn 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}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
165 \maintain_unincluded_children false
171 \font_typewriter default
172 \font_default_family default
180 \default_output_format default
182 \bibtex_command default
183 \index_command default
187 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
188 \pdf_author "LyX Team, Uwe Stöhr"
189 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
190 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
192 \pdf_bookmarksnumbered true
193 \pdf_bookmarksopen true
194 \pdf_bookmarksopenlevel 1
195 \pdf_breaklinks false
199 \pdf_pdfusetitle false
200 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
210 \paperorientation portrait
218 \paragraph_separation skip
220 \quotes_language english
223 \paperpagestyle default
227 \tracking_changes false
228 \output_changes false
230 \html_be_strict false
236 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
245 \begin_layout Plain Layout
247 If you have comments or error corrections, please send them to the LyX Documenta
249 \begin_inset CommandInset href
251 name "lyx-docs@lists.lyx.org"
252 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
263 \begin_inset Note Note
266 \begin_layout Plain Layout
273 \begin_inset Newline newline
277 \begin_inset Newline newline
285 \begin_layout Standard
286 \begin_inset CommandInset toc
287 LatexCommand tableofcontents
294 \begin_layout Standard
295 \begin_inset Note Note
298 \begin_layout Plain Layout
299 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
317 If they are not installed you can export the document anyway but the sections
318 where the packages are required won't appear in the output.
321 \begin_layout Plain Layout
322 The latest PDF-version of this document can be found here:
323 \begin_inset Newline newline
328 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
336 \begin_layout Chapter
338 \begin_inset Index idx
341 \begin_layout Plain Layout
348 \begin_inset Index idx
351 \begin_layout Plain Layout
356 \begin_layout Plain Layout
367 \begin_layout Plain Layout
382 \begin_layout Section
384 \begin_inset Index idx
387 \begin_layout Plain Layout
388 Figures ! Graphics Dialog
394 \begin_inset CommandInset label
396 name "sec:Graphics-Dialog"
403 \begin_layout Standard
404 To insert an image into your document, place the cursor at the text position
405 you want and click on the toolbar icon
406 \begin_inset Graphics
407 filename ../images/dialog-show-new-inset_graphics.png
415 Insert\SpecialChar \menuseparator
419 Then a dialog will appear to choose the file to load.
420 The image will appear in the output exactly at the position where it is
424 \begin_layout Standard
425 The graphics dialog can be called at any time by clicking on an image.
426 This dialog has three tabs:
429 \begin_layout Description
434 Here you can choose an image file and adjust its appearance in the output.
435 The available units for the image size are explained in appendix
440 \begin_inset CommandInset ref
442 reference "cha:Units-available-in"
447 \begin_inset Newline newline
451 \begin_inset Index idx
454 \begin_layout Plain Layout
460 You can rotate images counter-clockwise by setting a rotation angle and
462 The image will also be rotated inside LyX.
463 \begin_inset Newline newline
467 \begin_inset Index idx
470 \begin_layout Plain Layout
476 Images can be scaled by using a percentage value or by setting the width
477 and height explicitly.
478 If you set only the width or only the height, the other size will be determined
480 If you set both, then the image will be transformed to the given size,
481 possibly distorting it.
482 To prevent the image from distortion, use the option
484 Maintain aspect ratio
487 The image will then be scaled so that its width and height don't exceed
488 the specified dimensions.
489 \begin_inset Newline newline
492 Images can be opened in a program of your choice by right-clicking on it
493 and choosing the entry
502 The program can be set for every image format in the file format settings
503 in LyX's preferences.
506 \begin_layout Description
511 Alternatively to the usage of scaling units it is possible to set image
512 coordinates to adjust the height and width of the image in the output.
513 The coordinates can also be calculated automatically by pressing the button
543 will only print the image region within the given coordinates.
544 Normally you don't need to take care about image coordinates and can ignore
548 \begin_layout Description
565 In this tab you can modify the appearance of the image within LyX and LaTeX
566 experts can specify additional LaTeX options.
567 \begin_inset Newline newline
578 makes the image appear in the output only as a frame with the size of the
580 \begin_inset Newline newline
599 option only affects zipped EPS-graphics, e.
600 \begin_inset space \thinspace{}
604 \begin_inset space \space{}
612 When the option is used the images will not be unzipped on export, since
613 LaTeX can handle them as they are.
614 \begin_inset Newline newline
617 Zipped EPS-graphics are useful to save disk space when you choose PostScript
618 as output format, see appendix
623 \begin_inset CommandInset ref
625 reference "sec:PostScript"
630 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
632 \begin_inset Newline newline
640 \begin_inset Newline newline
645 zgrep %%Bounding x.eps.gz > x.eps.bb
648 \begin_inset Newline newline
651 The second command creates the bounding box file
652 \begin_inset Quotes eld
656 \begin_inset Quotes erd
659 that is needed by LaTeX for zipped graphics.
660 \begin_inset Newline newline
675 allows you define or join an image settings group.
676 \begin_inset Index idx
679 \begin_layout Plain Layout
680 Figures ! Settings grouping
685 Images within such a group share their settings, so adjusting one image
686 of the group automatically also adjusts all other images of the group in
688 So you can for example change the size for a bunch of images without the
689 need to manually change each of them.
690 Joining an existing group can also be done using the context menu of the
691 image by checking the name of the desired group.
694 \begin_layout Standard
695 \begin_inset VSpace bigskip
701 \begin_layout Standard
702 This is an example image in EPS format
706 \begin_layout Plain Layout
707 Image formats are explained in section
712 \begin_inset CommandInset ref
714 reference "sec:Image-Formats"
723 within a separate, horizontally centered paragraph:
726 \begin_layout Standard
728 \begin_inset Graphics
729 filename clipart/mobius.eps
739 \begin_layout Standard
740 This is the same image like the one above but in draft mode:
743 \begin_layout Standard
745 \begin_inset Graphics
746 filename clipart/mobius.eps
757 \begin_layout Standard
758 \begin_inset Newpage newpage
764 \begin_layout Section
766 \begin_inset CommandInset label
768 name "sec:Figure-Floats"
773 \begin_inset Index idx
776 \begin_layout Plain Layout
783 \begin_inset Index idx
786 \begin_layout Plain Layout
795 \begin_layout Standard
796 For general explanations about floats, have a look at section
801 \begin_inset CommandInset ref
803 reference "sec:FloatIntroduction"
810 \begin_layout Standard
812 \begin_inset Graphics
813 filename ../images/float-insert_figure.png
821 Insert\SpecialChar \menuseparator
822 Float\SpecialChar \menuseparator
825 inserts a float with a caption that has the label
826 \begin_inset Quotes eld
834 \begin_inset Quotes erd
837 (# is the actual number).
838 You can insert the image above the caption, like in Figure
843 \begin_inset CommandInset ref
845 reference "fig:kill-plat"
849 or below the caption, like in Figure
854 \begin_inset CommandInset ref
856 reference "fig:escher"
861 More about caption placement is described in section
866 \begin_inset CommandInset ref
868 reference "sec:Caption-Placement"
875 \begin_layout Standard
876 \begin_inset Float figure
881 \begin_layout Plain Layout
883 \begin_inset Graphics
884 filename clipart/platypus.eps
894 \begin_layout Plain Layout
897 \begin_layout Plain Layout
898 \begin_inset CommandInset label
904 A severely distorted platypus in a float.
917 \begin_layout Standard
918 \begin_inset Float figure
923 \begin_layout Plain Layout
926 \begin_layout Plain Layout
927 \begin_inset CommandInset label
942 \begin_layout Plain Layout
944 \begin_inset Graphics
945 filename clipart/escher-lsd.eps
960 \begin_layout Standard
961 \begin_inset Index idx
964 \begin_layout Plain Layout
965 References ! to Figures
975 \begin_inset CommandInset ref
977 reference "fig:kill-plat"
982 \begin_inset CommandInset ref
984 reference "fig:escher"
988 are examples of referenced figures.
989 Figures can be referenced in the text by referencing their label.
990 To do this insert a label in the caption using the menu
992 Insert\SpecialChar \menuseparator
995 or the toolbar button
996 \begin_inset Graphics
997 filename ../images/label-insert.png
1004 You can now refer to the label using the menu
1006 Insert\SpecialChar \menuseparator
1008 \begin_inset space ~
1013 or the toolbar button
1014 \begin_inset Graphics
1015 filename ../images/dialog-show-new-inset_ref.png
1022 It is important to use references to floats, rather than using vague references
1024 \begin_inset Quotes eld
1028 \begin_inset Quotes erd
1031 , because LaTeX will reposition the floats in the final document and it
1033 \begin_inset Quotes eld
1037 \begin_inset Quotes erd
1041 \begin_inset Newline newline
1044 Referencing is explained in detail in section
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "sec:Referencing-Floats"
1058 \begin_layout Standard
1059 Normally only one image is inserted to a figure float, but sometimes you
1060 might want to use two images with separate subcaptions.
1061 This can be done by inserting image floats into existing image floats.
1062 Note that only the main caption of the float is added to the List of Figures.
1064 \begin_inset space ~
1068 \begin_inset CommandInset ref
1070 reference "fig:Two-distorted-images"
1074 is an example of a figure float with two images set side by side.
1075 You can also set the images one below the other.
1077 \begin_inset space ~
1081 \begin_inset CommandInset ref
1083 reference "fig:Undefinable-structure"
1088 \begin_inset CommandInset ref
1090 reference "fig:A-Platypus"
1097 \begin_layout Standard
1098 \begin_inset Float figure
1103 \begin_layout Plain Layout
1104 \begin_inset space \hfill{}
1108 \begin_inset Float figure
1113 \begin_layout Plain Layout
1114 \begin_inset Caption
1116 \begin_layout Plain Layout
1117 \begin_inset CommandInset label
1119 name "fig:Undefinable-structure"
1123 Undefinable structure.
1131 \begin_layout Plain Layout
1132 \begin_inset Graphics
1133 filename clipart/escher-lsd.eps
1146 \begin_inset space \hfill{}
1150 \begin_inset Float figure
1155 \begin_layout Plain Layout
1156 \begin_inset Caption
1158 \begin_layout Plain Layout
1159 \begin_inset CommandInset label
1161 name "fig:A-Platypus"
1173 \begin_layout Plain Layout
1174 \begin_inset Graphics
1175 filename clipart/platypus.eps
1188 \begin_inset space \hfill{}
1194 \begin_layout Plain Layout
1195 \begin_inset Caption
1197 \begin_layout Plain Layout
1198 \begin_inset CommandInset label
1200 name "fig:Two-distorted-images"
1204 Two distorted images.
1205 Both images are in the image settings group named
1206 \begin_inset Quotes eld
1210 \begin_inset Quotes erd
1226 \begin_layout Standard
1227 \begin_inset Newpage newpage
1233 \begin_layout Section
1235 \begin_inset CommandInset label
1237 name "sec:Image-Formats"
1242 \begin_inset Index idx
1245 \begin_layout Plain Layout
1252 \begin_inset Index idx
1255 \begin_layout Plain Layout
1256 Figures ! Image Formats
1264 \begin_layout Standard
1265 You can insert images in any known file format.
1266 But as explained in appendix
1267 \begin_inset space ~
1271 \begin_inset CommandInset ref
1273 reference "cha:Output-File-Formats"
1277 , each output document format allows only a few image formats.
1278 LyX uses therefore the program
1282 in the background to convert the images to the right format.
1283 To increase your work flow by avoiding these conversions in the background,
1284 you can use only the image formats that can directly be embedded in the
1286 The output file formats are explained in appendix
1287 \begin_inset space ~
1291 \begin_inset CommandInset ref
1293 reference "cha:Output-File-Formats"
1300 \begin_layout Standard
1301 Similar to fonts there are two types of image formats:
1304 \begin_layout Description
1306 \begin_inset space ~
1309 images consist of pixel values, often in a compressed form.
1310 They are therefore not fully scalable and look pixelated in large zooms.
1311 Well-known bitmap image formats are
1312 \begin_inset Quotes eld
1315 Graphics Interchange Format
1316 \begin_inset Quotes erd
1319 (GIF, file extension
1320 \begin_inset Quotes eld
1328 \begin_inset Quotes erd
1332 \begin_inset Index idx
1335 \begin_layout Plain Layout
1340 \begin_layout Plain Layout
1351 \begin_layout Plain Layout
1364 \begin_inset Quotes eld
1367 Portable Network Graphics
1368 \begin_inset Quotes erd
1371 (PNG, file extension
1372 \begin_inset Quotes eld
1380 \begin_inset Quotes erd
1384 \begin_inset Index idx
1387 \begin_layout Plain Layout
1392 \begin_layout Plain Layout
1403 \begin_layout Plain Layout
1416 \begin_inset Quotes eld
1419 Joint Photographic Experts Group
1420 \begin_inset Quotes erd
1423 (JPG, file extension
1424 \begin_inset Quotes eld
1432 \begin_inset Quotes erd
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Index idx
1451 \begin_layout Plain Layout
1456 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1482 \begin_layout Description
1484 \begin_inset space ~
1487 images consist of vectors and can therefore be scaled to any size without
1489 The scaling ability is necessary if you want to create presentations, because
1490 presentations are always scaled by the video projector.
1491 Scaling is also useful for online documents to let the user zoom into diagrams.
1492 \begin_inset Newline newline
1495 Well-known scalable image formats are
1496 \begin_inset Quotes eld
1499 Scalable Vector Graphics
1500 \begin_inset Quotes erd
1503 (SVG, file extension
1504 \begin_inset Quotes eld
1512 \begin_inset Quotes erd
1516 \begin_inset Index idx
1519 \begin_layout Plain Layout
1524 \begin_layout Plain Layout
1535 \begin_layout Plain Layout
1548 \begin_inset Quotes eld
1551 Encapsulated PostScript
1552 \begin_inset Quotes erd
1555 (EPS, file extension
1556 \begin_inset Quotes eld
1564 \begin_inset Quotes erd
1568 \begin_inset Index idx
1571 \begin_layout Plain Layout
1576 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1600 \begin_inset Quotes eld
1603 Portable Document Format
1604 \begin_inset Quotes erd
1607 (PDF, file extension
1608 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1620 \begin_inset Index idx
1623 \begin_layout Plain Layout
1630 \begin_inset Quotes eld
1634 \begin_inset Quotes erd
1637 (WMF, file extension
1638 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1650 \begin_inset Index idx
1653 \begin_layout Plain Layout
1658 \begin_layout Plain Layout
1669 \begin_layout Plain Layout
1683 \begin_inset Quotes eld
1687 \begin_inset Quotes erd
1690 , because you can convert any bitmap image to a PDF or EPS-image and the
1691 result will still be a bitmap image.
1692 In such cases only a header with the image properties is added to the original
1697 \begin_layout Plain Layout
1698 In the case of PDF, the original image is additionally compressed.
1704 The PDF-files generated by
1708 are for example bitmap images.
1711 \begin_layout Standard
1712 Normally it is not possible to convert a bitmap image into a scalable one,
1714 Only the image formats PDF and EPS can directly be embedded to PDF and
1715 PostScript output files, respectively.
1716 SVG and WMF-images are recalculated to bitmaps when the output file is
1717 generated because there is currently no adequate WMF/SVG
1718 \begin_inset Formula $\to$
1721 PDF/EPS converter available.
1724 \begin_layout Chapter
1726 \begin_inset Index idx
1729 \begin_layout Plain Layout
1738 \begin_layout Section
1740 \begin_inset Index idx
1743 \begin_layout Plain Layout
1744 Table ! Introduction
1752 \begin_layout Standard
1753 You can insert a table using either the toolbar button
1754 \begin_inset Graphics
1755 filename ../images/tabular-insert.png
1763 Insert\SpecialChar \menuseparator
1767 The toolbar button offers you a graphical selection: move the mouse to
1768 set the column/row number of the table that should be created and then
1769 press a mouse button.
1770 When you use the menu to create a table, a dialog will appear, asking you
1771 for the number of rows and columns.
1772 \begin_inset Newline newline
1775 The default table has lines around any cell and the first row appears separated
1776 from the rest of the table.
1777 This separation occurs due to a double line: The cells of the first row
1778 have a line below them and the cells of the second row have a line above
1780 Here is an example table:
1783 \begin_layout Standard
1785 \begin_inset Tabular
1786 <lyxtabular version="3" rows="4" columns="4">
1787 <features tabularvalignment="middle">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1790 <column alignment="center" valignment="top" width="0">
1791 <column alignment="center" valignment="top" width="0">
1793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1796 \begin_layout Plain Layout
1802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1805 \begin_layout Plain Layout
1820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1823 \begin_layout Plain Layout
1829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1832 \begin_layout Plain Layout
1840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1843 \begin_layout Plain Layout
1858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1861 \begin_layout Plain Layout
1867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1870 \begin_layout Plain Layout
1876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1879 \begin_layout Plain Layout
1887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1890 \begin_layout Plain Layout
1905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1908 \begin_layout Plain Layout
1914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1917 \begin_layout Plain Layout
1923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1926 \begin_layout Plain Layout
1934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1937 \begin_layout Plain Layout
1952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1955 \begin_layout Plain Layout
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Plain Layout
1970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1973 \begin_layout Plain Layout
1987 \begin_layout Section
1989 \begin_inset Index idx
1992 \begin_layout Plain Layout
2001 \begin_layout Standard
2002 You can alter a table by clicking on it with the right mouse button, which
2003 brings up the table dialog.
2004 Here you can adjust the settings of that cell and row/column respectively
2005 where the cursor is currently placed.
2006 Most of the dialog options also work on selections.
2007 This means if you select more cells, columns or rows, the action is done
2008 for the whole selection.
2009 Note that there is a difference between selecting the
2013 of the cell, and the cell itself.
2014 You can alter tables with the following tabs of the table dialog:
2017 \begin_layout Description
2021 \begin_inset space ~
2026 Here you can set the horizontal alignment and the width of the current
2028 When you have set a width you can also adjust the vertical alignment of
2030 A given width will allow the cell to have line breaks and multiple paragraphs
2031 of text, see section
2032 \begin_inset space ~
2036 \begin_inset CommandInset ref
2038 reference "sub:Multiple-Lines-in"
2043 If you set no width, the column is as wide as the content of the widest
2045 \begin_inset Newline newline
2048 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2050 \begin_inset space ~
2054 \begin_inset CommandInset ref
2056 reference "sub:Multicolumns"
2061 \begin_inset Newline newline
2064 The rotate check boxes rotate the current cell, a selection, or the whole
2065 table counter-clockwise by 90°.
2066 The rotation is not shown within LyX, only in the output.
2067 \begin_inset Newline newline
2071 \begin_inset Note Greyedout
2074 \begin_layout Plain Layout
2079 Not all DVI-viewers are able to display rotations.
2085 \begin_inset Newline newline
2088 It is also possible to enter a LaTeX-argument which is needed for special
2089 table formattings, see section
2090 \begin_inset space ~
2094 \begin_inset CommandInset ref
2096 reference "sub:Multicolumn-Calculations"
2101 \begin_inset CommandInset ref
2103 reference "sec:Colored-Tables"
2110 \begin_layout Description
2115 In this tab you can add and delete border lines for the current row/column.
2116 \begin_inset Newline newline
2119 Using the style option
2123 will convert the table to a formal table as described in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sec:Formal-Tables"
2135 \begin_inset Newline newline
2138 You can also add here space to table rows as described in section
2139 \begin_inset space ~
2143 \begin_inset CommandInset ref
2145 reference "sub:Row-Spacing"
2152 \begin_layout Description
2157 This tab is to make a table a so called
2158 \begin_inset Quotes eld
2166 \begin_inset Quotes erd
2169 that can run over several pages.
2171 \begin_inset space ~
2175 \begin_inset CommandInset ref
2177 reference "sec:Longtables"
2182 \begin_inset CommandInset ref
2184 reference "sec:Special-Longtable-Issues"
2188 describe the longtable features in detail.
2191 \begin_layout Standard
2192 When the table dialog is open, you can move the cursor with the arrow keys
2193 from cell to cell and the property of the current cell will immediately
2194 be displayed in the dialog.
2197 \begin_layout Section
2199 \begin_inset Index idx
2202 \begin_layout Plain Layout
2211 \begin_layout Standard
2212 The table toolbar is an alternative to the table dialog to be able to alter
2214 It should normally appear at the bottom of LyX's main window when the cursor
2216 You can alternatively switch it on to appear always, by right-clicking
2217 in LyX's main menu bar.
2220 \begin_layout Standard
2221 The toolbar has the following icons:
2224 \begin_layout Labeling
2225 \labelwidthstring 00.00.0000
2226 \begin_inset Graphics
2227 filename ../images/tabular-feature_append-row.png
2232 adds a row below the current cell or selection
2235 \begin_layout Labeling
2236 \labelwidthstring 00.00.0000
2237 \begin_inset Graphics
2238 filename ../images/tabular-feature_append-column.png
2243 adds a column right beside the current cell or selection
2246 \begin_layout Labeling
2247 \labelwidthstring 00.00.0000
2248 \begin_inset Graphics
2249 filename ../images/tabular-feature_delete-row.png
2254 deletes the current row or selection
2257 \begin_layout Labeling
2258 \labelwidthstring 00.00.0000
2259 \begin_inset Graphics
2260 filename ../images/tabular-feature_delete-column.png
2265 deletes the current column or selection
2268 \begin_layout Labeling
2269 \labelwidthstring 00.00.0000
2270 \begin_inset Graphics
2271 filename ../images/tabular-feature_toggle-line-top.png
2276 adds a line at the top of the current cell / row or of a selection
2279 \begin_layout Labeling
2280 \labelwidthstring 00.00.0000
2281 \begin_inset Graphics
2282 filename ../images/tabular-feature_toggle-line-bottom.png
2287 adds a line at the bottom of the current cell / row or of a selection
2290 \begin_layout Labeling
2291 \labelwidthstring 00.00.0000
2292 \begin_inset Graphics
2293 filename ../images/tabular-feature_toggle-line-left.png
2298 adds a line at the left side of the current cell / row or of a selection
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Graphics
2304 filename ../images/tabular-feature_toggle-line-right.png
2309 adds a line at the right side of the current cell / row or of a selection
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Graphics
2315 filename ../images/tabular-feature_set-all-lines.png
2320 adds lines around the current or selected cells - if the current cell no
2321 multicolumn cell this also affects the current row and column
2324 \begin_layout Labeling
2325 \labelwidthstring 00.00.0000
2326 \begin_inset Graphics
2327 filename ../images/tabular-feature_unset-all-lines.png
2332 deletes all lines of the current or selected cells - if the current cell
2333 no multicolumn cell this also affects the current row and column
2336 \begin_layout Labeling
2337 \labelwidthstring 00.00.0000
2338 \begin_inset Graphics
2339 filename ../images/tabular-feature_m-align-left.png
2344 left-aligns the content of the current cell / column
2347 \begin_layout Labeling
2348 \labelwidthstring 00.00.0000
2349 \begin_inset Graphics
2350 filename ../images/tabular-feature_m-align-center.png
2355 centers the content of the current cell / column horizontally
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Graphics
2361 filename ../images/tabular-feature_m-align-right.png
2366 right-aligns the content of the current cell / column
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Graphics
2372 filename ../images/tabular-feature_m-valign-top.png
2377 aligns the content of the current cell vertically to the top
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Graphics
2383 filename ../images/tabular-feature_m-valign-middle.png
2388 centers the content of the current cell vertically
2391 \begin_layout Labeling
2392 \labelwidthstring 00.00.0000
2393 \begin_inset Graphics
2394 filename ../images/tabular-feature_m-valign-bottom.png
2399 aligns the content of the current cell vertically to the bottom
2402 \begin_layout Labeling
2403 \labelwidthstring 00.00.0000
2404 \begin_inset Graphics
2405 filename ../images/tabular-feature_set-rotate-cell.png
2410 rotates the current cell or selection counter-clockwise by 90°
2413 \begin_layout Labeling
2414 \labelwidthstring 00.00.0000
2415 \begin_inset Graphics
2416 filename ../images/tabular-feature_set-rotate-tabular.png
2421 rotates the whole table counter-clockwise by 90°
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Graphics
2427 filename ../images/tabular-feature_multicolumn.png
2432 sets the current cell or selection as a multicolumn
2435 \begin_layout Standard
2436 \begin_inset Note Greyedout
2439 \begin_layout Plain Layout
2444 For the output the vertical alignment of the first cell in a row is used
2445 for all following cells in the row.
2453 \begin_layout Section
2455 \begin_inset Index idx
2458 \begin_layout Plain Layout
2467 \begin_layout Standard
2468 Additionally to the table dialog and toolbar, the menu
2470 Edit\SpecialChar \menuseparator
2473 allows you to add and delete border lines for the current row/column and
2474 to set the current selection as multicolumn.
2475 The menu is only available when the cursor is inside a table.
2478 \begin_layout Section
2480 \begin_inset CommandInset label
2482 name "sec:Table-Floats"
2487 \begin_inset Index idx
2490 \begin_layout Plain Layout
2497 \begin_inset Index idx
2500 \begin_layout Plain Layout
2509 \begin_layout Standard
2510 For general explanations about floats, have a look at section
2511 \begin_inset space ~
2515 \begin_inset CommandInset ref
2517 reference "sec:FloatIntroduction"
2524 \begin_layout Standard
2525 \begin_inset Float table
2531 \begin_layout Plain Layout
2532 \begin_inset Caption
2534 \begin_layout Plain Layout
2535 \begin_inset CommandInset label
2537 name "tab:a table float"
2549 \begin_layout Plain Layout
2551 \begin_inset Tabular
2552 <lyxtabular version="3" rows="3" columns="3">
2553 <features tabularvalignment="middle">
2554 <column alignment="center" valignment="top" width="0pt">
2555 <column alignment="center" valignment="top" width="0pt">
2556 <column alignment="center" valignment="top" width="0pt">
2558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2561 \begin_layout Plain Layout
2576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2579 \begin_layout Plain Layout
2594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2597 \begin_layout Plain Layout
2614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2617 \begin_layout Plain Layout
2632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2635 \begin_layout Plain Layout
2650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2653 \begin_layout Plain Layout
2670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2673 \begin_layout Plain Layout
2683 \begin_inset Formula $\int x^{2}dx$
2691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2694 \begin_layout Plain Layout
2704 \begin_inset Formula $\left[\begin{array}{cc}
2715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2718 \begin_layout Plain Layout
2728 \begin_inset Formula $1+1=2$
2749 \begin_layout Standard
2750 Table floats can be inserted using the menu
2752 Insert\SpecialChar \menuseparator
2753 Float\SpecialChar \menuseparator
2756 or the toolbar button
2757 \begin_inset Graphics
2758 filename ../images/float-insert_table.png
2767 \begin_layout Standard
2768 The float appears as a collapsible box with a caption that has the label
2770 \begin_inset Quotes eld
2774 \begin_inset space ~
2778 \begin_inset Quotes erd
2781 (# is the actual table number).
2782 You can insert tables in the float above or below the caption.
2785 \begin_layout Standard
2787 \begin_inset space ~
2791 \begin_inset CommandInset ref
2793 reference "tab:a table float"
2797 is an example table within a table float.
2800 \begin_layout Standard
2801 Having the caption above the table is the common rule that is unfortunately
2802 not supported in LaTeX's standard classes.
2803 This means that, if you are using the document classes
2819 , there will be no space between the caption and the table.
2820 To insert the needed space, add the following option to the load command
2821 of the LaTeX-package
2826 \begin_inset Index idx
2829 \begin_layout Plain Layout
2830 LaTeX-packages ! caption
2835 in your document preamble
2839 \begin_layout Plain Layout
2840 For more information have a look at section
2841 \begin_inset space ~
2845 \begin_inset CommandInset ref
2847 reference "sec:Caption-Placement"
2859 \begin_layout Standard
2865 \begin_layout Standard
2870 , which is described in section
2871 \begin_inset space ~
2875 \begin_inset CommandInset ref
2877 reference "sec:Caption-Formatting"
2881 , is used to adjust the caption format.
2884 \begin_layout Standard
2885 \begin_inset Index idx
2888 \begin_layout Plain Layout
2889 References ! to Tables
2894 Tables can be cross-referenced in the text by referencing their label.
2895 To do this insert a label in the caption using the menu
2897 Insert\SpecialChar \menuseparator
2900 or the toolbar button
2901 \begin_inset Graphics
2902 filename ../images/label-insert.png
2909 You can now refer to the label using the menu
2911 Insert\SpecialChar \menuseparator
2913 \begin_inset space ~
2918 or the toolbar button
2919 \begin_inset Graphics
2920 filename ../images/dialog-show-new-inset_ref.png
2927 \begin_inset Newline newline
2930 Referencing is explained in detail in section
2931 \begin_inset space ~
2935 \begin_inset CommandInset ref
2937 reference "sec:Referencing-Floats"
2944 \begin_layout Section
2946 \begin_inset CommandInset label
2948 name "sec:Longtables"
2953 \begin_inset Index idx
2956 \begin_layout Plain Layout
2963 \begin_inset Index idx
2966 \begin_layout Plain Layout
2975 \begin_layout Standard
2976 If the table is too long to fit on one page, you can use the option
2979 \begin_inset space ~
2983 \begin_inset space ~
2992 of the table dialog to split the table automatically over more pages.
2993 Doing this enables the following options:
2996 \begin_layout Description
2997 Header: The current row is defined to be a header row that appears on all
2998 pages of the longtable; except for the first page, if
3001 \begin_inset space ~
3007 This is therefore called the main header.
3010 \begin_layout Description
3012 \begin_inset space ~
3015 header: The current row is defined to be a header row that appears on the
3016 first page of the longtable.
3019 \begin_layout Description
3020 Footer: The current row is defined to be a footer row that appears on all
3021 pages of the longtable; except for the last page, if
3024 \begin_inset space ~
3032 \begin_layout Description
3034 \begin_inset space ~
3037 footer: The current row is defined to be a footer row that appears on the
3038 last page of the longtable.
3041 \begin_layout Description
3042 Caption: The current row contains the table caption.
3043 The row is reset as single column and a caption is inserted.
3044 More about longtable captions is explained in sec.
3045 \begin_inset space \thinspace{}
3049 \begin_inset CommandInset ref
3051 reference "sub:Longtable-Captions"
3058 \begin_layout Standard
3059 You can also specify a row where the table is split.
3060 See the following longtable to see how it works:
3063 \begin_layout Standard
3065 \begin_inset Tabular
3066 <lyxtabular version="3" rows="69" columns="3">
3067 <features islongtable="true" longtabularalignment="center">
3068 <column alignment="left" valignment="top" width="0cm">
3069 <column alignment="left" valignment="top" width="0pt">
3070 <column alignment="center" valignment="top" width="0pt">
3071 <row endfirsthead="true">
3072 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3075 \begin_layout Plain Layout
3078 Example Phone List (ignore the names)
3083 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3086 \begin_layout Plain Layout
3092 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3095 \begin_layout Plain Layout
3102 <row endfirsthead="true">
3103 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3106 \begin_layout Plain Layout
3114 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3117 \begin_layout Plain Layout
3123 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3126 \begin_layout Plain Layout
3135 <row endhead="true">
3136 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3139 \begin_layout Plain Layout
3147 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3150 \begin_layout Plain Layout
3156 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3159 \begin_layout Plain Layout
3166 <row endhead="true">
3167 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3170 \begin_layout Plain Layout
3178 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3181 \begin_layout Plain Layout
3187 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3190 \begin_layout Plain Layout
3199 <row endfoot="true">
3200 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3203 \begin_layout Plain Layout
3204 continued on next page
3209 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3212 \begin_layout Plain Layout
3218 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3221 \begin_layout Plain Layout
3229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3232 \begin_layout Plain Layout
3240 <cell alignment="center" valignment="top" usebox="none">
3243 \begin_layout Plain Layout
3249 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3252 \begin_layout Plain Layout
3260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3263 \begin_layout Plain Layout
3271 <cell alignment="center" valignment="top" usebox="none">
3274 \begin_layout Plain Layout
3280 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3283 \begin_layout Plain Layout
3291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3294 \begin_layout Plain Layout
3302 <cell alignment="center" valignment="top" usebox="none">
3305 \begin_layout Plain Layout
3311 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3314 \begin_layout Plain Layout
3322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3325 \begin_layout Plain Layout
3333 <cell alignment="center" valignment="top" usebox="none">
3336 \begin_layout Plain Layout
3342 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Plain Layout
3353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3356 \begin_layout Plain Layout
3364 <cell alignment="center" valignment="top" usebox="none">
3367 \begin_layout Plain Layout
3373 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Plain Layout
3384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3387 \begin_layout Plain Layout
3395 <cell alignment="center" valignment="top" usebox="none">
3398 \begin_layout Plain Layout
3404 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Plain Layout
3415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3418 \begin_layout Plain Layout
3426 <cell alignment="center" valignment="top" usebox="none">
3429 \begin_layout Plain Layout
3435 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Plain Layout
3446 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3449 \begin_layout Plain Layout
3457 <cell alignment="center" valignment="top" usebox="none">
3460 \begin_layout Plain Layout
3466 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3480 \begin_layout Plain Layout
3488 <cell alignment="center" valignment="top" usebox="none">
3491 \begin_layout Plain Layout
3497 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Plain Layout
3508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" usebox="none">
3522 \begin_layout Plain Layout
3528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Plain Layout
3539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" usebox="none">
3553 \begin_layout Plain Layout
3559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" usebox="none">
3584 \begin_layout Plain Layout
3590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" usebox="none">
3615 \begin_layout Plain Layout
3621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3624 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" usebox="none">
3646 \begin_layout Plain Layout
3652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3655 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" usebox="none">
3677 \begin_layout Plain Layout
3683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3686 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" usebox="none">
3708 \begin_layout Plain Layout
3714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3717 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" usebox="none">
3739 \begin_layout Plain Layout
3745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3748 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" usebox="none">
3770 \begin_layout Plain Layout
3776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3779 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" usebox="none">
3801 \begin_layout Plain Layout
3807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3810 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" usebox="none">
3832 \begin_layout Plain Layout
3838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3841 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" usebox="none">
3863 \begin_layout Plain Layout
3869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3872 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" usebox="none">
3894 \begin_layout Plain Layout
3900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3903 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" usebox="none">
3925 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3934 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" usebox="none">
3956 \begin_layout Plain Layout
3962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3965 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" usebox="none">
3987 \begin_layout Plain Layout
3993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3996 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" usebox="none">
4018 \begin_layout Plain Layout
4024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4027 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" usebox="none">
4049 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4058 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" usebox="none">
4080 \begin_layout Plain Layout
4086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4089 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" usebox="none">
4111 \begin_layout Plain Layout
4117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4120 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" usebox="none">
4142 \begin_layout Plain Layout
4148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4151 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4182 \begin_layout Plain Layout
4190 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4193 \begin_layout Plain Layout
4199 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4202 \begin_layout Plain Layout
4208 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Plain Layout
4219 <cell alignment="left" 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="left" 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="left" 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="left" 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="left" 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="left" 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="left" 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="left" 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="left" 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="left" 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="left" valignment="top" leftline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" usebox="none">
4543 \begin_layout Plain Layout
4549 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Plain Layout
4560 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="center" valignment="top" usebox="none">
4574 \begin_layout Plain Layout
4580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Plain Layout
4591 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="center" valignment="top" usebox="none">
4605 \begin_layout Plain Layout
4611 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4614 \begin_layout Plain Layout
4622 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="center" valignment="top" usebox="none">
4636 \begin_layout Plain Layout
4642 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4645 \begin_layout Plain Layout
4653 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="center" valignment="top" usebox="none">
4667 \begin_layout Plain Layout
4673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4676 \begin_layout Plain Layout
4684 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="center" valignment="top" usebox="none">
4698 \begin_layout Plain Layout
4704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4707 \begin_layout Plain Layout
4715 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="center" valignment="top" usebox="none">
4729 \begin_layout Plain Layout
4735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4738 \begin_layout Plain Layout
4746 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="center" valignment="top" usebox="none">
4760 \begin_layout Plain Layout
4766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4769 \begin_layout Plain Layout
4777 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="center" valignment="top" usebox="none">
4791 \begin_layout Plain Layout
4797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4800 \begin_layout Plain Layout
4808 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="center" valignment="top" usebox="none">
4822 \begin_layout Plain Layout
4828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4831 \begin_layout Plain Layout
4839 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="center" valignment="top" usebox="none">
4853 \begin_layout Plain Layout
4859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4862 \begin_layout Plain Layout
4870 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="center" valignment="top" usebox="none">
4884 \begin_layout Plain Layout
4890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4893 \begin_layout Plain Layout
4901 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="center" valignment="top" usebox="none">
4915 \begin_layout Plain Layout
4921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4924 \begin_layout Plain Layout
4932 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="center" valignment="top" usebox="none">
4946 \begin_layout Plain Layout
4952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4955 \begin_layout Plain Layout
4963 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="center" valignment="top" usebox="none">
4977 \begin_layout Plain Layout
4983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4986 \begin_layout Plain Layout
4994 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="center" valignment="top" usebox="none">
5008 \begin_layout Plain Layout
5014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5017 \begin_layout Plain Layout
5025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="center" valignment="top" usebox="none">
5039 \begin_layout Plain Layout
5045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5048 \begin_layout Plain Layout
5056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="center" valignment="top" usebox="none">
5070 \begin_layout Plain Layout
5076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5079 \begin_layout Plain Layout
5087 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="center" valignment="top" usebox="none">
5101 \begin_layout Plain Layout
5107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5110 \begin_layout Plain Layout
5118 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="center" valignment="top" usebox="none">
5132 \begin_layout Plain Layout
5138 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5141 \begin_layout Plain Layout
5149 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5172 \begin_layout Plain Layout
5179 <row endlastfoot="true">
5180 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5183 \begin_layout Plain Layout
5189 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5192 \begin_layout Plain Layout
5198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5201 \begin_layout Plain Layout
5216 \begin_layout Plain Layout
5220 addtocounter{table}{-1}
5226 \begin_inset Note Note
5229 \begin_layout Plain Layout
5230 See the first greyed-out note in section
5231 \begin_inset space ~
5235 \begin_inset CommandInset ref
5237 reference "sub:Longtable-Captions"
5241 for an explanation of this command.
5249 \begin_layout Subsection
5250 Footnotes in Longtables
5251 \begin_inset CommandInset label
5253 name "sub:Footnotes-in-Longtables"
5258 \begin_inset Index idx
5261 \begin_layout Plain Layout
5262 Longtables ! Footnotes
5270 \begin_layout Standard
5271 Footnotes can be inserted to every longtable cell.
5272 They appear at the bottom of the page where the table cell with the footnote
5275 \begin_inset space ~
5279 \begin_inset CommandInset ref
5281 reference "tab:DiffCaptions"
5285 has for example a footnote.
5288 \begin_layout Subsection
5290 \begin_inset Index idx
5293 \begin_layout Plain Layout
5294 Longtables ! Alignment
5302 \begin_layout Standard
5303 Longtables are by default centered.
5304 Unlike the alignment of the table columns and rows, the table alignment
5305 can currently not be changed in the table dialog.
5306 To change the alignment of longtables you have to change the value of the
5319 by inserting this line as TeX-Code before the corresponding longtable:
5322 \begin_layout Standard
5332 \begin_layout Standard
5333 where the value can have any of the units listed in Table
5334 \begin_inset space ~
5338 \begin_inset CommandInset ref
5340 reference "tab:Units"
5351 controls the horizontal distance from the left page border to the longtable,
5358 the distance from the right side.
5359 The default value for both lengths is
5365 , which is in this case the same as an horizontal fill in LyX.
5368 \begin_layout Standard
5369 The following longtable was left-aligned by setting
5376 \begin_inset space \thinspace{}
5383 \begin_layout Plain Layout
5397 \begin_layout Standard
5398 \begin_inset Tabular
5399 <lyxtabular version="3" rows="5" columns="5">
5400 <features islongtable="true" longtabularalignment="center">
5401 <column alignment="center" valignment="top" width="0">
5402 <column alignment="center" valignment="top" width="0">
5403 <column alignment="center" valignment="top" width="0">
5404 <column alignment="center" valignment="top" width="0">
5405 <column alignment="center" valignment="top" width="0">
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5410 \begin_layout Plain Layout
5416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5419 \begin_layout Plain Layout
5425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5428 \begin_layout Plain Layout
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5446 \begin_layout Plain Layout
5454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5457 \begin_layout Plain Layout
5463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5466 \begin_layout Plain Layout
5472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5475 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5493 \begin_layout Plain Layout
5501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5504 \begin_layout Plain Layout
5510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5513 \begin_layout Plain Layout
5519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5522 \begin_layout Plain Layout
5528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5531 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5540 \begin_layout Plain Layout
5548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5551 \begin_layout Plain Layout
5557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5560 \begin_layout Plain Layout
5566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5569 \begin_layout Plain Layout
5575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5587 \begin_layout Plain Layout
5595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5598 \begin_layout Plain Layout
5604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5607 \begin_layout Plain Layout
5613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5616 \begin_layout Plain Layout
5622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5625 \begin_layout Plain Layout
5631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5634 \begin_layout Plain Layout
5649 \begin_layout Plain Layout
5666 \begin_layout Plain Layout
5670 addtocounter{table}{-1}
5676 \begin_inset Note Note
5679 \begin_layout Plain Layout
5680 See the first greyed-out note in section
5681 \begin_inset space ~
5685 \begin_inset CommandInset ref
5687 reference "sub:Longtable-Captions"
5691 for an explanation of this command.
5699 \begin_layout Subsection
5701 \begin_inset Index idx
5704 \begin_layout Plain Layout
5705 Longtables ! Captions
5711 \begin_inset CommandInset label
5713 name "sub:Longtable-Captions"
5720 \begin_layout Standard
5721 A longtable cannot be put into a table float because floats can only be
5723 But the caption environment of floats can also be used for longtables when
5724 you use the longtable option
5728 as described in sec.
5729 \begin_inset space \thinspace{}
5733 \begin_inset CommandInset ref
5735 reference "sec:Longtables"
5740 Only one table row can contain the caption.
5743 \begin_layout Standard
5744 Here is a short longtable to see how it works:
5747 \begin_layout Standard
5748 \begin_inset Tabular
5749 <lyxtabular version="3" rows="6" columns="5">
5750 <features islongtable="true" longtabularalignment="center">
5751 <column alignment="center" valignment="top" width="0">
5752 <column alignment="center" valignment="top" width="0">
5753 <column alignment="center" valignment="top" width="0">
5754 <column alignment="center" valignment="top" width="0">
5755 <column alignment="center" valignment="top" width="0">
5756 <row caption="true">
5757 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5760 \begin_layout Plain Layout
5761 \begin_inset Caption
5763 \begin_layout Plain Layout
5764 Longtable with caption
5765 \begin_inset Argument
5768 \begin_layout Plain Layout
5784 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5787 \begin_layout Plain Layout
5793 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5796 \begin_layout Plain Layout
5802 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5805 \begin_layout Plain Layout
5811 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5814 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Plain Layout
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5861 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5881 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5890 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5899 \begin_layout Plain Layout
5905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5908 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5928 \begin_layout Plain Layout
5934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5937 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5946 \begin_layout Plain Layout
5952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5955 \begin_layout Plain Layout
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Plain Layout
5972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5975 \begin_layout Plain Layout
5981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5984 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5993 \begin_layout Plain Layout
5999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6002 \begin_layout Plain Layout
6010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6013 \begin_layout Plain Layout
6019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6022 \begin_layout Plain Layout
6028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6031 \begin_layout Plain Layout
6037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6040 \begin_layout Plain Layout
6046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6049 \begin_layout Plain Layout
6063 \begin_layout Standard
6064 \begin_inset VSpace medskip
6068 \begin_inset Note Greyedout
6071 \begin_layout Plain Layout
6075 \begin_inset space ~
6080 The table number is increased for for every longtable, even if you did
6081 not set a caption for it.
6082 For this reason you could have the case that e.
6083 \begin_inset space \thinspace{}
6087 \begin_inset space \space{}
6091 \begin_inset space ~
6095 \begin_inset space ~
6098 2.1 in the list of tables if there are two longtables without captions.
6099 To avoid this you can add the following command in TeX-Code after every
6100 longtable without a caption:
6103 \begin_layout Plain Layout
6108 addtocounter{table}{-1}
6111 \begin_layout Plain Layout
6112 This is not needed when none of your longtables have a caption and you add
6113 the following code to the document preamble:
6116 \begin_layout Plain Layout
6126 \begin_inset Newline newline
6137 addtocounter{table}{-1}}
6145 \begin_layout Standard
6146 \begin_inset Note Greyedout
6149 \begin_layout Plain Layout
6153 \begin_inset space ~
6163 \begin_inset Index idx
6166 \begin_layout Plain Layout
6167 LaTeX-packages ! hyperref
6180 dialog to link cross-references, the link to a longtable caption will always
6181 point to the beginning of the document.
6189 \begin_layout Subsubsection
6190 References to Longtables
6191 \begin_inset Index idx
6194 \begin_layout Plain Layout
6195 Longtables ! References
6203 \begin_layout Standard
6204 \begin_inset Tabular
6205 <lyxtabular version="3" rows="6" columns="5">
6206 <features islongtable="true" longtabularalignment="center">
6207 <column alignment="center" valignment="top" width="0">
6208 <column alignment="center" valignment="top" width="0">
6209 <column alignment="center" valignment="top" width="0">
6210 <column alignment="center" valignment="top" width="0">
6211 <column alignment="center" valignment="top" width="0">
6212 <row caption="true">
6213 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6216 \begin_layout Plain Layout
6217 \begin_inset Caption
6219 \begin_layout Plain Layout
6220 Referenced longtable
6221 \begin_inset CommandInset label
6223 name "tab:RefExample"
6237 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6240 \begin_layout Plain Layout
6246 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6267 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6314 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6334 \begin_layout Plain Layout
6340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6343 \begin_layout Plain Layout
6349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6352 \begin_layout Plain Layout
6358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6361 \begin_layout Plain Layout
6369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6372 \begin_layout Plain Layout
6378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6381 \begin_layout Plain Layout
6387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6390 \begin_layout Plain Layout
6396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6399 \begin_layout Plain Layout
6405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6408 \begin_layout Plain Layout
6416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6419 \begin_layout Plain Layout
6425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6428 \begin_layout Plain Layout
6434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6437 \begin_layout Plain Layout
6443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6446 \begin_layout Plain Layout
6452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6455 \begin_layout Plain Layout
6463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6466 \begin_layout Plain Layout
6472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6475 \begin_layout Plain Layout
6481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6484 \begin_layout Plain Layout
6490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6493 \begin_layout Plain Layout
6499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6502 \begin_layout Plain Layout
6516 \begin_layout Standard
6517 To reference a longtable, insert a label into the caption.
6520 \begin_layout Standard
6521 This is a reference to Table
6522 \begin_inset space ~
6526 \begin_inset CommandInset ref
6528 reference "tab:RefExample"
6535 \begin_layout Standard
6536 The caption layout can be set together with all other captions of your document
6537 using the LaTeX-package
6542 \begin_inset Index idx
6545 \begin_layout Plain Layout
6546 LaTeX-packages ! caption
6552 \begin_inset space ~
6556 \begin_inset CommandInset ref
6558 reference "sec:Caption-Formatting"
6565 \begin_layout Subsubsection
6567 \begin_inset Index idx
6570 \begin_layout Plain Layout
6571 Longtables ! Caption Width
6579 \begin_layout Standard
6580 The maximal width of of caption lines is defined by the length
6587 Its default value is 4
6588 \begin_inset space \thinspace{}
6592 To change it add the following command to your document preamble or as
6593 TeX-Code into your document before the longtable that should be affected
6596 \begin_layout Standard
6606 \begin_layout Standard
6607 where the width could have one of the units listed in appendix
6608 \begin_inset space ~
6612 \begin_inset CommandInset ref
6614 reference "cha:Units-available-in"
6621 \begin_layout Standard
6622 The following tables show the difference:
6625 \begin_layout Standard
6626 \begin_inset Tabular
6627 <lyxtabular version="3" rows="6" columns="5">
6628 <features islongtable="true" longtabularalignment="center">
6629 <column alignment="center" valignment="top" width="0">
6630 <column alignment="center" valignment="top" width="0">
6631 <column alignment="center" valignment="top" width="0">
6632 <column alignment="center" valignment="top" width="0">
6633 <column alignment="center" valignment="top" width="0">
6634 <row caption="true">
6635 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6638 \begin_layout Plain Layout
6639 \begin_inset Caption
6641 \begin_layout Plain Layout
6642 long full title with default width long full title with default width long
6643 full title with default width
6644 \begin_inset Argument
6647 \begin_layout Plain Layout
6648 caption with default width
6663 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6798 \begin_layout Plain Layout
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6807 \begin_layout Plain Layout
6813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6816 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Plain Layout
6831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6834 \begin_layout Plain Layout
6842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6845 \begin_layout Plain Layout
6851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6854 \begin_layout Plain Layout
6860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6863 \begin_layout Plain Layout
6869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6872 \begin_layout Plain Layout
6878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6881 \begin_layout Plain Layout
6889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6892 \begin_layout Plain Layout
6898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6901 \begin_layout Plain Layout
6907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6910 \begin_layout Plain Layout
6916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6919 \begin_layout Plain Layout
6925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6928 \begin_layout Plain Layout
6942 \begin_layout Standard
6946 \begin_layout Plain Layout
6958 \begin_inset Tabular
6959 <lyxtabular version="3" rows="6" columns="5">
6960 <features islongtable="true" longtabularalignment="center">
6961 <column alignment="center" valignment="top" width="0">
6962 <column alignment="center" valignment="top" width="0">
6963 <column alignment="center" valignment="top" width="0">
6964 <column alignment="center" valignment="top" width="0">
6965 <column alignment="center" valignment="top" width="0">
6966 <row caption="true">
6967 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6970 \begin_layout Plain Layout
6971 \begin_inset Caption
6973 \begin_layout Plain Layout
6974 long full title with width set to 5
6975 \begin_inset space \thinspace{}
6978 cm long full title with width set to 5
6979 \begin_inset space \thinspace{}
6982 cm long full title with width set to 5
6983 \begin_inset space \thinspace{}
6987 \begin_inset Argument
6990 \begin_layout Plain Layout
6992 \begin_inset space \thinspace{}
6996 \begin_inset space \thinspace{}
7000 \begin_inset space \thinspace{}
7018 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7048 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7095 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7142 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7189 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7218 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7227 \begin_layout Plain Layout
7233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7236 \begin_layout Plain Layout
7244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7247 \begin_layout Plain Layout
7253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7256 \begin_layout Plain Layout
7262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7265 \begin_layout Plain Layout
7271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7274 \begin_layout Plain Layout
7280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7283 \begin_layout Plain Layout
7297 \begin_layout Standard
7301 \begin_layout Plain Layout
7315 \begin_layout Standard
7316 \begin_inset Note Greyedout
7319 \begin_layout Plain Layout
7324 When the LaTeX-package
7329 \begin_inset Index idx
7332 \begin_layout Plain Layout
7333 LaTeX-packages ! caption
7338 is used, as in this document, the full page width is used for the caption
7339 when you use the default value of 4
7340 \begin_inset space \thinspace{}
7350 To get in this case exactly a 4
7351 \begin_inset space \thinspace{}
7354 in wide caption, you can either use a value slightly different from 4.0
7355 \begin_inset space \thinspace{}
7359 \begin_inset space \thinspace{}
7363 \begin_inset space \space{}
7367 \begin_inset space \thinspace{}
7370 in, or the LaTeX-command
7374 captionsetup{width=value}
7376 that is provided by the
7388 \begin_layout Subsubsection
7389 Different Captions for Table Pages
7390 \begin_inset Index idx
7393 \begin_layout Plain Layout
7394 Longtables ! Different Captions for Pages
7402 \begin_layout Standard
7403 When the table captions for the following pages should differ from the one
7404 of the first table page, insert a caption with the TeX code command
7407 \begin_layout Standard
7412 caption*{caption text}
7419 \begin_layout Standard
7420 in a dummy caption row that is marked as a header.
7422 \begin_inset space ~
7426 \begin_inset CommandInset ref
7428 reference "tab:DiffCaptions"
7432 is an example of a longtable with different heading where the second caption
7433 doesn't include the table number.
7436 \begin_layout Standard
7438 \begin_inset Tabular
7439 <lyxtabular version="3" rows="59" columns="3">
7440 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7441 <column alignment="left" valignment="top" width="0cm">
7442 <column alignment="left" valignment="top" width="0pt">
7443 <column alignment="center" valignment="top" width="0pt">
7444 <row caption="true">
7445 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7448 \begin_layout Plain Layout
7449 \begin_inset Caption
7451 \begin_layout Plain Layout
7453 \begin_inset CommandInset label
7455 name "tab:DiffCaptions"
7460 \begin_inset Argument
7463 \begin_layout Plain Layout
7479 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7482 \begin_layout Plain Layout
7488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7491 \begin_layout Plain Layout
7498 <row endfirsthead="true">
7499 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7502 \begin_layout Plain Layout
7505 Example Phone List (ignore the names)
7510 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7513 \begin_layout Plain Layout
7519 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7522 \begin_layout Plain Layout
7529 <row endfirsthead="true">
7530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7533 \begin_layout Plain Layout
7541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7553 \begin_layout Plain Layout
7562 <row endhead="true">
7563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7566 \begin_layout Plain Layout
7570 \begin_layout Plain Layout
7574 caption*{Continued Example Phone List}
7588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7591 \begin_layout Plain Layout
7597 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7600 \begin_layout Plain Layout
7607 <row endhead="true">
7608 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Plain Layout
7619 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7622 \begin_layout Plain Layout
7628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7631 \begin_layout Plain Layout
7638 <row endhead="true">
7639 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7642 \begin_layout Plain Layout
7650 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7653 \begin_layout Plain Layout
7659 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7662 \begin_layout Plain Layout
7671 <row endfoot="true">
7672 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7675 \begin_layout Plain Layout
7676 continued on next page
7681 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7684 \begin_layout Plain Layout
7690 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7693 \begin_layout Plain Layout
7701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7704 \begin_layout Plain Layout
7712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7715 \begin_layout Plain Layout
7721 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7724 \begin_layout Plain Layout
7732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7735 \begin_layout Plain Layout
7743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7746 \begin_layout Plain Layout
7752 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7755 \begin_layout Plain Layout
7763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7766 \begin_layout Plain Layout
7774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7777 \begin_layout Plain Layout
7783 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7786 \begin_layout Plain Layout
7794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7797 \begin_layout Plain Layout
7805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7808 \begin_layout Plain Layout
7814 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7817 \begin_layout Plain Layout
7825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7828 \begin_layout Plain Layout
7836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7839 \begin_layout Plain Layout
7845 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7848 \begin_layout Plain Layout
7856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7859 \begin_layout Plain Layout
7867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7870 \begin_layout Plain Layout
7876 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7879 \begin_layout Plain Layout
7887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7890 \begin_layout Plain Layout
7898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7901 \begin_layout Plain Layout
7907 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7910 \begin_layout Plain Layout
7918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7921 \begin_layout Plain Layout
7929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7932 \begin_layout Plain Layout
7938 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7941 \begin_layout Plain Layout
7949 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7952 \begin_layout Plain Layout
7960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7963 \begin_layout Plain Layout
7969 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7972 \begin_layout Plain Layout
7980 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7983 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7994 \begin_layout Plain Layout
8000 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8003 \begin_layout Plain Layout
8011 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8014 \begin_layout Plain Layout
8022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8025 \begin_layout Plain Layout
8031 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8034 \begin_layout Plain Layout
8042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8045 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8056 \begin_layout Plain Layout
8062 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8065 \begin_layout Plain Layout
8073 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8076 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8087 \begin_layout Plain Layout
8093 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8096 \begin_layout Plain Layout
8104 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8107 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8118 \begin_layout Plain Layout
8124 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8127 \begin_layout Plain Layout
8135 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8138 \begin_layout Plain Layout
8147 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8418 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8429 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8440 \begin_layout Plain Layout
8446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8449 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8477 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8480 \begin_layout Plain Layout
8488 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8491 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8502 \begin_layout Plain Layout
8508 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8511 \begin_layout Plain Layout
8519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8522 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8533 \begin_layout Plain Layout
8539 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8542 \begin_layout Plain Layout
8550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8553 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8564 \begin_layout Plain Layout
8570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8573 \begin_layout Plain Layout
8581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8584 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8595 \begin_layout Plain Layout
8601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8604 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8626 \begin_layout Plain Layout
8632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8635 \begin_layout Plain Layout
8643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8657 \begin_layout Plain Layout
8663 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8666 \begin_layout Plain Layout
8674 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8677 \begin_layout Plain Layout
8683 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8686 \begin_layout Plain Layout
8692 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8695 \begin_layout Plain Layout
8703 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8706 \begin_layout Plain Layout
8714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8717 \begin_layout Plain Layout
8723 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8726 \begin_layout Plain Layout
8734 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8737 \begin_layout Plain Layout
8745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8748 \begin_layout Plain Layout
8754 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8757 \begin_layout Plain Layout
8765 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8768 \begin_layout Plain Layout
8776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8779 \begin_layout Plain Layout
8785 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8788 \begin_layout Plain Layout
8796 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8799 \begin_layout Plain Layout
8807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8810 \begin_layout Plain Layout
8816 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8819 \begin_layout Plain Layout
8827 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8830 \begin_layout Plain Layout
8838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8841 \begin_layout Plain Layout
8847 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8850 \begin_layout Plain Layout
8858 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8861 \begin_layout Plain Layout
8869 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8872 \begin_layout Plain Layout
8878 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8881 \begin_layout Plain Layout
8889 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8892 \begin_layout Plain Layout
8900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8903 \begin_layout Plain Layout
8909 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8912 \begin_layout Plain Layout
8920 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8923 \begin_layout Plain Layout
8931 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8934 \begin_layout Plain Layout
8940 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8943 \begin_layout Plain Layout
8951 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8954 \begin_layout Plain Layout
8962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8965 \begin_layout Plain Layout
8971 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8974 \begin_layout Plain Layout
8982 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8996 \begin_layout Plain Layout
9002 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9005 \begin_layout Plain Layout
9013 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9027 \begin_layout Plain Layout
9033 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9036 \begin_layout Plain Layout
9044 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9058 \begin_layout Plain Layout
9064 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9067 \begin_layout Plain Layout
9075 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9078 \begin_layout Plain Layout
9086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9089 \begin_layout Plain Layout
9095 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9098 \begin_layout Plain Layout
9106 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9109 \begin_layout Plain Layout
9117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9120 \begin_layout Plain Layout
9126 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9129 \begin_layout Plain Layout
9137 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9140 \begin_layout Plain Layout
9148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9151 \begin_layout Plain Layout
9157 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9160 \begin_layout Plain Layout
9168 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9171 \begin_layout Plain Layout
9179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9182 \begin_layout Plain Layout
9188 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9191 \begin_layout Plain Layout
9199 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9202 \begin_layout Plain Layout
9210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9213 \begin_layout Plain Layout
9219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9222 \begin_layout Plain Layout
9230 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9233 \begin_layout Plain Layout
9241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9244 \begin_layout Plain Layout
9250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9253 \begin_layout Plain Layout
9261 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9264 \begin_layout Plain Layout
9272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9275 \begin_layout Plain Layout
9281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9284 \begin_layout Plain Layout
9292 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9295 \begin_layout Plain Layout
9303 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9306 \begin_layout Plain Layout
9312 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9315 \begin_layout Plain Layout
9329 \begin_layout Section
9330 Special Longtable Issues
9331 \begin_inset CommandInset label
9333 name "sec:Special-Longtable-Issues"
9340 \begin_layout Subsection
9341 Longtable Calculation
9342 \begin_inset Index idx
9345 \begin_layout Plain Layout
9346 Longtables ! Calculation
9354 \begin_layout Standard
9355 LaTeX calculates the height of table pages and their page breaks using so
9357 Chunks are parts of tables that held at the same time in LaTeX's memory.
9358 The default value was historically set to only 20 table rows.
9359 If you are using longtables with many pages this may slow down the creation
9361 You can safely increase the chunk size to values of 100-1000 by adding
9362 this command line to your document preamble:
9365 \begin_layout Standard
9370 setcounter{LTchunksize}{100}
9373 \begin_layout Subsection
9374 Floats and Longtables
9375 \begin_inset Index idx
9378 \begin_layout Plain Layout
9387 \begin_layout Standard
9388 There might be problems when a float appears on the same page where a longtable
9390 To avoid such a situation, insert a
9391 \begin_inset Quotes eld
9395 \begin_inset Quotes erd
9400 Insert\SpecialChar \menuseparator
9401 Formatting\SpecialChar \menuseparator
9403 \begin_inset space ~
9408 ) before your longtable.
9411 \begin_layout Subsection
9413 \begin_inset Index idx
9416 \begin_layout Plain Layout
9417 Longtables ! Forced Page Breaks
9425 \begin_layout Standard
9426 By default tables are only broken between rows.
9427 If you have a cell with multiples lines and want to have a page break within
9428 the cell, insert the new line command
9429 \begin_inset Quotes eld
9441 \begin_inset Quotes erd
9444 as TeX-Code at the point of the cell where it can be broken.
9453 command you have to insert in TeX-Code as many
9454 \begin_inset Quotes eld
9462 \begin_inset Quotes erd
9465 characters as the number of the following table columns.
9470 is the character to separate table cells.
9471 Write in TeX-Code after each
9475 the content of the corresponding following cell and delete the content
9477 \begin_inset Newline newline
9488 command, insert as many
9492 characters as the number of table columns before the current column.
9494 \begin_inset space ~
9498 \begin_inset CommandInset ref
9500 reference "tab:ForcedPagebreak"
9504 the cell that should be broken is in the second column followed by another
9506 Therefore the following command was inserted in the cell as TeX-Code after
9508 \begin_inset Quotes eld
9516 \begin_inset Quotes erd
9522 \begin_layout Standard
9532 \begin_inset Newline newline
9538 \begin_layout Standard
9540 \begin_inset Quotes eld
9544 \begin_inset Quotes erd
9547 in the third column of the row was deleted.
9554 is only needed when a page break should definitely occur at this position,
9555 otherwise it would be a conditional break.
9556 If your footer row of the longtable has for a certain reason no upper line
9557 but you would have a horizontal line where the cell is broken, use this
9561 \begin_layout Standard
9569 \begin_inset Newline newline
9577 \begin_layout Standard
9578 When the cell to be broken is in the last column, the command
9581 \begin_layout Standard
9591 \begin_layout Standard
9592 must be inserted as TeX-Code at the beginning of the cell.
9593 This ensures that the part of the cell that will be displayed on the new
9594 page appears with the full width.
9597 \begin_layout Standard
9599 \begin_inset Tabular
9600 <lyxtabular version="3" rows="38" columns="3">
9601 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9602 <column alignment="left" valignment="top" width="0cm">
9603 <column alignment="left" valignment="top" width="3cm">
9604 <column alignment="center" valignment="top" width="0pt">
9605 <row caption="true">
9606 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9609 \begin_layout Plain Layout
9610 \begin_inset Caption
9612 \begin_layout Plain Layout
9613 Table with forced page break in table cell
9614 \begin_inset CommandInset label
9616 name "tab:ForcedPagebreak"
9621 \begin_inset Argument
9624 \begin_layout Plain Layout
9625 Table with forced page break in table cell
9640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9643 \begin_layout Plain Layout
9649 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9652 \begin_layout Plain Layout
9659 <row endfirsthead="true">
9660 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9663 \begin_layout Plain Layout
9666 Example Phone List (ignore the names)
9671 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9674 \begin_layout Plain Layout
9680 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9683 \begin_layout Plain Layout
9690 <row endfirsthead="true">
9691 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9694 \begin_layout Plain Layout
9702 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9705 \begin_layout Plain Layout
9711 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9714 \begin_layout Plain Layout
9723 <row endhead="true">
9724 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9727 \begin_layout Plain Layout
9731 \begin_layout Plain Layout
9735 caption*{Continued Example Phone List}
9749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9752 \begin_layout Plain Layout
9758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9761 \begin_layout Plain Layout
9768 <row endhead="true">
9769 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9772 \begin_layout Plain Layout
9780 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9783 \begin_layout Plain Layout
9789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9792 \begin_layout Plain Layout
9799 <row endhead="true">
9800 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9803 \begin_layout Plain Layout
9811 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9814 \begin_layout Plain Layout
9820 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9823 \begin_layout Plain Layout
9832 <row endfoot="true">
9833 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9836 \begin_layout Plain Layout
9837 continued on next page
9842 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9845 \begin_layout Plain Layout
9851 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9854 \begin_layout Plain Layout
9862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9865 \begin_layout Plain Layout
9873 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9876 \begin_layout Plain Layout
9882 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9885 \begin_layout Plain Layout
9893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9896 \begin_layout Plain Layout
9904 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9907 \begin_layout Plain Layout
9913 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9916 \begin_layout Plain Layout
9924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9927 \begin_layout Plain Layout
9935 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9944 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9958 \begin_layout Plain Layout
9966 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9975 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9978 \begin_layout Plain Layout
9986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9989 \begin_layout Plain Layout
9997 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10000 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10009 \begin_layout Plain Layout
10017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10020 \begin_layout Plain Layout
10028 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10031 \begin_layout Plain Layout
10037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10040 \begin_layout Plain Layout
10048 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10051 \begin_layout Plain Layout
10059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10062 \begin_layout Plain Layout
10068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10071 \begin_layout Plain Layout
10079 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10082 \begin_layout Plain Layout
10090 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10093 \begin_layout Plain Layout
10099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10102 \begin_layout Plain Layout
10110 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10113 \begin_layout Plain Layout
10121 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10124 \begin_layout Plain Layout
10130 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10133 \begin_layout Plain Layout
10141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10144 \begin_layout Plain Layout
10152 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10155 \begin_layout Plain Layout
10161 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10164 \begin_layout Plain Layout
10172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10175 \begin_layout Plain Layout
10183 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10186 \begin_layout Plain Layout
10192 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10195 \begin_layout Plain Layout
10203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10206 \begin_layout Plain Layout
10214 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10217 \begin_layout Plain Layout
10223 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10226 \begin_layout Plain Layout
10234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10237 \begin_layout Plain Layout
10245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10248 \begin_layout Plain Layout
10254 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10257 \begin_layout Plain Layout
10265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10268 \begin_layout Plain Layout
10276 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10279 \begin_layout Plain Layout
10285 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10288 \begin_layout Plain Layout
10296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10299 \begin_layout Plain Layout
10307 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10310 \begin_layout Plain Layout
10316 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10319 \begin_layout Plain Layout
10327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10330 \begin_layout Plain Layout
10338 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10341 \begin_layout Plain Layout
10347 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10350 \begin_layout Plain Layout
10358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10361 \begin_layout Plain Layout
10369 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10372 \begin_layout Plain Layout
10378 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10381 \begin_layout Plain Layout
10389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10392 \begin_layout Plain Layout
10400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10403 \begin_layout Plain Layout
10409 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10412 \begin_layout Plain Layout
10420 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10423 \begin_layout Plain Layout
10431 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10434 \begin_layout Plain Layout
10440 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10443 \begin_layout Plain Layout
10451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10454 \begin_layout Plain Layout
10462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10465 \begin_layout Plain Layout
10471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10474 \begin_layout Plain Layout
10482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10485 \begin_layout Plain Layout
10493 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10496 \begin_layout Plain Layout
10502 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10505 \begin_layout Plain Layout
10513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10516 \begin_layout Plain Layout
10524 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10527 \begin_layout Plain Layout
10533 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10536 \begin_layout Plain Layout
10544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10547 \begin_layout Plain Layout
10555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10558 \begin_layout Plain Layout
10560 Fürst von Montecompatri, 11.
10561 Fürst von Sulmona und Vivaro, 10.
10562 Fürst von Rossano, 5.
10563 Herzog von Canemorte, 11.
10564 Herzog von Palombara, 5.
10565 Herzog von Castelchiodato,
10569 \begin_layout Plain Layout
10580 \begin_layout Plain Layout
10588 Herzog von Poggionativo, 11.
10589 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10590 Graf von Valinfreda, 11.
10591 Baron von Cropalati, 11.
10592 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
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" bottomline="true" leftline="true" usebox="none">
10828 \begin_layout Plain Layout
10836 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10839 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10848 \begin_layout Plain Layout
10862 \begin_layout Section
10863 Multiple Lines Columns and Rows
10866 \begin_layout Subsection
10867 Multiple Lines in Table Cells
10868 \begin_inset CommandInset label
10870 name "sub:Multiple-Lines-in"
10875 \begin_inset Index idx
10878 \begin_layout Plain Layout
10879 Multiple Lines in Table Cells
10885 \begin_inset Index idx
10888 \begin_layout Plain Layout
10897 \begin_layout Standard
10899 \begin_inset Float table
10905 \begin_layout Plain Layout
10906 \begin_inset Caption
10908 \begin_layout Plain Layout
10909 \begin_inset CommandInset label
10911 name "tab:Table-with-multiple"
10915 Table with multiple lines in cells
10923 \begin_layout Plain Layout
10925 \begin_inset Tabular
10926 <lyxtabular version="3" rows="3" columns="3">
10927 <features tabularvalignment="middle">
10928 <column alignment="center" valignment="middle" width="2.5cm">
10929 <column alignment="center" valignment="middle" width="0">
10930 <column alignment="center" valignment="middle" width="0">
10932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10935 \begin_layout Plain Layout
10937 \begin_inset Newline linebreak
10945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10948 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10977 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
10994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10997 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11006 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11015 \begin_layout Plain Layout
11034 \begin_layout Standard
11035 Setting a fixed width for a column enables you to enter text as a paragraph
11036 with multiple lines and hyphenation.
11039 \begin_layout Standard
11041 \begin_inset space ~
11045 \begin_inset CommandInset ref
11047 reference "tab:Table-with-multiple"
11051 , create a 3×3 table, mark the first cell and right-click on it.
11052 In the appearing table dialog we set a cell width of 2.5
11053 \begin_inset space \thinspace{}
11056 cm and choose centered for the vertical and horizontal alignment.
11057 The vertical alignment is used for all cells of the row.
11058 As our text is smaller than 2.5
11059 \begin_inset space \thinspace{}
11062 cm, only one line will appear.
11063 To get two lines, a justified line break (shortcut
11066 arg "newline-insert linebreak"
11070 If the text is wider than the set cell width, it will automatically be
11071 broken to several lines.
11074 \begin_layout Standard
11075 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11076 by LaTeX if it is the first entry.
11077 Therefore you need to insert something to prevent the word not being the
11079 So add a horizontal space of 0
11080 \begin_inset space \thinspace{}
11083 pt before the word.
11084 As the space is zero, it doesn't change the output.
11086 \begin_inset space ~
11090 \begin_inset CommandInset ref
11092 reference "tab:Table-with-and"
11099 \begin_layout Standard
11100 \begin_inset Float table
11106 \begin_layout Plain Layout
11107 \begin_inset Caption
11109 \begin_layout Plain Layout
11110 \begin_inset CommandInset label
11112 name "tab:Table-with-and"
11116 Table with and without hyphenation
11124 \begin_layout Plain Layout
11125 \begin_inset space \hfill{}
11129 \begin_inset Tabular
11130 <lyxtabular version="3" rows="3" columns="3">
11131 <features tabularvalignment="middle">
11132 <column alignment="center" valignment="middle" width="2.5cm">
11133 <column alignment="center" valignment="middle" width="0">
11134 <column alignment="center" valignment="middle" width="0">
11136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11139 \begin_layout Plain Layout
11140 verylongtablecellword
11145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11148 \begin_layout Plain Layout
11154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11157 \begin_layout Plain Layout
11165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11168 \begin_layout Plain Layout
11174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11177 \begin_layout Plain Layout
11183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11186 \begin_layout Plain Layout
11194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11197 \begin_layout Plain Layout
11203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11206 \begin_layout Plain Layout
11212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11215 \begin_layout Plain Layout
11227 \begin_inset space \hfill{}
11231 \begin_inset Tabular
11232 <lyxtabular version="3" rows="3" columns="3">
11233 <features tabularvalignment="middle">
11234 <column alignment="center" valignment="middle" width="2.5cm">
11235 <column alignment="center" valignment="middle" width="0">
11236 <column alignment="center" valignment="middle" width="0">
11238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11241 \begin_layout Plain Layout
11242 \begin_inset space \hspace{}
11246 verylongtablecellword
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11254 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11263 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11283 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11292 \begin_layout Plain Layout
11300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11303 \begin_layout Plain Layout
11309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11312 \begin_layout Plain Layout
11318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11321 \begin_layout Plain Layout
11333 \begin_inset space \hfill{}
11344 \begin_layout Subsection
11346 \begin_inset CommandInset label
11348 name "sub:Multicolumns"
11353 \begin_inset Index idx
11356 \begin_layout Plain Layout
11363 \begin_inset Index idx
11366 \begin_layout Plain Layout
11367 Table ! Multicolumns
11375 \begin_layout Subsubsection
11379 \begin_layout Standard
11380 To merge cells over multiple columns, select as many cells within a row
11381 as you want to merge and use either the table-toolbar button
11382 \begin_inset Graphics
11383 filename ../images/tabular-feature_multicolumn.png
11385 scaleBeforeRotation
11391 Edit\SpecialChar \menuseparator
11392 Table\SpecialChar \menuseparator
11395 , or right click on the marked cells and choose
11399 in the appearing context menu.
11402 \begin_layout Standard
11403 Multicolumns have there own cell settings.
11404 That means changing cell borders, cell alignment, and the width only affects
11406 Here is an example table with a multicolumn cell in the first row and one
11407 in the last row without the upper border:
11410 \begin_layout Standard
11412 \begin_inset Tabular
11413 <lyxtabular version="3" rows="3" columns="4">
11414 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11415 <column alignment="center" valignment="top" width="0pt">
11416 <column alignment="center" valignment="middle" width="0">
11417 <column alignment="center" valignment="top" width="0in">
11418 <column alignment="center" valignment="top" width="0pt">
11420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11423 \begin_layout Plain Layout
11429 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11432 \begin_layout Plain Layout
11438 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11441 \begin_layout Plain Layout
11447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11450 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11479 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11488 \begin_layout Plain Layout
11494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11497 \begin_layout Plain Layout
11505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11508 \begin_layout Plain Layout
11514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11517 \begin_layout Plain Layout
11523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11526 \begin_layout Plain Layout
11532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11535 \begin_layout Plain Layout
11549 \begin_layout Subsubsection
11550 Multicolumn Calculations
11551 \begin_inset CommandInset label
11553 name "sub:Multicolumn-Calculations"
11558 \begin_inset Index idx
11561 \begin_layout Plain Layout
11562 Multicolumns ! Calculations
11570 \begin_layout Standard
11571 LyX supports multicolumns directly, but we have to take account of the cell
11572 width of the columns spanned by the multicolumn cell.
11575 \begin_layout Standard
11576 \begin_inset Float table
11582 \begin_layout Plain Layout
11583 \begin_inset Caption
11585 \begin_layout Plain Layout
11586 \begin_inset CommandInset label
11588 name "tab:Table-with-centered"
11592 Table with centered multicolumn text above two columns that have exactly
11593 half the width of the multicolumn cell
11594 \begin_inset Argument
11597 \begin_layout Plain Layout
11598 Perfect multicolumn table
11611 \begin_layout Plain Layout
11613 \begin_inset Tabular
11614 <lyxtabular version="3" rows="3" columns="3">
11615 <features tabularvalignment="middle">
11616 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11617 <column alignment="center" valignment="middle" width="0">
11618 <column alignment="center" valignment="top" width="0">
11620 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11623 \begin_layout Plain Layout
11624 multiple lines multicolumn
11629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11632 \begin_layout Plain Layout
11638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11641 \begin_layout Plain Layout
11649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11652 \begin_layout Plain Layout
11658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11661 \begin_layout Plain Layout
11667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11670 \begin_layout Plain Layout
11678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11681 \begin_layout Plain Layout
11687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11690 \begin_layout Plain Layout
11696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11699 \begin_layout Plain Layout
11718 \begin_layout Standard
11719 To create for example Table
11720 \begin_inset space ~
11724 \begin_inset CommandInset ref
11726 reference "tab:Table-with-centered"
11730 , mark the first two cells in the first row of a 3×3 table and right-click
11732 Now choose for this cell
11741 \begin_inset space \thinspace{}
11744 cm in the table dialog.
11745 The merged columns should have exactly half the width of the multicolumn
11746 cell, so that you would set a width of 1.25
11747 \begin_inset space \thinspace{}
11750 cm for the first column.
11751 The second column has then automatically a width of 1.25
11752 \begin_inset space \thinspace{}
11755 cm (multicolumn width - width of first column).
11756 This was done for Table
11757 \begin_inset space ~
11761 \begin_inset CommandInset ref
11763 reference "tab:Table-without-half"
11770 \begin_layout Standard
11771 \begin_inset Float table
11776 \begin_layout Plain Layout
11777 \begin_inset Caption
11779 \begin_layout Plain Layout
11780 \begin_inset CommandInset label
11782 name "tab:Table-without-half"
11786 Table where the spanned table columns are not exactly half the width of
11787 the multicolumn cell
11788 \begin_inset Argument
11791 \begin_layout Plain Layout
11792 Imperfect multicolumn table
11805 \begin_layout Plain Layout
11807 \begin_inset Tabular
11808 <lyxtabular version="3" rows="3" columns="3">
11809 <features tabularvalignment="middle">
11810 <column alignment="center" valignment="top" width="1.25cm">
11811 <column alignment="center" valignment="top" width="0">
11812 <column alignment="center" valignment="top" width="0">
11814 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11817 \begin_layout Plain Layout
11818 multiple lines multicolumn
11823 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11826 \begin_layout Plain Layout
11832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11835 \begin_layout Plain Layout
11843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11846 \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" rightline="true" usebox="none">
11864 \begin_layout Plain Layout
11872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11875 \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 alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11893 \begin_layout Plain Layout
11912 \begin_layout Standard
11913 You can see that the first column is not half the width of the multicolumn
11914 cell, it is a bit bigger.
11915 The reason is that the specified width of a cell
11916 \begin_inset Formula $W_{g}$
11919 is not its total width
11920 \begin_inset Formula $W_{\mathrm{tot}}$
11923 because a cell is always a bit larger than specified.
11925 \begin_inset space ~
11929 \begin_inset CommandInset ref
11931 reference "cha:Explanation-of-Equation"
11935 explains this in detail.
11938 \begin_layout Standard
11940 \begin_inset Formula $W_{g\, n}$
11943 which the user needs to set when
11947 columns are spanned can be calculated, so that each column has a total
11949 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11953 \begin_inset Formula \begin{equation}
11954 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11961 \begin_layout Standard
11962 In our case we have
11963 \begin_inset Formula $n=2$
11967 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11970 cm and the default values for the lengths, so that equation
11971 \begin_inset CommandInset ref
11978 \begin_inset Formula \begin{equation}
11979 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11986 \begin_layout Standard
11987 To enable calculations in LaTeX, the LaTeX-package
11991 must be loaded with the document preamble line
11992 \begin_inset Index idx
11995 \begin_layout Plain Layout
11996 LaTeX-packages ! calc
12004 \begin_layout Standard
12012 \begin_layout Standard
12013 LyX does not allow you to calculate lengths in the
12017 field of the table dialog.
12018 Therefore you have to format the column by inserting a LaTeX-argument in
12020 Here is an overview about the arguments:
12023 \begin_layout Itemize
12028 creates cell with a fixed width, its text is vertically top-aligned
12031 \begin_layout Itemize
12036 creates cell with a fixed width, its text is vertically centered
12039 \begin_layout Itemize
12044 creates cell with a fixed width, its text is vertically bottom-aligned
12047 \begin_layout Standard
12048 By entering a LaTeX-argument, all cell settings set in the table dialog
12052 \begin_layout Standard
12053 \begin_inset Note Greyedout
12056 \begin_layout Plain Layout
12061 Due to a bug, LyX shows the overwritten settings anyway.
12069 \begin_layout Standard
12070 As the text should be horizontally centered, the command
12077 You can now enter the following LaTeX-argument for the first spanned column:
12080 \begin_layout Standard
12085 centering}m{1.25cm-6.2pt}
12088 \begin_layout Standard
12093 means, that the commands inside the braces are applied before the cell
12097 \begin_layout Standard
12098 Although we have chosen centered alignment for the text of the multicolumn
12099 cell, it is still left aligned.
12100 This is because LyX only applies the alignment to single columns.
12101 So for the multicolumn cell we have to use the LaTeX-argument
12104 \begin_layout Standard
12112 \begin_layout Subsection
12114 \begin_inset Index idx
12117 \begin_layout Plain Layout
12124 \begin_inset Index idx
12127 \begin_layout Plain Layout
12136 \begin_layout Standard
12137 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12138 TeX-Code needs to be used.
12139 To use multirows load the LaTeX-package
12144 \begin_inset Index idx
12147 \begin_layout Plain Layout
12148 LaTeX-packages ! multirow
12153 in your document preamble with the command
12156 \begin_layout Standard
12161 usepackage{multirow}
12164 \begin_layout Standard
12165 Multirows are created with the command
12168 \begin_layout Standard
12173 multirow{number of rows}{cell width}{cell entry}
12176 \begin_layout Standard
12177 To create the following table:
12180 \begin_layout Standard
12185 \begin_layout Plain Layout
12199 \begin_inset Tabular
12200 <lyxtabular version="3" rows="3" columns="3">
12201 <features tabularvalignment="middle">
12202 <column alignment="center" valignment="top" width="0">
12203 <column alignment="center" valignment="top" width="0">
12204 <column alignment="center" valignment="top" width="0">
12206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12209 \begin_layout Plain Layout
12215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12218 \begin_layout Plain Layout
12224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12227 \begin_layout Plain Layout
12235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12238 \begin_layout Plain Layout
12242 \begin_layout Plain Layout
12246 multirow{2}{2.5cm}{
12255 \begin_layout Plain Layout
12267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12270 \begin_layout Plain Layout
12276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12279 \begin_layout Plain Layout
12287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12290 \begin_layout Plain Layout
12296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12299 \begin_layout Plain Layout
12305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12308 \begin_layout Plain Layout
12323 \begin_layout Plain Layout
12339 \begin_layout Standard
12340 create a 3×3 table.
12341 Unset the upper border of the last cell in the first column.
12342 The multirow is now created in the second row of the first column by inserting
12346 \begin_layout Standard
12351 multirow{2}{2.5cm}{
12354 \begin_layout Standard
12356 According to the command parameters the multirow spans now two rows and
12358 \begin_inset space \thinspace{}
12362 The content of the multirow cell follows outside the TeX-Code box and the
12363 command is finished with a right brace
12367 in another TeX-Code-box after the text.
12370 \begin_layout Standard
12377 left-aligns its content by default.
12378 To override the default, renew the command
12387 \begin_layout Standard
12399 \begin_layout Standard
12400 in TeX-Code in the document preamble.
12401 Then all entries of multirow cells in the document are centered.
12402 If centering is only needed for several tables, you can renew the command
12403 in a TeX-Code box just before the table instead of the preamble.
12404 If the text should be right-aligned, replace
12417 To return to left-alignment
12426 \begin_layout Section
12428 \begin_inset CommandInset label
12430 name "sec:Formal-Tables"
12435 \begin_inset Index idx
12438 \begin_layout Plain Layout
12447 \begin_layout Standard
12448 Tables are often typeset in books similar to Table
12449 \begin_inset space ~
12453 \begin_inset CommandInset ref
12455 reference "tab:Example-booktabs-table"
12460 This kind of tables is called
12461 \begin_inset Quotes eld
12469 \begin_inset Quotes erd
12473 To make a table a formal table use the option
12481 tab of the table dialog.
12484 \begin_layout Standard
12485 \begin_inset Float table
12491 \begin_layout Plain Layout
12492 \begin_inset Caption
12494 \begin_layout Plain Layout
12495 \begin_inset CommandInset label
12497 name "tab:Example-booktabs-table"
12501 Example booktabs-table
12509 \begin_layout Plain Layout
12511 \begin_inset Tabular
12512 <lyxtabular version="3" rows="8" columns="4">
12513 <features booktabs="true" tabularvalignment="middle">
12514 <column alignment="center" valignment="top" width="0">
12515 <column alignment="center" valignment="top" width="0">
12516 <column alignment="center" valignment="top" width="0">
12517 <column alignment="center" valignment="top" width="0">
12519 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12522 \begin_layout Plain Layout
12528 <cell alignment="center" valignment="top" topline="true" usebox="none">
12531 \begin_layout Plain Layout
12533 \begin_inset space \thinspace{}
12541 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12544 \begin_layout Plain Layout
12546 \begin_inset space \thinspace{}
12554 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12557 \begin_layout Plain Layout
12565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12568 \begin_layout Plain Layout
12572 \begin_layout Plain Layout
12585 \begin_layout Plain Layout
12594 Detector thickness in µm
12599 <cell alignment="center" valignment="top" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" usebox="none">
12611 \begin_layout Plain Layout
12617 <cell alignment="center" valignment="top" usebox="none">
12620 \begin_layout Plain Layout
12628 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12631 \begin_layout Plain Layout
12637 <cell alignment="center" valignment="top" topline="true" usebox="none">
12640 \begin_layout Plain Layout
12646 <cell alignment="center" valignment="top" topline="true" usebox="none">
12649 \begin_layout Plain Layout
12655 <cell alignment="center" valignment="top" topline="true" usebox="none">
12658 \begin_layout Plain Layout
12665 <row topspace="default">
12666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12669 \begin_layout Plain Layout
12670 Spatial resolution in µm
12675 <cell alignment="center" valignment="top" usebox="none">
12678 \begin_layout Plain Layout
12684 <cell alignment="center" valignment="top" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" usebox="none">
12696 \begin_layout Plain Layout
12703 <row topspace="default">
12704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12707 \begin_layout Plain Layout
12709 \begin_inset Formula $f_{\mathrm{max}}$
12717 <cell alignment="center" valignment="top" usebox="none">
12720 \begin_layout Plain Layout
12726 <cell alignment="center" valignment="top" usebox="none">
12729 \begin_layout Plain Layout
12735 <cell alignment="center" valignment="top" usebox="none">
12738 \begin_layout Plain Layout
12745 <row topspace="default">
12746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12749 \begin_layout Plain Layout
12753 \begin_layout Plain Layout
12757 cmidrule(l{10pt}){1-1}
12762 LSF-spatial resolution
12767 <cell alignment="center" valignment="top" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" usebox="none">
12779 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" usebox="none">
12788 \begin_layout Plain Layout
12796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12799 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" usebox="none">
12808 \begin_layout Plain Layout
12814 <cell alignment="center" valignment="top" usebox="none">
12817 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" usebox="none">
12826 \begin_layout Plain Layout
12834 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12837 \begin_layout Plain Layout
12843 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12846 \begin_layout Plain Layout
12852 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12855 \begin_layout Plain Layout
12861 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12864 \begin_layout Plain Layout
12883 \begin_layout Standard
12884 Spaces to table rows can be added using the
12888 tab of the table dialog as described in section
12889 \begin_inset space ~
12893 \begin_inset CommandInset ref
12895 reference "sub:Row-Spacing"
12902 \begin_layout Standard
12903 Unlike normal tables, formal tables have no vertical table lines.
12904 The horizontal table lines can be set as for normal tables but they appear
12905 with different widths in the output:
12906 \begin_inset Newline newline
12909 The first and the last table line have a default width of 0.08
12910 \begin_inset space \thinspace{}
12913 em while the other lines have a default width of 0.05
12914 \begin_inset space \thinspace{}
12920 \begin_layout Standard
12921 The default widths can be changed with the following preamble lines
12924 \begin_layout Standard
12934 \begin_inset Newline newline
12946 \begin_layout Standard
12947 This example is for the first line, the so called
12952 If you want to change the width for the last line, replace
12961 To change the width for the other lines replace
12970 You can use all units listed in appendix
12971 \begin_inset space ~
12975 \begin_inset CommandInset ref
12977 reference "cha:Units-available-in"
12984 \begin_layout Standard
12985 Lines that do not span all table columns can be created by setting a table
12986 line for multicolumn cells.
12987 LyX will then internally use the command
12993 to create this line.
12997 \begin_layout Standard
13002 cmidrule[width](trim){startcol-endcol}
13005 \begin_layout Standard
13012 are currently not supported by LyX so you have to use TeX-Code to be able
13020 s can manually be created by inserting the command as TeX-Code as the first
13021 cell entry of the first cell of a row.
13022 The line is then drawn in the output above the current row.
13025 \begin_layout Standard
13026 The default for the width is 0.03
13027 \begin_inset space \thinspace{}
13031 Startcol is the number of the column where the line starts and endcol the
13032 column number where the line ends.
13033 The endcol always needs to be specified, also when the line should span
13035 The optional parameter trim could be either
13043 where the trimwidth is also optional.
13044 Using for example the parameter
13048 means that the line is trimmed from its left end by 2
13049 \begin_inset space \thinspace{}
13053 If you don't specify the trimwidth the lines are trimmed by the default
13055 \begin_inset space \thinspace{}
13061 \begin_layout Standard
13062 \begin_inset VSpace bigskip
13066 \begin_inset space ~
13070 \begin_inset CommandInset ref
13072 reference "tab:Example-booktabs-table"
13076 was created using the commands
13079 \begin_layout Standard
13089 \begin_layout Standard
13090 at the beginning of the second row and
13093 \begin_layout Standard
13098 cmidrule(l{10pt}){1-1}
13101 \begin_layout Standard
13105 \begin_layout Standard
13106 \begin_inset VSpace bigskip
13112 \begin_layout Standard
13113 You might want to have overlapping
13120 \begin_inset space ~
13124 \begin_inset CommandInset ref
13126 reference "tab:Special-booktabs-table"
13131 This can be achieved with the TeX-Code command
13134 \begin_layout Standard
13142 \begin_layout Standard
13143 The command that was used for the second row of Table
13144 \begin_inset space ~
13148 \begin_inset CommandInset ref
13150 reference "tab:Special-booktabs-table"
13157 \begin_layout Standard
13171 \begin_layout Standard
13172 The command for the sixth row is
13175 \begin_layout Standard
13187 \begin_layout Standard
13188 \begin_inset VSpace bigskip
13194 \begin_layout Standard
13195 If you are anyway not satisfied with the border line spacing, you can use
13196 the following command to produce lines that span over all table columns
13201 \begin_layout Standard
13206 specialrule{width}{space above}{space below}
13209 \begin_layout Standard
13210 For more information about these features, refer to the manual of the LaTeX-pack
13216 \begin_inset CommandInset citation
13223 \begin_inset Index idx
13226 \begin_layout Plain Layout
13227 LaTeX-packages ! booktabs
13235 \begin_layout Standard
13236 \begin_inset Float table
13242 \begin_layout Plain Layout
13243 \begin_inset Caption
13245 \begin_layout Plain Layout
13246 \begin_inset CommandInset label
13248 name "tab:Special-booktabs-table"
13252 Special booktabs-table
13260 \begin_layout Plain Layout
13262 \begin_inset Tabular
13263 <lyxtabular version="3" rows="8" columns="4">
13264 <features booktabs="true" tabularvalignment="middle">
13265 <column alignment="center" valignment="top" width="0">
13266 <column alignment="center" valignment="top" width="0">
13267 <column alignment="center" valignment="top" width="0">
13268 <column alignment="center" valignment="top" width="0">
13270 <cell alignment="center" valignment="top" topline="true" usebox="none">
13273 \begin_layout Plain Layout
13279 <cell alignment="center" valignment="top" topline="true" usebox="none">
13282 \begin_layout Plain Layout
13284 \begin_inset space \thinspace{}
13292 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13295 \begin_layout Plain Layout
13297 \begin_inset space \thinspace{}
13305 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13308 \begin_layout Plain Layout
13316 <cell alignment="center" valignment="top" usebox="none">
13319 \begin_layout Plain Layout
13323 \begin_layout Plain Layout
13336 \begin_layout Plain Layout
13349 \begin_layout Plain Layout
13362 \begin_layout Plain Layout
13371 Detector thickness in µm
13376 <cell alignment="center" valignment="top" usebox="none">
13379 \begin_layout Plain Layout
13385 <cell alignment="center" valignment="top" usebox="none">
13388 \begin_layout Plain Layout
13394 <cell alignment="center" valignment="top" usebox="none">
13397 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" usebox="none">
13408 \begin_layout Plain Layout
13414 <cell alignment="center" valignment="top" topline="true" usebox="none">
13417 \begin_layout Plain Layout
13423 <cell alignment="center" valignment="top" topline="true" usebox="none">
13426 \begin_layout Plain Layout
13432 <cell alignment="center" valignment="top" topline="true" usebox="none">
13435 \begin_layout Plain Layout
13442 <row topspace="default">
13443 <cell alignment="center" valignment="top" usebox="none">
13446 \begin_layout Plain Layout
13447 Spatial resolution in µm
13452 <cell alignment="center" valignment="top" usebox="none">
13455 \begin_layout Plain Layout
13461 <cell alignment="center" valignment="top" usebox="none">
13464 \begin_layout Plain Layout
13470 <cell alignment="center" valignment="top" usebox="none">
13473 \begin_layout Plain Layout
13480 <row topspace="default">
13481 <cell alignment="center" valignment="top" usebox="none">
13484 \begin_layout Plain Layout
13486 \begin_inset Formula $f_{\mathrm{max}}$
13494 <cell alignment="center" valignment="top" usebox="none">
13497 \begin_layout Plain Layout
13503 <cell alignment="center" valignment="top" usebox="none">
13506 \begin_layout Plain Layout
13512 <cell alignment="center" valignment="top" usebox="none">
13515 \begin_layout Plain Layout
13523 <cell alignment="center" valignment="top" topline="true" usebox="none">
13526 \begin_layout Plain Layout
13530 \begin_layout Plain Layout
13543 \begin_layout Plain Layout
13552 LSF-spatial resolution
13557 <cell alignment="center" valignment="top" topline="true" usebox="none">
13560 \begin_layout Plain Layout
13566 <cell alignment="center" valignment="top" topline="true" usebox="none">
13569 \begin_layout Plain Layout
13575 <cell alignment="center" valignment="top" topline="true" usebox="none">
13578 \begin_layout Plain Layout
13586 <cell alignment="center" valignment="top" usebox="none">
13589 \begin_layout Plain Layout
13595 <cell alignment="center" valignment="top" usebox="none">
13598 \begin_layout Plain Layout
13604 <cell alignment="center" valignment="top" usebox="none">
13607 \begin_layout Plain Layout
13613 <cell alignment="center" valignment="top" usebox="none">
13616 \begin_layout Plain Layout
13624 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13627 \begin_layout Plain Layout
13633 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13636 \begin_layout Plain Layout
13642 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13645 \begin_layout Plain Layout
13651 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13654 \begin_layout Plain Layout
13673 \begin_layout Section
13674 Vertical Table Alignment
13675 \begin_inset Index idx
13678 \begin_layout Plain Layout
13687 \begin_layout Standard
13688 To align tables vertically in a text line the table must be inside a box.
13689 The box can then be vertically aligned as described in section
13690 \begin_inset space ~
13694 \begin_inset CommandInset ref
13696 reference "sec:Box-Dialog"
13703 \begin_layout Standard
13704 In the following example the tables are inside a minipage
13708 \begin_layout Plain Layout
13709 Minipages are described in section
13710 \begin_inset space ~
13714 \begin_inset CommandInset ref
13716 reference "sec:Minipages"
13725 box that has a width of 15
13726 \begin_inset space \thinspace{}
13732 \begin_layout Itemize
13734 \begin_inset Box Frameless
13744 height_special "totalheight"
13747 \begin_layout Plain Layout
13748 \begin_inset Tabular
13749 <lyxtabular version="3" rows="3" columns="3">
13750 <features tabularvalignment="middle">
13751 <column alignment="center" valignment="top" width="0">
13752 <column alignment="center" valignment="top" width="0">
13753 <column alignment="center" valignment="top" width="0">
13755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13758 \begin_layout Plain Layout
13764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13767 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13776 \begin_layout Plain Layout
13784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13787 \begin_layout Plain Layout
13793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13796 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13805 \begin_layout Plain Layout
13813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13816 \begin_layout Plain Layout
13822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13825 \begin_layout Plain Layout
13831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13834 \begin_layout Plain Layout
13854 \begin_layout Plain Layout
13866 \begin_inset Box Frameless
13876 height_special "totalheight"
13879 \begin_layout Plain Layout
13880 \begin_inset Tabular
13881 <lyxtabular version="3" rows="3" columns="3">
13882 <features tabularvalignment="middle">
13883 <column alignment="center" valignment="top" width="0">
13884 <column alignment="center" valignment="top" width="0">
13885 <column alignment="center" valignment="top" width="0">
13887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13890 \begin_layout Plain Layout
13896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13899 \begin_layout Plain Layout
13905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13908 \begin_layout Plain Layout
13916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13919 \begin_layout Plain Layout
13925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13928 \begin_layout Plain Layout
13934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13937 \begin_layout Plain Layout
13945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13948 \begin_layout Plain Layout
13954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13957 \begin_layout Plain Layout
13963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13966 \begin_layout Plain Layout
13986 \begin_layout Plain Layout
13996 \begin_layout Itemize
13998 \begin_inset Box Frameless
14008 height_special "totalheight"
14011 \begin_layout Plain Layout
14012 \begin_inset Tabular
14013 <lyxtabular version="3" rows="3" columns="3">
14014 <features tabularvalignment="middle">
14015 <column alignment="center" valignment="top" width="0">
14016 <column alignment="center" valignment="top" width="0">
14017 <column alignment="center" valignment="top" width="0">
14019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14022 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14040 \begin_layout Plain Layout
14048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14051 \begin_layout Plain Layout
14057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14060 \begin_layout Plain Layout
14066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14069 \begin_layout Plain Layout
14077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14080 \begin_layout Plain Layout
14086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14089 \begin_layout Plain Layout
14095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14098 \begin_layout Plain Layout
14117 \begin_layout Itemize
14119 \begin_inset Box Frameless
14129 height_special "totalheight"
14132 \begin_layout Plain Layout
14133 \begin_inset Tabular
14134 <lyxtabular version="3" rows="3" columns="3">
14135 <features tabularvalignment="middle">
14136 <column alignment="center" valignment="top" width="0">
14137 <column alignment="center" valignment="top" width="0">
14138 <column alignment="center" valignment="top" width="0">
14140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14143 \begin_layout Plain Layout
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14161 \begin_layout Plain Layout
14169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14172 \begin_layout Plain Layout
14178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14181 \begin_layout Plain Layout
14187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14190 \begin_layout Plain Layout
14198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14201 \begin_layout Plain Layout
14207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14210 \begin_layout Plain Layout
14216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14219 \begin_layout Plain Layout
14239 \begin_layout Plain Layout
14251 \begin_inset Box Frameless
14261 height_special "totalheight"
14264 \begin_layout Plain Layout
14265 \begin_inset Tabular
14266 <lyxtabular version="3" rows="3" columns="3">
14267 <features tabularvalignment="middle">
14268 <column alignment="center" valignment="top" width="0">
14269 <column alignment="center" valignment="top" width="0">
14270 <column alignment="center" valignment="top" width="0">
14272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14275 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14284 \begin_layout Plain Layout
14290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14293 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14304 \begin_layout Plain Layout
14310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14313 \begin_layout Plain Layout
14319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14322 \begin_layout Plain Layout
14330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14333 \begin_layout Plain Layout
14339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14342 \begin_layout Plain Layout
14348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Plain Layout
14371 \begin_layout Plain Layout
14381 \begin_layout Standard
14382 As you will see, the content of the first and last table row is not correctly
14384 To get this alignment, the minipage box must be set into a raisebox
14388 \begin_layout Plain Layout
14389 Raiseboxes are described in section
14390 \begin_inset space ~
14394 \begin_inset CommandInset ref
14396 reference "sub:Vertical-Alignment"
14406 In the example above the second table in the first item is aligned using
14407 the TeX-Code-command
14410 \begin_layout Standard
14420 \begin_layout Standard
14422 After the box the closing brace
14426 is inserted as TeX-Code.
14427 For the second table in the last item the command
14430 \begin_layout Standard
14440 \begin_layout Standard
14444 \begin_layout Standard
14445 \begin_inset Note Greyedout
14448 \begin_layout Plain Layout
14453 The alignment of the table row content to the surrounding text line is
14455 The required value for the
14461 command for this alignment depends on the document font, the font size,
14462 and the table line thickness.
14470 \begin_layout Section
14472 \begin_inset CommandInset label
14474 name "sec:Colored-Tables"
14479 \begin_inset Index idx
14482 \begin_layout Plain Layout
14491 \begin_layout Subsection
14493 \begin_inset Index idx
14496 \begin_layout Plain Layout
14497 Table Color ! for Cells
14503 \begin_inset Index idx
14506 \begin_layout Plain Layout
14507 Color ! for Table Cells
14515 \begin_layout Standard
14516 \begin_inset Float table
14522 \begin_layout Plain Layout
14523 \begin_inset Caption
14525 \begin_layout Plain Layout
14526 \begin_inset CommandInset label
14528 name "tab:Table-colored-without"
14532 Table colored without using the package
14537 \begin_inset Argument
14540 \begin_layout Plain Layout
14541 Table without colortbl
14554 \begin_layout Plain Layout
14556 \begin_inset Tabular
14557 <lyxtabular version="3" rows="3" columns="3">
14558 <features tabularvalignment="middle">
14559 <column alignment="center" valignment="top" width="0">
14560 <column alignment="center" valignment="top" width="0">
14561 <column alignment="center" valignment="top" width="0">
14563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14566 \begin_layout Plain Layout
14574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14577 \begin_layout Plain Layout
14585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14588 \begin_layout Plain Layout
14598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14601 \begin_layout Plain Layout
14609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14612 \begin_layout Plain Layout
14620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14623 \begin_layout Plain Layout
14633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="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
14655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14658 \begin_layout Plain Layout
14679 \begin_layout Standard
14680 If you only need colored text, mark the cells and choose a color in the
14683 Edit\SpecialChar \menuseparator
14685 \begin_inset space ~
14691 This was used to create Table
14692 \begin_inset space ~
14696 \begin_inset CommandInset ref
14698 reference "tab:Table-colored-without"
14703 In any other case you have to use the LaTeX-package
14708 \begin_inset Index idx
14711 \begin_layout Plain Layout
14712 LaTeX-packages ! colortbl
14720 \begin_layout Standard
14724 \begin_layout Plain Layout
14734 \begin_inset Note Note
14737 \begin_layout Plain Layout
14738 The following section part will only be displayed when the LaTeX-package
14751 \begin_layout Standard
14752 To create colored tables,
14756 must be loaded in the preamble with the line
14759 \begin_layout Standard
14764 usepackage{colortbl}
14767 \begin_layout Standard
14768 The color of a column is adjusted with the command
14771 \begin_layout Standard
14776 columncolor{name of color}
14779 \begin_layout Standard
14785 More about the command
14789 is contained in section
14790 \begin_inset space ~
14794 \begin_inset CommandInset ref
14796 reference "sub:Multicolumn-Calculations"
14803 \begin_layout Standard
14804 The following color names are predefined:
14807 \begin_layout Standard
14841 \begin_layout Standard
14842 \begin_inset VSpace medskip
14848 \begin_layout Standard
14849 You can also define your own color with the command
14852 \begin_layout Standard
14857 definecolor{color name}{color model}{color values}
14860 \begin_layout Standard
14861 The color model can be
14864 \begin_layout Labeling
14865 \labelwidthstring 00.00.0000
14866 cmyk: cyan, magenta, yellow, black
14869 \begin_layout Labeling
14870 \labelwidthstring 00.00.0000
14871 rgb: red, green blue
14874 \begin_layout Labeling
14875 \labelwidthstring 00.00.0000
14879 \begin_layout Standard
14880 and the color values are comma separated numbers between 0 and 1 describing
14881 the factor for the corresponding color of the color model.
14884 \begin_layout Standard
14886 \begin_inset space \thinspace{}
14890 \begin_inset space \space{}
14897 " in the preamble with
14900 \begin_layout Standard
14905 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14908 \begin_layout Standard
14916 \begin_layout Standard
14921 definecolor{lightgray}{gray}{0.8}
14924 \begin_layout Standard
14925 \begin_inset VSpace medskip
14931 \begin_layout Standard
14932 Lines are colored with the command
14935 \begin_layout Standard
14940 rowcolor{name of color}
14943 \begin_layout Standard
14944 and cells are colored with the command
14947 \begin_layout Standard
14952 cellcolor{name of color}
14955 \begin_layout Standard
14956 Both commands are inserted at the beginning of a cell as TeX-Code.
14959 \begin_layout Standard
14960 To color characters in the table, mark the cells and use the LyX menu
14962 Edit\SpecialChar \menuseparator
14964 \begin_inset space ~
14970 If a cell contains TeX-Code mark only the characters, otherwise the colored
14971 TeX-Code will cause LaTeX-errors.
14974 \begin_layout Standard
14975 \begin_inset Note Greyedout
14978 \begin_layout Plain Layout
14983 Not all DVI-viewers are able to display self-defined colors.
14991 \begin_layout Standard
14992 \begin_inset VSpace bigskip
14998 \begin_layout Standard
15000 \begin_inset space ~
15004 \begin_inset CommandInset ref
15006 reference "tab:Table-colored-using"
15010 do the following: The color of the first column should be
15018 \begin_layout Standard
15023 columncolor{darkgreen}
15028 \begin_layout Standard
15029 as LaTeX-argument for this column.
15030 The first row should be blue, therefore the TeX-Code command
15033 \begin_layout Standard
15041 \begin_layout Standard
15042 is inserted to the first cell of this row.
15043 Note that this overwrites the column color for the first cell.
15044 The last cell of the last row is colored magenta by inserting the TeX-Code
15048 \begin_layout Standard
15056 \begin_layout Standard
15057 The characters could now be colored using the menu
15059 Edit\SpecialChar \menuseparator
15061 \begin_inset space ~
15069 \begin_layout Standard
15070 \begin_inset Float table
15076 \begin_layout Plain Layout
15077 \begin_inset Caption
15079 \begin_layout Plain Layout
15080 \begin_inset CommandInset label
15082 name "tab:Table-colored-using"
15086 Table colored using the package
15091 \begin_inset Argument
15094 \begin_layout Plain Layout
15095 Table with colortbl
15108 \begin_layout Plain Layout
15110 \begin_inset Tabular
15111 <lyxtabular version="3" rows="3" columns="3">
15112 <features tabularvalignment="middle">
15113 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15114 <column alignment="center" valignment="top" width="0">
15115 <column alignment="center" valignment="top" width="0">
15117 <cell alignment="center" valignment="top" usebox="none">
15120 \begin_layout Plain Layout
15124 \begin_layout Plain Layout
15140 <cell alignment="center" valignment="top" usebox="none">
15143 \begin_layout Plain Layout
15151 <cell alignment="center" valignment="top" usebox="none">
15154 \begin_layout Plain Layout
15164 <cell alignment="center" valignment="top" usebox="none">
15167 \begin_layout Plain Layout
15175 <cell alignment="center" valignment="top" usebox="none">
15178 \begin_layout Plain Layout
15186 <cell alignment="center" valignment="top" usebox="none">
15189 \begin_layout Plain Layout
15199 <cell alignment="center" valignment="top" usebox="none">
15202 \begin_layout Plain Layout
15210 <cell alignment="center" valignment="top" usebox="none">
15213 \begin_layout Plain Layout
15221 <cell alignment="center" valignment="top" usebox="none">
15224 \begin_layout Plain Layout
15228 \begin_layout Plain Layout
15257 \begin_layout Standard
15261 \begin_layout Plain Layout
15271 \begin_inset Note Note
15274 \begin_layout Plain Layout
15275 The following will be displayed when the LaTeX-package
15287 \begin_layout Standard
15288 You need to install the package
15292 to see the content of this section in the output.
15295 \begin_layout Standard
15299 \begin_layout Plain Layout
15311 \begin_layout Subsection
15313 \begin_inset Index idx
15316 \begin_layout Plain Layout
15317 Table Color ! for Lines
15323 \begin_inset Index idx
15326 \begin_layout Plain Layout
15327 Color ! for Table Lines
15335 \begin_layout Standard
15336 As described in section
15337 \begin_inset space ~
15341 \begin_inset CommandInset ref
15343 reference "sub:Line-Thickness"
15347 , the line thickness for all lines in a table can be adjusted with the length
15356 \begin_inset space \thinspace{}
15359 pt for all tables of this section.
15363 \begin_layout Plain Layout
15369 arrayrulewidth}{1.5pt}
15377 \begin_layout Standard
15378 To color vertical lines for example with green, create the following column
15379 format in the document preamble, according to the description in section
15380 \begin_inset space ~
15384 \begin_inset CommandInset ref
15386 reference "sub:Customized-Format"
15393 \begin_layout Standard
15398 newcolumntype{W}{!{
15405 \begin_layout Standard
15407 \begin_inset space ~
15411 \begin_inset CommandInset ref
15413 reference "tab:Table-with-vertical-colored"
15421 was used for the last column and
15425 for the other columns.
15428 \begin_layout Standard
15429 If you want to have several colors, define more column formats.
15432 \begin_layout Standard
15433 \begin_inset Float table
15439 \begin_layout Plain Layout
15440 \begin_inset Caption
15442 \begin_layout Plain Layout
15443 \begin_inset CommandInset label
15445 name "tab:Table-with-vertical-colored"
15449 Table with colored vertical lines
15457 \begin_layout Plain Layout
15459 \begin_inset Tabular
15460 <lyxtabular version="3" rows="3" columns="3">
15461 <features tabularvalignment="middle">
15462 <column alignment="center" valignment="top" width="0" special="Wc">
15463 <column alignment="center" valignment="top" width="0" special="Wc">
15464 <column alignment="center" valignment="top" width="0" special="WcW">
15466 <cell alignment="center" valignment="top" topline="true" usebox="none">
15469 \begin_layout Plain Layout
15475 <cell alignment="center" valignment="top" topline="true" usebox="none">
15478 \begin_layout Plain Layout
15484 <cell alignment="center" valignment="top" topline="true" usebox="none">
15487 \begin_layout Plain Layout
15495 <cell alignment="center" valignment="top" topline="true" usebox="none">
15498 \begin_layout Plain Layout
15504 <cell alignment="center" valignment="top" topline="true" usebox="none">
15507 \begin_layout Plain Layout
15513 <cell alignment="center" valignment="top" topline="true" usebox="none">
15516 \begin_layout Plain Layout
15524 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15527 \begin_layout Plain Layout
15533 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15536 \begin_layout Plain Layout
15542 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15545 \begin_layout Plain Layout
15564 \begin_layout Standard
15565 \begin_inset VSpace bigskip
15568 To color horizontal lines for example with red, as in Table
15569 \begin_inset space ~
15573 \begin_inset CommandInset ref
15575 reference "tab:Table-with-horizontal-colored"
15579 , insert these commands in TeX-Code before the table or table float:
15582 \begin_layout Standard
15592 \begin_inset Newline newline
15600 \begin_inset Newline newline
15604 \begin_inset Phantom HPhantom
15607 \begin_layout Plain Layout
15610 \begin_inset space ~
15620 arrayrulecolor{red}
15624 arrayrulecolor{black}}
15627 \begin_layout Standard
15631 \begin_layout Plain Layout
15642 \begin_layout Plain Layout
15651 \begin_layout Plain Layout
15655 arrayrulecolor{red}
15659 arrayrulecolor{black}}
15665 \begin_inset Float table
15671 \begin_layout Plain Layout
15672 \begin_inset Caption
15674 \begin_layout Plain Layout
15675 \begin_inset CommandInset label
15677 name "tab:Table-with-horizontal-colored"
15681 Table with colored horizontal lines
15689 \begin_layout Plain Layout
15691 \begin_inset Tabular
15692 <lyxtabular version="3" rows="3" columns="3">
15693 <features tabularvalignment="middle">
15694 <column alignment="center" valignment="top" width="0">
15695 <column alignment="center" valignment="top" width="0">
15696 <column alignment="center" valignment="top" width="0">
15698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15701 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15710 \begin_layout Plain Layout
15716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15719 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15730 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15739 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15748 \begin_layout Plain Layout
15756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15759 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15768 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15777 \begin_layout Plain Layout
15796 \begin_layout Standard
15797 To return to the default line color black, insert this command in TeX-Code
15798 after the table or table float:
15801 \begin_layout Standard
15813 \begin_layout Standard
15815 \begin_inset space ~
15819 \begin_inset CommandInset ref
15821 reference "tab:Table-with-colored"
15825 is an example with colored vertical and horizontal lines.
15828 \begin_layout Standard
15829 \begin_inset Float table
15835 \begin_layout Plain Layout
15836 \begin_inset Caption
15838 \begin_layout Plain Layout
15839 \begin_inset CommandInset label
15841 name "tab:Table-with-colored"
15845 Table with colored lines
15853 \begin_layout Plain Layout
15855 \begin_inset Tabular
15856 <lyxtabular version="3" rows="3" columns="3">
15857 <features tabularvalignment="middle">
15858 <column alignment="center" valignment="top" width="0" special="Wc">
15859 <column alignment="center" valignment="top" width="0" special="Wc">
15860 <column alignment="center" valignment="top" width="0" special="WcW">
15862 <cell alignment="center" valignment="top" topline="true" usebox="none">
15865 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15891 <cell alignment="center" valignment="top" topline="true" usebox="none">
15894 \begin_layout Plain Layout
15900 <cell alignment="center" valignment="top" topline="true" usebox="none">
15903 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" topline="true" usebox="none">
15912 \begin_layout Plain Layout
15919 <row topspace="default">
15920 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15923 \begin_layout Plain Layout
15929 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15932 \begin_layout Plain Layout
15938 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15941 \begin_layout Plain Layout
15960 \begin_layout Standard
15964 \begin_layout Plain Layout
15980 \begin_layout Standard
15984 \begin_layout Plain Layout
15990 arrayrulewidth}{0.4pt}
15998 \begin_layout Section
15999 Table Customization
16000 \begin_inset Index idx
16003 \begin_layout Plain Layout
16004 Table Customization
16010 \begin_inset Index idx
16013 \begin_layout Plain Layout
16014 Table ! Customization
16022 \begin_layout Subsection
16024 \begin_inset CommandInset label
16026 name "sub:Row-Spacing"
16031 \begin_inset Index idx
16034 \begin_layout Plain Layout
16035 Table Customization ! Row Spacing
16043 \begin_layout Standard
16044 You can add vertical space to table rows in the
16048 tab of the table dialog.
16049 You find there three possibilities:
16052 \begin_layout Description
16054 \begin_inset space ~
16058 \begin_inset space ~
16061 row will add space above the characters of the table row.
16062 If the table is a formal table
16066 \begin_layout Plain Layout
16067 Formal tables are explained in section
16068 \begin_inset space ~
16072 \begin_inset CommandInset ref
16074 reference "sec:Formal-Tables"
16083 LyX will insert as default 0.5
16084 \begin_inset space \thinspace{}
16088 For normal tables the inserted space will unfortunately destroy the vertical
16089 table lines as in the following table:
16090 \begin_inset VSpace medskip
16094 \begin_inset Newline newline
16098 \begin_inset space \hspace*{}
16103 \begin_inset space \hfill{}
16107 \begin_inset Tabular
16108 <lyxtabular version="3" rows="3" columns="1">
16109 <features tabularvalignment="middle">
16110 <column alignment="center" valignment="top" width="0">
16112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16115 \begin_layout Plain Layout
16122 <row topspace="3mm">
16123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16126 \begin_layout Plain Layout
16128 \begin_inset space \thinspace{}
16131 mm space top of row
16138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16141 \begin_layout Plain Layout
16153 \begin_inset space \hfill{}
16157 \begin_inset space \hspace*{}
16162 \begin_inset VSpace medskip
16166 \begin_inset Newline newline
16169 So inserting space in the top of row for normal tables is only useful when
16170 you don't have vertical lines.
16173 \begin_layout Description
16175 \begin_inset space ~
16179 \begin_inset space ~
16182 row will add space below the characters of the table row.
16183 If the table is a formal table LyX will insert as default 0.5
16184 \begin_inset space \thinspace{}
16187 em space, for normal tables the default size is 2
16188 \begin_inset space \thinspace{}
16194 \begin_layout Description
16196 \begin_inset space ~
16199 rows adds space between the current and the following row.
16200 If the table is a formal table LyX will insert as default 0.5
16201 \begin_inset space \thinspace{}
16205 For normal tables the inserted space will unfortunately destroy the vertical
16206 table lines as in the following table:
16207 \begin_inset VSpace medskip
16211 \begin_inset Newline newline
16215 \begin_inset space \hspace*{}
16220 \begin_inset space \hfill{}
16224 \begin_inset Tabular
16225 <lyxtabular version="3" rows="3" columns="1">
16226 <features tabularvalignment="middle">
16227 <column alignment="center" valignment="top" width="0">
16229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16232 \begin_layout Plain Layout
16239 <row interlinespace="3mm">
16240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16243 \begin_layout Plain Layout
16244 \begin_inset Formula $\downarrow$
16248 \begin_inset space \thinspace{}
16251 mm space between row
16252 \begin_inset Formula $\downarrow$
16262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16265 \begin_layout Plain Layout
16266 \begin_inset Formula $\uparrow$
16270 \begin_inset space \thinspace{}
16273 mm space between row
16274 \begin_inset Formula $\uparrow$
16288 \begin_inset space \hfill{}
16292 \begin_inset space \hspace*{}
16297 \begin_inset VSpace medskip
16301 \begin_inset Newline newline
16304 So inserting space between rows for normal tables is only useful when you
16305 don't have vertical lines.
16308 \begin_layout Standard
16309 \begin_inset VSpace bigskip
16312 When you want to add extra height to all cells of all tables, you can do
16313 this with the following preamble lines:
16316 \begin_layout Standard
16321 @ifundefined{extrarowheight}
16322 \begin_inset Newline newline
16326 \begin_inset Phantom HPhantom
16329 \begin_layout Plain Layout
16332 \begin_inset space ~
16342 usepackage{array}}{}
16343 \begin_inset Newline newline
16350 extrarowheight}{height}
16353 \begin_layout Standard
16354 But this has the disadvantage that the cell texts are no longer exactly
16355 vertically centered.
16360 will be loaded automatically by LyX when you use self defined table formats.
16361 To avoid that it being loaded twice the command
16367 is used in the above command.)
16370 \begin_layout Standard
16371 If you are using font sizes larger than the normal size, the table borders
16372 are often too close to the letters.
16373 This can be corrected by inserting the command
16379 in TeX code at the beginning of a table row.
16381 \begin_inset space ~
16385 \begin_inset CommandInset ref
16387 reference "tab:Vertical-alignment-of"
16391 illustrates the effect.
16394 \begin_layout Standard
16396 \begin_inset Float table
16402 \begin_layout Plain Layout
16403 \begin_inset Caption
16405 \begin_layout Plain Layout
16406 \begin_inset CommandInset label
16408 name "tab:Vertical-alignment-of"
16412 Vertical alignment of text with large font sizes.
16420 \begin_layout Plain Layout
16421 \begin_inset space \hfill{}
16425 \begin_inset Float table
16430 \begin_layout Plain Layout
16431 \begin_inset Caption
16433 \begin_layout Plain Layout
16442 \begin_layout Plain Layout
16445 \begin_inset Tabular
16446 <lyxtabular version="3" rows="6" columns="1">
16447 <features tabularvalignment="middle">
16448 <column alignment="left" valignment="top" width="0">
16450 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16453 \begin_layout Plain Layout
16461 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16464 \begin_layout Plain Layout
16474 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16477 \begin_layout Plain Layout
16487 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16490 \begin_layout Plain Layout
16500 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16503 \begin_layout Plain Layout
16513 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16516 \begin_layout Plain Layout
16535 \begin_inset space \hfill{}
16539 \begin_inset Float table
16544 \begin_layout Plain Layout
16545 \begin_inset Caption
16547 \begin_layout Plain Layout
16548 Table using the command
16562 \begin_layout Plain Layout
16565 \begin_inset Tabular
16566 <lyxtabular version="3" rows="6" columns="1">
16567 <features tabularvalignment="middle">
16568 <column alignment="left" valignment="top" width="0">
16570 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Plain Layout
16581 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 \begin_layout Plain Layout
16606 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16615 \begin_layout Plain Layout
16631 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 \begin_layout Plain Layout
16656 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Plain Layout
16665 \begin_layout Plain Layout
16681 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16684 \begin_layout Plain Layout
16690 \begin_layout Plain Layout
16717 \begin_inset space \hfill{}
16728 \begin_layout Subsection
16729 Special Cell Alignment
16730 \begin_inset Index idx
16733 \begin_layout Plain Layout
16734 Table Customization ! Special Cell Alignment
16742 \begin_layout Standard
16743 Sometimes it looks better when the cell entries of a column are aligned
16744 with a special character, e.
16745 \begin_inset space \thinspace{}
16749 \begin_inset space \space{}
16752 with the decimal separator as in Table
16753 \begin_inset space ~
16757 \begin_inset CommandInset ref
16759 reference "tab:Table-cells-of"
16766 \begin_layout Standard
16767 \begin_inset Float table
16773 \begin_layout Plain Layout
16774 \begin_inset Caption
16776 \begin_layout Plain Layout
16777 \begin_inset CommandInset label
16779 name "tab:Table-cells-of"
16783 Table cells of a column aligned with the decimal separator.
16791 \begin_layout Plain Layout
16793 \begin_inset Tabular
16794 <lyxtabular version="3" rows="4" columns="2">
16795 <features tabularvalignment="middle">
16796 <column alignment="right" valignment="top" width="0">
16797 <column alignment="left" valignment="top" width="0" special="@{}l">
16799 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16802 \begin_layout Plain Layout
16808 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16811 \begin_layout Plain Layout
16819 <cell alignment="center" valignment="top" usebox="none">
16822 \begin_layout Plain Layout
16828 <cell alignment="center" valignment="top" usebox="none">
16831 \begin_layout Plain Layout
16839 <cell alignment="center" valignment="top" usebox="none">
16842 \begin_layout Plain Layout
16848 <cell alignment="center" valignment="top" usebox="none">
16851 \begin_layout Plain Layout
16859 <cell alignment="center" valignment="top" usebox="none">
16862 \begin_layout Plain Layout
16868 <cell alignment="center" valignment="top" usebox="none">
16871 \begin_layout Plain Layout
16890 \begin_layout Standard
16891 This table was created with a 4×2 table.
16892 The heading is a centered multicolumn.
16893 The first column is right-aligned and contains the digits before the decimal
16894 point and the decimal point.
16895 The second column is left aligned and contains the digits after the decimal
16897 To omit the space that is normally between two table columns, the following
16898 LaTeX-argument was used for the second column:
16901 \begin_layout Standard
16907 \begin_layout Standard
16909 \begin_inset space ~
16913 \begin_inset CommandInset ref
16915 reference "tab:Several-table-cell"
16919 shows some example alignments.
16920 For the alignment with the relation sign, you must add the second smallest
16921 math-space at the beginning of the last column to get the correct space
16922 surrounding the relation sign.
16925 \begin_layout Standard
16926 \begin_inset Float table
16932 \begin_layout Plain Layout
16933 \begin_inset Caption
16935 \begin_layout Plain Layout
16936 \begin_inset CommandInset label
16938 name "tab:Several-table-cell"
16942 Several table cell alignments.
16950 \begin_layout Plain Layout
16952 \begin_inset Tabular
16953 <lyxtabular version="3" rows="4" columns="6">
16954 <features tabularvalignment="middle">
16955 <column alignment="right" valignment="top" width="0">
16956 <column alignment="left" valignment="top" width="0" special="@{}l">
16957 <column alignment="right" valignment="top" width="0">
16958 <column alignment="left" valignment="top" width="0" special="@{}l">
16959 <column alignment="right" valignment="top" width="0">
16960 <column alignment="left" valignment="top" width="0" special="@{}l">
16962 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16965 \begin_layout Plain Layout
16971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16974 \begin_layout Plain Layout
16980 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16983 \begin_layout Plain Layout
16989 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16992 \begin_layout Plain Layout
16998 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17001 \begin_layout Plain Layout
17007 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17010 \begin_layout Plain Layout
17018 <cell alignment="center" valignment="top" usebox="none">
17021 \begin_layout Plain Layout
17027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17030 \begin_layout Plain Layout
17032 \begin_inset space \thinspace{}
17040 <cell alignment="center" valignment="top" usebox="none">
17043 \begin_layout Plain Layout
17044 \begin_inset Formula $10\cdot$
17052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17055 \begin_layout Plain Layout
17056 \begin_inset Formula $10^{\mbox{-}17}$
17064 <cell alignment="center" valignment="top" usebox="none">
17067 \begin_layout Plain Layout
17068 \begin_inset Formula $\Gamma(t)\propto$
17076 <cell alignment="center" valignment="top" usebox="none">
17079 \begin_layout Plain Layout
17080 \begin_inset Formula $\:\Upsilon(t)$
17090 <cell alignment="center" valignment="top" usebox="none">
17093 \begin_layout Plain Layout
17099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17102 \begin_layout Plain Layout
17104 \begin_inset space \thinspace{}
17112 <cell alignment="center" valignment="top" usebox="none">
17115 \begin_layout Plain Layout
17116 \begin_inset Formula $5.78\cdot$
17124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17127 \begin_layout Plain Layout
17128 \begin_inset Formula $10^{7}$
17136 <cell alignment="center" valignment="top" usebox="none">
17139 \begin_layout Plain Layout
17140 \begin_inset Formula $A\ne$
17148 <cell alignment="center" valignment="top" usebox="none">
17151 \begin_layout Plain Layout
17152 \begin_inset Formula $\: B_{\mathrm{red}}$
17162 <cell alignment="center" valignment="top" usebox="none">
17165 \begin_layout Plain Layout
17171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17174 \begin_layout Plain Layout
17176 \begin_inset space \thinspace{}
17184 <cell alignment="center" valignment="top" usebox="none">
17187 \begin_layout Plain Layout
17189 \begin_inset Formula $33.5\cdot$
17197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17200 \begin_layout Plain Layout
17201 \begin_inset Formula $10^{4}$
17209 <cell alignment="center" valignment="top" usebox="none">
17212 \begin_layout Plain Layout
17213 \begin_inset Formula $\sin(\alpha)\ge$
17221 <cell alignment="center" valignment="top" usebox="none">
17224 \begin_layout Plain Layout
17225 \begin_inset Formula $\:\sin(\beta)$
17246 \begin_layout Standard
17247 \begin_inset VSpace bigskip
17250 There is also the LaTeX-package
17255 \begin_inset Index idx
17258 \begin_layout Plain Layout
17259 LaTeX-packages ! dcolumn
17264 that provides table cell alignments.
17265 But this unfortunately treats the cell entries as math and does not allow
17266 formulas in table cells: The first column of Table
17267 \begin_inset space ~
17271 \begin_inset CommandInset ref
17273 reference "tab:Several-table-cell"
17281 like the first column in Table
17282 \begin_inset space ~
17286 \begin_inset CommandInset ref
17288 reference "tab:Alignments-when"
17292 and only with some tricks as you would want.
17293 The alignment of the second and third column of Table
17294 \begin_inset space ~
17298 \begin_inset CommandInset ref
17300 reference "tab:Several-table-cell"
17304 is not possible with
17311 \begin_layout Standard
17312 \begin_inset Newpage newpage
17318 \begin_layout Standard
17319 \begin_inset Float table
17325 \begin_layout Plain Layout
17326 \begin_inset Caption
17328 \begin_layout Plain Layout
17329 \begin_inset CommandInset label
17331 name "tab:Alignments-when"
17335 Alignments when LaTeX-package dcolumn is used.
17336 For all column alignments tricks have to be used to get the output.
17344 \begin_layout Plain Layout
17346 \begin_inset Tabular
17347 <lyxtabular version="3" rows="4" columns="3">
17348 <features tabularvalignment="middle">
17349 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17350 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17351 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17353 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17356 \begin_layout Plain Layout
17362 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17365 \begin_layout Plain Layout
17371 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17374 \begin_layout Plain Layout
17382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17385 \begin_layout Plain Layout
17387 \begin_inset space \thinspace{}
17395 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17398 \begin_layout Plain Layout
17400 \begin_inset space \thinspace{}
17404 \begin_inset Formula $\mbox{bottles}$
17412 <cell alignment="center" valignment="top" usebox="none">
17415 \begin_layout Plain Layout
17420 \begin_layout Plain Layout
17430 \begin_inset Formula $\mbox{bottles}$
17440 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17443 \begin_layout Plain Layout
17445 \begin_inset space \thinspace{}
17453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17456 \begin_layout Plain Layout
17458 \begin_inset space \thinspace{}
17462 \begin_inset Formula $\mbox{Pixels}$
17470 <cell alignment="center" valignment="top" usebox="none">
17473 \begin_layout Plain Layout
17478 \begin_layout Plain Layout
17488 \begin_inset Formula $\mbox{Pixels}$
17498 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17501 \begin_layout Plain Layout
17503 \begin_inset space \thinspace{}
17511 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17514 \begin_layout Plain Layout
17516 \begin_inset space \thinspace{}
17520 \begin_inset Formula $\mbox{cm}$
17528 <cell alignment="center" valignment="top" usebox="none">
17531 \begin_layout Plain Layout
17536 \begin_layout Plain Layout
17546 \begin_inset Formula $\mbox{cm}$
17567 \begin_layout Subsection
17568 Customized Cell/Column Format
17569 \begin_inset CommandInset label
17571 name "sub:Customized-Format"
17576 \begin_inset Index idx
17579 \begin_layout Plain Layout
17580 Table Customization ! Cell/Column Format
17588 \begin_layout Standard
17589 Calculating the required width for spanned columns as in section
17590 \begin_inset space ~
17594 \begin_inset CommandInset ref
17596 reference "sub:Multicolumn-Calculations"
17600 is very annoying if you have several tables with multicolumn cells.
17601 To make life easier, you can define a cell/column format in the preamble,
17602 so that it can be used in all tables of the document.
17603 The format is defined with the command
17606 \begin_layout Standard
17611 newcolumntype{name of format}[number of arguments]{commands}
17614 \begin_layout Standard
17615 The format name may only consist of one letter.
17640 are predefined and cannot be used.
17641 But all letters are allowed as capitals.
17644 \begin_layout Standard
17645 \begin_inset VSpace medskip
17651 \begin_layout Standard
17652 For vertically and horizontally centered multicolumn cells with a fixed
17653 width you can define the cell format
17656 \begin_layout Standard
17661 newcolumntype{M}[1]{>{
17668 \begin_layout Standard
17675 avoids the problem of hyphenating the first word, as described in section
17676 \begin_inset space ~
17680 \begin_inset CommandInset ref
17682 reference "sub:Multiple-Lines-in"
17687 Now you can simply enter
17690 \begin_layout Standard
17696 \begin_layout Standard
17697 as LaTeX-argument in the table dialog to create a multicolumn.
17700 \begin_layout Standard
17701 \begin_inset VSpace bigskip
17707 \begin_layout Standard
17708 For cells spanned by a multicolumn cell, you can define the format
17711 \begin_layout Standard
17716 newcolumntype{S}[2]{>{
17721 \begin_inset Newline newline
17725 \begin_inset Phantom HPhantom
17728 \begin_layout Plain Layout
17742 arrayrulewidth)*(1-#2))/#2}}
17745 \begin_layout Standard
17746 This format uses equation
17747 \begin_inset CommandInset ref
17753 to calculate the required width so that each spanned cell has the same
17757 \begin_layout Standard
17761 \begin_layout Standard
17764 S{width of multicolumn cell}{number of spanned columns}
17767 \begin_layout Standard
17768 as LaTeX-argument of the column.
17771 \begin_layout Standard
17772 \begin_inset VSpace bigskip
17778 \begin_layout Standard
17779 For colored columns, you can define
17782 \begin_layout Standard
17787 newcolumntype{K}[1]{>{
17794 \begin_layout Standard
17796 \begin_inset Quotes eld
17800 \begin_inset Quotes erd
17803 at the end creates a column with a flexible width whose text is horizontally
17808 \begin_layout Standard
17814 \begin_layout Standard
17818 \begin_layout Standard
17819 \begin_inset VSpace bigskip
17825 \begin_layout Standard
17827 \begin_inset space ~
17831 \begin_inset CommandInset ref
17833 reference "tab:Table-using-user-defined"
17837 use the LaTeX-arguments
17840 \begin_layout Standard
17846 \begin_layout Standard
17847 for the first column and the multicolumn,
17850 \begin_layout Standard
17856 \begin_layout Standard
17857 for the last column, and
17860 \begin_layout Standard
17866 \begin_layout Standard
17867 for the cells in the second column.
17870 \begin_layout Standard
17871 \begin_inset Float table
17877 \begin_layout Plain Layout
17878 \begin_inset Caption
17880 \begin_layout Plain Layout
17881 \begin_inset CommandInset label
17883 name "tab:Table-using-user-defined"
17887 Table using user-defined table formats
17895 \begin_layout Plain Layout
17897 \begin_inset Tabular
17898 <lyxtabular version="3" rows="3" columns="4">
17899 <features tabularvalignment="middle">
17900 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17901 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17902 <column alignment="center" valignment="middle" width="0">
17903 <column alignment="center" valignment="middle" width="0" special="K{red}">
17905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17908 \begin_layout Plain Layout
17909 verylongtablecellword
17914 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17917 \begin_layout Plain Layout
17918 multiple lines multicolumn
17923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17926 \begin_layout Plain Layout
17932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17935 \begin_layout Plain Layout
17943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17946 \begin_layout Plain Layout
17952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17955 \begin_layout Plain Layout
17961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17964 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17973 \begin_layout Plain Layout
17981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17984 \begin_layout Plain Layout
17990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17993 \begin_layout Plain Layout
17999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18002 \begin_layout Plain Layout
18008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18011 \begin_layout Plain Layout
18030 \begin_layout Subsection
18032 \begin_inset CommandInset label
18034 name "sub:Line-Thickness"
18039 \begin_inset Index idx
18042 \begin_layout Plain Layout
18043 Table Customization ! Line Thickness
18051 \begin_layout Standard
18052 The line thickness for all lines in a table can be adjusted with the length
18060 To set for example a line thickness of 1.5
18061 \begin_inset space \thinspace{}
18065 \begin_inset space ~
18069 \begin_inset CommandInset ref
18071 reference "tab:Table-with-1.5"
18075 , insert the command
18078 \begin_layout Standard
18085 arrayrulewidth}{1.5pt}
18088 \begin_layout Standard
18089 in TeX-Code before the table or table float.
18090 The changed thickness is valid for all subsequent tables.
18091 To use the default value again, set
18098 \begin_inset space \thinspace{}
18101 pt in TeX-Code after the table or table float.
18104 \begin_layout Standard
18108 \begin_layout Plain Layout
18114 arrayrulewidth}{1.5pt}
18120 \begin_inset Float table
18125 \begin_layout Plain Layout
18126 \begin_inset Caption
18128 \begin_layout Plain Layout
18129 \begin_inset CommandInset label
18131 name "tab:Table-with-1.5"
18136 \begin_inset space \thinspace{}
18147 \begin_layout Plain Layout
18149 \begin_inset Tabular
18150 <lyxtabular version="3" rows="3" columns="3">
18151 <features tabularvalignment="middle">
18152 <column alignment="center" valignment="top" width="0">
18153 <column alignment="center" valignment="top" width="0">
18154 <column alignment="center" valignment="top" width="0">
18156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18159 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18177 \begin_layout Plain Layout
18185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18188 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18206 \begin_layout Plain Layout
18214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18217 \begin_layout Plain Layout
18223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18226 \begin_layout Plain Layout
18232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18235 \begin_layout Plain Layout
18255 \begin_layout Plain Layout
18261 arrayrulewidth}{0.4pt}
18269 \begin_layout Standard
18270 \begin_inset VSpace bigskip
18273 To set the line thickness to 1.5
18274 \begin_inset space \thinspace{}
18277 pt only for horizontal lines, as in Table
18278 \begin_inset space ~
18282 \begin_inset CommandInset ref
18284 reference "tab:Table-with-horizontal"
18288 , insert these commands in TeX-Code before the table or table float:
18291 \begin_layout Standard
18301 \begin_inset Newline newline
18309 \begin_inset Newline newline
18318 arrayrulewidth 1.5pt}
18319 \begin_inset Newline newline
18330 arrayrulewidth 0.4pt}}
18333 \begin_layout Standard
18334 To return to the default line thickness, insert this command in TeX-Code
18335 after the table or table float:
18338 \begin_layout Standard
18350 \begin_layout Standard
18354 \begin_layout Plain Layout
18365 \begin_layout Plain Layout
18374 \begin_layout Plain Layout
18382 arrayrulewidth 1.5pt}
18385 \begin_layout Plain Layout
18395 arrayrulewidth 0.4pt}}
18401 \begin_inset Float table
18406 \begin_layout Plain Layout
18407 \begin_inset Caption
18409 \begin_layout Plain Layout
18410 \begin_inset CommandInset label
18412 name "tab:Table-with-horizontal"
18417 \begin_inset space \thinspace{}
18420 pt thick horizontal lines
18428 \begin_layout Plain Layout
18430 \begin_inset Tabular
18431 <lyxtabular version="3" rows="3" columns="3">
18432 <features tabularvalignment="middle">
18433 <column alignment="center" valignment="top" width="0">
18434 <column alignment="center" valignment="top" width="0">
18435 <column alignment="center" valignment="top" width="0">
18437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18440 \begin_layout Plain Layout
18446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18449 \begin_layout Plain Layout
18455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18458 \begin_layout Plain Layout
18466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18469 \begin_layout Plain Layout
18475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18478 \begin_layout Plain Layout
18484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18487 \begin_layout Plain Layout
18495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18498 \begin_layout Plain Layout
18504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18507 \begin_layout Plain Layout
18513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18516 \begin_layout Plain Layout
18536 \begin_layout Plain Layout
18552 \begin_layout Standard
18553 \begin_inset VSpace bigskip
18556 To set the line thickness to 1.5
18557 \begin_inset space \thinspace{}
18560 pt only for vertical lines, create the following column format in the document
18561 preamble, according to the description in section
18562 \begin_inset space ~
18566 \begin_inset CommandInset ref
18568 reference "sub:Customized-Format"
18575 \begin_layout Standard
18580 newcolumntype{V}{!{
18582 vrule width 1.5pt}}
18585 \begin_layout Standard
18587 \begin_inset space ~
18591 \begin_inset CommandInset ref
18593 reference "tab:Table-with-vertical"
18600 \begin_layout Standard
18606 \begin_layout Standard
18607 was used for the last column and
18610 \begin_layout Standard
18616 \begin_layout Standard
18617 for the other columns.
18620 \begin_layout Standard
18621 \begin_inset Float table
18626 \begin_layout Plain Layout
18627 \begin_inset Caption
18629 \begin_layout Plain Layout
18630 \begin_inset CommandInset label
18632 name "tab:Table-with-vertical"
18637 \begin_inset space \thinspace{}
18640 pt thick vertical lines
18648 \begin_layout Plain Layout
18650 \begin_inset Tabular
18651 <lyxtabular version="3" rows="3" columns="3">
18652 <features tabularvalignment="middle">
18653 <column alignment="center" valignment="top" width="0" special="Vc">
18654 <column alignment="center" valignment="top" width="0" special="Vc">
18655 <column alignment="center" valignment="top" width="0" special="VcV">
18657 <cell alignment="center" valignment="top" topline="true" usebox="none">
18660 \begin_layout Plain Layout
18666 <cell alignment="center" valignment="top" topline="true" usebox="none">
18669 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" usebox="none">
18678 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" usebox="none">
18689 \begin_layout Plain Layout
18695 <cell alignment="center" valignment="top" topline="true" usebox="none">
18698 \begin_layout Plain Layout
18704 <cell alignment="center" valignment="top" topline="true" usebox="none">
18707 \begin_layout Plain Layout
18715 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18718 \begin_layout Plain Layout
18724 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18727 \begin_layout Plain Layout
18733 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18736 \begin_layout Plain Layout
18755 \begin_layout Subsection
18757 \begin_inset Index idx
18760 \begin_layout Plain Layout
18761 Table Customization ! Dashed Lines
18769 \begin_layout Standard
18773 \begin_layout Plain Layout
18783 \begin_inset Note Note
18786 \begin_layout Plain Layout
18787 The following section will only be displayed when the LaTeX-package
18799 \begin_layout Standard
18800 \begin_inset Float table
18806 \begin_layout Plain Layout
18807 \begin_inset Caption
18809 \begin_layout Plain Layout
18810 \begin_inset CommandInset label
18812 name "tab:Table-with-dashed"
18816 Table with dashed lines
18824 \begin_layout Plain Layout
18826 \begin_inset Tabular
18827 <lyxtabular version="3" rows="5" columns="5">
18828 <features tabularvalignment="middle">
18829 <column alignment="center" valignment="top" width="0">
18830 <column alignment="center" valignment="top" width="0">
18831 <column alignment="center" valignment="top" width="0" special=":c">
18832 <column alignment="center" valignment="top" width="0">
18833 <column alignment="center" valignment="top" width="0">
18835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18838 \begin_layout Plain Layout
18844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18847 \begin_layout Plain Layout
18853 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18856 \begin_layout Plain Layout
18862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18865 \begin_layout Plain Layout
18871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18874 \begin_layout Plain Layout
18882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18885 \begin_layout Plain Layout
18891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18894 \begin_layout Plain Layout
18900 <cell alignment="center" valignment="top" topline="true" usebox="none">
18903 \begin_layout Plain Layout
18909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18912 \begin_layout Plain Layout
18918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18921 \begin_layout Plain Layout
18929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18932 \begin_layout Plain Layout
18936 \begin_layout Plain Layout
18950 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18953 \begin_layout Plain Layout
18959 <cell alignment="center" valignment="top" usebox="none">
18962 \begin_layout Plain Layout
18968 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18971 \begin_layout Plain Layout
18977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18980 \begin_layout Plain Layout
18988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18991 \begin_layout Plain Layout
18995 \begin_layout Plain Layout
19009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19012 \begin_layout Plain Layout
19018 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19021 \begin_layout Plain Layout
19027 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19030 \begin_layout Plain Layout
19036 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19039 \begin_layout Plain Layout
19047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19050 \begin_layout Plain Layout
19056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19059 \begin_layout Plain Layout
19065 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19068 \begin_layout Plain Layout
19074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19077 \begin_layout Plain Layout
19083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19086 \begin_layout Plain Layout
19105 \begin_layout Standard
19106 LyX does not natively support dashed lines, so you have to use TeX-Code.
19107 As a prerequisite the LaTeX-package
19112 \begin_inset Index idx
19115 \begin_layout Plain Layout
19116 LaTeX-packages ! arydshln
19121 must be loaded in the document preamble with the command
19124 \begin_layout Standard
19129 usepackage{arydshln}
19132 \begin_layout Standard
19133 To make a vertical line dashed, enter the colon
19134 \begin_inset Quotes eld
19138 \begin_inset Quotes erd
19141 together with the character for the horizontal alignment as LaTeX-argument
19142 in the table cell dialog.
19145 \begin_layout Standard
19146 For a horizontal dashed line add the command
19149 \begin_layout Standard
19157 \begin_layout Standard
19158 in TeX-Code as first element of the first cell in the table row.
19161 \begin_layout Standard
19162 For dashed multicolumn lines use the command
19165 \begin_layout Standard
19170 cdashline{line number
19175 \begin_layout Standard
19176 in TeX-Code as the first element of the first cell in the table row.
19177 If you have for example a multicolumn spanning columns 2 to 4 and you want
19178 to have a dashed line above, add the command
19181 \begin_layout Standard
19189 \begin_layout Standard
19190 as the first element of the first cell in the row of the multicolumn.
19193 \begin_layout Standard
19194 \begin_inset VSpace bigskip
19200 \begin_layout Standard
19202 \begin_inset space ~
19206 \begin_inset CommandInset ref
19208 reference "tab:Table-with-dashed"
19213 \begin_inset Quotes eld
19221 \begin_inset Quotes erd
19224 as LaTeX-argument of the third column.
19225 The TeX-Code command
19231 was inserted in the first cell of the third row and the TeX-Code command
19232 \begin_inset Newline newline
19241 was inserted in the first cell of the fourth row.
19244 \begin_layout Standard
19245 \begin_inset Note Greyedout
19248 \begin_layout Plain Layout
19257 is apparently not compatible with the LaTeX-package
19262 \begin_inset Index idx
19265 \begin_layout Plain Layout
19266 LaTeX-packages ! colortbl
19271 that is used for colored tables in section
19272 \begin_inset space ~
19276 \begin_inset CommandInset ref
19278 reference "sec:Colored-Tables"
19283 That means colored tables cannot have dashed lines.
19291 \begin_layout Standard
19295 \begin_layout Plain Layout
19305 \begin_inset Note Note
19308 \begin_layout Plain Layout
19309 The following will be displayed when the LaTeX-package
19321 \begin_layout Standard
19322 You need to install the package
19326 to see the content of this section in the output.
19329 \begin_layout Standard
19333 \begin_layout Plain Layout
19345 \begin_layout Chapter
19347 \begin_inset Index idx
19350 \begin_layout Plain Layout
19359 \begin_layout Section
19361 \begin_inset CommandInset label
19363 name "sec:FloatIntroduction"
19368 \begin_inset Index idx
19371 \begin_layout Plain Layout
19372 Floats ! Introduction
19380 \begin_layout Standard
19381 A float is a block of text associated with some sort of label, which doesn't
19382 have a fixed location.
19384 \begin_inset Quotes eld
19388 \begin_inset Quotes erd
19391 forward or backward a page or two, to wherever it fits best.
19399 \begin_inset space ~
19404 are also floats, because they can float to the next page when there are
19405 too many notes on the page.
19408 \begin_layout Standard
19409 Floats allow a high quality layout.
19410 Images and tables can be spread evenly to the pages to avoid white space
19411 and pages without text.
19412 As the floating often destroys the context between the text and the image/table
19413 , every float can be referenced in the text.
19414 Floats are therefore numbered.
19415 Referencing is described in section
19416 \begin_inset space ~
19420 \begin_inset CommandInset ref
19422 reference "sec:Referencing-Floats"
19429 \begin_layout Standard
19430 To insert a float, use the menu
19432 Insert\SpecialChar \menuseparator
19440 inset, a box with a label.
19441 The label will automatically be translated to the document language in
19443 After the label you can insert the caption text.
19444 The image or table is inserted above or below the caption in a separate
19445 paragraph within the float.
19446 More about the caption placement is contained in section
19447 \begin_inset space ~
19451 \begin_inset CommandInset ref
19453 reference "sec:Caption-Placement"
19458 To keep your LyX-document readable, you can open and close the float box
19459 by left-clicking on the box label.
19460 A closed float box looks like this:
19461 \begin_inset Graphics
19462 filename clipart/floatQt4.png
19464 scaleBeforeRotation
19468 – a gray button with a red label.
19471 \begin_layout Standard
19472 It is recommended that you insert floats as a separate standard paragraph
19473 to avoid possible LaTeX-errors that can occur when the surrounding text
19474 is specially formatted.
19477 \begin_layout Standard
19478 Existing figures or tables can be put into a float by highlighting them
19479 and then pressing the corresponding toolbar button for a new float.
19482 \begin_layout Section
19486 \begin_layout Standard
19487 Besides figure and table floats that are described in sections
19488 \begin_inset space ~
19492 \begin_inset CommandInset ref
19494 reference "sec:Figure-Floats"
19499 \begin_inset CommandInset ref
19501 reference "sec:Table-Floats"
19505 respectively, LyX offers the float types
19516 \begin_layout Subsection
19518 \begin_inset Index idx
19521 \begin_layout Plain Layout
19522 Floats ! Algorithms
19530 \begin_layout Standard
19531 \begin_inset Float algorithm
19537 \begin_layout Plain Layout
19538 \begin_inset Caption
19540 \begin_layout Plain Layout
19541 \begin_inset CommandInset label
19543 name "alg:Example-Algorithm-float"
19547 Example Algorithm float
19555 \begin_layout LyX-Code
19557 \begin_inset Newline newline
19560 Sum:= Sum + A(I); /*comment*/
19561 \begin_inset Newline newline
19565 \begin_inset VSpace -4mm
19576 \begin_layout Standard
19577 This float type is inserted with the menu
19579 Insert\SpecialChar \menuseparator
19580 Floats\SpecialChar \menuseparator
19584 It is used for program codes and descriptions of algorithms and can be
19585 seen as an alternative to program code listings that are explained in chapter
19586 \begin_inset space ~
19590 \begin_inset CommandInset ref
19592 reference "cha:Program-Code-Listings"
19597 A possible environment for algorithms is the
19601 , described in LyX's
19607 \begin_inset space ~
19611 \begin_inset CommandInset ref
19613 reference "alg:Example-Algorithm-float"
19617 is an example of an algorithm float where -4
19618 \begin_inset space \thinspace{}
19621 mm vertical space was added at the end of the float to have the bottom rule
19622 exactly below the last text line.
19625 \begin_layout Standard
19626 The float label is not automatically translated into the document language.
19627 If your document is not in English, you have to do this manually by adding
19628 the following line to the document preamble
19633 \begin_layout Standard
19638 floatname{algorithm}{your
19639 \begin_inset space ~
19645 \begin_layout Standard
19649 \begin_inset space ~
19655 \begin_inset Quotes eld
19663 \begin_inset Quotes erd
19669 \begin_layout Standard
19670 To insert the list of algorithms you can use the menu
19672 Insert\SpecialChar \menuseparator
19674 \begin_inset space \thinspace{}
19678 \begin_inset space \thinspace{}
19681 TOC\SpecialChar \menuseparator
19684 when your document has the same language as LyX's menu names.
19685 In other cases use this command in TeX-Code instead:
19688 \begin_layout Standard
19693 listof{algorithm}{your
19694 \begin_inset space ~
19700 \begin_layout Standard
19704 \begin_inset space ~
19710 \begin_inset Quotes eld
19718 \begin_inset Quotes erd
19724 \begin_layout Standard
19725 Algorithm floats are not by default numbered in the scheme
19726 \begin_inset Quotes eld
19730 \begin_inset Quotes erd
19733 as is the case for table and figure floats in many document-classes.
19734 To number algorithm floats in the same scheme, add this command to your
19738 \begin_layout Standard
19743 numberwithin{algorithm}{chapter}
19746 \begin_layout Standard
19747 To be able to use the command
19756 \begin_inset space ~
19761 in the document settings the option
19764 \begin_inset space ~
19768 \begin_inset space ~
19772 \begin_inset space ~
19780 \begin_layout Subsection
19782 \begin_inset Index idx
19785 \begin_layout Plain Layout
19786 Floats ! Wrap Floats
19794 \begin_layout Standard
19795 \begin_inset Wrap figure
19802 \begin_layout Plain Layout
19803 \begin_inset Graphics
19804 filename clipart/mobius.eps
19806 scaleBeforeRotation
19807 rotateOrigin center
19814 \begin_layout Plain Layout
19815 \begin_inset Caption
19817 \begin_layout Plain Layout
19818 \begin_inset CommandInset label
19820 name "fig:This-is-a"
19824 This is a figure wrap float.
19834 This float type is used if you want to wrap text around a figure or table
19835 so that it only occupies some fraction of the column width.
19836 It can be inserted using the menu
19838 Insert\SpecialChar \menuseparator
19839 Floats\SpecialChar \menuseparator
19841 \begin_inset space ~
19845 \begin_inset space ~
19853 \begin_inset space ~
19857 \begin_inset space ~
19862 if the LaTeX-package
19867 \begin_inset Index idx
19870 \begin_layout Plain Layout
19871 LaTeX-packages ! wrapfig
19875 \begin_layout Plain Layout
19893 \begin_layout Plain Layout
19894 Installing a LaTeX-package is explained it in the
19897 \begin_inset space ~
19907 The settings of the float can be modified by right-clicking on the float
19909 The mandatory settings are the float
19922 that specifies how much the float is set into the paragraph
19923 \begin_inset space \thinspace{}
19927 \begin_inset space \thinspace{}
19930 page margin, and the
19933 \begin_inset space ~
19938 that specifies how many text lines the float will approximately need.
19939 The line span is often hard to approximate; so it is better only to use
19940 it when you encounter float placement problems.
19941 You can furthermore decide if LaTeX is allowed to let the float float within
19942 the paragraph or to surrounding paragraphs.
19944 \begin_inset space ~
19948 \begin_inset CommandInset ref
19950 reference "fig:This-is-a"
19954 is an example text wrap float with a width of 40
19955 \begin_inset space \thinspace{}
19959 \begin_inset space \thinspace{}
19962 cm overhang, set to the left.
19966 \begin_layout Plain Layout
19967 Available units are explained in appendix
19968 \begin_inset space ~
19972 \begin_inset CommandInset ref
19974 reference "cha:Units-available-in"
19986 \begin_layout Standard
19987 \begin_inset Note Greyedout
19990 \begin_layout Plain Layout
19996 \begin_inset space ~
19999 wrap float floats are fragile! E.
20000 \begin_inset space \thinspace{}
20004 \begin_inset space \space{}
20007 having a figure too close to the bottom of the page can mess things up in
20008 such a way that the float does not appear in the output or that it is placed
20009 over some other text.
20017 \begin_layout Standard
20021 \begin_layout Itemize
20022 Wrap floats should not be placed in paragraphs that run over a page break.
20023 That means that wrap floats are better inserted in their exact place when
20024 the document is almost finished and you are able to estimate where page
20025 breaks will appear.
20028 \begin_layout Itemize
20029 Wrap floats should either be placed in their own paragraph before the paragraph
20030 where they should wrap into or within a paragraph.
20033 \begin_layout Itemize
20034 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20035 there is a text paragraph between them as separator.
20038 \begin_layout Itemize
20039 Wrap floats are not allowed in section headings or tables.
20042 \begin_layout Section
20044 \begin_inset Index idx
20047 \begin_layout Plain Layout
20056 \begin_layout Standard
20057 Floats are usually numbered either independently from the sections the floats
20058 are in, or in the scheme
20059 \begin_inset Quotes eld
20063 \begin_inset Quotes erd
20067 \begin_inset Quotes eld
20071 \begin_inset Quotes erd
20075 This depends on the document class used.
20078 \begin_layout Standard
20079 To change section-independent numbering, you can use this command in the
20083 \begin_layout Standard
20095 \begin_layout Standard
20102 is the command that prints the table number, for figure floats, the command
20116 in the command above prints the table number as small roman number.
20119 \begin_layout Standard
20120 To change the numbering scheme for example to
20121 \begin_inset Quotes eld
20125 \begin_inset Quotes erd
20128 , use this command in the preamble:
20131 \begin_layout Standard
20136 numberwithin{table}{subsection}
20139 \begin_layout Standard
20140 To be able to use the command
20149 \begin_inset space ~
20154 in the document settings the option
20157 \begin_inset space ~
20161 \begin_inset space ~
20165 \begin_inset space ~
20173 \begin_layout Standard
20174 Please also have a look at section
20175 \begin_inset space ~
20179 \begin_inset CommandInset ref
20181 reference "sub:Footnote-Numbering"
20185 for the details and important notes about the numbering commands.
20188 \begin_layout Section
20190 \begin_inset CommandInset label
20192 name "sec:Referencing-Floats"
20197 \begin_inset Index idx
20200 \begin_layout Plain Layout
20201 Floats ! References
20207 \begin_inset Index idx
20210 \begin_layout Plain Layout
20211 References ! to Floats
20219 \begin_layout Standard
20220 To reference a float, insert a label into its caption using the menu
20222 Insert\SpecialChar \menuseparator
20225 or the toolbar button
20226 \begin_inset Graphics
20227 filename ../images/label-insert.png
20229 scaleBeforeRotation
20234 A grey label box like this one:
20235 \begin_inset Graphics
20236 filename clipart/labelQt4.png
20238 scaleBeforeRotation
20242 will be inserted and the label window pops up asking for the label text.
20243 LyX offers as text the first words of the caption with a prefix.
20244 The prefix depends on the float type, e.
20245 \begin_inset space \thinspace{}
20249 \begin_inset space \space{}
20252 for figure floats the prefix will be "
20259 \begin_layout Standard
20260 The label is used as anchor and name for the reference.
20261 You can refer to the label using the menu
20263 Insert\SpecialChar \menuseparator
20266 or the toolbar button
20267 \begin_inset Graphics
20268 filename ../images/dialog-show-new-inset_ref.png
20270 scaleBeforeRotation
20275 A grey cross-reference box like this one:
20276 \begin_inset Graphics
20277 filename clipart/referenceQt4.png
20279 scaleBeforeRotation
20283 will be inserted and the cross-reference window appear showing all labels
20285 If you have multiple LyX-documents opened, choose the one you are working
20286 on from the drop-list at the top of the dialog.
20287 You can now sort the labels alphabetically and then choose one.
20288 At the position of the cross-reference box the float number will appear
20292 \begin_layout Standard
20293 It is recommended that you use a protected space between the cross-reference
20294 name and its number to avoid line breaks between them.
20295 If a cross-reference refers to a non-existing label, you will see two question
20296 marks in the output instead of the reference.
20299 \begin_layout Standard
20300 You can change labels at any time by clicking on the label box.
20301 References to the changed label will automatically change its link to the
20302 new label text, so that you don't need to take care about this.
20305 \begin_layout Standard
20309 \begin_inset space ~
20313 \begin_inset space ~
20318 in the cross-reference window sets the cursor before the referred label.
20319 The button text changes then to Go
20320 \begin_inset space ~
20323 Back and you can use it to set the cursor back to the cross-reference.
20324 Right-clicking on a cross-reference box also sets the cursor before the
20325 referenced label but without the possibility of going back.
20328 \begin_layout Subsection
20329 Cross-Reference Formats
20330 \begin_inset CommandInset label
20332 name "sub:Cross-Reference-Formats"
20337 \begin_inset Index idx
20340 \begin_layout Plain Layout
20341 References ! Formats
20349 \begin_layout Standard
20350 There are six varieties of cross-references:
20353 \begin_layout Description
20354 <reference>: prints the float number, this is the default:
20355 \begin_inset CommandInset ref
20357 reference "fig:Two-distorted-images"
20364 \begin_layout Description
20365 (<reference>): prints the float number within two parentheses, this is the
20366 style normally used to reference formulas, especially when the reference
20368 \begin_inset Quotes eld
20372 \begin_inset Quotes erd
20376 \begin_inset CommandInset ref
20385 \begin_layout Description
20386 <page>: prints the page number: Page
20387 \begin_inset space ~
20391 \begin_inset CommandInset ref
20392 LatexCommand pageref
20393 reference "fig:Two-distorted-images"
20400 \begin_layout Description
20402 \begin_inset space ~
20406 \begin_inset space ~
20409 <page>: prints the text "on page" and the page number:
20410 \begin_inset CommandInset ref
20411 LatexCommand vpageref
20412 reference "fig:Two-distorted-images"
20419 \begin_layout Description
20421 \begin_inset space ~
20425 \begin_inset space ~
20429 \begin_inset space ~
20432 <page>: prints the float number, the text "on page", and the page number:
20434 \begin_inset CommandInset ref
20436 reference "fig:Two-distorted-images"
20443 \begin_layout Description
20445 \begin_inset space ~
20448 reference: prints a self defined cross-reference format.
20449 \begin_inset Newline newline
20453 \begin_inset Note Greyedout
20456 \begin_layout Plain Layout
20461 This feature is only available when you have the LaTeX-package
20466 \begin_inset Index idx
20469 \begin_layout Plain Layout
20470 LaTeX-packages ! prettyref
20483 \begin_layout Standard
20488 will not print the page number if the label is on the previous, the same,
20491 \begin_inset space \thinspace{}
20495 \begin_inset space \space{}
20499 \begin_inset Quotes eld
20507 \begin_inset Quotes erd
20513 <reference> on page <page>
20515 will not print anything about the page if the label is on the same page.
20518 \begin_layout Standard
20519 The number and current page of the part of the document referred to in the
20520 output is automatically calculated by LaTeX.
20521 The varieties are adjusted in the field
20525 of the cross-reference window that appears when you click on the cross-referenc
20529 \begin_layout Standard
20530 \begin_inset Note Greyedout
20533 \begin_layout Plain Layout
20543 \begin_inset Index idx
20546 \begin_layout Plain Layout
20547 LaTeX-packages ! prettyref
20552 does not know all of LyX's possible label shortcuts
20556 \begin_layout Plain Layout
20557 \begin_inset Quotes eld
20561 \begin_inset Quotes erd
20564 is for example LyX's shortcut for labels in figure captions.
20569 and is not internationalized.
20570 To find out how to tell
20574 new shortcuts and translations, have a look at its documentation
20575 \begin_inset CommandInset citation
20589 \begin_layout Standard
20590 \begin_inset Note Greyedout
20593 \begin_layout Plain Layout
20598 Due to a bug in the LaTeX-package
20602 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20603 languages that make the period character active (like French).
20604 For a workaround, see
20605 \begin_inset Newline newline
20609 \begin_inset CommandInset href
20611 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20623 \begin_layout Subsection
20624 Automatic Reference Naming
20625 \begin_inset Index idx
20628 \begin_layout Plain Layout
20629 References ! Automatic Reference Naming
20637 \begin_layout Standard
20643 \begin_inset Index idx
20646 \begin_layout Plain Layout
20647 LaTeX-packages ! hyperref
20652 , that is enabled in the
20660 dialog, provides a very useful feature that cross-references automatically
20661 include the name of the referenced floats (or text parts like
20666 So you will save having to write e.
20667 \begin_inset space \thinspace{}
20671 \begin_inset space \space{}
20675 \begin_inset Quotes eld
20679 \begin_inset Quotes erd
20682 before every reference to a figure.
20683 To use this feature, enable
20687 and insert this line to the LaTeX preamble:
20690 \begin_layout Standard
20706 \begin_layout Standard
20707 When you prefer other reference names than the default ones, for example
20708 you want instead of
20709 \begin_inset Quotes eld
20713 \begin_inset Quotes erd
20717 \begin_inset Quotes eld
20721 \begin_inset space \thinspace{}
20725 \begin_inset Quotes eld
20728 , you can redefine the name by inserting this in the preamble:
20731 \begin_layout Standard
20742 sectionautorefname}
20743 \begin_inset Newline newline
20747 \begin_inset Phantom HPhantom
20750 \begin_layout Plain Layout
20753 \begin_inset space ~
20766 \begin_layout Standard
20767 When you are using another document language than English, replace
20768 \begin_inset Newline newline
20783 , where *** is the name of the language used.
20786 \begin_layout Standard
20787 To get automatic names, but not for certain reference types, for example
20788 not for equations, use this preamble code:
20791 \begin_layout Standard
20799 \begin_inset Newline newline
20809 \begin_inset Newline newline
20820 equationautorefname}
20821 \begin_inset Newline newline
20825 \begin_inset Phantom HPhantom
20828 \begin_layout Plain Layout
20831 \begin_inset space ~
20846 \begin_layout Standard
20847 More about this topic can be found in
20852 \begin_inset CommandInset citation
20861 \begin_layout Standard
20862 \begin_inset Note Greyedout
20865 \begin_layout Plain Layout
20870 Automatic reference naming cannot be used when you use cross-references
20874 \begin_inset space ~
20879 style, as described in section
20880 \begin_inset space ~
20884 \begin_inset CommandInset ref
20886 reference "sub:Cross-Reference-Formats"
20898 \begin_layout Standard
20903 manual is an example where automatic reference naming is used.
20906 \begin_layout Subsection
20908 \begin_inset CommandInset label
20910 name "sub:Reference-Position"
20915 \begin_inset Index idx
20918 \begin_layout Plain Layout
20919 References ! Reference Position
20927 \begin_layout Standard
20933 \begin_inset Index idx
20936 \begin_layout Plain Layout
20937 LaTeX-packages ! hyperref
20950 dialog to link cross-references in the output, you will see that clicking
20951 on an image float reference jumps to the image label.
20952 The caption will be the first text part on the screen, so that you cannot
20953 see the image without scrolling.
20954 This is because the reference link anchor is placed at the position of
20956 With the use of the package
20961 \begin_inset Index idx
20964 \begin_layout Plain Layout
20965 LaTeX-packages ! hypcap
20970 , which is part of the LaTeX-package
20975 \begin_inset Index idx
20978 \begin_layout Plain Layout
20979 LaTeX-packages ! oberdiek
20984 , the link anchor is placed at the beginning of a float.
20985 To use this feature for figure floats, load
20989 in the document preamble with the line
20992 \begin_layout Standard
20997 usepackage[figure]{hypcap}
21000 \begin_layout Standard
21005 for all float types but this is not recommended for stability reasons.
21006 For more information, have a look at
21011 \begin_inset CommandInset citation
21020 \begin_layout Standard
21021 \begin_inset Note Greyedout
21024 \begin_layout Plain Layout
21033 has no effect on references to subfigures.
21041 \begin_layout Section
21043 \begin_inset CommandInset label
21045 name "sec:Float-Placement"
21050 \begin_inset Index idx
21053 \begin_layout Plain Layout
21062 \begin_layout Standard
21063 Right-clicking on a float-box opens a dialog where you can alter the placement
21064 options that LaTeX uses for positioning the float.
21065 \begin_inset Newline newline
21071 \begin_inset space ~
21076 is only useful for two-column documents: If you select it, the float will
21077 span both columns on the page instead of being confined to just one.
21078 \begin_inset Newline newline
21084 \begin_inset space ~
21089 is used to rotate floats, see section
21090 \begin_inset CommandInset ref
21092 reference "sec:Rotated-Floats"
21099 \begin_layout Standard
21100 You can use one ore more of the following options in the float dialog to
21101 set the placement for a particular float when you uncheck the option
21104 \begin_inset space ~
21108 \begin_inset space ~
21116 \begin_layout Description
21118 \begin_inset space ~
21122 \begin_inset space ~
21125 possible try to place the float on the position where it has been inserted
21128 \begin_layout Description
21130 \begin_inset space ~
21134 \begin_inset space ~
21137 page try to place the float at the top of the current page
21140 \begin_layout Description
21142 \begin_inset space ~
21146 \begin_inset space ~
21149 page try to place the float at the bottom of the current page
21152 \begin_layout Description
21154 \begin_inset space ~
21158 \begin_inset space ~
21161 floats try to place the float on its own page
21164 \begin_layout Standard
21165 The order of the above option is
21170 That means, if you use the default placement, LaTeX will first try out
21174 \begin_inset space ~
21178 \begin_inset space ~
21186 \begin_inset space ~
21190 \begin_inset space ~
21195 , and then the others.
21196 If you do not use the default, LaTeX will try only the checked options
21197 but in the same order.
21199 \begin_inset space ~
21202 placements are possible the procedure is internally repeated but it is tried
21203 to put the float on the following page.
21206 \begin_layout Standard
21207 By default, each option has its own rules:
21210 \begin_layout Labeling
21211 \labelwidthstring 00.00.0000
21215 \begin_inset space ~
21219 \begin_inset space ~
21224 only floats occupying less than 70
21225 \begin_inset space \thinspace{}
21228 % of the page can be placed at the top of a page (
21237 \begin_layout Labeling
21238 \labelwidthstring 00.00.0000
21242 \begin_inset space ~
21246 \begin_inset space ~
21251 : only floats occupying less than 30
21252 \begin_inset space \thinspace{}
21255 % of the page can be placed at the bottom of a page.
21265 \begin_layout Labeling
21266 \labelwidthstring 00.00.0000
21270 \begin_inset space ~
21274 \begin_inset space ~
21279 : only if more than 50
21280 \begin_inset space \thinspace{}
21283 % of the page are occupied by floats, several floats can be set together
21294 \begin_layout Standard
21295 If you don't like these rules, you can ignore them by using the additional
21299 \begin_inset space ~
21303 \begin_inset space ~
21309 \begin_inset Newline newline
21312 You can also redefine the rules with LaTeX-commands that are given in parenthese
21313 s after the rules description above.
21314 To increase for example the often too small default of the bottom-rule
21316 \begin_inset space \thinspace{}
21319 % of the page, add this line to your document preamble:
21322 \begin_layout Standard
21329 bottomfraction}{0.5}
21332 \begin_layout Standard
21333 Sometimes you might need, under all circumstances, a float to be placed
21334 exactly at the position where it is inserted.
21335 For this case you can use the option
21338 \begin_inset space ~
21344 Use this option very rarely and only if the document is almost ready to
21345 be printed, because the float is then no longer able to
21346 \begin_inset Quotes eld
21350 \begin_inset Quotes erd
21353 when you change your document and this will often destroy the page layout.
21356 \begin_layout Standard
21357 There are no placement options for text wrap floats, because they are always
21358 surrounded by the text of a certain paragraph.
21359 \begin_inset VSpace bigskip
21365 \begin_layout Standard
21366 Sometimes you have the problem that a float is placed at the top of a page
21367 while its corresponding section starts at the middle of the page, so that
21368 the reader could think the float is part of the previous section.
21369 To avoid this the LaTeX-command
21376 It suppresses a given float placement for the page where it is inserted
21377 and can therefore be used to avoid floats being set before a section starts.
21378 To get this, add these commands to your document preamble:
21381 \begin_layout Standard
21391 \begin_inset Newline newline
21405 \begin_layout Standard
21406 You can define the same for all section headings, like chapters and subsections.
21407 This definition is not recommended to be used for small text parts like
21408 subsubsections because LaTeX may then have problems finding a suitable
21412 \begin_layout Standard
21413 \begin_inset VSpace bigskip
21416 In some cases it is required to have all figures/tables at the end of the
21418 For this purpose the LaTeX-package
21423 \begin_inset Index idx
21426 \begin_layout Plain Layout
21427 LaTeX-packages ! endfloat
21433 It puts all figure and table floats at the end of the document into their
21435 At the original float position a text hint like
21436 \begin_inset Quotes eld
21442 \begin_inset space ~
21448 \begin_inset Quotes erd
21452 The endfloat-package is loaded in the preamble with the line
21455 \begin_layout Standard
21460 usepackage[options]{endfloat}
21463 \begin_layout Standard
21464 There are various package options to format the created figure/table sections.
21465 For more information we refer to the
21470 \begin_inset CommandInset citation
21477 \begin_inset Newline newline
21481 \begin_inset Note Greyedout
21484 \begin_layout Plain Layout
21489 doesn't provide an automatic translation for the text hint, you have to
21490 do this manually, see section
21491 \begin_inset space ~
21495 \begin_inset CommandInset citation
21507 \begin_inset Newline newline
21511 \begin_inset Note Greyedout
21514 \begin_layout Plain Layout
21519 There is currently a bug in
21523 when the caption contains a German
21524 \begin_inset Quotes eld
21528 \begin_inset Quotes erd
21532 Use in this case the command
21533 \begin_inset Quotes eld
21543 \begin_inset Quotes erd
21546 in TeX-Code instead of
21547 \begin_inset Quotes eld
21551 \begin_inset Quotes erd
21562 \begin_layout Standard
21563 \begin_inset VSpace bigskip
21566 For more details about float placements, have a look at LaTeX books,
21567 \begin_inset CommandInset citation
21569 key "latexcompanion,latexguide,latexbook"
21576 \begin_layout Section
21578 \begin_inset CommandInset label
21580 name "sec:Rotated-Floats"
21585 \begin_inset Index idx
21588 \begin_layout Plain Layout
21597 \begin_layout Standard
21598 Especially for wide tables you might have floats rotated.
21599 To rotate a whole float including the caption, right-click on the float-box
21603 \begin_inset space ~
21611 \begin_layout Standard
21612 Rotated floats are always placed on a page of their own (or column of their
21613 own; in case you have a multi-column document).
21614 You can let them span several columns using the float settings option
21617 \begin_inset space ~
21623 Floats are rotated so that you can read them from the outside margin.
21624 To force a certain rotation direction for all pages, you can add either
21633 to the document class options.
21636 \begin_layout Standard
21637 Referencing rotated floats is the same as for normal floats, the caption
21638 format is also the same: Table
21639 \begin_inset space ~
21643 \begin_inset CommandInset ref
21645 reference "tab:Rotated-table"
21649 is an example of a rotated table float.
21652 \begin_layout Standard
21653 \begin_inset Note Greyedout
21656 \begin_layout Plain Layout
21661 Not all DVI-viewers are able to display rotated floats.
21669 \begin_layout Standard
21670 \begin_inset Float table
21675 \begin_layout Plain Layout
21676 \begin_inset Caption
21678 \begin_layout Plain Layout
21679 \begin_inset CommandInset label
21681 name "tab:Rotated-table"
21693 \begin_layout Plain Layout
21695 \begin_inset Tabular
21696 <lyxtabular version="3" rows="1" columns="5">
21697 <features tabularvalignment="middle">
21698 <column alignment="center" valignment="top" width="0">
21699 <column alignment="center" valignment="top" width="0">
21700 <column alignment="center" valignment="top" width="0">
21701 <column alignment="center" valignment="top" width="0">
21702 <column alignment="center" valignment="top" width="0">
21704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21707 \begin_layout Plain Layout
21713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21716 \begin_layout Plain Layout
21722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21725 \begin_layout Plain Layout
21731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21734 \begin_layout Plain Layout
21740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21743 \begin_layout Plain Layout
21762 \begin_layout Section
21764 \begin_inset Index idx
21767 \begin_layout Plain Layout
21776 \begin_layout Standard
21777 Subfloats are for example used when a figure consists of several images.
21778 They are created by inserting a float into an existing float.
21779 The placement of the subfloats can be controlled in the same way as for
21780 paragraphs as shown in table
21781 \begin_inset space ~
21785 \begin_inset CommandInset ref
21787 reference "tab:Two-subtables-side"
21792 \begin_inset CommandInset ref
21794 reference "tab:Two-subtables-upon"
21801 \begin_layout Standard
21802 Referencing subfloats works as for normal floats: Table
21803 \begin_inset space ~
21807 \begin_inset CommandInset ref
21809 reference "tab:This-is-subtable-a"
21814 \begin_inset CommandInset ref
21816 reference "tab:This-is-subtable-b"
21820 are subtables of table
21821 \begin_inset space ~
21825 \begin_inset CommandInset ref
21827 reference "tab:Two-subtables-side"
21834 \begin_layout Standard
21835 \begin_inset Float table
21840 \begin_layout Plain Layout
21841 \begin_inset Caption
21843 \begin_layout Plain Layout
21844 \begin_inset CommandInset label
21846 name "tab:Two-subtables-side"
21850 Two subtables placed side by side.
21858 \begin_layout Plain Layout
21860 \begin_inset space \hfill{}
21864 \begin_inset Float table
21869 \begin_layout Plain Layout
21870 \begin_inset Caption
21872 \begin_layout Plain Layout
21873 \begin_inset CommandInset label
21875 name "tab:This-is-subtable-a"
21879 This is subtable a.
21887 \begin_layout Plain Layout
21889 \begin_inset Tabular
21890 <lyxtabular version="3" rows="1" columns="5">
21891 <features tabularvalignment="middle">
21892 <column alignment="center" valignment="top" width="0">
21893 <column alignment="center" valignment="top" width="0">
21894 <column alignment="center" valignment="top" width="0">
21895 <column alignment="center" valignment="top" width="0">
21896 <column alignment="center" valignment="top" width="0">
21898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21901 \begin_layout Plain Layout
21907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21910 \begin_layout Plain Layout
21916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21919 \begin_layout Plain Layout
21925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21928 \begin_layout Plain Layout
21934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21937 \begin_layout Plain Layout
21954 \begin_inset space \hfill{}
21958 \begin_inset Float table
21963 \begin_layout Plain Layout
21964 \begin_inset Caption
21966 \begin_layout Plain Layout
21967 \begin_inset CommandInset label
21969 name "tab:This-is-subtable-b"
21973 This is subtable b.
21981 \begin_layout Plain Layout
21983 \begin_inset Tabular
21984 <lyxtabular version="3" rows="1" columns="5">
21985 <features tabularvalignment="middle">
21986 <column alignment="center" valignment="top" width="0">
21987 <column alignment="center" valignment="top" width="0">
21988 <column alignment="center" valignment="top" width="0">
21989 <column alignment="center" valignment="top" width="0">
21990 <column alignment="center" valignment="top" width="0">
21992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21995 \begin_layout Plain Layout
22001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22004 \begin_layout Plain Layout
22010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22013 \begin_layout Plain Layout
22019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22022 \begin_layout Plain Layout
22028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22031 \begin_layout Plain Layout
22048 \begin_inset space \hfill{}
22059 \begin_layout Standard
22060 \begin_inset Float table
22065 \begin_layout Plain Layout
22066 \begin_inset Caption
22068 \begin_layout Plain Layout
22069 \begin_inset CommandInset label
22071 name "tab:Two-subtables-upon"
22075 Two subtables placed one above the other.
22076 (a) table with 4 cells, (b) table with 5 cells.
22084 \begin_layout Plain Layout
22086 \begin_inset Float table
22091 \begin_layout Plain Layout
22092 \begin_inset Caption
22094 \begin_layout Plain Layout
22103 \begin_layout Plain Layout
22105 \begin_inset Tabular
22106 <lyxtabular version="3" rows="1" columns="4">
22107 <features tabularvalignment="middle">
22108 <column alignment="center" valignment="top" width="0">
22109 <column alignment="center" valignment="top" width="0">
22110 <column alignment="center" valignment="top" width="0">
22111 <column alignment="center" valignment="top" width="0">
22113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22116 \begin_layout Plain Layout
22122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22125 \begin_layout Plain Layout
22131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22134 \begin_layout Plain Layout
22140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22143 \begin_layout Plain Layout
22162 \begin_layout Plain Layout
22164 \begin_inset Float table
22169 \begin_layout Plain Layout
22170 \begin_inset Caption
22172 \begin_layout Plain Layout
22181 \begin_layout Plain Layout
22183 \begin_inset Tabular
22184 <lyxtabular version="3" rows="1" columns="5">
22185 <features tabularvalignment="middle">
22186 <column alignment="center" valignment="top" width="0">
22187 <column alignment="center" valignment="top" width="0">
22188 <column alignment="center" valignment="top" width="0">
22189 <column alignment="center" valignment="top" width="0">
22190 <column alignment="center" valignment="top" width="0">
22192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22195 \begin_layout Plain Layout
22201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22213 \begin_layout Plain Layout
22219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22222 \begin_layout Plain Layout
22228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22231 \begin_layout Plain Layout
22255 \begin_layout Section
22256 Floats Side by Side
22257 \begin_inset Index idx
22260 \begin_layout Plain Layout
22261 Floats ! Side by side
22269 \begin_layout Standard
22270 To place floats side by side, as in Figures
22271 \begin_inset space ~
22275 \begin_inset CommandInset ref
22277 reference "fig:Float-left"
22282 \begin_inset CommandInset ref
22284 reference "fig:Float-right"
22293 In it two minipage boxes are inserted.
22297 \begin_layout Plain Layout
22298 Minipages are explained in section
22299 \begin_inset space ~
22303 \begin_inset CommandInset ref
22305 reference "sec:Minipages"
22314 The width is set to 45
22315 \begin_inset space \thinspace{}
22319 \begin_inset space \thinspace{}
22322 column% and the box alignment to
22327 The minipage boxes contain the image and the caption in the same way as
22328 they are in a float.
22329 The only difference is that the image unit
22332 \begin_inset space ~
22336 \begin_inset space ~
22341 is now calculated according to the width of the minipage boxes.
22344 \begin_layout Standard
22345 \begin_inset Float figure
22350 \begin_layout Plain Layout
22351 \begin_inset Box Frameless
22361 height_special "totalheight"
22364 \begin_layout Plain Layout
22366 \begin_inset Graphics
22367 filename clipart/mobius.eps
22370 scaleBeforeRotation
22377 \begin_layout Plain Layout
22378 \begin_inset Caption
22380 \begin_layout Plain Layout
22381 \begin_inset CommandInset label
22383 name "fig:Float-left"
22387 Float on the left side.
22398 \begin_inset space \hfill{}
22402 \begin_inset Box Frameless
22412 height_special "totalheight"
22415 \begin_layout Plain Layout
22417 \begin_inset Graphics
22418 filename clipart/platypus.eps
22421 scaleBeforeRotation
22428 \begin_layout Plain Layout
22429 \begin_inset Caption
22431 \begin_layout Plain Layout
22432 \begin_inset CommandInset label
22434 name "fig:Float-right"
22438 Float on the right side.
22451 \begin_layout Plain Layout
22460 \begin_layout Section
22462 \begin_inset Index idx
22465 \begin_layout Plain Layout
22466 Caption ! Formatting
22472 \begin_inset Index idx
22475 \begin_layout Plain Layout
22476 Floats ! Caption Formatting
22482 \begin_inset CommandInset label
22484 name "sec:Caption-Formatting"
22491 \begin_layout Standard
22496 environment is the default paragraph environment for
22501 On the LyX screen captions appear as label, e.
22502 \begin_inset space \thinspace{}
22506 \begin_inset space \space{}
22510 \begin_inset Quotes eld
22518 \begin_inset Quotes erd
22521 followed by the caption text.
22523 \begin_inset Quotes eld
22527 \begin_inset Quotes erd
22530 is the actual reference number.
22531 By default the label and the number are in the same font as the caption
22532 text and a colon follows the number to divide the label from the text.
22533 This caption format is not suitable for all document formats.
22537 \begin_layout Standard
22538 To change the default caption format, load the LaTeX-package
22543 \begin_inset Index idx
22546 \begin_layout Plain Layout
22547 LaTeX-packages ! caption
22552 in the document preamble with this line:
22555 \begin_layout Standard
22560 usepackage[format definition]{caption}
22563 \begin_layout Standard
22564 To have for example the label and the number in sans-serif bold font and
22565 the table captions always above the table as in this document, use the
22569 \begin_layout Standard
22574 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22577 \begin_layout Standard
22578 You can also define different caption formats for the different float types.
22579 In this case load the
22583 package without format specific options and define the different formats
22584 with the help of the command
22587 \begin_layout Standard
22592 captionsetup[float type]{format definition}
22595 \begin_layout Standard
22596 in the document preamble.
22597 For example the caption formats of Figure
22598 \begin_inset space ~
22602 \begin_inset CommandInset ref
22604 reference "fig:This-is-an-fig"
22609 \begin_inset space ~
22613 \begin_inset CommandInset ref
22615 reference "tab:This-is-an-tab"
22619 can be created using these commands in the document preamble:
22622 \begin_layout Standard
22627 usepackage[tableposition=top]{caption}
22630 \begin_inset Newline newline
22637 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22638 \begin_inset Newline newline
22642 \begin_inset Phantom HPhantom
22645 \begin_layout Plain Layout
22650 captionsetup[figure]{
22656 \begin_inset Newline newline
22661 captionsetup[table]{labelfont={bf,sf}}
22664 \begin_layout Standard
22665 \begin_inset Note Greyedout
22668 \begin_layout Plain Layout
22677 has no effect when a
22682 \begin_inset Index idx
22685 \begin_layout Plain Layout
22686 LaTeX-packages ! KOMA-Script
22691 document class is used.
22692 In this case the document class option
22704 \begin_layout Standard
22705 For more information about the package
22709 we refer to its documentation
22710 \begin_inset CommandInset citation
22719 \begin_layout Standard
22720 To change the label name from e.
22721 \begin_inset space \thinspace{}
22725 \begin_inset space \space{}
22729 \begin_inset Quotes eld
22733 \begin_inset Quotes erd
22737 \begin_inset Quotes eld
22741 \begin_inset Quotes erd
22744 use this preamble command:
22747 \begin_layout Standard
22754 fnum@figure}{Image~
22759 \begin_layout Standard
22766 inserts the figure number and
22769 \begin_inset Quotes eld
22775 \begin_inset Quotes erd
22778 creates a protected space.
22781 \begin_layout Standard
22782 \begin_inset VSpace bigskip
22790 \begin_inset Index idx
22793 \begin_layout Plain Layout
22794 LaTeX-packages ! KOMA-Script
22801 article (KOMA-Script)
22809 letter (KOMA-Script)
22813 report (KOMA-Script)
22816 \begin_inset space \thinspace{}
22819 ), you can alternatively to the
22827 's built-in command
22834 For example, to have the caption label in bold, add this command to your
22838 \begin_layout Standard
22843 setkomafont{captionlabel}{
22848 \begin_layout Standard
22849 For more information about
22860 \begin_inset CommandInset citation
22869 \begin_layout Standard
22873 \begin_layout Plain Layout
22877 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22884 \begin_inset Note Note
22887 \begin_layout Plain Layout
22888 The caption format is changed only for this example.
22896 \begin_layout Standard
22897 \begin_inset Float figure
22903 \begin_layout Plain Layout
22905 \begin_inset Graphics
22906 filename clipart/mobius.eps
22909 scaleBeforeRotation
22916 \begin_layout Plain Layout
22917 \begin_inset Caption
22919 \begin_layout Plain Layout
22920 \begin_inset CommandInset label
22922 name "fig:This-is-an-fig"
22926 This is an example figure caption that is longer than one line to show the
22927 different caption format.
22928 Here a self-defined caption format is used.
22941 \begin_layout Standard
22945 \begin_layout Plain Layout
22949 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22958 \begin_layout Standard
22959 \begin_inset Float table
22965 \begin_layout Plain Layout
22966 \begin_inset Caption
22968 \begin_layout Plain Layout
22969 \begin_inset CommandInset label
22971 name "tab:This-is-an-tab"
22975 This is an example table caption that is longer than one line to show the
22976 different caption format.
22977 Here the standard caption format for tables in this document is used.
22985 \begin_layout Plain Layout
22987 \begin_inset Tabular
22988 <lyxtabular version="3" rows="1" columns="5">
22989 <features tabularvalignment="middle">
22990 <column alignment="center" valignment="top" width="0">
22991 <column alignment="center" valignment="top" width="0">
22992 <column alignment="center" valignment="top" width="0">
22993 <column alignment="center" valignment="top" width="0">
22994 <column alignment="center" valignment="top" width="0">
22996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22999 \begin_layout Plain Layout
23005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23008 \begin_layout Plain Layout
23014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23017 \begin_layout Plain Layout
23023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23026 \begin_layout Plain Layout
23032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23035 \begin_layout Plain Layout
23054 \begin_layout Section
23056 \begin_inset Index idx
23059 \begin_layout Plain Layout
23060 Caption ! Placement
23066 \begin_inset Index idx
23069 \begin_layout Plain Layout
23070 Floats ! Caption Placement
23076 \begin_inset CommandInset label
23078 name "sec:Caption-Placement"
23085 \begin_layout Standard
23086 The common caption placement rule is:
23089 \begin_layout Description
23090 Figure: Caption is set below the figure
23093 \begin_layout Description
23094 Table: Caption is set above the table
23097 \begin_layout Standard
23098 Having the caption above the table is unfortunately not supported in LaTeX's
23100 That means if you are using the document classes
23116 there will be no space between the caption and the table.
23117 To insert the necessary space, add the following option to the load command
23118 of the LaTeX-package
23122 in your document preamble
23126 \begin_layout Plain Layout
23128 \begin_inset space ~
23132 \begin_inset CommandInset ref
23134 reference "sec:Caption-Formatting"
23138 for more information of the package
23150 \begin_layout Standard
23156 \begin_layout Standard
23162 \begin_inset Index idx
23165 \begin_layout Plain Layout
23166 LaTeX-packages ! KOMA-Script
23173 article (KOMA-Script)
23181 letter (KOMA-Script)
23185 report (KOMA-Script)
23188 \begin_inset space \thinspace{}
23191 ), you can alternatively to the
23195 package set the document class option
23202 \begin_layout Standard
23203 \begin_inset VSpace bigskip
23206 It is also possible to set the caption beside a figure or table.
23207 To get this the LaTeX-package
23212 \begin_inset Index idx
23215 \begin_layout Plain Layout
23216 LaTeX-packages ! sidecap
23221 has to be loaded in the document preamble with the line
23224 \begin_layout Standard
23229 usepackage[option]{sidecap}
23232 \begin_layout Standard
23233 If you set no option, the caption is placed on the side of the outer page
23234 margin – to the right on odd pages, to the left on even pages.
23235 You can change the placement to inner margin with the option
23240 To force the placement always to the right or left, use the option
23251 \begin_layout Standard
23255 \begin_layout Plain Layout
23265 \begin_inset Note Note
23268 \begin_layout Plain Layout
23269 The following section will only be displayed when the LaTeX-package
23281 \begin_layout Standard
23282 To place in LyX the caption of a float on the side, it is necessary to add
23283 these commands to the document preamble:
23286 \begin_layout Standard
23288 \begin_inset CommandInset line
23299 \begin_layout Standard
23307 \begin_inset Newline newline
23311 \begin_inset Phantom HPhantom
23314 \begin_layout Plain Layout
23317 \begin_inset space ~
23332 \begin_inset Newline newline
23336 \begin_inset Phantom HPhantom
23339 \begin_layout Plain Layout
23342 \begin_inset space ~
23357 \begin_inset Newline newline
23361 \begin_inset Phantom HPhantom
23364 \begin_layout Plain Layout
23367 \begin_inset space ~
23377 renewenvironment{table}{
23384 \begin_layout Standard
23392 \begin_inset Newline newline
23396 \begin_inset Phantom HPhantom
23399 \begin_layout Plain Layout
23402 \begin_inset space ~
23417 \begin_inset Newline newline
23421 \begin_inset Phantom HPhantom
23424 \begin_layout Plain Layout
23427 \begin_inset space ~
23444 \begin_layout Standard
23452 \begin_inset Newline newline
23456 \begin_inset Phantom HPhantom
23459 \begin_layout Plain Layout
23462 \begin_inset space ~
23477 \begin_inset Newline newline
23481 \begin_inset Phantom HPhantom
23484 \begin_layout Plain Layout
23487 \begin_inset space ~
23502 \begin_inset Newline newline
23506 \begin_inset Phantom HPhantom
23509 \begin_layout Plain Layout
23512 \begin_inset space ~
23522 renewenvironment{figure}{
23529 \begin_layout Standard
23537 \begin_inset Newline newline
23541 \begin_inset Phantom HPhantom
23544 \begin_layout Plain Layout
23547 \begin_inset space ~
23562 \begin_inset Newline newline
23566 \begin_inset Phantom HPhantom
23569 \begin_layout Plain Layout
23572 \begin_inset space ~
23589 \begin_layout Standard
23591 \begin_inset CommandInset line
23602 \begin_layout Standard
23603 The commands allow you to redefine the floats so that the caption is set
23605 For figure floats use the command
23608 \begin_layout Standard
23616 \begin_layout Standard
23617 in TeX-Code before the float.
23618 After the float insert the command
23621 \begin_layout Standard
23629 \begin_layout Standard
23630 in TeX-Code to get back to the original float definition.
23633 \begin_layout Standard
23634 For table floats use the corresponding commands
23637 \begin_layout Standard
23651 \begin_layout Standard
23653 \begin_inset space ~
23657 \begin_inset CommandInset ref
23659 reference "fig:cap-beside-fig"
23664 \begin_inset space ~
23668 \begin_inset CommandInset ref
23670 reference "tab:cap-beside-tab"
23674 are examples where the caption is set beside.
23677 \begin_layout Standard
23678 You can see in the examples that the caption text appears at the top of
23679 the floats for table floats and at the bottom for figure floats.
23680 To change this, you can use the command
23683 \begin_layout Standard
23688 sidecaptionvpos{float type}{placement}
23691 \begin_layout Standard
23692 in the document preamble or in TeX-Code before the float.
23693 The float type is either
23701 , the placement can be
23702 \begin_inset Quotes eld
23710 \begin_inset Quotes erd
23714 \begin_inset Quotes eld
23722 \begin_inset Quotes erd
23726 \begin_inset Quotes eld
23734 \begin_inset Quotes erd
23738 To have for example the caption of figure floats vertically centered, use
23742 \begin_layout Standard
23747 sidecaptionvpos{figure}{c}
23750 \begin_layout Standard
23751 This was used for Figure
23752 \begin_inset space ~
23756 \begin_inset CommandInset ref
23758 reference "fig:cap-beside-fig-2"
23765 \begin_layout Standard
23766 \begin_inset VSpace medskip
23769 For more information about the package
23773 we refer to its documentation
23774 \begin_inset CommandInset citation
23783 \begin_layout Standard
23784 \begin_inset Note Greyedout
23787 \begin_layout Plain Layout
23797 \begin_inset Index idx
23800 \begin_layout Plain Layout
23801 LaTeX-packages ! hypcap
23806 , described in section
23807 \begin_inset space ~
23811 \begin_inset CommandInset ref
23813 reference "sub:Reference-Position"
23817 , has no effect on floats with the caption set beside.
23825 \begin_layout Standard
23829 \begin_layout Plain Layout
23841 \begin_layout Standard
23842 \begin_inset Float figure
23847 \begin_layout Plain Layout
23848 \begin_inset Graphics
23849 filename clipart/escher-lsd.eps
23851 scaleBeforeRotation
23858 \begin_layout Plain Layout
23859 \begin_inset Caption
23861 \begin_layout Plain Layout
23862 \begin_inset CommandInset label
23864 name "fig:cap-beside-fig"
23868 This is a caption beside a figure.
23881 \begin_layout Standard
23885 \begin_layout Plain Layout
23897 \begin_layout Standard
23898 \begin_inset Float table
23903 \begin_layout Plain Layout
23904 \begin_inset Caption
23906 \begin_layout Plain Layout
23907 \begin_inset CommandInset label
23909 name "tab:cap-beside-tab"
23913 This is a caption beside a table.
23921 \begin_layout Plain Layout
23922 \begin_inset Tabular
23923 <lyxtabular version="3" rows="4" columns="5">
23924 <features tabularvalignment="middle">
23925 <column alignment="center" valignment="top" width="0">
23926 <column alignment="center" valignment="top" width="0">
23927 <column alignment="center" valignment="top" width="0">
23928 <column alignment="center" valignment="top" width="0">
23929 <column alignment="center" valignment="top" width="0">
23931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23934 \begin_layout Plain Layout
23940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23943 \begin_layout Plain Layout
23949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23952 \begin_layout Plain Layout
23958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23961 \begin_layout Plain Layout
23967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23970 \begin_layout Plain Layout
23978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23981 \begin_layout Plain Layout
23987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23990 \begin_layout Plain Layout
23996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23999 \begin_layout Plain Layout
24005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24008 \begin_layout Plain Layout
24014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24017 \begin_layout Plain Layout
24025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24028 \begin_layout Plain Layout
24034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24037 \begin_layout Plain Layout
24043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24046 \begin_layout Plain Layout
24052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24055 \begin_layout Plain Layout
24061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24064 \begin_layout Plain Layout
24072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24075 \begin_layout Plain Layout
24081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24084 \begin_layout Plain Layout
24090 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24093 \begin_layout Plain Layout
24099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24102 \begin_layout Plain Layout
24108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24111 \begin_layout Plain Layout
24130 \begin_layout Standard
24134 \begin_layout Plain Layout
24146 \begin_layout Standard
24150 \begin_layout Plain Layout
24154 sidecaptionvpos{figure}{c}
24160 \begin_inset Float figure
24165 \begin_layout Plain Layout
24166 \begin_inset Graphics
24167 filename clipart/escher-lsd.eps
24169 scaleBeforeRotation
24176 \begin_layout Plain Layout
24177 \begin_inset Caption
24179 \begin_layout Plain Layout
24180 \begin_inset CommandInset label
24182 name "fig:cap-beside-fig-2"
24186 This is a vertically centered caption beside a figure.
24199 \begin_layout Standard
24203 \begin_layout Plain Layout
24215 \begin_layout Standard
24219 \begin_layout Plain Layout
24229 \begin_inset Note Note
24232 \begin_layout Plain Layout
24233 The following will be displayed when the LaTeX-package
24245 \begin_layout Standard
24246 You need to install the LaTeX-package
24250 to see the following part of this section in the output.
24253 \begin_layout Standard
24257 \begin_layout Plain Layout
24269 \begin_layout Section
24271 \begin_inset Index idx
24274 \begin_layout Plain Layout
24275 Floats ! Float Lists
24283 \begin_layout Standard
24284 Similar to the table of contents where the sections of the document are
24285 listed, there are listings for all float types, like the figures of the
24287 You can insert them via the
24289 Insert\SpecialChar \menuseparator
24291 \begin_inset space ~
24295 \begin_inset space ~
24303 \begin_layout Standard
24304 The list entries are the float captions or its short title, the float number,
24305 and the page number where they appear in the document.
24308 \begin_layout Standard
24309 You can find the list of figures and tables at the end of this document.
24312 \begin_layout Chapter
24316 \begin_layout Section
24318 \begin_inset Index idx
24321 \begin_layout Plain Layout
24330 \begin_layout Standard
24331 Notes are inserted with the toolbar button
24332 \begin_inset Graphics
24333 filename ../images/note-insert.png
24335 scaleBeforeRotation
24341 Insert\SpecialChar \menuseparator
24345 There are three types of notes:
24348 \begin_layout Description
24350 \begin_inset space ~
24353 Note This note type is for internal notes that won't appear in the output.
24354 Its note-box looks like this:
24355 \begin_inset Newline newline
24359 \begin_inset Newline newline
24363 \begin_inset Graphics
24364 filename clipart/LyXNoteImageQt4.png
24367 scaleBeforeRotation
24372 \begin_inset Note Note
24375 \begin_layout Plain Layout
24376 This is text in a note box that doesn't appear in the output.
24384 \begin_layout Description
24385 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24386 ent, when you export the document to LaTeX via the menu
24388 File\SpecialChar \menuseparator
24389 Export\SpecialChar \menuseparator
24390 LaTeX (pdflatex) / (plain)
24393 Its note-box looks like this:
24394 \begin_inset Newline newline
24398 \begin_inset Newline newline
24402 \begin_inset Graphics
24403 filename clipart/CommentNoteImageQt4.png
24406 scaleBeforeRotation
24411 \begin_inset Note Comment
24414 \begin_layout Plain Layout
24415 This is text in a note box that only appears as comment in LaTeX-files.
24423 \begin_layout Description
24425 \begin_inset space ~
24428 Out This note will appear in the output as grey text.
24429 Its note-box looks like this:
24430 \begin_inset Newline newline
24434 \begin_inset Newline newline
24438 \begin_inset Graphics
24439 filename clipart/GreyedOutNoteImageQt4.png
24442 scaleBeforeRotation
24447 \begin_inset Newline newline
24454 \begin_layout Plain Layout
24458 renewenvironment{lyxgreyedout}
24461 \begin_layout Plain Layout
24465 textcolor[gray]{0.8}
24475 \begin_inset Note Greyedout
24478 \begin_layout Plain Layout
24483 \begin_layout Plain Layout
24484 This is an example footnote within a greyed out note.
24489 of a comment that appears in the output as grey text.
24498 \begin_layout Plain Layout
24502 renewenvironment{lyxgreyedout}
24505 \begin_layout Plain Layout
24519 \begin_inset Note Note
24522 \begin_layout Plain Layout
24523 The greyed out note is here redefined to show it with the original LyX definitio
24524 n because greyed out notes are redefined in the preamble of this document,
24525 as described below, to have blue text.
24531 \begin_inset Newline newline
24535 \begin_inset Newline newline
24538 As you can see in the example, the first line of greyed out notes is a bit
24539 indented and greyed out notes can have footnotes.
24542 \begin_layout Standard
24543 \begin_inset VSpace bigskip
24546 When you use the toolbar button
24547 \begin_inset Graphics
24548 filename ../images/note-insert.png
24550 scaleBeforeRotation
24557 \begin_inset space ~
24563 You can switch between the five note types by right-clicking on the note-box.
24568 If you want to turn existing text into a note, mark it and click on the
24582 To change a note to text, press the backspace key when the cursor is in
24583 the first position of a note, or press the delete key when the cursor is
24584 in the very last position of the note, respectively.
24587 \begin_layout Standard
24588 \begin_inset VSpace bigskip
24591 You can change the text color of the greyed out notes in the preamble with
24592 the following command:
24595 \begin_layout Standard
24600 renewenvironment{lyxgreyedout}
24601 \begin_inset Newline newline
24605 \begin_inset Phantom HPhantom
24608 \begin_layout Plain Layout
24611 \begin_inset space ~
24628 \begin_layout Standard
24629 The available colors and the method to define colors is explained in section
24630 \begin_inset space ~
24634 \begin_inset CommandInset ref
24636 reference "sec:Colored-Tables"
24643 \begin_layout Standard
24644 Notes that appear in blue in this document are set using greyed out notes
24648 \begin_layout Section
24650 \begin_inset CommandInset label
24652 name "sec:Footnotes"
24657 \begin_inset Index idx
24660 \begin_layout Plain Layout
24667 \begin_inset Index idx
24670 \begin_layout Plain Layout
24679 \begin_layout Standard
24680 Footnotes can be inserted using the toolbar button
24681 \begin_inset Graphics
24682 filename ../images/footnote-insert.png
24684 scaleBeforeRotation
24690 Insert\SpecialChar \menuseparator
24702 then the following footnote-box:
24703 \begin_inset Graphics
24704 filename clipart/footnoteQt4.png
24706 scaleBeforeRotation
24714 where you can enter the footnote text.
24715 If you want to turn existing text into a footnote, mark it and click on
24737 to text, press the Backspace key when the cursor is in the first position
24746 , or press the Delete key when the cursor is in the very last position of
24758 \begin_layout Standard
24759 Here is an example footnote:
24767 \begin_layout Plain Layout
24768 \begin_inset CommandInset label
24770 name "foot:This-is-an"
24774 This is an example footnote.
24787 \begin_layout Plain Layout
24791 newcounter{MyRepeatFoot}
24794 \begin_layout Plain Layout
24798 setcounter{MyRepeatFoot}{
24808 \begin_layout Standard
24809 The footnote will appear in the output as a superscript number at the text
24810 position where the footnote box is placed.
24811 The footnote text is placed at the bottom of the current page.
24812 The footnote number is calculated by LaTeX; the numbers are consecutive.
24813 It depends on your document-class, whether the footnote number is reset
24817 \begin_layout Standard
24818 Footnotes can be referenced like floats: Insert a label into the footnote
24819 and cross-reference this label in the text as described in section
24820 \begin_inset space ~
24824 \begin_inset CommandInset ref
24826 reference "sec:Referencing-Floats"
24831 \begin_inset Newline newline
24834 This is a cross-reference of Footnote
24835 \begin_inset space ~
24839 \begin_inset CommandInset ref
24841 reference "foot:This-is-an"
24848 \begin_layout Standard
24849 \begin_inset VSpace defskip
24852 Footnotes in tables are not printed by LaTeX due to technical reasons.
24853 However there exists another method to print them: Instead of the footnote
24860 is inserted as TeX-code.
24861 The text of the footnote is entered as an argument of the TeX-code command
24869 \begin_inset Newline newline
24872 This was done for the following table with the command
24875 \begin_layout Standard
24882 Printed table footnote.
24887 \begin_layout Standard
24888 \begin_inset Tabular
24889 <lyxtabular version="3" rows="2" columns="1">
24890 <features tabularvalignment="middle">
24891 <column alignment="center" valignment="top" width="0">
24893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24896 \begin_layout Plain Layout
24897 This an example text.
24901 \begin_layout Plain Layout
24902 This footnote will not be printed!
24914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24917 \begin_layout Plain Layout
24918 This an example text.
24922 \begin_layout Plain Layout
24945 \begin_layout Plain Layout
24954 Printed table footnote.
24958 \begin_layout Plain Layout
24968 \begin_layout Standard
24969 Footnotes in longtables are described in section
24970 \begin_inset space ~
24974 \begin_inset CommandInset ref
24976 reference "sub:Footnotes-in-Longtables"
24983 \begin_layout Standard
24984 Footnotes in minipage boxes are printed, but inside the box and with a different
24985 numbering because a minipage box is like a page inside a page.
24986 (For more about minipages, see section
24987 \begin_inset space ~
24991 \begin_inset CommandInset ref
24993 reference "sec:Minipages"
24997 .) To get a footnote in the minipage that is output at the bottom of the
24998 page like normal footnotes, also use the method of
25013 \begin_layout Standard
25014 \begin_inset Box Frameless
25024 height_special "totalheight"
25027 \begin_layout Plain Layout
25028 This an example text in a minipage.
25032 \begin_layout Plain Layout
25033 Footnote in the minipage.
25041 \begin_layout Plain Layout
25042 This an example text in a minipage.
25046 \begin_layout Plain Layout
25063 \begin_layout Standard
25067 \begin_layout Plain Layout
25076 Footnote outside the minipage.
25080 \begin_layout Plain Layout
25090 \begin_layout Standard
25091 \begin_inset VSpace defskip
25097 \begin_layout Standard
25098 To refer to the same footnote several times without printing the footnote
25099 text every time, use the command
25103 footnotemark[number]
25106 \begin_inset Newline newline
25109 As you do not know the number of the repeating footnote while you are writing
25110 the text, you have to store its number.
25111 For the following footnote mark example, these commands were inserted in
25112 TeX-code after Footnote
25113 \begin_inset space ~
25117 \begin_inset CommandInset ref
25119 reference "foot:This-is-an"
25123 to store the footnote number:
25126 \begin_layout Standard
25131 newcounter{MyRepeatFoot}
25132 \begin_inset Newline newline
25137 setcounter{MyRepeatFoot}{
25142 \begin_layout Standard
25143 The footnote mark was then created with this command:
25146 \begin_layout Standard
25156 \begin_layout Standard
25157 Here is a repeated footnote:
25165 \begin_layout Plain Layout
25179 \begin_layout Standard
25180 If you want to repeat the previous footnote, you can omit the storage of
25181 the footnote number and just use this command instead:
25184 \begin_layout Standard
25194 \begin_layout Standard
25195 Here is another repeated footnote:
25203 \begin_layout Plain Layout
25217 \begin_layout Subsection
25219 \begin_inset CommandInset label
25221 name "sub:Footnote-Numbering"
25226 \begin_inset Index idx
25229 \begin_layout Plain Layout
25230 Footnotes ! Numbering
25238 \begin_layout Standard
25239 To reset the footnote number back to 1 after each section
25241 , add this command to your document preamble:
25244 \begin_layout Standard
25249 @addtoreset{footnote}{section}
25252 \begin_layout Standard
25253 \begin_inset VSpace bigskip
25256 The following preamble command changes the footnote numbering style to small
25260 \begin_layout Standard
25272 \begin_layout Standard
25276 \begin_layout Plain Layout
25289 This is a footnote with roman numbering:
25293 \begin_layout Plain Layout
25294 This is an example footnote with roman numbering.
25302 \begin_layout Standard
25303 To change the numbering style to capital roman numerals replace in the command
25318 \begin_inset Quotes eld
25322 \begin_inset Quotes erd
25325 footnotes with capital or small Latin letters use
25339 \begin_inset Quotes eld
25343 \begin_inset Quotes erd
25346 footnotes with symbols use
25355 \begin_layout Standard
25356 \begin_inset Note Greyedout
25359 \begin_layout Plain Layout
25364 You can only number 26 footnotes with Latin letters, because this numbering
25365 is limited to single letters.
25371 \begin_inset Newline newline
25375 \begin_inset Note Greyedout
25378 \begin_layout Plain Layout
25383 You can only number 9 footnotes with symbols.
25391 \begin_layout Standard
25392 To return to the default numbering style after you have changed to another
25405 in the command above.
25409 \begin_layout Plain Layout
25425 \begin_layout Standard
25426 \begin_inset VSpace bigskip
25432 \begin_layout Standard
25433 If you want to have footnotes numbered in the scheme
25434 \begin_inset Quotes eld
25438 \begin_inset Quotes erd
25441 , add the following command to your document preamble:
25444 \begin_layout Standard
25449 numberwithin{footnote}{chapter}
25452 \begin_layout Standard
25453 To be able to use the command
25462 \begin_inset space ~
25467 in the document settings the option
25470 \begin_inset space ~
25474 \begin_inset space ~
25478 \begin_inset space ~
25486 \begin_layout Standard
25490 \begin_layout Plain Layout
25494 numberwithin{footnote}{chapter}
25499 This is another example footnote:
25505 \begin_layout Plain Layout
25506 This is a footnote numbered in the scheme
25507 \begin_inset Quotes eld
25511 \begin_inset Quotes erd
25525 \begin_layout Plain Layout
25541 \begin_layout Standard
25542 \begin_inset Note Greyedout
25545 \begin_layout Plain Layout
25556 always prints out the footnote number as arabic number; previous redefinitions
25557 to get non-arabic numbers are overwritten.
25565 \begin_layout Standard
25566 So to get for example the scheme
25567 \begin_inset Quotes eld
25573 \begin_inset Quotes erd
25576 , use this command instead of
25585 \begin_layout Standard
25599 \begin_layout Subsection
25601 \begin_inset Index idx
25604 \begin_layout Plain Layout
25605 Footnotes ! Placement
25613 \begin_layout Standard
25614 If you have several footnotes in one page, they appear without vertical
25615 space between them at the bottom of the page.
25616 To make them more readable you can e.
25617 \begin_inset space \thinspace{}
25621 \begin_inset space \space{}
25625 \begin_inset space \thinspace{}
25628 mm space with the following preamble command:
25631 \begin_layout Standard
25641 \begin_inset Newline newline
25655 \begin_layout Standard
25656 \begin_inset VSpace bigskip
25659 In a two-column document the footnotes appear at the bottom of every column,
25661 \begin_inset space ~
25665 \begin_inset CommandInset ref
25667 reference "fig:Standard-footnote-placement"
25672 If the footnotes should only appear at the bottom of the right column,
25674 \begin_inset space ~
25678 \begin_inset CommandInset ref
25680 reference "fig:Footnote-placement-in"
25684 , use the LaTeX-package
25689 \begin_inset Index idx
25692 \begin_layout Plain Layout
25693 LaTeX-packages ! ftnright
25698 with this command in the document preamble:
25701 \begin_layout Standard
25706 usepackage{ftnright}
25709 \begin_layout Standard
25710 \begin_inset Float figure
25716 \begin_layout Plain Layout
25720 \begin_layout Plain Layout
25730 \begin_inset Graphics
25731 filename clipart/without_fntright.pdf
25733 scaleBeforeRotation
25741 \begin_layout Plain Layout
25751 \begin_layout Plain Layout
25752 \begin_inset Caption
25754 \begin_layout Plain Layout
25755 \begin_inset CommandInset label
25757 name "fig:Standard-footnote-placement"
25761 Standard footnote placement in two-column documents.
25774 \begin_layout Standard
25775 \begin_inset Float figure
25781 \begin_layout Plain Layout
25785 \begin_layout Plain Layout
25795 \begin_inset Graphics
25796 filename clipart/with_fntright.pdf
25798 scaleBeforeRotation
25806 \begin_layout Plain Layout
25816 \begin_layout Plain Layout
25817 \begin_inset Caption
25819 \begin_layout Plain Layout
25820 \begin_inset CommandInset label
25822 name "fig:Footnote-placement-in"
25826 Footnote placement in two-column documents when the LaTeX-package
25843 \begin_layout Standard
25844 \begin_inset VSpace bigskip
25847 In some scientific literature it is usual to collect the footnotes and print
25848 them in a separate paragraph at the end of a section, as in Figure
25849 \begin_inset space ~
25853 \begin_inset CommandInset ref
25855 reference "fig:Endnotes"
25860 They are then called
25861 \begin_inset Quotes eld
25865 \begin_inset Quotes erd
25869 \begin_inset Index idx
25872 \begin_layout Plain Layout
25878 To use endnotes instead of footnotes in your document, load in the menu
25881 Document\SpecialChar \menuseparator
25882 Settings\SpecialChar \menuseparator
25888 \begin_inset space ~
25892 \begin_inset space ~
25898 To insert the collected footnotes, insert the command
25901 \begin_layout Standard
25909 \begin_layout Standard
25910 in TeX-Code at the end of a section or chapter.
25913 \begin_layout Standard
25914 \begin_inset Float figure
25919 \begin_layout Plain Layout
25924 \begin_layout Plain Layout
25934 \begin_inset Graphics
25935 filename clipart/endnotes.pdf
25936 scaleBeforeRotation
25944 \begin_layout Plain Layout
25954 \begin_layout Plain Layout
25955 \begin_inset Caption
25957 \begin_layout Plain Layout
25958 \begin_inset CommandInset label
25960 name "fig:Endnotes"
25964 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25978 \begin_layout Standard
25979 \begin_inset VSpace medskip
25982 The paragraph heading for the endnotes isn't automatically translated into
25983 the document language, this must be done manually.
25984 The following preamble command translates the default English
25985 \begin_inset Quotes eld
25989 \begin_inset Quotes erd
25993 \begin_inset Quotes eld
25997 \begin_inset Quotes erd
26003 \begin_layout Standard
26010 notesname}{Anmerkungen}
26013 \begin_layout Standard
26014 \begin_inset VSpace medskip
26017 The numbering of endnotes can be changed like the footnote numbering as
26018 described in section
26019 \begin_inset space ~
26023 \begin_inset CommandInset ref
26025 reference "sub:Footnote-Numbering"
26029 ; just replace the command
26042 To reset the endnote number use the command
26048 as described in section
26049 \begin_inset space ~
26053 \begin_inset CommandInset ref
26055 reference "sub:Footnote-Numbering"
26059 and replace the command parameter
26070 \begin_layout Standard
26071 For endnotes there is the command
26075 endnotemark[number]
26077 similar to the command
26083 , that is described in section
26084 \begin_inset space ~
26088 \begin_inset CommandInset ref
26090 reference "sec:Footnotes"
26097 \begin_layout Standard
26098 \begin_inset VSpace bigskip
26101 Footnotes can also be placed in the page margin and the footnote text alignment
26102 can be changed, see the LaTeX-package
26107 \begin_inset Index idx
26110 \begin_layout Plain Layout
26111 LaTeX-packages ! footmisc
26117 \begin_inset CommandInset citation
26123 for more information about this.
26126 \begin_layout Standard
26127 For various further footnote formatting issues have a look at LaTeX-books,
26129 \begin_inset CommandInset citation
26131 key "latexcompanion,latexguide,latexbook"
26138 \begin_layout Section
26140 \begin_inset Index idx
26143 \begin_layout Plain Layout
26144 Notes ! Margin Notes
26152 \begin_layout Standard
26153 Margin notes look and behave in LyX like footnotes.
26154 They are inserted via the menu
26156 Insert\SpecialChar \menuseparator
26158 \begin_inset space ~
26163 or the toolbar button
26164 \begin_inset Graphics
26165 filename ../images/marginalnote-insert.png
26167 scaleBeforeRotation
26182 \begin_inset Quotes eld
26186 \begin_inset Quotes erd
26189 appears where you can enter the text of the margin note.
26192 \begin_layout Standard
26193 At the side is an example margin note.
26198 \begin_inset Marginal
26201 \begin_layout Plain Layout
26202 This is a margin note.
26210 \begin_layout Standard
26211 Margin notes appear at the right side in single-sided documents.
26212 In double-sided documents they appear in the outer margin – left on even
26213 pages, right on odd pages.
26214 The text of margin notes is aligned opposite to the outer margin – right-aligne
26215 d when the note appears in the left margin.
26216 The first line of the margin note is placed at the position of the text
26217 line where it is inserted in the document.
26220 \begin_layout Standard
26221 \begin_inset VSpace bigskip
26224 To place the margin note in the inner margin, add the command
26227 \begin_layout Standard
26235 \begin_layout Standard
26236 in TeX-Code before a margin note.
26237 The new placement is valid for all subsequent margin notes.
26242 \begin_layout Plain Layout
26252 \begin_inset Marginal
26255 \begin_layout Plain Layout
26256 This is a margin note in the inner margin.
26264 \begin_inset Newline newline
26270 \begin_inset Note Greyedout
26273 \begin_layout Plain Layout
26278 There is often not enough space in the inner margin so that the notes are
26279 not correctly displayed in the output.
26287 \begin_layout Standard
26288 To return to the default placement insert the command
26291 \begin_layout Standard
26299 \begin_layout Standard
26304 \begin_layout Plain Layout
26314 \begin_inset Note Greyedout
26317 \begin_layout Plain Layout
26322 The command is ignored when it is within a paragraph where also the command
26337 \begin_layout Standard
26338 \begin_inset VSpace bigskip
26345 \begin_inset Marginal
26348 \begin_layout Plain Layout
26349 AVeryLongMarginParWord that isn't hyphenated.
26357 Similar to the case described in section
26358 \begin_inset space ~
26362 \begin_inset CommandInset ref
26364 reference "sub:Multiple-Lines-in"
26368 , long words cannot be hyphenated when they are the first word in a margin
26370 To avoid this, insert 0
26371 \begin_inset space \thinspace{}
26374 pt horizontal space before the word
26379 \begin_inset Marginal
26382 \begin_layout Plain Layout
26383 \begin_inset space \hspace*{}
26387 AVeryLongMarginParWord that is hyphenated.
26395 \begin_layout Standard
26396 \begin_inset VSpace bigskip
26402 \begin_layout Standard
26403 \begin_inset Note Greyedout
26406 \begin_layout Plain Layout
26411 Margin notes can normally not be used inside tables, floats, and footnotes.
26419 \begin_layout Standard
26420 \begin_inset VSpace bigskip
26426 \begin_layout Standard
26430 \begin_layout Plain Layout
26440 \begin_inset Note Note
26443 \begin_layout Plain Layout
26444 The following section will only be displayed when the LaTeX-package
26456 \begin_layout Standard
26457 This restriction can be evaded by using the LaTeX-package
26462 \begin_inset Index idx
26465 \begin_layout Plain Layout
26466 LaTeX-packages ! marginnote
26472 By adding these two lines to your document preamble, the command used by
26473 LyX for margin notes is redefined to use the command provided by the
26480 \begin_layout Standard
26485 usepackage{marginnote}
26486 \begin_inset Newline newline
26498 \begin_layout Standard
26499 This is also used in this document because
26503 has another useful feature: You can set a vertical offset for the note.
26504 This is often needed when too many margin notes are too close together
26505 or for a better page layout.
26506 The offset is set in LyX as TeX-Code directly after the margin note in
26510 \begin_layout Standard
26516 \begin_layout Standard
26517 where the offset is a length with one of the units listed in Table
26518 \begin_inset space ~
26522 \begin_inset CommandInset ref
26524 reference "tab:Units"
26529 A negative value shifts the note up, a positive value shifts it down.
26533 For example the margin note beside this text line is shifted up 1.5
26534 \begin_inset space \thinspace{}
26537 cm with the TeX-Code-command
26538 \begin_inset Quotes eld
26548 \begin_inset Quotes erd
26552 \begin_inset Marginal
26555 \begin_layout Plain Layout
26556 This margin note is shifted up 1.5
26557 \begin_inset space \thinspace{}
26560 cm from its original position.
26572 \begin_layout Plain Layout
26582 \begin_layout Standard
26583 \begin_inset VSpace medskip
26590 you can also change the alignment of the text in the margin note.
26591 For example the commands
26594 \begin_layout Standard
26601 raggedleftmarginnote}{
26604 \begin_inset Newline newline
26611 raggedrightmarginnote}{
26616 \begin_layout Standard
26617 set the alignment to centered.
26622 raggedleftmarginnote
26624 denotes margin notes that appear at the left side.
26631 \begin_layout Plain Layout
26637 raggedleftmarginnote}{
26642 \begin_layout Plain Layout
26648 raggedrightmarginnote}{
26656 \begin_inset Marginal
26659 \begin_layout Plain Layout
26660 The text of this margin note is centered.
26671 \begin_layout Standard
26678 raggedleftmarginnote}{
26681 \begin_inset Newline newline
26688 raggedrightmarginnote}{
26697 \begin_layout Plain Layout
26703 raggedleftmarginnote}{
26708 \begin_layout Plain Layout
26714 raggedrightmarginnote}{
26724 \begin_layout Standard
26725 \begin_inset VSpace medskip
26728 For the other features of
26732 refer to its documentation
26733 \begin_inset CommandInset citation
26742 \begin_layout Standard
26743 \begin_inset VSpace bigskip
26746 You can adjust the layout of margin notes by changing its definition.
26747 To create for example a header for all margin notes with the underlined,
26748 sans-serif, and bold header text
26749 \begin_inset Quotes eld
26761 \begin_inset Quotes erd
26764 , add this to your document preamble:
26767 \begin_layout Standard
26777 \begin_inset Newline newline
26787 \begin_inset Newline newline
26791 \begin_inset Phantom HPhantom
26794 \begin_layout Plain Layout
26797 \begin_inset space ~
26813 underbar{Attention!}}}%
26814 \begin_inset Newline newline
26818 \begin_inset Phantom HPhantom
26821 \begin_layout Plain Layout
26824 \begin_inset space ~
26841 \begin_layout Standard
26848 \begin_layout Plain Layout
26859 \begin_layout Plain Layout
26870 \begin_layout Plain Layout
26878 underbar{Attention!}}}%
26881 \begin_layout Plain Layout
26895 \begin_inset Marginal
26898 \begin_layout Plain Layout
26899 This is a margin note with a defined heading.
26911 \begin_layout Plain Layout
26925 \begin_layout Plain Layout
26942 \begin_inset Note Note
26945 \begin_layout Plain Layout
26946 The margin note format is changed only for this example.
26954 \begin_layout Standard
26958 \begin_layout Plain Layout
26968 \begin_inset Note Note
26971 \begin_layout Plain Layout
26972 The following will be displayed when the LaTeX-package
26984 \begin_layout Standard
26985 You need to install the LaTeX-package
26989 to see the following part of this section in the output.
26992 \begin_layout Standard
26996 \begin_layout Plain Layout
27008 \begin_layout Chapter
27012 \begin_layout Section
27014 \begin_inset Index idx
27017 \begin_layout Plain Layout
27018 Boxes ! Introduction
27026 \begin_layout Standard
27027 Boxes are used to format a block of text.
27028 Boxes can be used to write documents with multiple languages, see section
27029 \begin_inset space ~
27033 \begin_inset CommandInset ref
27035 reference "sec:Minipages"
27039 , to frame texts, see section
27040 \begin_inset space ~
27044 \begin_inset CommandInset ref
27046 reference "sec:Decoration"
27050 , to prevent words from being hyphenated, see section
27051 \begin_inset space ~
27055 \begin_inset CommandInset ref
27057 reference "sec:Prevent-Hyphenation"
27061 , to align text, see section
27062 \begin_inset space ~
27066 \begin_inset CommandInset ref
27068 reference "sub:Vertical-Alignment"
27072 , or to set the background color of texts, see section
27073 \begin_inset space ~
27077 \begin_inset CommandInset ref
27079 reference "sec:Colored-Boxes"
27086 \begin_layout Standard
27087 Boxes can be inserted with the menu
27089 Insert\SpecialChar \menuseparator
27092 or the toolbar button
27093 \begin_inset Graphics
27094 filename ../images/box-insert.png
27096 scaleBeforeRotation
27101 A grey box with the label
27106 \begin_inset Graphics
27107 filename clipart/BoxInsetDefaultQt4.png
27109 scaleBeforeRotation
27114 The box type can be specified by right-clicking on the box and selecting
27120 The box dialog offers the
27123 \begin_inset space ~
27141 is the default for new boxes and is explained in section
27142 \begin_inset space ~
27146 \begin_inset CommandInset ref
27148 reference "sec:Minipages"
27156 is described in section
27157 \begin_inset space ~
27161 \begin_inset CommandInset ref
27163 reference "sec:Parboxes"
27170 \begin_layout Standard
27171 Boxes are not numbered and can therefore not be referenced like floats or
27175 \begin_layout Standard
27176 \begin_inset Note Greyedout
27179 \begin_layout Plain Layout
27184 Boxes must not be the item in an
27200 \begin_layout Standard
27201 \begin_inset Note Greyedout
27204 \begin_layout Plain Layout
27209 For an unknown reason you can only set the
27212 \begin_inset space ~
27221 when you use a framed box.
27225 \begin_inset space ~
27230 type and without frames are explained in section
27231 \begin_inset space ~
27235 \begin_inset CommandInset ref
27237 reference "sec:Prevent-Hyphenation"
27249 \begin_layout Section
27251 \begin_inset CommandInset label
27253 name "sec:Box-Dialog"
27258 \begin_inset Index idx
27261 \begin_layout Plain Layout
27270 \begin_layout Subsection
27272 \begin_inset Index idx
27275 \begin_layout Plain Layout
27284 \begin_layout Standard
27285 In the box dialog you can adjust the box geometry in the fields
27294 The available units for the geometry are explained in Table
27295 \begin_inset space ~
27299 \begin_inset CommandInset ref
27301 reference "tab:Units"
27310 offers the following additional sizes:
27313 \begin_layout Description
27314 Depth This is the plain text
27315 \begin_inset Quotes eld
27319 \begin_inset Quotes erd
27323 It ignores the total depth when there are multiple text lines in the box:
27324 \begin_inset Newline newline
27328 \begin_inset Newline newline
27332 \begin_inset Newline newline
27336 \begin_inset Box Boxed
27346 height_special "depth"
27349 \begin_layout Plain Layout
27351 Box height set to 1
27352 \begin_inset space \thinspace{}
27361 \begin_inset Newline newline
27365 \begin_inset Newline newline
27371 \begin_layout Description
27372 Height This is the height of the text that is inside the box.
27374 \begin_inset space \thinspace{}
27378 \begin_inset space \space{}
27381 2 for this size will set the box height to 2
27382 \begin_inset space ~
27385 times the text height:
27386 \begin_inset Box Boxed
27396 height_special "height"
27399 \begin_layout Plain Layout
27401 Box height set to 2
27402 \begin_inset space \thinspace{}
27413 \begin_layout Description
27415 \begin_inset space ~
27418 Height This is the Height
27419 \begin_inset space \thinspace{}
27423 \begin_inset space \thinspace{}
27427 \begin_inset Box Boxed
27437 height_special "totalheight"
27440 \begin_layout Plain Layout
27442 Box height set to 1
27443 \begin_inset space \thinspace{}
27447 \begin_inset space ~
27458 \begin_layout Description
27459 Width This sets the width of the box as height:
27460 \begin_inset Box Boxed
27470 height_special "width"
27473 \begin_layout Plain Layout
27475 Box height set to 1
27476 \begin_inset space \thinspace{}
27487 \begin_layout Subsection
27489 \begin_inset Index idx
27492 \begin_layout Plain Layout
27501 \begin_layout Standard
27502 When you have chosen an
27505 \begin_inset space ~
27510 , the vertical box alignment can be:
27513 \begin_layout Description
27514 Top This is an example text line.
27516 \begin_inset Box Boxed
27526 height_special "totalheight"
27529 \begin_layout Plain Layout
27531 This box is top-aligned.
27536 This is an example text line.
27539 \begin_layout Description
27540 Middle This is an example text line.
27542 \begin_inset Box Boxed
27552 height_special "totalheight"
27555 \begin_layout Plain Layout
27557 This box is middle-aligned.
27562 This is an example text line.
27565 \begin_layout Description
27566 Bottom This is an example text line.
27568 \begin_inset Box Boxed
27578 height_special "totalheight"
27581 \begin_layout Plain Layout
27583 This box is bottom-aligned.
27588 This is an example text line.
27591 \begin_layout Standard
27592 \begin_inset Note Greyedout
27595 \begin_layout Plain Layout
27600 The vertical box alignment can be lost in the output when you have two
27601 boxes in a line and one has e.
27602 \begin_inset space \thinspace{}
27606 \begin_inset space \space{}
27609 a shadow and the other one not.
27617 \begin_layout Standard
27618 The horizontal box alignment can be set via LyX's paragraph dialog when
27619 you set the box into its own paragraph.
27622 \begin_layout Standard
27623 \begin_inset VSpace bigskip
27626 When you have chosen an
27629 \begin_inset space ~
27634 , the box content can be aligned vertically to:
27637 \begin_layout Description
27638 top This is an example text line.
27640 \begin_inset Box Boxed
27650 height_special "totalheight"
27653 \begin_layout Plain Layout
27655 This box text is top-aligned.
27660 This is an example text line.
27663 \begin_layout Description
27664 middle This is an example text line.
27666 \begin_inset Box Boxed
27676 height_special "totalheight"
27679 \begin_layout Plain Layout
27681 This box text is middle-aligned.
27686 This is an example text line.
27689 \begin_layout Description
27690 bottom This is an example text line.
27692 \begin_inset Box Boxed
27702 height_special "totalheight"
27705 \begin_layout Plain Layout
27707 This box text is bottom-aligned.
27712 This is an example text line.
27715 \begin_layout Description
27716 stretch This is an example text line.
27718 \begin_inset Box Boxed
27728 height_special "totalheight"
27731 \begin_layout Plain Layout
27736 \begin_layout Plain Layout
27741 \begin_layout Plain Layout
27748 This is an example text line.
27751 \begin_layout Standard
27752 To stretch the box content, it must consist of more than one paragraph.
27753 In the example above every text line is in an own paragraph.
27756 \begin_layout Standard
27757 \begin_inset VSpace bigskip
27760 To align the box content horizontally you can use LyX's paragraph dialog
27761 when you have chosen an
27764 \begin_inset space ~
27772 \begin_layout Standard
27774 \begin_inset Box Boxed
27784 height_special "totalheight"
27787 \begin_layout Plain Layout
27792 \begin_layout Plain Layout
27797 \begin_layout Plain Layout
27807 \begin_layout Standard
27808 If you have not set an
27811 \begin_inset space ~
27816 , you can align the box content horizontally in the box dialog.
27819 \begin_layout Standard
27821 \begin_inset Box Boxed
27831 height_special "totalheight"
27834 \begin_layout Plain Layout
27836 This box text is horizontally stretched.
27844 \begin_layout Subsection
27846 \begin_inset CommandInset label
27848 name "sec:Decoration"
27853 \begin_inset Index idx
27856 \begin_layout Plain Layout
27865 \begin_layout Standard
27866 The type of the box can be specified in the box dialog in the drop-down
27872 The following types are possible:
27875 \begin_layout Description
27877 \begin_inset space ~
27881 \begin_inset space ~
27884 frame This draws a rectangular frame around the box.
27885 The frame line thickness has the size of
27893 \begin_inset Box Boxed
27903 height_special "totalheight"
27906 \begin_layout Plain Layout
27916 \begin_layout Description
27918 \begin_inset space ~
27922 \begin_inset space ~
27925 break When you use the decoration
27927 simple rectangular frame
27929 and no inner box, you can allow page breaks within a box.
27930 Note that then, unlike other framed boxes, the frame always uses the whole
27931 column width, the box is set as its own paragraph, and
27943 have no effect on this box type.
27944 The frame line thickness has the size of
27952 \begin_inset Box Framed
27962 height_special "totalheight"
27965 \begin_layout Plain Layout
27966 Allow page break box
27974 \begin_layout Description
27976 \begin_inset space ~
27980 \begin_inset space ~
27983 thin This draws an oval frame around the box.
27984 The frame line thickness has the size 0.4
27985 \begin_inset space \thinspace{}
27990 \begin_inset Box ovalbox
28000 height_special "totalheight"
28003 \begin_layout Plain Layout
28013 \begin_layout Description
28015 \begin_inset space ~
28019 \begin_inset space ~
28022 thick This draws an oval frame around the box.
28023 The frame line thickness has the size 0.8
28024 \begin_inset space \thinspace{}
28029 \begin_inset Box Ovalbox
28039 height_special "totalheight"
28042 \begin_layout Plain Layout
28052 \begin_layout Description
28054 \begin_inset space ~
28057 shadow This draws a rectangular frame with a shadow around the box.
28058 The frame line thickness has the size of
28064 , the shadow has a width of 4
28065 \begin_inset space \thinspace{}
28070 \begin_inset Box Shadowbox
28080 height_special "totalheight"
28083 \begin_layout Plain Layout
28093 \begin_layout Description
28095 \begin_inset space ~
28098 background This draws a box with a red background.
28099 Unlike colored boxes
28103 \begin_layout Plain Layout
28105 \begin_inset space \thinspace{}
28109 \begin_inset CommandInset ref
28111 reference "sec:Colored-Boxes"
28120 , it always uses the whole column width and the box is set as its own paragraph.
28122 \begin_inset Box Shaded
28132 height_special "totalheight"
28135 \begin_layout Plain Layout
28136 Shaded background box
28144 \begin_layout Description
28146 \begin_inset space ~
28150 \begin_inset space ~
28153 frame This draws a double-line rectangular frame around the box.
28154 The line thickness of the inner frame is 0.75
28155 \begin_inset space \thinspace{}
28164 , the thickness of the outer frame is 1.5
28165 \begin_inset space \thinspace{}
28175 The distance between the lines is 1.5
28176 \begin_inset space \thinspace{}
28186 \begin_inset space \thinspace{}
28190 \begin_inset space \thinspace{}
28194 \begin_inset space \thinspace{}
28199 \begin_inset Box Doublebox
28209 height_special "totalheight"
28212 \begin_layout Plain Layout
28214 Double rectangular box
28222 \begin_layout Standard
28223 \begin_inset VSpace bigskip
28226 LyX's box label will reflect the different frame types.
28227 To be able to use all types, the LaTeX-package
28232 \begin_inset Index idx
28235 \begin_layout Plain Layout
28236 LaTeX-packages ! fancybox
28244 \begin_layout Section
28246 \begin_inset Index idx
28249 \begin_layout Plain Layout
28250 Boxes ! Customization
28258 \begin_layout Standard
28259 The default value for the size
28266 \begin_inset space \thinspace{}
28270 It can be changed with the following command in TeX-Code to e.
28271 \begin_inset space \thinspace{}
28275 \begin_inset space \space{}
28279 \begin_inset space \thinspace{}
28285 \begin_layout Standard
28295 \begin_layout Standard
28299 \begin_layout Plain Layout
28311 \begin_inset Box Boxed
28321 height_special "totalheight"
28324 \begin_layout Plain Layout
28326 Rectangular box with
28333 \begin_inset space \thinspace{}
28337 \begin_inset space \thinspace{}
28341 \begin_inset space \thinspace{}
28353 \begin_layout Plain Layout
28367 \begin_layout Standard
28368 \begin_inset VSpace bigskip
28371 The space between the frame and the box content is for all frame styles
28373 \begin_inset space \thinspace{}
28377 You can change it by setting the length
28384 For example the command
28387 \begin_layout Standard
28397 \begin_layout Standard
28398 sets the value to 10
28399 \begin_inset space \thinspace{}
28402 pt, as with the following box:
28405 \begin_layout Standard
28409 \begin_layout Plain Layout
28421 \begin_inset Box Boxed
28431 height_special "totalheight"
28434 \begin_layout Plain Layout
28436 Rectangular box with
28443 \begin_inset space \thinspace{}
28447 \begin_inset space \thinspace{}
28451 \begin_inset space \thinspace{}
28463 \begin_layout Plain Layout
28477 \begin_layout Standard
28478 \begin_inset VSpace bigskip
28481 The diameter of the round corners of the oval boxes can be set with the
28492 \begin_layout Standard
28500 \begin_layout Standard
28501 sets the diameter to 1
28502 \begin_inset space \thinspace{}
28509 \begin_layout Standard
28517 \begin_layout Standard
28518 sets the diameter to
28521 \begin_inset space \thinspace{}
28525 \begin_inset space \thinspace{}
28528 minimum(width and heigth of box)
28540 \begin_layout Standard
28544 \begin_layout Plain Layout
28554 \begin_inset Box Ovalbox
28564 height_special "totalheight"
28567 \begin_layout Plain Layout
28576 \begin_inset space \thinspace{}
28580 \begin_inset space \thinspace{}
28584 \begin_inset space \thinspace{}
28596 \begin_layout Plain Layout
28608 \begin_layout Standard
28609 \begin_inset VSpace bigskip
28612 The size of the shadow can be adjusted by changing the length
28620 \begin_inset space \thinspace{}
28623 pt for the following box by this command:
28626 \begin_layout Standard
28636 \begin_layout Standard
28640 \begin_layout Plain Layout
28652 \begin_inset Box Shadowbox
28662 height_special "totalheight"
28665 \begin_layout Plain Layout
28674 \begin_inset space \thinspace{}
28678 \begin_inset space \thinspace{}
28682 \begin_inset space \thinspace{}
28694 \begin_layout Plain Layout
28708 \begin_layout Standard
28709 \begin_inset VSpace bigskip
28715 \begin_layout Standard
28716 The default value for the size
28723 \begin_inset space \thinspace{}
28727 The default space between the note content and the frame is 9
28728 \begin_inset space \thinspace{}
28731 pt and can be changed with the value of
28738 For example the frame appearance of the following
28742 is set with the TeX-Code commands
28745 \begin_layout Standard
28753 \begin_inset Newline newline
28763 \begin_layout Standard
28767 \begin_layout Plain Layout
28776 \begin_layout Plain Layout
28788 \begin_inset Box Framed
28798 height_special "totalheight"
28801 \begin_layout Plain Layout
28815 \begin_layout Plain Layout
28824 \begin_layout Plain Layout
28838 \begin_layout Standard
28839 \begin_inset VSpace bigskip
28845 \begin_layout Standard
28850 boxes the default space between the box content and the box border is 3
28851 \begin_inset space \thinspace{}
28854 pt and can be changed with the value of
28861 The default background color red can either be changed locally with the
28866 definecolor{shadecolor}
28868 or globally with the menu
28870 Tools\SpecialChar \menuseparator
28871 Preferences\SpecialChar \menuseparator
28872 Colors\SpecialChar \menuseparator
28874 \begin_inset space ~
28886 command is explained in section
28887 \begin_inset space ~
28891 \begin_inset CommandInset ref
28893 reference "sec:Colored-Tables"
28901 \begin_layout Plain Layout
28908 requires the LaTeX-package
28912 in the preamble, see section
28913 \begin_inset space ~
28917 \begin_inset CommandInset ref
28919 reference "sec:Colored-Boxes"
28928 For example the appearance of the following shaded background box is set
28929 with the TeX-Code commands
28932 \begin_layout Standard
28942 \begin_inset Newline newline
28949 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28952 \begin_layout Standard
28956 \begin_layout Plain Layout
28965 \begin_layout Plain Layout
28969 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28975 \begin_inset Box Shaded
28985 height_special "totalheight"
28988 \begin_layout Plain Layout
28991 This is yellow text in a
29001 box with dark green background.
29010 \begin_layout Plain Layout
29019 \begin_layout Plain Layout
29023 definecolor{shadecolor}{rgb}{1,0,0}
29031 \begin_layout Standard
29032 \begin_inset VSpace bigskip
29035 Changed lengths and widths are valid for all boxes following the commands
29039 \begin_layout Section
29041 \begin_inset CommandInset label
29043 name "sec:Minipages"
29048 \begin_inset Index idx
29051 \begin_layout Plain Layout
29060 \begin_layout Standard
29061 Minipages are treated by LaTeX as pages within pages and can therefore for
29062 example have their own footnotes.
29065 \begin_layout Standard
29066 Minipages are useful when you write documents with different languages.
29069 \begin_layout Standard
29070 Below are two example minipages side by side.
29071 Their width is set to 45
29072 \begin_inset space \thinspace{}
29075 col% and they are separated by a horizontal fill, that was inserted via
29078 Insert\SpecialChar \menuseparator
29080 \begin_inset space ~
29083 Formatting\SpecialChar \menuseparator
29085 \begin_inset space ~
29091 \begin_inset Newpage newpage
29097 \begin_layout Standard
29098 \begin_inset Box Frameless
29108 height_special "totalheight"
29111 \begin_layout Plain Layout
29114 Dies ist ein deutscher Text.
29115 Dies ist ein deutscher Text.
29116 Dies ist ein deutscher Text.
29117 Dies ist ein deutscher Text.
29118 Dies ist ein deutscher Text.
29119 Dies ist ein deutscher Text.
29120 Dies ist ein deutscher Text.
29121 Dies ist ein deutscher Text.
29122 Dies ist ein deutscher Text.
29123 Dies ist ein deutscher Text.
29124 Dies ist ein deutscher Text.
29125 Dies ist ein deutscher Text.
29126 Dies ist ein deutscher Text
29130 \begin_layout Plain Layout
29133 Dies ist eine deutsche Fußnote.
29139 Dies ist ein deutscher Text.
29140 Dies ist ein deutscher Text.
29146 \begin_inset space \hfill{}
29150 \begin_inset Box Frameless
29160 height_special "totalheight"
29163 \begin_layout Plain Layout
29164 This is an English Text.
29165 This is an English Text.
29166 This is an English Text.
29167 This is an English Text.
29168 This is an English Text.
29169 This is an English Text.
29170 This is an English Text.
29171 This is an English Text.
29172 This is an English Text.
29173 This is an English Text.
29174 This is an English Text.
29175 This is an English Text.
29176 This is an English Text.
29177 This is an English Text.
29178 This is an English Text.
29179 This is an English Text.
29183 \begin_layout Plain Layout
29184 This is an English footnote.
29189 This is an English Text.
29198 \begin_layout Standard
29199 \begin_inset VSpace bigskip
29202 The document-wide paragraph settings are ignored within minipages.
29203 That means that there will be no space between paragraphs in minipages
29204 although you set it to e.
29205 \begin_inset space \thinspace{}
29209 \begin_inset space \space{}
29216 in the document settings.
29219 \begin_layout Standard
29220 Minipages can also be used to set a background color for text parts, see
29222 \begin_inset space ~
29226 \begin_inset CommandInset ref
29228 reference "sub:Color-for-Paragraphs"
29235 \begin_layout Standard
29236 \begin_inset Note Greyedout
29239 \begin_layout Plain Layout
29244 You cannot have floats or margin notes inside minipages but minipages can
29245 be used inside tables, floats, and other boxes.
29253 \begin_layout Section
29255 \begin_inset CommandInset label
29257 name "sec:Parboxes"
29262 \begin_inset Index idx
29265 \begin_layout Plain Layout
29274 \begin_layout Standard
29275 Parboxes are very similar to minipages with the difference that they cannot
29276 have footnotes, because minipages, unlike parboxes, are not real boxes
29277 but LaTeX-environments.
29280 \begin_layout Standard
29282 \begin_inset Box Frameless
29292 height_special "totalheight"
29295 \begin_layout Plain Layout
29296 This a text within a parbox.
29297 This a text within a parbox.
29300 \begin_layout Plain Layout
29301 This footnote won't appear:
29305 \begin_layout Plain Layout
29306 This footnote is inside a parbox and will therefore not appear.
29319 \begin_layout Section
29320 Boxes for Words and Characters
29321 \begin_inset Index idx
29324 \begin_layout Plain Layout
29325 Boxes ! for Characters
29333 \begin_layout Subsection
29334 Prevent Hyphenation
29335 \begin_inset CommandInset label
29337 name "sec:Prevent-Hyphenation"
29342 \begin_inset Index idx
29345 \begin_layout Plain Layout
29346 Boxes ! to Prevent Hyphenation
29354 \begin_layout Standard
29355 You can use a special kind of box to prevent words or text from being hyphenated.
29356 \begin_inset Newline newline
29359 Here is an example text:
29362 \begin_layout Standard
29363 This line is an example to show how you can prevent the hyphenation of
29364 \begin_inset Quotes eld
29368 \begin_inset Quotes erd
29374 \begin_layout Standard
29375 To prevent the hyphenation of the word
29376 \begin_inset Quotes eld
29380 \begin_inset Quotes erd
29386 \begin_layout Standard
29394 \begin_layout Standard
29395 in TeX-Code before the word.
29396 After the word insert a closing brace
29397 \begin_inset Quotes eld
29405 \begin_inset Quotes erd
29411 \begin_layout Standard
29412 This is the result:
29415 \begin_layout Standard
29416 This line is an example to show how you can prevent the hyphenation of
29420 \begin_layout Plain Layout
29430 \begin_inset Quotes eld
29434 \begin_inset Quotes erd
29441 \begin_layout Plain Layout
29451 \begin_layout Standard
29452 You can alternatively set the command
29453 \begin_inset Quotes eld
29463 \begin_inset Quotes grd
29466 as TeX-Code directly before the word:
29469 \begin_layout Standard
29470 This line is an example to show how you can prevent the hyphenation of
29471 \begin_inset Quotes eld
29478 \begin_layout Plain Layout
29488 \begin_inset Quotes erd
29494 \begin_layout Standard
29495 Of course the word now protrudes over the side margin.
29496 To avoid this, add via the menu
29498 Insert\SpecialChar \menuseparator
29500 \begin_inset space ~
29503 Formatting\SpecialChar \menuseparator
29505 \begin_inset space ~
29513 arg "newline-insert newline"
29516 ) a line break before the word:
29519 \begin_layout Standard
29520 This line is an example to show how you can prevent the hyphenation of
29521 \begin_inset Newline newline
29528 \begin_layout Plain Layout
29538 \begin_inset Quotes eld
29542 \begin_inset Quotes erd
29549 \begin_layout Plain Layout
29559 \begin_layout Subsection
29561 \begin_inset CommandInset label
29563 name "sub:Vertical-Alignment"
29568 \begin_inset Index idx
29571 \begin_layout Plain Layout
29572 Boxes ! for Vertical Alignment
29578 \begin_inset Index idx
29581 \begin_layout Plain Layout
29590 \begin_layout Standard
29591 With the help of the command
29597 you can align words, characters or other boxes vertically relative to the
29605 is used with the following scheme:
29608 \begin_layout Standard
29613 raisebox{lift}[height][depth]{box content}
29616 \begin_layout Standard
29617 The lift can be a positive value to raise the box or a negative value to
29621 \begin_layout Standard
29622 To align for example the word
29623 \begin_inset Quotes eld
29627 \begin_inset Quotes erd
29630 so that the bottom of the
29631 \begin_inset Quotes eld
29635 \begin_inset Quotes erd
29639 \begin_inset Quotes eld
29643 \begin_inset Quotes erd
29646 is at the baseline, insert the command
29649 \begin_layout Standard
29659 \begin_layout Standard
29660 in TeX-Code before the word.
29661 After the word insert a closing brace
29662 \begin_inset Quotes eld
29670 \begin_inset Quotes erd
29674 \begin_inset Newline newline
29677 This is the result:
29680 \begin_layout Standard
29681 This is a text line with the word
29685 \begin_layout Plain Layout
29697 \begin_inset Quotes eld
29701 \begin_inset Quotes erd
29708 \begin_layout Plain Layout
29718 \begin_layout Standard
29719 \begin_inset VSpace bigskip
29722 When you raise or lower characters in a line, the line distance will be
29726 \begin_layout Standard
29727 This is a text line with the word
29731 \begin_layout Plain Layout
29743 \begin_inset Quotes eld
29747 \begin_inset Quotes erd
29754 \begin_layout Plain Layout
29762 \begin_inset Newline newline
29765 This is a text line with the word
29769 \begin_layout Plain Layout
29779 \begin_inset Quotes eld
29783 \begin_inset Quotes erd
29790 \begin_layout Plain Layout
29800 \begin_layout Standard
29801 If you want to prevent this for a certain reason, set the box height to
29806 \begin_layout Standard
29816 \begin_layout Standard
29817 This is a text line with the word
29821 \begin_layout Plain Layout
29833 \begin_inset Quotes eld
29837 \begin_inset Quotes erd
29844 \begin_layout Plain Layout
29852 \begin_inset Newline newline
29855 This is a text line with the word
29859 \begin_layout Plain Layout
29863 raisebox{0.5cm}[0pt]{
29869 \begin_inset Quotes eld
29873 \begin_inset Quotes erd
29880 \begin_layout Plain Layout
29890 \begin_layout Section
29892 \begin_inset CommandInset label
29894 name "sec:Colored-Boxes"
29899 \begin_inset Index idx
29902 \begin_layout Plain Layout
29911 \begin_layout Subsection
29913 \begin_inset Index idx
29916 \begin_layout Plain Layout
29925 \begin_layout Standard
29926 To color the background of text the text must be put into a so called
29927 \begin_inset Quotes eld
29931 \begin_inset Quotes erd
29935 This requires that the LaTeX-package
29940 \begin_inset Index idx
29943 \begin_layout Plain Layout
29944 LaTeX-packages ! color
29949 is loaded in the document preamble with the command
29952 \begin_layout Standard
29957 @ifundefined{textcolor}
29958 \begin_inset Newline newline
29962 \begin_inset Phantom HPhantom
29965 \begin_layout Plain Layout
29968 \begin_inset space ~
29978 usepackage{color}}{}
29981 \begin_layout Standard
29986 will be loaded automatically by LyX when you color text.
29990 \begin_layout Plain Layout
29991 To avoid it being loaded twice the command
30005 \begin_layout Standard
30006 \begin_inset VSpace medskip
30009 Colorboxes are created with the command
30016 This will be used with the following scheme:
30019 \begin_layout Standard
30024 colorbox{color}{box content}
30027 \begin_layout Standard
30028 The box content can also be a box and colorboxes can also be within other
30032 \begin_layout Standard
30033 The following colors are predefined:
30034 \begin_inset Newline newline
30073 \begin_inset Newline newline
30076 You can also define your own color as described in section
30077 \begin_inset space ~
30081 \begin_inset CommandInset ref
30083 reference "sec:Colored-Tables"
30090 \begin_layout Standard
30092 \begin_inset space \thinspace{}
30096 \begin_inset space \space{}
30099 a red background for a word, insert the command
30102 \begin_layout Standard
30110 \begin_layout Standard
30111 before the word in TeX-Code.
30112 After the word insert a closing brace
30113 \begin_inset Quotes eld
30121 \begin_inset Quotes erd
30125 \begin_inset Newline newline
30128 This is the result:
30131 \begin_layout Standard
30132 This is a line where the word
30136 \begin_layout Plain Layout
30146 \begin_inset Quotes eld
30150 \begin_inset Quotes erd
30157 \begin_layout Plain Layout
30164 has a red background.
30167 \begin_layout Standard
30168 \begin_inset VSpace bigskip
30171 If you would like the box frame in a different color, you can use the command
30178 with the following scheme:
30181 \begin_layout Standard
30186 fcolorbox{frame color}{box color}{box content}
30189 \begin_layout Standard
30203 The frame thickness and the space between the frame and the box content
30204 can be adjusted with the lengths
30216 , respectively, as described in section
30217 \begin_inset space ~
30221 \begin_inset CommandInset ref
30223 reference "sec:Decoration"
30230 \begin_layout Standard
30231 For the following example the command
30234 \begin_layout Standard
30239 fcolorbox{cyan}{magenta}{
30242 \begin_layout Standard
30246 \begin_layout Standard
30247 Here is an example where the frame line thickness was set to 1
30248 \begin_inset space \thinspace{}
30252 \begin_inset Newline newline
30259 \begin_layout Plain Layout
30274 \begin_layout Plain Layout
30278 fcolorbox{cyan}{magenta}{
30283 This is text within a colored, framed box.
30287 \begin_layout Plain Layout
30297 \begin_layout Standard
30298 \begin_inset VSpace bigskip
30301 Of course you can also have colored text inside a colorbox:
30302 \begin_inset Newline newline
30309 \begin_layout Plain Layout
30313 fcolorbox{cyan}{magenta}{
30320 This is colored text within a colored, framed box.
30326 \begin_layout Plain Layout
30337 \begin_layout Plain Layout
30351 \begin_layout Standard
30354 \begin_inset VSpace medskip
30360 \begin_layout Standard
30361 \begin_inset Note Greyedout
30364 \begin_layout Plain Layout
30369 Text in colorboxes cannot have line breaks.
30370 To color multiple text lines or paragraphs, use a box inside a colorbox
30371 as described in the following.
30379 \begin_layout Subsection
30380 Color for Paragraphs
30381 \begin_inset CommandInset label
30383 name "sub:Color-for-Paragraphs"
30388 \begin_inset Index idx
30391 \begin_layout Plain Layout
30392 Color ! for Paragraphs
30400 \begin_layout Standard
30401 To set the background color for more than one text line, put the text into
30403 Before the minipage insert the
30412 \begin_layout Standard
30420 \begin_layout Standard
30422 After the minipage insert a closing brace
30423 \begin_inset Quotes eld
30431 \begin_inset Quotes erd
30437 \begin_layout Standard
30441 \begin_layout Plain Layout
30445 colorbox{lightgrey}{
30451 \begin_inset Box Frameless
30461 height_special "totalheight"
30464 \begin_layout Plain Layout
30465 This is text with background color.
30466 This is text with background color.
30469 \begin_layout Plain Layout
30470 \begin_inset VSpace defskip
30473 The text can have footnotes
30477 \begin_layout Plain Layout
30478 Another example footnote
30483 and can include tables and figures.
30486 \begin_layout Plain Layout
30488 \begin_inset Tabular
30489 <lyxtabular version="3" rows="3" columns="3">
30490 <features tabularvalignment="middle">
30491 <column alignment="center" valignment="top" width="0">
30492 <column alignment="center" valignment="top" width="0">
30493 <column alignment="center" valignment="top" width="0">
30495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30498 \begin_layout Plain Layout
30504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30507 \begin_layout Plain Layout
30513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30516 \begin_layout Plain Layout
30524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30527 \begin_layout Plain Layout
30533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30536 \begin_layout Plain Layout
30538 \begin_inset Quotes erd
30546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30549 \begin_layout Plain Layout
30557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30560 \begin_layout Plain Layout
30566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30569 \begin_layout Plain Layout
30575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30578 \begin_layout Plain Layout
30598 \begin_layout Plain Layout
30608 \begin_layout Section
30609 Rotated and Scaled Boxes
30612 \begin_layout Standard
30613 To use the commands described in this section, the LaTeX-package
30618 \begin_inset Index idx
30621 \begin_layout Plain Layout
30622 LaTeX-packages ! graphicx
30627 needs to be loaded in the document preamble with the command
30630 \begin_layout Standard
30635 @ifundefined{rotatebox}
30636 \begin_inset Newline newline
30640 \begin_inset Phantom HPhantom
30643 \begin_layout Plain Layout
30646 \begin_inset space ~
30656 usepackage{graphicx}}{}
30659 \begin_layout Standard
30660 \begin_inset Note Greyedout
30663 \begin_layout Plain Layout
30668 Some DVI-viewers can't display rotated or scaled material.
30676 \begin_layout Standard
30677 \begin_inset Note Greyedout
30680 \begin_layout Plain Layout
30685 Floats mustn't be inside a rotated or scaled box.
30693 \begin_layout Subsection
30695 \begin_inset Index idx
30698 \begin_layout Plain Layout
30705 \begin_inset Index idx
30708 \begin_layout Plain Layout
30715 \begin_inset Index idx
30718 \begin_layout Plain Layout
30725 \begin_inset Index idx
30728 \begin_layout Plain Layout
30729 Table Customization ! Rotating
30737 \begin_layout Standard
30738 To rotate material, you can put it into a rotated box.
30739 Such a box is created using the command
30745 in TeX-Code with the following scheme:
30748 \begin_layout Standard
30753 rotatebox[rotation origin]{rotation angle}{box content}
30756 \begin_layout Standard
30757 The rotation origin is specified in the form
30762 The following positions are possible:
30782 (top), along with meaningful combinations of the four base positions.
30787 means that the rotation origin is at the top left corner of the box.
30788 When no rotation origin is specified, the position
30793 The rotation angle is a number that can be negative that specifies the
30795 The rotation direction is counterclockwise.
30798 \begin_layout Standard
30799 In the following example the command
30803 rotatebox[origin=c]{60}{
30805 was inserted as TeX-Code before the text
30806 \begin_inset Quotes eld
30810 \begin_inset Quotes erd
30813 ; after the text the box was closed by a closing brace
30820 \begin_layout Standard
30825 \begin_layout Plain Layout
30829 rotatebox[origin=c]{60}{
30838 \begin_layout Plain Layout
30848 \begin_layout Standard
30849 The box content can also be another box or an inline formula:
30852 \begin_layout Standard
30857 \begin_layout Plain Layout
30861 rotatebox[origin=r]{-60}{
30867 \begin_inset Box Doublebox
30877 height_special "totalheight"
30880 \begin_layout Plain Layout
30890 \begin_layout Plain Layout
30901 \begin_layout Plain Layout
30905 rotatebox[origin=lb]{60}{
30911 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30918 \begin_layout Plain Layout
30928 \begin_layout Standard
30929 or an image or table:
30932 \begin_layout Standard
30937 \begin_layout Plain Layout
30941 rotatebox[origin=lb]{90}{
30947 \begin_inset Graphics
30948 filename clipart/platypus.eps
30958 \begin_layout Plain Layout
30965 with a rotated image
30969 \begin_layout Plain Layout
30973 rotatebox[origin=l]{-90}{
30979 \begin_inset Tabular
30980 <lyxtabular version="3" rows="2" columns="2">
30981 <features tabularvalignment="middle">
30982 <column alignment="center" valignment="top" width="0">
30983 <column alignment="center" valignment="top" width="0">
30985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30988 \begin_layout Plain Layout
30994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30997 \begin_layout Plain Layout
31005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31008 \begin_layout Plain Layout
31014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31017 \begin_layout Plain Layout
31032 \begin_layout Plain Layout
31042 \begin_layout Subsection
31044 \begin_inset Index idx
31047 \begin_layout Plain Layout
31054 \begin_inset Index idx
31057 \begin_layout Plain Layout
31064 \begin_inset Index idx
31067 \begin_layout Plain Layout
31074 \begin_inset Index idx
31077 \begin_layout Plain Layout
31078 Table Customization ! Scaling
31086 \begin_layout Standard
31087 To scale material the commands
31099 can be used as TeX-Code.
31102 \begin_layout Standard
31109 is used with the following scheme:
31112 \begin_layout Standard
31117 scalebox{horizontal}[vertical]{box content}
31120 \begin_layout Standard
31121 Horizontal and vertical are the corresponding scaling factors.
31122 If no vertical scaling factor is given, the horizontal factor will also
31123 be used as the vertical one.
31126 \begin_layout Standard
31133 creates for example a double size
31137 \begin_layout Plain Layout
31150 \begin_layout Plain Layout
31157 , compared with the document text size.
31160 \begin_layout Standard
31165 scalebox{2}[1]{Hello}
31167 on the other hand distorts the
31171 \begin_layout Plain Layout
31184 \begin_layout Plain Layout
31194 \begin_layout Standard
31195 If the scaling factor is negative, the box content will be mirrored.
31196 Therefore the command
31200 scalebox{-1}[1]{Hello}
31202 can be used to create mirror writing:
31206 \begin_layout Plain Layout
31219 \begin_layout Plain Layout
31229 \begin_layout Standard
31234 scalebox{1}[-1]{Hello}
31240 \begin_layout Plain Layout
31253 \begin_layout Plain Layout
31263 \begin_layout Standard
31268 scalebox{-1}[1]{box content}
31270 there exists the command
31271 \begin_inset Newline newline
31278 reflectbox{box content}
31283 \begin_layout Standard
31284 \begin_inset VSpace bigskip
31293 is used to scale the box to a defined width and height.
31294 The command scheme is:
31297 \begin_layout Standard
31302 resizebox{width}{height}{box content}
31305 \begin_layout Standard
31306 If one of the two command arguments given is an exclamation mark
31310 , the size is set so that the aspect ratio of the box content is kept.
31313 \begin_layout Standard
31318 resizebox{2cm}{1cm}{Hello}
31324 \begin_layout Plain Layout
31328 resizebox{2cm}{1cm}{
31337 \begin_layout Plain Layout
31345 \begin_inset Newline newline
31352 resizebox{2cm}{!}{Hello}
31358 \begin_layout Plain Layout
31371 \begin_layout Plain Layout
31381 \begin_layout Standard
31382 \begin_inset VSpace bigskip
31386 \begin_inset Note Greyedout
31389 \begin_layout Plain Layout
31406 are set to zero, no LaTeX-errors occur when exporting the document but
31407 the exported files can not or only partly be displayed.
31415 \begin_layout Standard
31416 \begin_inset VSpace bigskip
31422 \begin_layout Standard
31423 The boxes can be combined in any order.
31425 \begin_inset space \thinspace{}
31429 \begin_inset space \space{}
31433 \begin_inset Newline newline
31440 rotatebox[origin=c]{-45}{
31444 reflectbox{Hello}}}
31445 \begin_inset Newline newline
31453 \begin_layout Standard
31458 \begin_layout Plain Layout
31462 rotatebox[origin=c]{-45}{
31475 \begin_layout Plain Layout
31485 \begin_layout Standard
31487 Images, tables, and inline formulas are allowed as box content:
31490 \begin_layout Standard
31495 \begin_layout Plain Layout
31499 rotatebox[origin=c]{-30}{
31509 \begin_inset Graphics
31510 filename clipart/platypus.eps
31520 \begin_layout Plain Layout
31531 \begin_layout Plain Layout
31535 rotatebox[origin=c]{-45}{
31545 \begin_inset Tabular
31546 <lyxtabular version="3" rows="2" columns="2">
31547 <features tabularvalignment="middle">
31548 <column alignment="center" valignment="top" width="0">
31549 <column alignment="center" valignment="top" width="0">
31551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31554 \begin_layout Plain Layout
31560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31563 \begin_layout Plain Layout
31571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31574 \begin_layout Plain Layout
31580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31583 \begin_layout Plain Layout
31598 \begin_layout Plain Layout
31609 \begin_layout Plain Layout
31613 rotatebox[origin=c]{-45}{
31623 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31630 \begin_layout Plain Layout
31640 \begin_layout Standard
31641 When the global formula style
31645 is used in the document
31649 \begin_layout Plain Layout
31651 \begin_inset Quotes eld
31655 \begin_inset Quotes erd
31658 is added to the document class options.
31663 , display style formulas can also be scaled.
31666 \begin_layout Chapter
31667 External Document Parts
31668 \begin_inset Index idx
31671 \begin_layout Plain Layout
31672 External Document Parts
31680 \begin_layout Standard
31683 Insert\SpecialChar \menuseparator
31686 you can insert external material to your document.
31690 \begin_layout Description
31692 \begin_inset space ~
31695 Document Another LyX document; its content is directly inserted to your
31699 \begin_layout Description
31701 \begin_inset space ~
31704 Text A text document; each line is inserted in your document as a separate
31708 \begin_layout Description
31710 \begin_inset space ~
31714 \begin_inset space ~
31718 \begin_inset space ~
31721 Lines A text document; text lines are inserted in your document continuously
31722 but an empty text line creates a new paragraph.
31725 \begin_layout Description
31727 \begin_inset space ~
31730 Material Files in various formats.
31733 \begin_layout Description
31735 \begin_inset space ~
31738 Document LyX or LaTeX-documents.
31741 \begin_layout Section
31743 \begin_inset Index idx
31746 \begin_layout Plain Layout
31747 External Document Parts ! External Material
31755 \begin_layout Standard
31756 The external material feature allows you to insert files in to your document
31757 without converting them to a format that can be read by the document output
31759 LyX takes care of the necessary conversions.
31760 This is similar to images that can be inserted in various image formats
31762 When you have enabled Instant Preview in LyX's preferences under
31765 \begin_inset space ~
31769 \begin_inset space ~
31772 feel\SpecialChar \menuseparator
31775 , the external material types Dia and Xfig are directly shown in LyX.
31778 \begin_layout Standard
31779 External material can be inserted via the
31783 dialog that is accessible with the menu
31785 Insert\SpecialChar \menuseparator
31786 File\SpecialChar \menuseparator
31788 \begin_inset space ~
31794 Currently the following file types (
31801 \begin_layout Description
31802 ChessDiagram This template supports chess position diagrams made with the
31806 \begin_inset CommandInset href
31809 target "http://en.wikipedia.org/wiki/XBoard"
31818 \begin_layout Description
31819 Date This inserts the date in the form
31824 This is a date inserted as external material:
31825 \begin_inset External
31832 \begin_inset space ~
31836 \begin_inset Note Note
31839 \begin_layout Plain Layout
31840 Remove the protected space when bug 4398 is fixed!
31846 \begin_inset Newline newline
31849 The date is not shown within LyX, only in the output.
31850 There are two other methods of inserting a date: Via menu
31852 Insert\SpecialChar \menuseparator
31855 and with the LaTeX command
31862 The different methods are compared in Table
31863 \begin_inset space ~
31867 \begin_inset CommandInset ref
31869 reference "tab:Comparison-of-the"
31876 \begin_layout Description
31877 Dia This template supports diagrams created with the program
31880 \begin_inset CommandInset href
31883 target "http://en.wikipedia.org/wiki/Dia_(software)"
31892 \begin_layout Description
31893 LilyPond This template is used for music notation typeset with the program
31894 \begin_inset Newline linebreak
31900 \begin_inset CommandInset href
31903 target "http://en.wikipedia.org/wiki/LilyPond"
31912 \begin_layout Description
31913 PDFPages With this template you can insert PDF documents to your document.
31914 To insert certain or all pages of a PDF, use the
31924 LaTeX and LyX options
31926 tab according to the template description in the dialog.
31931 option is given, only the first page of the PDF will be inserted.
31934 \begin_layout Description
31935 RasterImage This can be used for bitmap images.
31936 Nearly all popular image formats are supported.
31937 The image can be treated in the
31941 dialog like the images that are usually included via the
31945 dialog as described in section
31946 \begin_inset space ~
31950 \begin_inset CommandInset ref
31952 reference "sec:Graphics-Dialog"
31957 The difference is that only raster images are allowed; that means that
31958 PDF and EPS-images are not supported.
31961 \begin_layout Description
31962 XFig This template supports images created with the program
31965 \begin_inset CommandInset href
31968 target "http://en.wikipedia.org/wiki/Xfig"
31977 \begin_layout Standard
31978 \begin_inset Float table
31984 \begin_layout Plain Layout
31985 \begin_inset Caption
31987 \begin_layout Plain Layout
31988 \begin_inset CommandInset label
31990 name "tab:Comparison-of-the"
31994 Comparison of the date input methods.
32002 \begin_layout Plain Layout
32004 \begin_inset Tabular
32005 <lyxtabular version="3" rows="4" columns="4">
32006 <features tabularvalignment="middle">
32007 <column alignment="center" valignment="top" width="0">
32008 <column alignment="center" valignment="top" width="0">
32009 <column alignment="center" valignment="top" width="0">
32010 <column alignment="center" valignment="top" width="0">
32012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32015 \begin_layout Plain Layout
32021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32024 \begin_layout Plain Layout
32027 External Material\SpecialChar \menuseparator
32033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32036 \begin_layout Plain Layout
32039 Insert\SpecialChar \menuseparator
32045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32048 \begin_layout Plain Layout
32060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32063 \begin_layout Plain Layout
32069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32072 \begin_layout Plain Layout
32078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32081 \begin_layout Plain Layout
32087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32090 \begin_layout Plain Layout
32091 as TeX-Code inset box
32098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32101 \begin_layout Plain Layout
32107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32110 \begin_layout Plain Layout
32116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32119 \begin_layout Plain Layout
32125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32128 \begin_layout Plain Layout
32136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32139 \begin_layout Plain Layout
32145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32148 \begin_layout Plain Layout
32154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32157 \begin_layout Plain Layout
32163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32166 \begin_layout Plain Layout
32185 \begin_layout Standard
32186 When you use the option
32198 dialog, only the path to the inserted file is shown in the output.
32199 \begin_inset Newline newline
32202 External material is displayed in LyX either as a box like this:
32203 \begin_inset Graphics
32204 filename clipart/ExternalMaterialQt4.png
32206 scaleBeforeRotation
32210 or as image, depending on the option
32216 LaTeX and LyX options
32221 \begin_layout Standard
32228 manual explains how you can define your own templates.
32231 \begin_layout Section
32233 \begin_inset CommandInset label
32235 name "sec:Child-Documents"
32240 \begin_inset Index idx
32243 \begin_layout Plain Layout
32244 External Document Parts ! Child Documents
32250 \begin_inset Index idx
32253 \begin_layout Plain Layout
32262 \begin_layout Standard
32263 Child documents are used when you have a long document consisting of several
32264 larger parts or sections.
32265 For maintenance it is often useful and sometimes even required to split
32266 the document in several files that can be revised separately.
32267 The different documents are then the so called child documents and a master
32268 document connects them to print the full document or parts of it.
32269 A child documents inherits elements of its master, for example the LaTeX
32270 preamble, the bibliography, and labels for cross-references.
32273 \begin_layout Standard
32274 To be able to work on child documents without the need to open their master,
32275 specify in the child document the master in the menu
32277 Document\SpecialChar \menuseparator
32278 Settings\SpecialChar \menuseparator
32280 \begin_inset space ~
32286 This master document will then be used in the background by LyX when you
32287 edit the child document.
32290 \begin_layout Standard
32291 Included documents are displayed in LyX as a box like this:
32292 \begin_inset Graphics
32293 filename clipart/ChildDocumentQt4.png
32295 scaleBeforeRotation
32299 To include child documents in a master document use the menu
32301 Insert\SpecialChar \menuseparator
32302 File\SpecialChar \menuseparator
32304 \begin_inset space ~
32310 A dialog pops up where you can choose between four include methods:
32313 \begin_layout Description
32314 Include You can include LyX and LaTeX-documents.
32323 dialog, the included documents will be opened in LyX in a new file tab
32324 so that you can modify them.
32325 \begin_inset Newline newline
32331 \begin_layout Standard
32332 Here is a child document inserted using
32337 \begin_inset CommandInset include
32338 LatexCommand include
32339 filename "DummyDocument1.lyx"
32346 \begin_layout Standard
32347 The section numbering includes the sections of the included files in the
32348 order they are inserted in the master document.
32349 The included example document has for example a subsection that is numbered
32350 as a subsection of this section.
32351 Labels of included documents can be referenced: Subsection
32352 \begin_inset space ~
32356 \begin_inset CommandInset ref
32358 reference "sub:External-Subsection-1"
32365 \begin_layout Standard
32366 The preamble of the child document is ignored; only the preamble of the
32367 master document is used.
32368 Branches in child documents will be ignored by the master document when
32369 the master document does not have a branch with the same name.
32370 Included documents are inserted starting on a new page and ending with
32374 \begin_layout Standard
32375 If you are only working on a certain chapter of a large document and want
32376 to save compiling time, you can put each included file into a branch.
32380 \begin_layout Plain Layout
32381 Branches are described in section
32394 By enabling/disabling branches you can decide what included files will
32395 appear in the output.
32398 \begin_layout Standard
32399 \begin_inset Note Greyedout
32402 \begin_layout Plain Layout
32407 Due to a bug in LyX the LaTeX command
32413 can currently not be used as an alternative to decide what files should
32422 \begin_layout Standard
32423 \begin_inset Note Greyedout
32426 \begin_layout Plain Layout
32431 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32432 w the document in case the child document uses another document class than
32433 the master document as this will lead to unexpected outputs.
32441 \begin_layout Description
32442 Input This method is very similar to the Include method.
32443 The differences are:
32447 \begin_layout Itemize
32448 Input files don't start with a new page and don't end with a page break.
32451 \begin_layout Itemize
32452 Input files can be previewed in LyX when
32455 \begin_inset space ~
32460 is enabled in LyX's preferences under
32463 \begin_inset space ~
32467 \begin_inset space ~
32470 feel\SpecialChar \menuseparator
32476 \begin_layout Itemize
32487 \begin_layout Standard
32488 Here is a child document inserted using
32493 \begin_inset CommandInset include
32495 filename "DummyDocument2.lyx"
32502 \begin_layout Description
32503 Verbatim With this method every text file can be included.
32504 The file is shown in the output with its source code; no command used in
32505 the text is invoked.
32506 You can use the option
32508 Mark spaces in output
32510 that displays the character
32511 \begin_inset Quotes eld
32518 \begin_layout Plain Layout
32528 \begin_inset Quotes erd
32531 for every space character in the source code.
32532 The difference from the method via the menu
32534 Insert\SpecialChar \menuseparator
32535 File\SpecialChar \menuseparator
32537 \begin_inset space ~
32542 is that the document content is not shown in LyX.
32545 \begin_layout Standard
32546 Here is a child document inserted as Verbatim:
32547 \begin_inset CommandInset include
32548 LatexCommand verbatiminput
32549 filename "DummyTextDocument.txt"
32554 \begin_inset VSpace bigskip
32557 Here is a child document inserted as Verbatim using the
32559 Mark spaces in output
32562 \begin_inset CommandInset include
32563 LatexCommand verbatiminput*
32564 filename "DummyTextDocument.txt"
32571 \begin_layout Standard
32572 \begin_inset VSpace bigskip
32578 \begin_layout Standard
32579 \begin_inset Note Greyedout
32582 \begin_layout Plain Layout
32587 As you can see in the examples above, the text of the documents included
32592 is not broken at the end of the document lines.
32600 \begin_layout Description
32601 Listings This type is described in chapter
32602 \begin_inset space ~
32606 \begin_inset CommandInset ref
32608 reference "cha:Program-Code-Listings"
32615 \begin_layout Standard
32616 \begin_inset Note Greyedout
32619 \begin_layout Plain Layout
32624 Including the same document twice in a document using different methods
32625 could cause LaTeX-problems.
32633 \begin_layout Chapter
32634 Program Code Listings
32635 \begin_inset CommandInset label
32637 name "cha:Program-Code-Listings"
32642 \begin_inset Index idx
32645 \begin_layout Plain Layout
32652 \begin_inset Index idx
32655 \begin_layout Plain Layout
32662 \begin_inset Index idx
32665 \begin_layout Plain Layout
32674 \begin_layout Standard
32675 To include and typeset program code you can use the
32679 inset that can be inserted via the menu
32681 Insert\SpecialChar \menuseparator
32690 \begin_inset Index idx
32693 \begin_layout Plain Layout
32694 LaTeX-packages ! listings
32699 provides a powerful and flexible way to insert program source code into
32703 \begin_layout Standard
32704 Right-clicking on a listings inset opens the context menu containing where
32705 you can set the listings format.
32708 \begin_layout Standard
32709 By default, a listing starts a new paragraph in the output.
32710 The placement option
32713 \begin_inset space ~
32718 prints the listing inline like this:
32719 \begin_inset listings
32720 lstparams "language={C++}"
32724 \begin_layout Plain Layout
32732 \begin_inset Newline newline
32739 creates a listings float where you can specify the placement options
32740 \begin_inset Quotes eld
32748 \begin_inset Quotes erd
32752 \begin_inset Quotes eld
32760 \begin_inset Quotes erd
32764 \begin_inset Quotes eld
32772 \begin_inset Quotes erd
32776 \begin_inset Quotes eld
32784 \begin_inset Quotes erd
32787 corresponding to the float placement options described in section
32788 \begin_inset space ~
32792 \begin_inset CommandInset ref
32794 reference "sec:Float-Placement"
32799 The placement options can be mixed and are inserted without any separation,
32801 \begin_inset space \thinspace{}
32805 \begin_inset space \space{}
32809 \begin_inset Quotes eld
32817 \begin_inset Quotes erd
32822 \begin_inset Quotes eld
32826 \begin_inset Quotes erd
32829 has sometimes no effect, but you don't need to use the
32833 option in this case as also non-float listings can have captions and be
32837 \begin_layout Standard
32838 You can add captions to listings with the menu
32840 Insert\SpecialChar \menuseparator
32844 Listings can be referenced like floats: Listing
32845 \begin_inset space ~
32849 \begin_inset CommandInset ref
32851 reference "lst:Example-Listing"
32858 \begin_layout Standard
32859 \begin_inset listings
32860 lstparams "language=Python"
32864 \begin_layout Plain Layout
32866 \begin_inset Caption
32868 \begin_layout Plain Layout
32869 \begin_inset CommandInset label
32871 name "lst:Example-Listing"
32875 Example Listing float
32880 # Example listing float
32883 \begin_layout Plain Layout
32888 \begin_layout Plain Layout
32890 'this is a python function'
32893 \begin_layout Plain Layout
32903 \begin_layout Standard
32904 When you have set a programming language in the listings dialog, the keywords
32905 of this language will be recognized and specially typeset in the output.
32906 In the example listings the Python keyword
32907 \begin_inset Quotes eld
32911 \begin_inset Quotes erd
32914 is recognized and printed bold in the output.
32917 \begin_layout Standard
32918 \begin_inset Note Greyedout
32921 \begin_layout Plain Layout
32926 If you don't get bold keywords when using typewriter fonts, your
32930 font probably doesn't provide a bold shape.
32931 In this case select a different one in the menu
32933 Document\SpecialChar \menuseparator
32934 Settings\SpecialChar \menuseparator
32946 provide bold shapes.)
32954 \begin_layout Standard
32958 \begin_inset space ~
32963 of the listings dialog you can specify the line numbering style.
32964 You can insert a number to specify which lines are numbered in the field
32971 \begin_inset space \thinspace{}
32975 \begin_inset space \space{}
32979 \begin_inset Quotes eld
32983 \begin_inset Quotes erd
32986 , only every 3rd line will be numbered.
32989 \begin_layout Standard
32990 You can furthermore specify a range of lines; only these will then appear
32994 Extended character table
32996 should be used when you use national characters like the German umlauts
32998 \begin_inset Newline newline
33001 Here is an example listing with left line numbering, step
33002 \begin_inset Quotes eld
33006 \begin_inset Quotes erd
33010 \begin_inset Quotes eld
33014 \begin_inset Quotes erd
33018 \begin_inset Quotes eld
33021 Extended character table
33022 \begin_inset Quotes erd
33026 \begin_inset Quotes eld
33030 \begin_inset space ~
33034 \begin_inset space ~
33038 \begin_inset Quotes erd
33042 \begin_inset space \thinspace{}
33046 \begin_inset space \thinspace{}
33052 \begin_layout Standard
33053 \begin_inset listings
33054 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33058 \begin_layout Plain Layout
33063 \begin_layout Plain Layout
33065 'this is a python function'
33068 \begin_layout Plain Layout
33073 \begin_layout Plain Layout
33078 \begin_layout Plain Layout
33080 'This is a German word: Tschüß'
33083 \begin_layout Plain Layout
33088 \begin_layout Plain Layout
33093 \begin_layout Plain Layout
33095 'this is a python function'
33098 \begin_layout Plain Layout
33108 \begin_layout Standard
33109 When you have tabulators in your listing, you can specify the number of
33110 characters that are spanned by a tabulator in the field
33113 \begin_inset space ~
33121 \begin_layout Standard
33122 \begin_inset Note Greyedout
33125 \begin_layout Plain Layout
33130 Due to a bug in the
33134 package the line numbering is shifted by a line by every previous listing.
33135 That's the reason why the lines 2 and 5 are numbered in the above listing
33136 and not the lines 3 and 6.
33144 \begin_layout Standard
33145 \begin_inset VSpace bigskip
33151 \begin_layout Standard
33152 It is also possible to print lines from a file as listing.
33153 To do this, use the menu
33155 Insert\SpecialChar \menuseparator
33156 File\SpecialChar \menuseparator
33159 and choose the type
33167 \begin_layout Plain Layout
33168 The other child document types are described in section
33169 \begin_inset space ~
33173 \begin_inset CommandInset ref
33175 reference "sec:Child-Documents"
33184 In the child document dialog you can specify the listing parameters in
33186 To show a list of all available parameters, type in a question mark
33187 \begin_inset Quotes eld
33191 \begin_inset Quotes erd
33197 \begin_layout Standard
33198 To reference child document listings, write a label text into the corresponding
33199 field of the child document dialog.
33200 The label can then be referenced using the menu
33202 Insert\SpecialChar \menuseparator
33208 \begin_layout Standard
33210 \begin_inset space ~
33214 \begin_inset CommandInset ref
33216 reference "lst:file-listing"
33220 is an example for a listing of a file; there the lines 10
33221 \begin_inset space \thinspace{}
33225 \begin_inset space \thinspace{}
33228 15 of this LyX file are listed.
33231 \begin_layout Standard
33232 \begin_inset CommandInset include
33233 LatexCommand lstinputlisting
33234 filename "EmbeddedObjects.lyx"
33235 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33242 \begin_layout Standard
33243 \begin_inset VSpace bigskip
33249 \begin_layout Standard
33250 Global listings settings can be set in the
33252 Document\SpecialChar \menuseparator
33253 Settings\SpecialChar \menuseparator
33257 To get there a list of available options, type in a question mark
33258 \begin_inset Quotes eld
33262 \begin_inset Quotes erd
33268 \begin_inset space ~
33276 \begin_layout Standard
33277 For more information about the
33281 package, we refer to its documentation
33282 \begin_inset CommandInset citation
33291 \begin_layout Standard
33292 \begin_inset Newpage newpage
33298 \begin_layout Chapter
33300 Units available in LyX
33301 \begin_inset Index idx
33304 \begin_layout Plain Layout
33311 \begin_inset CommandInset label
33313 name "cha:Units-available-in"
33320 \begin_layout Standard
33321 To understand the units described in this documentation, Table
33322 \begin_inset space ~
33326 \begin_inset CommandInset ref
33328 reference "tab:Units"
33332 explains all units available in LyX.
33335 \begin_layout Standard
33336 \begin_inset Float table
33342 \begin_layout Plain Layout
33343 \begin_inset Caption
33345 \begin_layout Plain Layout
33346 \begin_inset CommandInset label
33360 \begin_layout Plain Layout
33361 \begin_inset VSpace medskip
33367 \begin_layout Plain Layout
33369 \begin_inset Tabular
33370 <lyxtabular version="3" rows="20" columns="2">
33371 <features tabularvalignment="middle">
33372 <column alignment="center" valignment="top" width="0">
33373 <column alignment="center" valignment="top" width="0">
33375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33378 \begin_layout Plain Layout
33384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33387 \begin_layout Plain Layout
33395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33398 \begin_layout Plain Layout
33404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33407 \begin_layout Plain Layout
33415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33418 \begin_layout Plain Layout
33424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33427 \begin_layout Plain Layout
33435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33438 \begin_layout Plain Layout
33444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33447 \begin_layout Plain Layout
33455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33458 \begin_layout Plain Layout
33464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33467 \begin_layout Plain Layout
33469 \begin_inset space \thinspace{}
33473 \begin_inset space \thinspace{}
33483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33486 \begin_layout Plain Layout
33492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33495 \begin_layout Plain Layout
33497 \begin_inset space \thinspace{}
33501 \begin_inset space \thinspace{}
33511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33514 \begin_layout Plain Layout
33520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33523 \begin_layout Plain Layout
33524 scaled point (65536
33525 \begin_inset space \thinspace{}
33529 \begin_inset space \thinspace{}
33539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33542 \begin_layout Plain Layout
33548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33551 \begin_layout Plain Layout
33553 \begin_inset space \thinspace{}
33557 \begin_inset space \thinspace{}
33567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33570 \begin_layout Plain Layout
33576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33579 \begin_layout Plain Layout
33581 \begin_inset space \thinspace{}
33585 \begin_inset Formula $\approx$
33589 \begin_inset space \thinspace{}
33599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33602 \begin_layout Plain Layout
33608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33611 \begin_layout Plain Layout
33613 \begin_inset space \thinspace{}
33617 \begin_inset space \thinspace{}
33627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33630 \begin_layout Plain Layout
33636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33639 \begin_layout Plain Layout
33640 % of original image width
33647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33650 \begin_layout Plain Layout
33656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33659 \begin_layout Plain Layout
33667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33670 \begin_layout Plain Layout
33676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33679 \begin_layout Plain Layout
33687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33690 \begin_layout Plain Layout
33696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33699 \begin_layout Plain Layout
33707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33710 \begin_layout Plain Layout
33716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33719 \begin_layout Plain Layout
33727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33730 \begin_layout Plain Layout
33736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33739 \begin_layout Plain Layout
33747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33750 \begin_layout Plain Layout
33756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33759 \begin_layout Plain Layout
33767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33770 \begin_layout Plain Layout
33776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33779 \begin_layout Plain Layout
33791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33794 \begin_layout Plain Layout
33800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33803 \begin_layout Plain Layout
33815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33818 \begin_layout Plain Layout
33824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33827 \begin_layout Plain Layout
33829 \begin_inset space \thinspace{}
33833 \begin_inset space \thinspace{}
33854 \begin_layout Chapter
33855 Output File Formats with Graphics
33856 \begin_inset CommandInset label
33858 name "cha:Output-File-Formats"
33865 \begin_layout Section
33867 \begin_inset Index idx
33870 \begin_layout Plain Layout
33877 \begin_inset Index idx
33880 \begin_layout Plain Layout
33885 \begin_layout Plain Layout
33896 \begin_layout Plain Layout
33911 \begin_layout Standard
33912 This file type has the extension
33913 \begin_inset Quotes eld
33921 \begin_inset Quotes erd
33926 \begin_inset Quotes eld
33930 \begin_inset Quotes erd
33933 (DVI), because it is completely portable; you can move them from one machine
33934 to another without needing to do any sort of conversion.
33935 At the time when this file-format was developed, this was no matter of
33937 DVIs are used for quick previews and as pre-stage for other output formats,
33941 \begin_layout Standard
33942 \begin_inset Note Greyedout
33945 \begin_layout Plain Layout
33950 DVI-files do not contain images; they will only be a linked.
33955 So don't forget this, if you move your
33959 file to another computer.
33960 This property can also slow down your computer when you view the DVI, because
33961 the DVI-viewer has to convert the image in the background to make it visible
33962 when you scroll in the DVI.
33963 So it is recommended that you use PDF for files with many images.
33966 \begin_layout Standard
33967 You can export your document to DVI by using the menu
33969 File\SpecialChar \menuseparator
33970 Export\SpecialChar \menuseparator
33974 You can view your document as DVI via the
33978 menu or by using the toolbar button
33979 \begin_inset Graphics
33980 filename ../images/buffer-view_dvi.png
33982 scaleBeforeRotation
33989 \begin_layout Section
33991 \begin_inset CommandInset label
33993 name "sec:PostScript"
33998 \begin_inset Index idx
34001 \begin_layout Plain Layout
34002 File Formats ! PostScript
34008 \begin_inset Index idx
34011 \begin_layout Plain Layout
34016 \begin_layout Plain Layout
34027 \begin_layout Plain Layout
34042 \begin_layout Standard
34043 This file type has the extension
34044 \begin_inset Quotes eld
34052 \begin_inset Quotes erd
34056 PostScript was developed by the company
34060 as a printer language.
34061 The file therefore contains commands that the printer uses to print the
34063 PostScript can be seen as a
34064 \begin_inset Quotes eld
34067 programming language
34068 \begin_inset Quotes erd
34071 ; you can calculate with it and draw diagrams and images
34075 \begin_layout Plain Layout
34076 If you are interested to learn more about this, have a look at the LaTeX-package
34082 \begin_inset CommandInset citation
34094 Due to this ability, the files are often bigger than PDFs.
34097 \begin_layout Standard
34098 PostScript can only contain images in the format
34099 \begin_inset Quotes eld
34102 Encapsulated PostScript
34103 \begin_inset Quotes erd
34106 (EPS, file extension
34107 \begin_inset Quotes eld
34115 \begin_inset Quotes erd
34119 As LyX allows you to use any known image format in your document, it has
34120 to convert images in the background to EPS.
34122 \begin_inset space ~
34126 \begin_inset space ~
34129 images in your document, LyX has to do 50
34130 \begin_inset space ~
34133 conversions whenever you view or export your document.
34134 This will slow down your work flow with LyX drastically.
34135 So if you plan to use PostScript, you can insert your images directly as
34136 EPS to avoid this problem.
34139 \begin_layout Standard
34140 You can export your document to PostScript using the menu
34142 File\SpecialChar \menuseparator
34143 Export\SpecialChar \menuseparator
34147 You can view your document as PostScript via the
34151 menu or by using the toolbar button
34152 \begin_inset Graphics
34153 filename ../images/buffer-view_ps.png
34155 scaleBeforeRotation
34162 \begin_layout Section
34164 \begin_inset Index idx
34167 \begin_layout Plain Layout
34174 \begin_inset Index idx
34177 \begin_layout Plain Layout
34186 \begin_layout Standard
34187 This file type has the extension
34188 \begin_inset Quotes eld
34196 \begin_inset Quotes erd
34201 \begin_inset Quotes eld
34204 Portable Document Format
34205 \begin_inset Quotes erd
34208 (PDF) was developed by
34212 as a derivative of PostScript.
34213 It is more compressed and it uses fewer commands than PostScript.
34215 \begin_inset Quotes eld
34219 \begin_inset Quotes erd
34222 implies, it can be processed at any computer system and the printed output
34223 looks exactly the same.
34226 \begin_layout Standard
34227 PDF can contain images in its own PDF format, in the format
34228 \begin_inset Quotes eld
34231 Joint Photographic Experts Group
34232 \begin_inset Quotes erd
34235 (JPG, file extension
34236 \begin_inset Quotes eld
34244 \begin_inset Quotes erd
34248 \begin_inset Quotes eld
34256 \begin_inset Quotes erd
34259 ), and in the format
34260 \begin_inset Quotes eld
34263 Portable Network Graphics
34264 \begin_inset Quotes erd
34267 (PNG, file extension
34268 \begin_inset Quotes eld
34276 \begin_inset Quotes erd
34280 Nevertheless you can use any other image format, because LyX converts them
34281 in the background to one of these formats.
34282 But as described in the section about PostScript, the image conversion
34283 will slow down your work flow.
34284 So it is recommended that you use images in one of the three mentioned
34288 \begin_layout Standard
34289 You can export your document to PDF via the menu
34291 File\SpecialChar \menuseparator
34294 in three different ways:
34297 \begin_layout Description
34299 \begin_inset space ~
34302 (ps2pdf) This uses the program
34306 that creates a PDF from a PostScript-version of your file.
34307 The PostScript-version is produced by the program
34311 which uses a DVI-version as intermediate step.
34312 So this export variant consists of three conversions.
34315 \begin_layout Description
34317 \begin_inset space ~
34320 (dvipdfm) This uses the program
34324 that converts your file in the background to DVI and in a second step to
34328 \begin_layout Description
34330 \begin_inset space ~
34333 (pdflatex) This uses the program
34337 that converts your file directly to PDF.
34340 \begin_layout Standard
34341 It is recommended that you use
34344 \begin_inset space ~
34353 supports all features of actual PDF-versions, is quick and works stable.
34358 is not under development and therefore a bit outdated.
34361 \begin_layout Standard
34362 You can view your document as PDF via the
34366 menu or by using the toolbar button
34367 \begin_inset Graphics
34368 filename ../images/buffer-view_pdf2.png
34370 scaleBeforeRotation
34381 \begin_inset space ~
34389 \begin_layout Chapter
34390 Explanation of Equation
34391 \begin_inset space ~
34395 \begin_inset CommandInset ref
34402 \begin_inset CommandInset label
34404 name "cha:Explanation-of-Equation"
34411 \begin_layout Standard
34412 We can calculate the total width of
34417 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34423 \begin_layout Standard
34424 \begin_inset Formula \begin{equation}
34425 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
34430 \begin_inset Formula $W_{g\, n}$
34433 is the given width of all cells,
34439 is the LaTeX-length between the cell text and the cell border (its default
34441 \begin_inset space \thinspace{}
34451 is the thickness of the cell border line, the default is 0.4
34452 \begin_inset space \thinspace{}
34458 \begin_layout Standard
34460 \begin_inset space ~
34464 \begin_inset CommandInset ref
34466 reference "eq:Wtot_n"
34470 , the total width of a multicolumn
34471 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34477 \begin_layout Standard
34478 \begin_inset Formula \begin{equation}
34479 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34486 \begin_layout Standard
34487 By setting equation
34488 \begin_inset space ~
34492 \begin_inset CommandInset ref
34494 reference "eq:Wtot_n"
34499 \begin_inset CommandInset ref
34501 reference "eq:Wtot_mult"
34505 equal we can calculate the needed given width
34506 \begin_inset Formula $W_{g\, n}$
34513 columns are spanned, so that each column has a total width of
34514 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34520 \begin_layout Standard
34521 \begin_inset Formula \begin{equation}
34522 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34529 \begin_layout Bibliography
34530 \labelwidthstring Bibliography
34531 \begin_inset CommandInset bibitem
34532 LatexCommand bibitem
34533 key "latexcompanion"
34537 Frank Mittelbach and Michel Goossens:
34539 The LaTeX Companion Second Edition.
34542 Addison-Wesley, 2004
34545 \begin_layout Bibliography
34546 \labelwidthstring Bibliography
34547 \begin_inset CommandInset bibitem
34548 LatexCommand bibitem
34553 Helmut Kopka and Patrick W.
34556 A Guide to LaTeX Fourth Edition.
34559 Addison-Wesley, 2003
34562 \begin_layout Bibliography
34563 \labelwidthstring Bibliography
34564 \begin_inset CommandInset bibitem
34565 LatexCommand bibitem
34572 LaTeX: A Document Preparation System.
34575 Addison-Wesley, second edition, 1994
34578 \begin_layout Bibliography
34579 \labelwidthstring Bibliography
34580 \begin_inset CommandInset bibitem
34581 LatexCommand bibitem
34586 Documentation of the LaTeX-package
34589 \begin_inset CommandInset href
34592 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34599 \begin_inset Index idx
34602 \begin_layout Plain Layout
34603 LaTeX-packages ! booktabs
34611 \begin_layout Bibliography
34612 \labelwidthstring Bibliography
34613 \begin_inset CommandInset bibitem
34614 LatexCommand bibitem
34619 Documentation of the LaTeX-package
34622 \begin_inset CommandInset href
34625 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34632 \begin_inset Index idx
34635 \begin_layout Plain Layout
34636 LaTeX-packages ! caption
34644 \begin_layout Bibliography
34645 \labelwidthstring Bibliography
34646 \begin_inset CommandInset bibitem
34647 LatexCommand bibitem
34652 Documentation of the LaTeX-package
34655 \begin_inset CommandInset href
34658 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34665 \begin_inset Index idx
34668 \begin_layout Plain Layout
34669 LaTeX-packages ! endfloat
34677 \begin_layout Bibliography
34678 \labelwidthstring Bibliography
34679 \begin_inset CommandInset bibitem
34680 LatexCommand bibitem
34685 Documentation of the LaTeX-package
34688 \begin_inset CommandInset href
34691 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34698 \begin_inset Index idx
34701 \begin_layout Plain Layout
34702 LaTeX-packages ! wrapfig
34706 \begin_layout Plain Layout
34723 \begin_layout Bibliography
34724 \labelwidthstring Bibliography
34725 \begin_inset CommandInset bibitem
34726 LatexCommand bibitem
34731 Documentation of the LaTeX-package
34734 \begin_inset CommandInset href
34737 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34744 \begin_inset Index idx
34747 \begin_layout Plain Layout
34748 LaTeX-packages ! footmisc
34756 \begin_layout Bibliography
34757 \labelwidthstring Bibliography
34758 \begin_inset CommandInset bibitem
34759 LatexCommand bibitem
34764 Documentation of the LaTeX-package
34767 \begin_inset CommandInset href
34770 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34777 \begin_inset Index idx
34780 \begin_layout Plain Layout
34781 LaTeX-packages ! hyperref
34789 \begin_layout Bibliography
34790 \labelwidthstring Bibliography
34791 \begin_inset CommandInset bibitem
34792 LatexCommand bibitem
34797 Documentation of the LaTeX-package
34800 \begin_inset CommandInset href
34803 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34810 \begin_inset Index idx
34813 \begin_layout Plain Layout
34814 LaTeX-packages ! hyperref
34822 \begin_layout Bibliography
34823 \labelwidthstring Bibliography
34824 \begin_inset CommandInset bibitem
34825 LatexCommand bibitem
34830 Documentation of the LaTeX-package
34833 \begin_inset CommandInset href
34836 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34843 \begin_inset Index idx
34846 \begin_layout Plain Layout
34847 LaTeX-packages ! KOMA-Script
34855 \begin_layout Bibliography
34856 \labelwidthstring Bibliography
34857 \begin_inset CommandInset bibitem
34858 LatexCommand bibitem
34863 Documentation of the LaTeX-package
34866 \begin_inset CommandInset href
34869 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34876 \begin_inset Index idx
34879 \begin_layout Plain Layout
34880 LaTeX-packages ! listings
34888 \begin_layout Bibliography
34889 \labelwidthstring Bibliography
34890 \begin_inset CommandInset bibitem
34891 LatexCommand bibitem
34896 Documentation of the LaTeX-package
34899 \begin_inset CommandInset href
34902 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34909 \begin_inset Index idx
34912 \begin_layout Plain Layout
34913 LaTeX-packages ! marginnote
34921 \begin_layout Bibliography
34922 \labelwidthstring Bibliography
34923 \begin_inset CommandInset bibitem
34924 LatexCommand bibitem
34929 Web page of the LaTeX-package
34932 \begin_inset CommandInset href
34935 target "http://tug.org/PSTricks/"
34942 \begin_inset Index idx
34945 \begin_layout Plain Layout
34946 LaTeX-packages ! PSTricks
34954 \begin_layout Bibliography
34955 \labelwidthstring Bibliography
34956 \begin_inset CommandInset bibitem
34957 LatexCommand bibitem
34962 Documentation of the LaTeX-package
34965 \begin_inset CommandInset href
34968 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34975 \begin_inset Index idx
34978 \begin_layout Plain Layout
34979 LaTeX-packages ! sidecap
34987 \begin_layout Bibliography
34988 \labelwidthstring Bibliography
34989 \begin_inset CommandInset bibitem
34990 LatexCommand bibitem
34995 Documentation of the LaTeX-package
34998 \begin_inset CommandInset href
35001 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35008 \begin_inset Index idx
35011 \begin_layout Plain Layout
35012 LaTeX-packages ! prettyref
35020 \begin_layout Bibliography
35021 \labelwidthstring Bibliography
35022 \begin_inset CommandInset bibitem
35023 LatexCommand bibitem
35029 \begin_inset CommandInset href
35032 target "http://wiki.lyx.org/LyX/NewInLyX16"
35036 about new features in
35043 \begin_layout Standard
35044 \begin_inset CommandInset index_print
35045 LatexCommand printindex
35053 \begin_layout Standard
35054 \begin_inset FloatList figure
35061 \begin_layout Standard
35062 \begin_inset FloatList table
35069 \begin_layout Standard
35070 \begin_inset FloatList algorithm