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}]{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}}
89 % used for book-style tables
92 % used to have extra space in table cells
93 \@ifundefined{extrarowheight}
94 {\usepackage{array}}{}
95 \setlength{\extrarowheight}{2pt}
97 % used for customized tables
100 {>{\centering\hspace{0pt}}m{#1}}
103 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
106 {>{\columncolor{#1}\hspace{0pt}}c}
108 \newcolumntype{V}{!{\vrule width 1.5pt}}
110 \newcolumntype{W}{!{\color{green}\vline}}
113 % insert additional vertical space of
114 % 1.5 mm between footnotes
116 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
118 % number algorithm floats within chapters
119 \numberwithin{algorithm}{chapter}
121 % ------------------------------------
122 % used to check for needed LaTeX packages
125 % check for package arydshln
126 % used for tables with dashed lines
127 \newboolean{arydshln}
128 \IfFileExists{arydshln.sty}
129 {\usepackage{arydshln}
130 \setboolean{arydshln}{true}}
131 {\setboolean{arydshln}{false}}
133 % check for package marginnote
134 % used for margin notes
135 \newboolean{marginnote}
136 \IfFileExists{marginnote.sty}
137 {\usepackage{marginnote}
138 \let\marginpar\marginnote
139 \setboolean{marginnote}{true}}
140 {\setboolean{marginnote}{false}}
142 % check for package sidecap
143 % used for captions on the side
145 \IfFileExists{sidecap.sty}
146 {\usepackage{sidecap}
147 \setboolean{sidecap}{true}}
148 {\setboolean{sidecap}{false}}
150 % redefine the \LyX macro for PDF bookmarks
151 \def\LyX{\texorpdfstring{%
152 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
155 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
156 \use_default_options false
157 \maintain_unincluded_children false
163 \font_typewriter default
164 \font_default_family default
172 \default_output_format default
174 \bibtex_command default
175 \index_command default
179 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
180 \pdf_author "LyX Team, Uwe Stöhr"
181 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
182 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
184 \pdf_bookmarksnumbered true
185 \pdf_bookmarksopen true
186 \pdf_bookmarksopenlevel 1
187 \pdf_breaklinks false
191 \pdf_pdfusetitle false
192 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
202 \paperorientation portrait
205 \notefontcolor #0000ff
212 \paragraph_separation skip
214 \quotes_language english
217 \paperpagestyle default
221 \tracking_changes false
222 \output_changes false
224 \html_be_strict false
230 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
239 \begin_layout Plain Layout
241 If you have comments or error corrections, please send them to the LyX Documenta
243 \begin_inset CommandInset href
245 name "lyx-docs@lists.lyx.org"
246 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
257 \begin_inset Note Note
260 \begin_layout Plain Layout
267 \begin_inset Newline newline
271 \begin_inset Newline newline
279 \begin_layout Standard
280 \begin_inset CommandInset toc
281 LatexCommand tableofcontents
288 \begin_layout Standard
289 \begin_inset Note Note
292 \begin_layout Plain Layout
293 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
311 If they are not installed you can export the document anyway but the sections
312 where the packages are required won't appear in the output.
315 \begin_layout Plain Layout
316 The latest PDF-version of this document can be found here:
317 \begin_inset Newline newline
322 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
330 \begin_layout Chapter
332 \begin_inset Index idx
335 \begin_layout Plain Layout
342 \begin_inset Index idx
345 \begin_layout Plain Layout
350 \begin_layout Plain Layout
361 \begin_layout Plain Layout
376 \begin_layout Section
378 \begin_inset Index idx
381 \begin_layout Plain Layout
382 Figures ! Graphics Dialog
388 \begin_inset CommandInset label
390 name "sec:Graphics-Dialog"
397 \begin_layout Standard
398 To insert an image into your document, place the cursor at the text position
399 you want and click on the toolbar icon
400 \begin_inset Graphics
401 filename ../images/dialog-show-new-inset_graphics.png
409 Insert\SpecialChar \menuseparator
413 Then a dialog will appear to choose the file to load.
414 The image will appear in the output exactly at the position where it is
418 \begin_layout Standard
419 The graphics dialog can be called at any time by clicking on an image.
420 This dialog has three tabs:
423 \begin_layout Description
428 Here you can choose an image file and adjust its appearance in the output.
429 The available units for the image size are explained in appendix
434 \begin_inset CommandInset ref
436 reference "cha:Units-available-in"
441 \begin_inset Newline newline
445 \begin_inset Index idx
448 \begin_layout Plain Layout
454 You can rotate images counter-clockwise by setting a rotation angle and
456 The image will also be rotated inside LyX.
457 \begin_inset Newline newline
461 \begin_inset Index idx
464 \begin_layout Plain Layout
470 Images can be scaled by using a percentage value or by setting the width
471 and height explicitly.
472 If you set only the width or only the height, the other size will be determined
474 If you set both, then the image will be transformed to the given size,
475 possibly distorting it.
476 To prevent the image from distortion, use the option
478 Maintain aspect ratio
481 The image will then be scaled so that its width and height don't exceed
482 the specified dimensions.
483 \begin_inset Newline newline
486 Images can be opened in a program of your choice by right-clicking on it
487 and choosing the entry
496 The program can be set for every image format in the file format settings
497 in LyX's preferences.
500 \begin_layout Description
505 Alternatively to the usage of scaling units it is possible to set image
506 coordinates to adjust the height and width of the image in the output.
507 The coordinates can also be calculated automatically by pressing the button
537 will only print the image region within the given coordinates.
538 Normally you don't need to take care about image coordinates and can ignore
542 \begin_layout Description
559 In this tab you can modify the appearance of the image within LyX and LaTeX
560 experts can specify additional LaTeX options.
561 \begin_inset Newline newline
572 makes the image appear in the output only as a frame with the size of the
574 \begin_inset Newline newline
593 option only affects zipped EPS-graphics, e.
594 \begin_inset space \thinspace{}
598 \begin_inset space \space{}
606 When the option is used the images will not be unzipped on export, since
607 LaTeX can handle them as they are.
608 \begin_inset Newline newline
611 Zipped EPS-graphics are useful to save disk space when you choose PostScript
612 as output format, see appendix
617 \begin_inset CommandInset ref
619 reference "sec:PostScript"
624 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
626 \begin_inset Newline newline
634 \begin_inset Newline newline
639 zgrep %%Bounding x.eps.gz > x.eps.bb
642 \begin_inset Newline newline
645 The second command creates the bounding box file
646 \begin_inset Quotes eld
650 \begin_inset Quotes erd
653 that is needed by LaTeX for zipped graphics.
654 \begin_inset Newline newline
669 allows you define or join an image settings group.
670 \begin_inset Index idx
673 \begin_layout Plain Layout
674 Figures ! Settings grouping
679 Images within such a group share their settings, so adjusting one image
680 of the group automatically also adjusts all other images of the group in
682 So you can for example change the size for a bunch of images without the
683 need to manually change each of them.
684 Joining an existing group can also be done using the context menu of the
685 image by checking the name of the desired group.
688 \begin_layout Standard
689 \begin_inset VSpace bigskip
695 \begin_layout Standard
696 This is an example image in EPS format
700 \begin_layout Plain Layout
701 Image formats are explained in section
706 \begin_inset CommandInset ref
708 reference "sec:Image-Formats"
717 within a separate, horizontally centered paragraph:
720 \begin_layout Standard
722 \begin_inset Graphics
723 filename clipart/mobius.eps
733 \begin_layout Standard
734 This is the same image like the one above but in draft mode:
737 \begin_layout Standard
739 \begin_inset Graphics
740 filename clipart/mobius.eps
751 \begin_layout Standard
752 \begin_inset Newpage newpage
758 \begin_layout Section
760 \begin_inset CommandInset label
762 name "sec:Figure-Floats"
767 \begin_inset Index idx
770 \begin_layout Plain Layout
777 \begin_inset Index idx
780 \begin_layout Plain Layout
789 \begin_layout Standard
790 For general explanations about floats, have a look at section
795 \begin_inset CommandInset ref
797 reference "sec:FloatIntroduction"
804 \begin_layout Standard
806 \begin_inset Graphics
807 filename ../images/float-insert_figure.png
815 Insert\SpecialChar \menuseparator
816 Float\SpecialChar \menuseparator
819 inserts a float with a caption that has the label
820 \begin_inset Quotes eld
828 \begin_inset Quotes erd
831 (# is the actual number).
832 You can insert the image above the caption, like in Figure
837 \begin_inset CommandInset ref
839 reference "fig:kill-plat"
843 or below the caption, like in Figure
848 \begin_inset CommandInset ref
850 reference "fig:escher"
855 More about caption placement is described in section
860 \begin_inset CommandInset ref
862 reference "sec:Caption-Placement"
869 \begin_layout Standard
870 \begin_inset Float figure
875 \begin_layout Plain Layout
877 \begin_inset Graphics
878 filename clipart/platypus.eps
888 \begin_layout Plain Layout
891 \begin_layout Plain Layout
892 \begin_inset CommandInset label
898 A severely distorted platypus in a float.
911 \begin_layout Standard
912 \begin_inset Float figure
917 \begin_layout Plain Layout
920 \begin_layout Plain Layout
921 \begin_inset CommandInset label
936 \begin_layout Plain Layout
938 \begin_inset Graphics
939 filename clipart/escher-lsd.eps
954 \begin_layout Standard
955 \begin_inset Index idx
958 \begin_layout Plain Layout
959 References ! to Figures
969 \begin_inset CommandInset ref
971 reference "fig:kill-plat"
976 \begin_inset CommandInset ref
978 reference "fig:escher"
982 are examples of referenced figures.
983 Figures can be referenced in the text by referencing their label.
984 To do this insert a label in the caption using the menu
986 Insert\SpecialChar \menuseparator
989 or the toolbar button
990 \begin_inset Graphics
991 filename ../images/label-insert.png
998 You can now refer to the label using the menu
1000 Insert\SpecialChar \menuseparator
1002 \begin_inset space ~
1007 or the toolbar button
1008 \begin_inset Graphics
1009 filename ../images/dialog-show-new-inset_ref.png
1016 It is important to use references to floats, rather than using vague references
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1025 , because LaTeX will reposition the floats in the final document and it
1027 \begin_inset Quotes eld
1031 \begin_inset Quotes erd
1035 \begin_inset Newline newline
1038 Referencing is explained in detail in section
1039 \begin_inset space ~
1043 \begin_inset CommandInset ref
1045 reference "sec:Referencing-Floats"
1052 \begin_layout Standard
1053 Normally only one image is inserted to a figure float, but sometimes you
1054 might want to use two images with separate subcaptions.
1055 This can be done by inserting image floats into existing image floats.
1056 Note that only the main caption of the float is added to the List of Figures.
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "fig:Two-distorted-images"
1068 is an example of a figure float with two images set side by side.
1069 You can also set the images one below the other.
1071 \begin_inset space ~
1075 \begin_inset CommandInset ref
1077 reference "fig:Undefinable-structure"
1082 \begin_inset CommandInset ref
1084 reference "fig:A-Platypus"
1091 \begin_layout Standard
1092 \begin_inset Float figure
1097 \begin_layout Plain Layout
1098 \begin_inset space \hfill{}
1102 \begin_inset Float figure
1107 \begin_layout Plain Layout
1108 \begin_inset Caption
1110 \begin_layout Plain Layout
1111 \begin_inset CommandInset label
1113 name "fig:Undefinable-structure"
1117 Undefinable structure.
1125 \begin_layout Plain Layout
1126 \begin_inset Graphics
1127 filename clipart/escher-lsd.eps
1140 \begin_inset space \hfill{}
1144 \begin_inset Float figure
1149 \begin_layout Plain Layout
1150 \begin_inset Caption
1152 \begin_layout Plain Layout
1153 \begin_inset CommandInset label
1155 name "fig:A-Platypus"
1167 \begin_layout Plain Layout
1168 \begin_inset Graphics
1169 filename clipart/platypus.eps
1182 \begin_inset space \hfill{}
1188 \begin_layout Plain Layout
1189 \begin_inset Caption
1191 \begin_layout Plain Layout
1192 \begin_inset CommandInset label
1194 name "fig:Two-distorted-images"
1199 \begin_inset CommandInset label
1201 name "fig2:Two-distorted-images-2"
1205 Two distorted images.
1206 Both images are in the image settings group named
1207 \begin_inset Quotes eld
1211 \begin_inset Quotes erd
1227 \begin_layout Standard
1228 \begin_inset Newpage newpage
1234 \begin_layout Section
1236 \begin_inset CommandInset label
1238 name "sec:Image-Formats"
1243 \begin_inset Index idx
1246 \begin_layout Plain Layout
1253 \begin_inset Index idx
1256 \begin_layout Plain Layout
1257 Figures ! Image Formats
1265 \begin_layout Standard
1266 You can insert images in any known file format.
1267 But as explained in appendix
1268 \begin_inset space ~
1272 \begin_inset CommandInset ref
1274 reference "cha:Output-File-Formats"
1278 , each output document format allows only a few image formats.
1279 LyX uses therefore the program
1283 in the background to convert the images to the right format.
1284 To increase your work flow by avoiding these conversions in the background,
1285 you can use only the image formats that can directly be embedded in the
1287 The output file formats are explained in appendix
1288 \begin_inset space ~
1292 \begin_inset CommandInset ref
1294 reference "cha:Output-File-Formats"
1301 \begin_layout Standard
1302 Similar to fonts there are two types of image formats:
1305 \begin_layout Description
1307 \begin_inset space ~
1310 images consist of pixel values, often in a compressed form.
1311 They are therefore not fully scalable and look pixelated in large zooms.
1312 Well-known bitmap image formats are
1313 \begin_inset Quotes eld
1316 Graphics Interchange Format
1317 \begin_inset Quotes erd
1320 (GIF, file extension
1321 \begin_inset Quotes eld
1329 \begin_inset Quotes erd
1333 \begin_inset Index idx
1336 \begin_layout Plain Layout
1341 \begin_layout Plain Layout
1352 \begin_layout Plain Layout
1365 \begin_inset Quotes eld
1368 Portable Network Graphics
1369 \begin_inset Quotes erd
1372 (PNG, file extension
1373 \begin_inset Quotes eld
1381 \begin_inset Quotes erd
1385 \begin_inset Index idx
1388 \begin_layout Plain Layout
1393 \begin_layout Plain Layout
1404 \begin_layout Plain Layout
1417 \begin_inset Quotes eld
1420 Joint Photographic Experts Group
1421 \begin_inset Quotes erd
1424 (JPG, file extension
1425 \begin_inset Quotes eld
1433 \begin_inset Quotes erd
1437 \begin_inset Quotes eld
1445 \begin_inset Quotes erd
1449 \begin_inset Index idx
1452 \begin_layout Plain Layout
1457 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1483 \begin_layout Description
1485 \begin_inset space ~
1488 images consist of vectors and can therefore be scaled to any size without
1490 The scaling ability is necessary if you want to create presentations, because
1491 presentations are always scaled by the video projector.
1492 Scaling is also useful for online documents to let the user zoom into diagrams.
1493 \begin_inset Newline newline
1496 Well-known scalable image formats are
1497 \begin_inset Quotes eld
1500 Scalable Vector Graphics
1501 \begin_inset Quotes erd
1504 (SVG, file extension
1505 \begin_inset Quotes eld
1513 \begin_inset Quotes erd
1517 \begin_inset Index idx
1520 \begin_layout Plain Layout
1525 \begin_layout Plain Layout
1536 \begin_layout Plain Layout
1549 \begin_inset Quotes eld
1552 Encapsulated PostScript
1553 \begin_inset Quotes erd
1556 (EPS, file extension
1557 \begin_inset Quotes eld
1565 \begin_inset Quotes erd
1569 \begin_inset Index idx
1572 \begin_layout Plain Layout
1577 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1601 \begin_inset Quotes eld
1604 Portable Document Format
1605 \begin_inset Quotes erd
1608 (PDF, file extension
1609 \begin_inset Quotes eld
1617 \begin_inset Quotes erd
1621 \begin_inset Index idx
1624 \begin_layout Plain Layout
1631 \begin_inset Quotes eld
1635 \begin_inset Quotes erd
1638 (WMF, file extension
1639 \begin_inset Quotes eld
1647 \begin_inset Quotes erd
1651 \begin_inset Index idx
1654 \begin_layout Plain Layout
1659 \begin_layout Plain Layout
1670 \begin_layout Plain Layout
1684 \begin_inset Quotes eld
1688 \begin_inset Quotes erd
1691 , because you can convert any bitmap image to a PDF or EPS-image and the
1692 result will still be a bitmap image.
1693 In such cases only a header with the image properties is added to the original
1698 \begin_layout Plain Layout
1699 In the case of PDF, the original image is additionally compressed.
1705 The PDF-files generated by
1709 are for example bitmap images.
1712 \begin_layout Standard
1713 Normally it is not possible to convert a bitmap image into a scalable one,
1715 Only the image formats PDF and EPS can directly be embedded to PDF and
1716 PostScript output files, respectively.
1717 SVG and WMF-images are recalculated to bitmaps when the output file is
1718 generated because there is currently no adequate WMF/SVG
1719 \begin_inset Formula $\to$
1722 PDF/EPS converter available.
1725 \begin_layout Chapter
1727 \begin_inset Index idx
1730 \begin_layout Plain Layout
1739 \begin_layout Section
1741 \begin_inset Index idx
1744 \begin_layout Plain Layout
1745 Table ! Introduction
1753 \begin_layout Standard
1754 You can insert a table using either the toolbar button
1755 \begin_inset Graphics
1756 filename ../images/tabular-insert.png
1764 Insert\SpecialChar \menuseparator
1768 The toolbar button offers you a graphical selection: move the mouse to
1769 set the column/row number of the table that should be created and then
1770 press a mouse button.
1771 When you use the menu to create a table, a dialog will appear, asking you
1772 for the number of rows and columns.
1773 \begin_inset Newline newline
1776 The default table has lines around any cell and the first row appears separated
1777 from the rest of the table.
1778 This separation occurs due to a double line: The cells of the first row
1779 have a line below them and the cells of the second row have a line above
1781 Here is an example table:
1784 \begin_layout Standard
1786 \begin_inset Tabular
1787 <lyxtabular version="3" rows="4" columns="4">
1788 <features tabularvalignment="middle">
1789 <column alignment="center" valignment="top" width="0">
1790 <column alignment="center" valignment="top" width="0">
1791 <column alignment="center" valignment="top" width="0">
1792 <column alignment="center" valignment="top" width="0">
1794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1797 \begin_layout Plain Layout
1803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1833 \begin_layout Plain Layout
1841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1844 \begin_layout Plain Layout
1859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1862 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1880 \begin_layout Plain Layout
1888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1891 \begin_layout Plain Layout
1906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1909 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1927 \begin_layout Plain Layout
1935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1938 \begin_layout Plain Layout
1953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1956 \begin_layout Plain Layout
1962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1965 \begin_layout Plain Layout
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1974 \begin_layout Plain Layout
1988 \begin_layout Section
1990 \begin_inset Index idx
1993 \begin_layout Plain Layout
2002 \begin_layout Standard
2003 You can alter a table by clicking on it with the right mouse button, which
2004 brings up the table dialog.
2005 Here you can adjust the settings of that cell and row/column respectively
2006 where the cursor is currently placed.
2007 Most of the dialog options also work on selections.
2008 This means if you select more cells, columns or rows, the action is done
2009 for the whole selection.
2010 Note that there is a difference between selecting the
2014 of the cell, and the cell itself.
2015 You can alter tables with the following tabs of the table dialog:
2018 \begin_layout Description
2022 \begin_inset space ~
2027 Here you can set the horizontal alignment and the width of the current
2029 When you have set a width you can also adjust the vertical alignment of
2031 A given width will allow the cell to have line breaks and multiple paragraphs
2032 of text, see section
2033 \begin_inset space ~
2037 \begin_inset CommandInset ref
2039 reference "sub:Multiple-Lines-in"
2044 If you set no width, the column is as wide as the content of the widest
2046 \begin_inset Newline newline
2049 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2051 \begin_inset space ~
2055 \begin_inset CommandInset ref
2057 reference "sub:Multicolumns"
2061 or the cells of one column as multirow cell, see section
2062 \begin_inset space ~
2066 \begin_inset CommandInset ref
2068 reference "sub:Multirows"
2073 \begin_inset Newline newline
2076 The rotate check boxes rotate the current cell, a selection, or the whole
2077 table counter-clockwise by 90°.
2078 The rotation is not shown within LyX, only in the output.
2079 \begin_inset Newline newline
2083 \begin_inset Note Greyedout
2086 \begin_layout Plain Layout
2091 Not all DVI-viewers are able to display rotations.
2097 \begin_inset Newline newline
2100 It is also possible to enter a LaTeX-argument which is needed for special
2101 table formattings, see section
2102 \begin_inset space ~
2106 \begin_inset CommandInset ref
2108 reference "sub:Multicolumn-Calculations"
2113 \begin_inset CommandInset ref
2115 reference "sec:Colored-Tables"
2122 \begin_layout Description
2127 In this tab you can add and delete border lines for the current row/column.
2128 \begin_inset Newline newline
2131 Using the style option
2135 will convert the table to a formal table as described in section
2136 \begin_inset space ~
2140 \begin_inset CommandInset ref
2142 reference "sec:Formal-Tables"
2147 \begin_inset Newline newline
2150 You can also add here space to table rows as described in section
2151 \begin_inset space ~
2155 \begin_inset CommandInset ref
2157 reference "sub:Row-Spacing"
2164 \begin_layout Description
2169 This tab is to make a table a so called
2170 \begin_inset Quotes eld
2178 \begin_inset Quotes erd
2181 that can run over several pages.
2183 \begin_inset space ~
2187 \begin_inset CommandInset ref
2189 reference "sec:Longtables"
2194 \begin_inset CommandInset ref
2196 reference "sec:Special-Longtable-Issues"
2200 describe the longtable features in detail.
2203 \begin_layout Standard
2204 When the table dialog is open, you can move the cursor with the arrow keys
2205 from cell to cell and the property of the current cell will immediately
2206 be displayed in the dialog.
2209 \begin_layout Section
2211 \begin_inset Index idx
2214 \begin_layout Plain Layout
2223 \begin_layout Standard
2224 The table toolbar is an alternative to the table dialog to be able to alter
2226 It should normally appear at the bottom of LyX's main window when the cursor
2228 You can alternatively switch it on to appear always, by right-clicking
2229 in LyX's main menu bar.
2232 \begin_layout Standard
2233 The toolbar has the following icons:
2236 \begin_layout Labeling
2237 \labelwidthstring 00.00.0000
2238 \begin_inset Graphics
2239 filename ../images/tabular-feature_append-row.png
2244 adds a row below the current cell or selection
2247 \begin_layout Labeling
2248 \labelwidthstring 00.00.0000
2249 \begin_inset Graphics
2250 filename ../images/tabular-feature_append-column.png
2255 adds a column right beside the current cell or selection
2258 \begin_layout Labeling
2259 \labelwidthstring 00.00.0000
2260 \begin_inset Graphics
2261 filename ../images/tabular-feature_delete-row.png
2266 deletes the current row or selection
2269 \begin_layout Labeling
2270 \labelwidthstring 00.00.0000
2271 \begin_inset Graphics
2272 filename ../images/tabular-feature_delete-column.png
2277 deletes the current column or selection
2280 \begin_layout Labeling
2281 \labelwidthstring 00.00.0000
2282 \begin_inset Graphics
2283 filename ../images/tabular-feature_toggle-line-top.png
2288 adds a line at the top of the current cell / row or of a selection
2291 \begin_layout Labeling
2292 \labelwidthstring 00.00.0000
2293 \begin_inset Graphics
2294 filename ../images/tabular-feature_toggle-line-bottom.png
2299 adds a line at the bottom of the current cell / row or of a selection
2302 \begin_layout Labeling
2303 \labelwidthstring 00.00.0000
2304 \begin_inset Graphics
2305 filename ../images/tabular-feature_toggle-line-left.png
2310 adds a line at the left side of the current cell / row or of a selection
2313 \begin_layout Labeling
2314 \labelwidthstring 00.00.0000
2315 \begin_inset Graphics
2316 filename ../images/tabular-feature_toggle-line-right.png
2321 adds a line at the right side of the current cell / row or of a selection
2324 \begin_layout Labeling
2325 \labelwidthstring 00.00.0000
2326 \begin_inset Graphics
2327 filename ../images/tabular-feature_set-all-lines.png
2332 adds lines around the current or selected cells - if the current cell no
2333 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_unset-all-lines.png
2344 deletes all lines of the current or selected cells - if the current cell
2345 no multicolumn cell this also affects the current row and column
2348 \begin_layout Labeling
2349 \labelwidthstring 00.00.0000
2350 \begin_inset Graphics
2351 filename ../images/tabular-feature_m-align-left.png
2356 left-aligns the content of the current cell / column
2359 \begin_layout Labeling
2360 \labelwidthstring 00.00.0000
2361 \begin_inset Graphics
2362 filename ../images/tabular-feature_m-align-center.png
2367 centers the content of the current cell / column horizontally
2370 \begin_layout Labeling
2371 \labelwidthstring 00.00.0000
2372 \begin_inset Graphics
2373 filename ../images/tabular-feature_m-align-right.png
2378 right-aligns the content of the current cell / column
2381 \begin_layout Labeling
2382 \labelwidthstring 00.00.0000
2383 \begin_inset Graphics
2384 filename ../images/tabular-feature_align-decimal.png
2389 aligns the content of the current column at a character
2392 \begin_layout Labeling
2393 \labelwidthstring 00.00.0000
2394 \begin_inset Graphics
2395 filename ../images/tabular-feature_m-valign-top.png
2400 aligns the content of the current cell vertically to the top
2403 \begin_layout Labeling
2404 \labelwidthstring 00.00.0000
2405 \begin_inset Graphics
2406 filename ../images/tabular-feature_m-valign-middle.png
2411 centers the content of the current cell vertically
2414 \begin_layout Labeling
2415 \labelwidthstring 00.00.0000
2416 \begin_inset Graphics
2417 filename ../images/tabular-feature_m-valign-bottom.png
2422 aligns the content of the current cell vertically to the bottom
2425 \begin_layout Labeling
2426 \labelwidthstring 00.00.0000
2427 \begin_inset Graphics
2428 filename ../images/tabular-feature_set-rotate-cell.png
2433 rotates the current cell or selection counter-clockwise by 90°
2436 \begin_layout Labeling
2437 \labelwidthstring 00.00.0000
2438 \begin_inset Graphics
2439 filename ../images/tabular-feature_set-rotate-tabular.png
2444 rotates the whole table counter-clockwise by 90°
2447 \begin_layout Labeling
2448 \labelwidthstring 00.00.0000
2449 \begin_inset Graphics
2450 filename ../images/tabular-feature_multicolumn.png
2455 sets the current cell or selection as a multicolumn
2458 \begin_layout Labeling
2459 \labelwidthstring 00.00.0000
2460 \begin_inset Graphics
2461 filename ../images/tabular-feature_multirow.png
2466 sets the current cell or selection as a multirow
2469 \begin_layout Standard
2470 \begin_inset Note Greyedout
2473 \begin_layout Plain Layout
2478 For the output the vertical alignment of the first cell in a row is used
2479 for all following cells in the row.
2487 \begin_layout Section
2489 \begin_inset Index idx
2492 \begin_layout Plain Layout
2501 \begin_layout Standard
2502 Additionally to the table dialog and toolbar, the menu
2504 Edit\SpecialChar \menuseparator
2507 allows you to add and delete border lines for the current row/column and
2508 to set the current selection as multicolumn.
2509 The menu is only available when the cursor is inside a table.
2512 \begin_layout Section
2514 \begin_inset CommandInset label
2516 name "sec:Table-Floats"
2521 \begin_inset Index idx
2524 \begin_layout Plain Layout
2531 \begin_inset Index idx
2534 \begin_layout Plain Layout
2543 \begin_layout Standard
2544 For general explanations about floats, have a look at section
2545 \begin_inset space ~
2549 \begin_inset CommandInset ref
2551 reference "sec:FloatIntroduction"
2558 \begin_layout Standard
2559 \begin_inset Float table
2565 \begin_layout Plain Layout
2566 \begin_inset Caption
2568 \begin_layout Plain Layout
2569 \begin_inset CommandInset label
2571 name "tab:a table float"
2583 \begin_layout Plain Layout
2585 \begin_inset Tabular
2586 <lyxtabular version="3" rows="3" columns="3">
2587 <features tabularvalignment="middle">
2588 <column alignment="center" valignment="top" width="0pt">
2589 <column alignment="center" valignment="top" width="0pt">
2590 <column alignment="center" valignment="top" width="0pt">
2592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2595 \begin_layout Plain Layout
2610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2613 \begin_layout Plain Layout
2628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2631 \begin_layout Plain Layout
2648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2651 \begin_layout Plain Layout
2666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2669 \begin_layout Plain Layout
2684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2687 \begin_layout Plain Layout
2704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2707 \begin_layout Plain Layout
2717 \begin_inset Formula $\int x^{2}dx$
2725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2728 \begin_layout Plain Layout
2738 \begin_inset Formula $\left[\begin{array}{cc}
2749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2752 \begin_layout Plain Layout
2762 \begin_inset Formula $1+1=2$
2783 \begin_layout Standard
2784 Table floats can be inserted using the menu
2786 Insert\SpecialChar \menuseparator
2787 Float\SpecialChar \menuseparator
2790 or the toolbar button
2791 \begin_inset Graphics
2792 filename ../images/float-insert_table.png
2801 \begin_layout Standard
2802 The float appears as a collapsible box with a caption that has the label
2804 \begin_inset Quotes eld
2808 \begin_inset space ~
2812 \begin_inset Quotes erd
2815 (# is the actual table number).
2816 You can insert tables in the float above or below the caption.
2819 \begin_layout Standard
2821 \begin_inset space ~
2825 \begin_inset CommandInset ref
2827 reference "tab:a table float"
2831 is an example table within a table float.
2834 \begin_layout Standard
2835 Having the caption above the table is the common rule that is unfortunately
2836 not supported in LaTeX's standard classes.
2837 This means that, if you are using the document classes
2853 , there will be no space between the caption and the table.
2854 To insert the needed space, add the following option to the load command
2855 of the LaTeX-package
2860 \begin_inset Index idx
2863 \begin_layout Plain Layout
2864 LaTeX-packages ! caption
2869 in your document preamble
2873 \begin_layout Plain Layout
2874 For more information have a look at section
2875 \begin_inset space ~
2879 \begin_inset CommandInset ref
2881 reference "sec:Caption-Placement"
2893 \begin_layout Standard
2899 \begin_layout Standard
2904 , which is described in section
2905 \begin_inset space ~
2909 \begin_inset CommandInset ref
2911 reference "sec:Caption-Formatting"
2915 , is used to adjust the caption format.
2918 \begin_layout Standard
2919 \begin_inset Index idx
2922 \begin_layout Plain Layout
2923 References ! to Tables
2928 Tables can be cross-referenced in the text by referencing their label.
2929 To do this insert a label in the caption using the menu
2931 Insert\SpecialChar \menuseparator
2934 or the toolbar button
2935 \begin_inset Graphics
2936 filename ../images/label-insert.png
2943 You can now refer to the label using the menu
2945 Insert\SpecialChar \menuseparator
2947 \begin_inset space ~
2952 or the toolbar button
2953 \begin_inset Graphics
2954 filename ../images/dialog-show-new-inset_ref.png
2961 \begin_inset Newline newline
2964 Referencing is explained in detail in section
2965 \begin_inset space ~
2969 \begin_inset CommandInset ref
2971 reference "sec:Referencing-Floats"
2978 \begin_layout Section
2980 \begin_inset CommandInset label
2982 name "sec:Longtables"
2987 \begin_inset Index idx
2990 \begin_layout Plain Layout
2997 \begin_inset Index idx
3000 \begin_layout Plain Layout
3009 \begin_layout Standard
3010 If the table is too long to fit on one page, you can use the option
3013 \begin_inset space ~
3017 \begin_inset space ~
3026 of the table dialog to split the table automatically over more pages.
3027 Doing this enables the following options:
3030 \begin_layout Description
3031 Header: The current row is defined to be a header row that appears on all
3032 pages of the longtable; except for the first page, if
3035 \begin_inset space ~
3041 This is therefore called the main header.
3044 \begin_layout Description
3046 \begin_inset space ~
3049 header: The current row is defined to be a header row that appears on the
3050 first page of the longtable.
3053 \begin_layout Description
3054 Footer: The current row is defined to be a footer row that appears on all
3055 pages of the longtable; except for the last page, if
3058 \begin_inset space ~
3066 \begin_layout Description
3068 \begin_inset space ~
3071 footer: The current row is defined to be a footer row that appears on the
3072 last page of the longtable.
3075 \begin_layout Description
3076 Caption: The current row contains the table caption.
3077 The row is reset as single column and a caption is inserted.
3078 More about longtable captions is explained in sec.
3079 \begin_inset space \thinspace{}
3083 \begin_inset CommandInset ref
3085 reference "sub:Longtable-Captions"
3092 \begin_layout Standard
3093 You can also specify a row where the table is split.
3094 See the following longtable to see how it works:
3097 \begin_layout Standard
3099 \begin_inset Tabular
3100 <lyxtabular version="3" rows="69" columns="3">
3101 <features islongtable="true" longtabularalignment="center">
3102 <column alignment="left" valignment="top" width="0cm">
3103 <column alignment="left" valignment="top" width="0pt">
3104 <column alignment="center" valignment="top" width="0pt">
3105 <row endfirsthead="true">
3106 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3109 \begin_layout Plain Layout
3112 Example Phone List (ignore the names)
3117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3120 \begin_layout Plain Layout
3126 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3129 \begin_layout Plain Layout
3136 <row endfirsthead="true">
3137 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3140 \begin_layout Plain Layout
3148 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3151 \begin_layout Plain Layout
3157 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3160 \begin_layout Plain Layout
3169 <row endhead="true">
3170 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3173 \begin_layout Plain Layout
3181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3184 \begin_layout Plain Layout
3190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3193 \begin_layout Plain Layout
3200 <row endhead="true">
3201 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3204 \begin_layout Plain Layout
3212 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3215 \begin_layout Plain Layout
3221 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3224 \begin_layout Plain Layout
3233 <row endfoot="true">
3234 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3237 \begin_layout Plain Layout
3238 continued on next page
3243 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3246 \begin_layout Plain Layout
3252 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3255 \begin_layout Plain Layout
3263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3266 \begin_layout Plain Layout
3274 <cell alignment="center" valignment="top" usebox="none">
3277 \begin_layout Plain Layout
3283 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3286 \begin_layout Plain Layout
3294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3297 \begin_layout Plain Layout
3305 <cell alignment="center" valignment="top" usebox="none">
3308 \begin_layout Plain Layout
3314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3317 \begin_layout Plain Layout
3325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3328 \begin_layout Plain Layout
3336 <cell alignment="center" valignment="top" usebox="none">
3339 \begin_layout Plain Layout
3345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3348 \begin_layout Plain Layout
3356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3359 \begin_layout Plain Layout
3367 <cell alignment="center" valignment="top" usebox="none">
3370 \begin_layout Plain Layout
3376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3379 \begin_layout Plain Layout
3387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3390 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" usebox="none">
3401 \begin_layout Plain Layout
3407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3410 \begin_layout Plain Layout
3418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3421 \begin_layout Plain Layout
3429 <cell alignment="center" valignment="top" usebox="none">
3432 \begin_layout Plain Layout
3438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3441 \begin_layout Plain Layout
3449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3452 \begin_layout Plain Layout
3460 <cell alignment="center" valignment="top" usebox="none">
3463 \begin_layout Plain Layout
3469 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3472 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3483 \begin_layout Plain Layout
3491 <cell alignment="center" valignment="top" usebox="none">
3494 \begin_layout Plain Layout
3500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3503 \begin_layout Plain Layout
3511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3514 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" usebox="none">
3525 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3534 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3545 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" usebox="none">
3556 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3565 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3576 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" usebox="none">
3587 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3596 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3607 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" usebox="none">
3618 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3627 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3638 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" usebox="none">
3649 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3658 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3669 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" usebox="none">
3680 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3689 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3700 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" usebox="none">
3711 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3720 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3731 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" usebox="none">
3742 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3751 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3762 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" usebox="none">
3773 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3782 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3793 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" usebox="none">
3804 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3813 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3824 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" usebox="none">
3835 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3844 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3855 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" usebox="none">
3866 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3875 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3886 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" usebox="none">
3897 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3906 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3917 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" usebox="none">
3928 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3937 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3948 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" usebox="none">
3959 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3968 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3979 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" usebox="none">
3990 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3999 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" usebox="none">
4021 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4030 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4041 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" usebox="none">
4052 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4061 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4072 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" usebox="none">
4083 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4092 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4103 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" usebox="none">
4114 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4134 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" usebox="none">
4145 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4154 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4165 \begin_layout Plain Layout
4173 <cell alignment="center" valignment="top" usebox="none">
4176 \begin_layout Plain Layout
4182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4185 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4196 \begin_layout Plain Layout
4204 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4207 \begin_layout Plain Layout
4213 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4216 \begin_layout Plain Layout
4224 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4227 \begin_layout Plain Layout
4233 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4236 \begin_layout Plain Layout
4242 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4245 \begin_layout Plain Layout
4253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4256 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" usebox="none">
4267 \begin_layout Plain Layout
4273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4276 \begin_layout Plain Layout
4284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4287 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" usebox="none">
4298 \begin_layout Plain Layout
4304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4307 \begin_layout Plain Layout
4315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4318 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" usebox="none">
4329 \begin_layout Plain Layout
4335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4338 \begin_layout Plain Layout
4346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4349 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" usebox="none">
4360 \begin_layout Plain Layout
4366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4369 \begin_layout Plain Layout
4377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" usebox="none">
4391 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4400 \begin_layout Plain Layout
4408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4411 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" usebox="none">
4422 \begin_layout Plain Layout
4428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4431 \begin_layout Plain Layout
4439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4442 \begin_layout Plain Layout
4450 <cell alignment="center" valignment="top" usebox="none">
4453 \begin_layout Plain Layout
4459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4462 \begin_layout Plain Layout
4470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4473 \begin_layout Plain Layout
4481 <cell alignment="center" valignment="top" usebox="none">
4484 \begin_layout Plain Layout
4490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4493 \begin_layout Plain Layout
4501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4504 \begin_layout Plain Layout
4512 <cell alignment="center" valignment="top" usebox="none">
4515 \begin_layout Plain Layout
4521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4524 \begin_layout Plain Layout
4532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4535 \begin_layout Plain Layout
4543 <cell alignment="center" valignment="top" usebox="none">
4546 \begin_layout Plain Layout
4552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4555 \begin_layout Plain Layout
4563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4566 \begin_layout Plain Layout
4574 <cell alignment="center" valignment="top" usebox="none">
4577 \begin_layout Plain Layout
4583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4586 \begin_layout Plain Layout
4594 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4597 \begin_layout Plain Layout
4605 <cell alignment="center" valignment="top" usebox="none">
4608 \begin_layout Plain Layout
4614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4617 \begin_layout Plain Layout
4625 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4628 \begin_layout Plain Layout
4636 <cell alignment="center" valignment="top" usebox="none">
4639 \begin_layout Plain Layout
4645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4648 \begin_layout Plain Layout
4656 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4659 \begin_layout Plain Layout
4667 <cell alignment="center" valignment="top" usebox="none">
4670 \begin_layout Plain Layout
4676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4679 \begin_layout Plain Layout
4687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4690 \begin_layout Plain Layout
4698 <cell alignment="center" valignment="top" usebox="none">
4701 \begin_layout Plain Layout
4707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4710 \begin_layout Plain Layout
4718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4721 \begin_layout Plain Layout
4729 <cell alignment="center" valignment="top" usebox="none">
4732 \begin_layout Plain Layout
4738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4741 \begin_layout Plain Layout
4749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4752 \begin_layout Plain Layout
4760 <cell alignment="center" valignment="top" usebox="none">
4763 \begin_layout Plain Layout
4769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4772 \begin_layout Plain Layout
4780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4783 \begin_layout Plain Layout
4791 <cell alignment="center" valignment="top" usebox="none">
4794 \begin_layout Plain Layout
4800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4803 \begin_layout Plain Layout
4811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4814 \begin_layout Plain Layout
4822 <cell alignment="center" valignment="top" usebox="none">
4825 \begin_layout Plain Layout
4831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4834 \begin_layout Plain Layout
4842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4845 \begin_layout Plain Layout
4853 <cell alignment="center" valignment="top" usebox="none">
4856 \begin_layout Plain Layout
4862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4865 \begin_layout Plain Layout
4873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4876 \begin_layout Plain Layout
4884 <cell alignment="center" valignment="top" usebox="none">
4887 \begin_layout Plain Layout
4893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4896 \begin_layout Plain Layout
4904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4907 \begin_layout Plain Layout
4915 <cell alignment="center" valignment="top" usebox="none">
4918 \begin_layout Plain Layout
4924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4927 \begin_layout Plain Layout
4935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4938 \begin_layout Plain Layout
4946 <cell alignment="center" valignment="top" usebox="none">
4949 \begin_layout Plain Layout
4955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4958 \begin_layout Plain Layout
4966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4969 \begin_layout Plain Layout
4977 <cell alignment="center" valignment="top" usebox="none">
4980 \begin_layout Plain Layout
4986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4989 \begin_layout Plain Layout
4997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5000 \begin_layout Plain Layout
5008 <cell alignment="center" valignment="top" usebox="none">
5011 \begin_layout Plain Layout
5017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5020 \begin_layout Plain Layout
5028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5031 \begin_layout Plain Layout
5039 <cell alignment="center" valignment="top" usebox="none">
5042 \begin_layout Plain Layout
5048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5051 \begin_layout Plain Layout
5059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5062 \begin_layout Plain Layout
5070 <cell alignment="center" valignment="top" usebox="none">
5073 \begin_layout Plain Layout
5079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5082 \begin_layout Plain Layout
5090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5093 \begin_layout Plain Layout
5101 <cell alignment="center" valignment="top" usebox="none">
5104 \begin_layout Plain Layout
5110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5113 \begin_layout Plain Layout
5121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5124 \begin_layout Plain Layout
5132 <cell alignment="center" valignment="top" usebox="none">
5135 \begin_layout Plain Layout
5141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5144 \begin_layout Plain Layout
5152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5155 \begin_layout Plain Layout
5163 <cell alignment="center" valignment="top" usebox="none">
5166 \begin_layout Plain Layout
5172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5175 \begin_layout Plain Layout
5183 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5186 \begin_layout Plain Layout
5194 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5197 \begin_layout Plain Layout
5203 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5206 \begin_layout Plain Layout
5213 <row endlastfoot="true">
5214 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5217 \begin_layout Plain Layout
5223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5226 \begin_layout Plain Layout
5232 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5235 \begin_layout Plain Layout
5250 \begin_layout Plain Layout
5254 addtocounter{table}{-1}
5260 \begin_inset Note Note
5263 \begin_layout Plain Layout
5264 See the first greyed-out note in section
5265 \begin_inset space ~
5269 \begin_inset CommandInset ref
5271 reference "sub:Longtable-Captions"
5275 for an explanation of this command.
5283 \begin_layout Subsection
5284 Footnotes in Longtables
5285 \begin_inset CommandInset label
5287 name "sub:Footnotes-in-Longtables"
5292 \begin_inset Index idx
5295 \begin_layout Plain Layout
5296 Longtables ! Footnotes
5304 \begin_layout Standard
5305 Footnotes can be inserted to every longtable cell.
5306 They appear at the bottom of the page where the table cell with the footnote
5309 \begin_inset space ~
5313 \begin_inset CommandInset ref
5315 reference "tab:DiffCaptions"
5319 has for example a footnote.
5322 \begin_layout Subsection
5324 \begin_inset Index idx
5327 \begin_layout Plain Layout
5328 Longtables ! Alignment
5336 \begin_layout Standard
5337 The horizontal alignment of longtables can be set in the table settings
5339 For left- and right-alignment the table will be directly at the page border.
5340 To add space between the table and the border one has to set the alignment
5341 to center and change the value of the LaTeX-lengths
5353 by inserting this line as TeX-Code before the longtable:
5356 \begin_layout Standard
5366 \begin_layout Standard
5367 The value can have any of the units listed in Table
5368 \begin_inset space ~
5372 \begin_inset CommandInset ref
5374 reference "tab:Units"
5385 controls the horizontal distance from the left page border to the longtable,
5392 the distance from the right side.
5393 The default value for both lengths is
5399 , which is in this case the same as an horizontal fill in LyX.
5402 \begin_layout Standard
5403 The following longtable was centered and
5419 \begin_layout Plain Layout
5435 \begin_layout Standard
5436 \begin_inset Tabular
5437 <lyxtabular version="3" rows="5" columns="5">
5438 <features islongtable="true" longtabularalignment="center">
5439 <column alignment="center" valignment="top" width="0">
5440 <column alignment="center" valignment="top" width="0pt">
5441 <column alignment="center" valignment="top" width="0">
5442 <column alignment="center" valignment="top" width="0">
5443 <column alignment="center" valignment="top" width="0">
5445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5448 \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" rightline="true" usebox="none">
5484 \begin_layout Plain Layout
5492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5495 \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" rightline="true" usebox="none">
5531 \begin_layout Plain Layout
5539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5542 \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" rightline="true" usebox="none">
5578 \begin_layout Plain Layout
5586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5589 \begin_layout Plain Layout
5595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5598 \begin_layout Plain Layout
5604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5607 \begin_layout Plain Layout
5613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5616 \begin_layout Plain Layout
5622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5625 \begin_layout Plain Layout
5633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5636 \begin_layout Plain Layout
5642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5645 \begin_layout Plain Layout
5651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5654 \begin_layout Plain Layout
5660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5663 \begin_layout Plain Layout
5669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5672 \begin_layout Plain Layout
5687 \begin_layout Plain Layout
5704 \begin_layout Plain Layout
5708 addtocounter{table}{-1}
5714 \begin_inset Note Note
5717 \begin_layout Plain Layout
5718 See the first greyed-out note in section
5719 \begin_inset space ~
5723 \begin_inset CommandInset ref
5725 reference "sub:Longtable-Captions"
5729 for an explanation of this command.
5737 \begin_layout Subsection
5739 \begin_inset Index idx
5742 \begin_layout Plain Layout
5743 Longtables ! Captions
5749 \begin_inset CommandInset label
5751 name "sub:Longtable-Captions"
5758 \begin_layout Standard
5759 A longtable cannot be put into a table float because floats can only be
5761 But the caption environment of floats can also be used for longtables when
5762 you use the longtable option
5766 as described in sec.
5767 \begin_inset space \thinspace{}
5771 \begin_inset CommandInset ref
5773 reference "sec:Longtables"
5778 Only one table row can contain the caption.
5781 \begin_layout Standard
5782 Here is a short longtable to see how it works:
5785 \begin_layout Standard
5786 \begin_inset Tabular
5787 <lyxtabular version="3" rows="6" columns="5">
5788 <features islongtable="true" longtabularalignment="center">
5789 <column alignment="center" valignment="top" width="0">
5790 <column alignment="center" valignment="top" width="0">
5791 <column alignment="center" valignment="top" width="0">
5792 <column alignment="center" valignment="top" width="0">
5793 <column alignment="center" valignment="top" width="0">
5794 <row caption="true">
5795 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5798 \begin_layout Plain Layout
5799 \begin_inset Caption
5801 \begin_layout Plain Layout
5802 Longtable with caption
5803 \begin_inset Argument
5806 \begin_layout Plain Layout
5822 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5852 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" 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" rightline="true" usebox="none">
5899 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5910 \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" rightline="true" usebox="none">
5946 \begin_layout Plain Layout
5954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5957 \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" rightline="true" usebox="none">
5993 \begin_layout Plain Layout
6001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6004 \begin_layout Plain Layout
6010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6013 \begin_layout Plain Layout
6019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6022 \begin_layout Plain Layout
6028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6031 \begin_layout Plain Layout
6037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6040 \begin_layout Plain Layout
6048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6051 \begin_layout Plain Layout
6057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6060 \begin_layout Plain Layout
6066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6069 \begin_layout Plain Layout
6075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6078 \begin_layout Plain Layout
6084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6087 \begin_layout Plain Layout
6101 \begin_layout Standard
6102 \begin_inset VSpace medskip
6106 \begin_inset Note Greyedout
6109 \begin_layout Plain Layout
6113 \begin_inset space ~
6118 The table number is increased for for every longtable, even if you did
6119 not set a caption for it.
6120 For this reason you could have the case that e.
6121 \begin_inset space \thinspace{}
6125 \begin_inset space \space{}
6129 \begin_inset space ~
6133 \begin_inset space ~
6136 2.1 in the list of tables if there are two longtables without captions.
6137 To avoid this you can add the following command in TeX-Code after every
6138 longtable without a caption:
6141 \begin_layout Plain Layout
6146 addtocounter{table}{-1}
6149 \begin_layout Plain Layout
6150 This is not needed when none of your longtables have a caption and you add
6151 the following code to the document preamble:
6154 \begin_layout Plain Layout
6164 \begin_inset Newline newline
6175 addtocounter{table}{-1}}
6183 \begin_layout Standard
6184 \begin_inset Note Greyedout
6187 \begin_layout Plain Layout
6191 \begin_inset space ~
6201 \begin_inset Index idx
6204 \begin_layout Plain Layout
6205 LaTeX-packages ! hyperref
6218 dialog to link cross-references, the link to a longtable caption will always
6219 point to the beginning of the document.
6227 \begin_layout Subsubsection
6228 References to Longtables
6229 \begin_inset Index idx
6232 \begin_layout Plain Layout
6233 Longtables ! References
6241 \begin_layout Standard
6242 \begin_inset Tabular
6243 <lyxtabular version="3" rows="6" columns="5">
6244 <features islongtable="true" longtabularalignment="center">
6245 <column alignment="center" valignment="top" width="0">
6246 <column alignment="center" valignment="top" width="0">
6247 <column alignment="center" valignment="top" width="0">
6248 <column alignment="center" valignment="top" width="0">
6249 <column alignment="center" valignment="top" width="0">
6250 <row caption="true">
6251 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6254 \begin_layout Plain Layout
6255 \begin_inset Caption
6257 \begin_layout Plain Layout
6258 Referenced longtable
6259 \begin_inset CommandInset label
6261 name "tab:RefExample"
6275 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6305 \begin_layout Plain Layout
6313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6316 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" leftline="true" 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" rightline="true" usebox="none">
6352 \begin_layout Plain Layout
6360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6363 \begin_layout Plain Layout
6369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6372 \begin_layout Plain Layout
6378 <cell alignment="center" valignment="top" topline="true" leftline="true" 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" rightline="true" usebox="none">
6399 \begin_layout Plain Layout
6407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6410 \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" rightline="true" usebox="none">
6446 \begin_layout Plain Layout
6454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6457 \begin_layout Plain Layout
6463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6466 \begin_layout Plain Layout
6472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6475 \begin_layout Plain Layout
6481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6484 \begin_layout Plain Layout
6490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6493 \begin_layout Plain Layout
6501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6504 \begin_layout Plain Layout
6510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6513 \begin_layout Plain Layout
6519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6522 \begin_layout Plain Layout
6528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6531 \begin_layout Plain Layout
6537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6540 \begin_layout Plain Layout
6554 \begin_layout Standard
6555 To reference a longtable, insert a label into the caption.
6558 \begin_layout Standard
6559 This is a reference to Table
6560 \begin_inset space ~
6564 \begin_inset CommandInset ref
6566 reference "tab:RefExample"
6573 \begin_layout Standard
6574 The caption layout can be set together with all other captions of your document
6575 using the LaTeX-package
6580 \begin_inset Index idx
6583 \begin_layout Plain Layout
6584 LaTeX-packages ! caption
6590 \begin_inset space ~
6594 \begin_inset CommandInset ref
6596 reference "sec:Caption-Formatting"
6603 \begin_layout Subsubsection
6605 \begin_inset Index idx
6608 \begin_layout Plain Layout
6609 Longtables ! Caption Width
6617 \begin_layout Standard
6618 The maximal width of of caption lines is defined by the length
6625 Its default value is 4
6626 \begin_inset space \thinspace{}
6630 To change it add the following command to your document preamble or as
6631 TeX-Code into your document before the longtable that should be affected
6634 \begin_layout Standard
6644 \begin_layout Standard
6645 where the width could have one of the units listed in appendix
6646 \begin_inset space ~
6650 \begin_inset CommandInset ref
6652 reference "cha:Units-available-in"
6659 \begin_layout Standard
6660 The following tables show the difference:
6663 \begin_layout Standard
6664 \begin_inset Tabular
6665 <lyxtabular version="3" rows="6" columns="5">
6666 <features islongtable="true" longtabularalignment="center">
6667 <column alignment="center" valignment="top" width="0">
6668 <column alignment="center" valignment="top" width="0">
6669 <column alignment="center" valignment="top" width="0">
6670 <column alignment="center" valignment="top" width="0">
6671 <column alignment="center" valignment="top" width="0">
6672 <row caption="true">
6673 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6676 \begin_layout Plain Layout
6677 \begin_inset Caption
6679 \begin_layout Plain Layout
6680 long full title with default width long full title with default width long
6681 full title with default width
6682 \begin_inset Argument
6685 \begin_layout Plain Layout
6686 caption with default width
6701 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6731 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6742 \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" rightline="true" usebox="none">
6778 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6789 \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" rightline="true" usebox="none">
6825 \begin_layout Plain Layout
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6836 \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" rightline="true" usebox="none">
6872 \begin_layout Plain Layout
6880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6883 \begin_layout Plain Layout
6889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6892 \begin_layout Plain Layout
6898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6901 \begin_layout Plain Layout
6907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6910 \begin_layout Plain Layout
6916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6919 \begin_layout Plain Layout
6927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6930 \begin_layout Plain Layout
6936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6939 \begin_layout Plain Layout
6945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6948 \begin_layout Plain Layout
6954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6957 \begin_layout Plain Layout
6963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6966 \begin_layout Plain Layout
6980 \begin_layout Standard
6984 \begin_layout Plain Layout
6996 \begin_inset Tabular
6997 <lyxtabular version="3" rows="6" columns="5">
6998 <features islongtable="true" longtabularalignment="center">
6999 <column alignment="center" valignment="top" width="0">
7000 <column alignment="center" valignment="top" width="0">
7001 <column alignment="center" valignment="top" width="0">
7002 <column alignment="center" valignment="top" width="0">
7003 <column alignment="center" valignment="top" width="0">
7004 <row caption="true">
7005 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7008 \begin_layout Plain Layout
7009 \begin_inset Caption
7011 \begin_layout Plain Layout
7012 long full title with width set to 5
7013 \begin_inset space \thinspace{}
7016 cm long full title with width set to 5
7017 \begin_inset space \thinspace{}
7020 cm long full title with width set to 5
7021 \begin_inset space \thinspace{}
7025 \begin_inset Argument
7028 \begin_layout Plain Layout
7030 \begin_inset space \thinspace{}
7034 \begin_inset space \thinspace{}
7038 \begin_inset space \thinspace{}
7056 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7086 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7133 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7180 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7218 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7227 \begin_layout Plain Layout
7235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7238 \begin_layout Plain Layout
7244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7247 \begin_layout Plain Layout
7253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7256 \begin_layout Plain Layout
7262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7265 \begin_layout Plain Layout
7271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7274 \begin_layout Plain Layout
7282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7285 \begin_layout Plain Layout
7291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7294 \begin_layout Plain Layout
7300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7303 \begin_layout Plain Layout
7309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7312 \begin_layout Plain Layout
7318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7321 \begin_layout Plain Layout
7335 \begin_layout Standard
7339 \begin_layout Plain Layout
7353 \begin_layout Standard
7354 \begin_inset Note Greyedout
7357 \begin_layout Plain Layout
7362 When the LaTeX-package
7367 \begin_inset Index idx
7370 \begin_layout Plain Layout
7371 LaTeX-packages ! caption
7376 is used, as in this document, the full page width is used for the caption
7377 when you use the default value of 4
7378 \begin_inset space \thinspace{}
7388 To get in this case exactly a 4
7389 \begin_inset space \thinspace{}
7392 in wide caption, you can either use a value slightly different from 4.0
7393 \begin_inset space \thinspace{}
7397 \begin_inset space \thinspace{}
7401 \begin_inset space \space{}
7405 \begin_inset space \thinspace{}
7408 in, or the LaTeX-command
7412 captionsetup{width=value}
7414 that is provided by the
7426 \begin_layout Subsubsection
7427 Different Captions for Table Pages
7428 \begin_inset Index idx
7431 \begin_layout Plain Layout
7432 Longtables ! Different Captions for Pages
7440 \begin_layout Standard
7441 When the table captions for the following pages should differ from the one
7442 of the first table page, insert a caption with the TeX code command
7445 \begin_layout Standard
7450 caption*{caption text}
7457 \begin_layout Standard
7458 in a dummy caption row that is marked as a header.
7460 \begin_inset space ~
7464 \begin_inset CommandInset ref
7466 reference "tab:DiffCaptions"
7470 is an example of a longtable with different heading where the second caption
7471 doesn't include the table number.
7474 \begin_layout Standard
7476 \begin_inset Tabular
7477 <lyxtabular version="3" rows="59" columns="3">
7478 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7479 <column alignment="left" valignment="top" width="0cm">
7480 <column alignment="left" valignment="top" width="0pt">
7481 <column alignment="center" valignment="top" width="0pt">
7482 <row caption="true">
7483 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7486 \begin_layout Plain Layout
7487 \begin_inset Caption
7489 \begin_layout Plain Layout
7491 \begin_inset CommandInset label
7493 name "tab:DiffCaptions"
7498 \begin_inset Argument
7501 \begin_layout Plain Layout
7517 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7520 \begin_layout Plain Layout
7526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7529 \begin_layout Plain Layout
7536 <row endfirsthead="true">
7537 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7540 \begin_layout Plain Layout
7543 Example Phone List (ignore the names)
7548 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7551 \begin_layout Plain Layout
7557 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7560 \begin_layout Plain Layout
7567 <row endfirsthead="true">
7568 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7582 \begin_layout Plain Layout
7588 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7591 \begin_layout Plain Layout
7600 <row endhead="true">
7601 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7604 \begin_layout Plain Layout
7608 \begin_layout Plain Layout
7612 caption*{Continued Example Phone List}
7626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7629 \begin_layout Plain Layout
7635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7638 \begin_layout Plain Layout
7645 <row endhead="true">
7646 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7649 \begin_layout Plain Layout
7657 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7660 \begin_layout Plain Layout
7666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7669 \begin_layout Plain Layout
7676 <row endhead="true">
7677 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7680 \begin_layout Plain Layout
7688 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7691 \begin_layout Plain Layout
7697 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7700 \begin_layout Plain Layout
7709 <row endfoot="true">
7710 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7713 \begin_layout Plain Layout
7714 continued on next page
7719 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7722 \begin_layout Plain Layout
7728 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7731 \begin_layout Plain Layout
7739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7742 \begin_layout Plain Layout
7750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7753 \begin_layout Plain Layout
7759 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7762 \begin_layout Plain Layout
7770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7773 \begin_layout Plain Layout
7781 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7784 \begin_layout Plain Layout
7790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7793 \begin_layout Plain Layout
7801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7804 \begin_layout Plain Layout
7812 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7815 \begin_layout Plain Layout
7821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7824 \begin_layout Plain Layout
7832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7835 \begin_layout Plain Layout
7843 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7846 \begin_layout Plain Layout
7852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7855 \begin_layout Plain Layout
7863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7866 \begin_layout Plain Layout
7874 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7877 \begin_layout Plain Layout
7883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7886 \begin_layout Plain Layout
7894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7897 \begin_layout Plain Layout
7905 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7908 \begin_layout Plain Layout
7914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7917 \begin_layout Plain Layout
7925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7928 \begin_layout Plain Layout
7936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7939 \begin_layout Plain Layout
7945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7948 \begin_layout Plain Layout
7956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7959 \begin_layout Plain Layout
7967 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7970 \begin_layout Plain Layout
7976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7979 \begin_layout Plain Layout
7987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7990 \begin_layout Plain Layout
7998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8001 \begin_layout Plain Layout
8007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8010 \begin_layout Plain Layout
8018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8021 \begin_layout Plain Layout
8029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8032 \begin_layout Plain Layout
8038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8041 \begin_layout Plain Layout
8049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8052 \begin_layout Plain Layout
8060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8063 \begin_layout Plain Layout
8069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8072 \begin_layout Plain Layout
8080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8083 \begin_layout Plain Layout
8091 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8094 \begin_layout Plain Layout
8100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8103 \begin_layout Plain Layout
8111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8114 \begin_layout Plain Layout
8122 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8125 \begin_layout Plain Layout
8131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8134 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8156 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8185 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8199 \begin_layout Plain Layout
8205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8208 \begin_layout Plain Layout
8216 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8219 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8230 \begin_layout Plain Layout
8236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8239 \begin_layout Plain Layout
8247 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8250 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8261 \begin_layout Plain Layout
8267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8270 \begin_layout Plain Layout
8278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8281 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8292 \begin_layout Plain Layout
8298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8301 \begin_layout Plain Layout
8309 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8312 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8323 \begin_layout Plain Layout
8329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8332 \begin_layout Plain Layout
8340 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8343 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8354 \begin_layout Plain Layout
8360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8363 \begin_layout Plain Layout
8371 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8374 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8385 \begin_layout Plain Layout
8391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8394 \begin_layout Plain Layout
8402 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8405 \begin_layout Plain Layout
8413 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8416 \begin_layout Plain Layout
8422 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8425 \begin_layout Plain Layout
8433 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8436 \begin_layout Plain Layout
8444 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8447 \begin_layout Plain Layout
8453 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8456 \begin_layout Plain Layout
8464 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8467 \begin_layout Plain Layout
8475 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8478 \begin_layout Plain Layout
8484 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8487 \begin_layout Plain Layout
8495 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8498 \begin_layout Plain Layout
8506 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8509 \begin_layout Plain Layout
8515 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8518 \begin_layout Plain Layout
8526 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8529 \begin_layout Plain Layout
8537 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8540 \begin_layout Plain Layout
8546 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8549 \begin_layout Plain Layout
8557 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8560 \begin_layout Plain Layout
8568 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8571 \begin_layout Plain Layout
8577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8580 \begin_layout Plain Layout
8588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8591 \begin_layout Plain Layout
8599 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8602 \begin_layout Plain Layout
8608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8611 \begin_layout Plain Layout
8619 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8622 \begin_layout Plain Layout
8630 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8633 \begin_layout Plain Layout
8639 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8642 \begin_layout Plain Layout
8650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8653 \begin_layout Plain Layout
8661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8664 \begin_layout Plain Layout
8670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8673 \begin_layout Plain Layout
8681 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8684 \begin_layout Plain Layout
8692 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8695 \begin_layout Plain Layout
8701 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8704 \begin_layout Plain Layout
8712 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8715 \begin_layout Plain Layout
8721 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8724 \begin_layout Plain Layout
8730 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8733 \begin_layout Plain Layout
8741 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8755 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8764 \begin_layout Plain Layout
8772 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8786 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8795 \begin_layout Plain Layout
8803 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8817 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8826 \begin_layout Plain Layout
8834 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8848 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8857 \begin_layout Plain Layout
8865 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8879 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8888 \begin_layout Plain Layout
8896 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8910 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8919 \begin_layout Plain Layout
8927 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8930 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8941 \begin_layout Plain Layout
8947 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8950 \begin_layout Plain Layout
8958 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8961 \begin_layout Plain Layout
8969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8972 \begin_layout Plain Layout
8978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8981 \begin_layout Plain Layout
8989 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8992 \begin_layout Plain Layout
9000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9003 \begin_layout Plain Layout
9009 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9012 \begin_layout Plain Layout
9020 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9023 \begin_layout Plain Layout
9031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9034 \begin_layout Plain Layout
9040 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9043 \begin_layout Plain Layout
9051 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9054 \begin_layout Plain Layout
9062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9065 \begin_layout Plain Layout
9071 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9074 \begin_layout Plain Layout
9082 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9085 \begin_layout Plain Layout
9093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9096 \begin_layout Plain Layout
9102 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9105 \begin_layout Plain Layout
9113 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9116 \begin_layout Plain Layout
9124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9127 \begin_layout Plain Layout
9133 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9136 \begin_layout Plain Layout
9144 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9147 \begin_layout Plain Layout
9155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9158 \begin_layout Plain Layout
9164 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9167 \begin_layout Plain Layout
9175 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9178 \begin_layout Plain Layout
9186 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9189 \begin_layout Plain Layout
9195 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9198 \begin_layout Plain Layout
9206 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9209 \begin_layout Plain Layout
9217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9220 \begin_layout Plain Layout
9226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9229 \begin_layout Plain Layout
9237 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9240 \begin_layout Plain Layout
9248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9251 \begin_layout Plain Layout
9257 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9260 \begin_layout Plain Layout
9268 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9271 \begin_layout Plain Layout
9279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9282 \begin_layout Plain Layout
9288 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9291 \begin_layout Plain Layout
9299 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9302 \begin_layout Plain Layout
9310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9313 \begin_layout Plain Layout
9319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9322 \begin_layout Plain Layout
9330 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9333 \begin_layout Plain Layout
9341 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9344 \begin_layout Plain Layout
9350 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9353 \begin_layout Plain Layout
9367 \begin_layout Section
9368 Special Longtable Issues
9369 \begin_inset CommandInset label
9371 name "sec:Special-Longtable-Issues"
9378 \begin_layout Subsection
9379 Longtable Calculation
9380 \begin_inset Index idx
9383 \begin_layout Plain Layout
9384 Longtables ! Calculation
9392 \begin_layout Standard
9393 LaTeX calculates the height of table pages and their page breaks using so
9395 Chunks are parts of tables that held at the same time in LaTeX's memory.
9396 The default value was historically set to only 20 table rows.
9397 If you are using longtables with many pages this may slow down the creation
9399 You can safely increase the chunk size to values of 100-1000 by adding
9400 this command line to your document preamble:
9403 \begin_layout Standard
9408 setcounter{LTchunksize}{100}
9411 \begin_layout Subsection
9412 Floats and Longtables
9413 \begin_inset Index idx
9416 \begin_layout Plain Layout
9425 \begin_layout Standard
9426 There might be problems when a float appears on the same page where a longtable
9428 To avoid such a situation, insert a
9429 \begin_inset Quotes eld
9433 \begin_inset Quotes erd
9438 Insert\SpecialChar \menuseparator
9439 Formatting\SpecialChar \menuseparator
9441 \begin_inset space ~
9446 ) before your longtable.
9449 \begin_layout Subsection
9451 \begin_inset Index idx
9454 \begin_layout Plain Layout
9455 Longtables ! Forced Page Breaks
9463 \begin_layout Standard
9464 By default tables are only broken between rows.
9465 If you have a cell with multiples lines and want to have a page break within
9466 the cell, insert the new line command
9467 \begin_inset Quotes eld
9479 \begin_inset Quotes erd
9482 as TeX-Code at the point of the cell where it can be broken.
9491 command you have to insert in TeX-Code as many
9492 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9503 characters as the number of the following table columns.
9508 is the character to separate table cells.
9509 Write in TeX-Code after each
9513 the content of the corresponding following cell and delete the content
9515 \begin_inset Newline newline
9526 command, insert as many
9530 characters as the number of table columns before the current column.
9532 \begin_inset space ~
9536 \begin_inset CommandInset ref
9538 reference "tab:ForcedPagebreak"
9542 the cell that should be broken is in the second column followed by another
9544 Therefore the following command was inserted in the cell as TeX-Code after
9546 \begin_inset Quotes eld
9554 \begin_inset Quotes erd
9560 \begin_layout Standard
9570 \begin_inset Newline newline
9576 \begin_layout Standard
9578 \begin_inset Quotes eld
9582 \begin_inset Quotes erd
9585 in the third column of the row was deleted.
9592 is only needed when a page break should definitely occur at this position,
9593 otherwise it would be a conditional break.
9594 If your footer row of the longtable has for a certain reason no upper line
9595 but you would have a horizontal line where the cell is broken, use this
9599 \begin_layout Standard
9607 \begin_inset Newline newline
9615 \begin_layout Standard
9616 When the cell to be broken is in the last column, the command
9619 \begin_layout Standard
9629 \begin_layout Standard
9630 must be inserted as TeX-Code at the beginning of the cell.
9631 This ensures that the part of the cell that will be displayed on the new
9632 page appears with the full width.
9635 \begin_layout Standard
9637 \begin_inset Tabular
9638 <lyxtabular version="3" rows="38" columns="3">
9639 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9640 <column alignment="left" valignment="top" width="0cm">
9641 <column alignment="left" valignment="top" width="3cm">
9642 <column alignment="center" valignment="top" width="0pt">
9643 <row caption="true">
9644 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9647 \begin_layout Plain Layout
9648 \begin_inset Caption
9650 \begin_layout Plain Layout
9651 Table with forced page break in table cell
9652 \begin_inset CommandInset label
9654 name "tab:ForcedPagebreak"
9659 \begin_inset Argument
9662 \begin_layout Plain Layout
9663 Table with forced page break in table cell
9678 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9681 \begin_layout Plain Layout
9687 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9690 \begin_layout Plain Layout
9697 <row endfirsthead="true">
9698 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9701 \begin_layout Plain Layout
9704 Example Phone List (ignore the names)
9709 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9712 \begin_layout Plain Layout
9718 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9721 \begin_layout Plain Layout
9728 <row endfirsthead="true">
9729 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9732 \begin_layout Plain Layout
9740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9743 \begin_layout Plain Layout
9749 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9752 \begin_layout Plain Layout
9761 <row endhead="true">
9762 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9765 \begin_layout Plain Layout
9769 \begin_layout Plain Layout
9773 caption*{Continued Example Phone List}
9787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9790 \begin_layout Plain Layout
9796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9799 \begin_layout Plain Layout
9806 <row endhead="true">
9807 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9810 \begin_layout Plain Layout
9818 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9821 \begin_layout Plain Layout
9827 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9830 \begin_layout Plain Layout
9837 <row endhead="true">
9838 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9841 \begin_layout Plain Layout
9849 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9852 \begin_layout Plain Layout
9858 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9861 \begin_layout Plain Layout
9870 <row endfoot="true">
9871 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9874 \begin_layout Plain Layout
9875 continued on next page
9880 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9883 \begin_layout Plain Layout
9889 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9892 \begin_layout Plain Layout
9900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9903 \begin_layout Plain Layout
9911 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9914 \begin_layout Plain Layout
9920 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9923 \begin_layout Plain Layout
9931 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9934 \begin_layout Plain Layout
9942 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9951 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9965 \begin_layout Plain Layout
9973 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9993 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9996 \begin_layout Plain Layout
10004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10007 \begin_layout Plain Layout
10013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10016 \begin_layout Plain Layout
10024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10027 \begin_layout Plain Layout
10035 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10038 \begin_layout Plain Layout
10044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10055 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10058 \begin_layout Plain Layout
10066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10069 \begin_layout Plain Layout
10075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10078 \begin_layout Plain Layout
10086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10089 \begin_layout Plain Layout
10097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10100 \begin_layout Plain Layout
10106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10109 \begin_layout Plain Layout
10117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10120 \begin_layout Plain Layout
10128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10131 \begin_layout Plain Layout
10137 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10140 \begin_layout Plain Layout
10148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10162 \begin_layout Plain Layout
10168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10171 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10193 \begin_layout Plain Layout
10199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10202 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10224 \begin_layout Plain Layout
10230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10233 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10255 \begin_layout Plain Layout
10261 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10264 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10286 \begin_layout Plain Layout
10292 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10295 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10317 \begin_layout Plain Layout
10323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10326 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10348 \begin_layout Plain Layout
10354 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10357 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10379 \begin_layout Plain Layout
10385 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10388 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10410 \begin_layout Plain Layout
10416 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10419 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10441 \begin_layout Plain Layout
10447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10450 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10472 \begin_layout Plain Layout
10478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10481 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10492 \begin_layout Plain Layout
10500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10503 \begin_layout Plain Layout
10509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10512 \begin_layout Plain Layout
10520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10523 \begin_layout Plain Layout
10531 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10534 \begin_layout Plain Layout
10540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10543 \begin_layout Plain Layout
10551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10565 \begin_layout Plain Layout
10571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10574 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10596 \begin_layout Plain Layout
10598 Fürst von Montecompatri, 11.
10599 Fürst von Sulmona und Vivaro, 10.
10600 Fürst von Rossano, 5.
10601 Herzog von Canemorte, 11.
10602 Herzog von Palombara, 5.
10603 Herzog von Castelchiodato,
10607 \begin_layout Plain Layout
10618 \begin_layout Plain Layout
10626 Herzog von Poggionativo, 11.
10627 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10628 Graf von Valinfreda, 11.
10629 Baron von Cropalati, 11.
10630 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10649 \begin_layout Plain Layout
10657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10660 \begin_layout Plain Layout
10666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10680 \begin_layout Plain Layout
10688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10691 \begin_layout Plain Layout
10697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10711 \begin_layout Plain Layout
10719 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10722 \begin_layout Plain Layout
10728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10742 \begin_layout Plain Layout
10750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10753 \begin_layout Plain Layout
10759 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10773 \begin_layout Plain Layout
10781 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10784 \begin_layout Plain Layout
10790 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10793 \begin_layout Plain Layout
10801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10804 \begin_layout Plain Layout
10812 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10815 \begin_layout Plain Layout
10821 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10824 \begin_layout Plain Layout
10832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10835 \begin_layout Plain Layout
10843 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10846 \begin_layout Plain Layout
10852 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10855 \begin_layout Plain Layout
10863 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10866 \begin_layout Plain Layout
10874 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10877 \begin_layout Plain Layout
10883 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10886 \begin_layout Plain Layout
10900 \begin_layout Section
10901 Multiple Lines Columns and Rows
10904 \begin_layout Subsection
10905 Multiple Lines in Table Cells
10906 \begin_inset CommandInset label
10908 name "sub:Multiple-Lines-in"
10913 \begin_inset Index idx
10916 \begin_layout Plain Layout
10917 Multiple Lines in Table Cells
10923 \begin_inset Index idx
10926 \begin_layout Plain Layout
10935 \begin_layout Standard
10937 \begin_inset Float table
10943 \begin_layout Plain Layout
10944 \begin_inset Caption
10946 \begin_layout Plain Layout
10947 \begin_inset CommandInset label
10949 name "tab:Table-with-multiple"
10953 Table with multiple lines in cells
10961 \begin_layout Plain Layout
10963 \begin_inset Tabular
10964 <lyxtabular version="3" rows="3" columns="3">
10965 <features tabularvalignment="middle">
10966 <column alignment="center" valignment="middle" width="2.5cm">
10967 <column alignment="center" valignment="middle" width="0">
10968 <column alignment="center" valignment="middle" width="0">
10970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10973 \begin_layout Plain Layout
10975 \begin_inset Newline linebreak
10983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10986 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11006 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11015 \begin_layout Plain Layout
11021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11024 \begin_layout Plain Layout
11032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11035 \begin_layout Plain Layout
11041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11044 \begin_layout Plain Layout
11050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11053 \begin_layout Plain Layout
11072 \begin_layout Standard
11073 Setting a fixed width for a column enables you to enter text as a paragraph
11074 with multiple lines and hyphenation.
11077 \begin_layout Standard
11079 \begin_inset space ~
11083 \begin_inset CommandInset ref
11085 reference "tab:Table-with-multiple"
11089 , create a 3×3 table, mark the first cell and right-click on it.
11090 In the appearing table dialog we set a cell width of 2.5
11091 \begin_inset space \thinspace{}
11094 cm and choose centered for the vertical and horizontal alignment.
11095 The vertical alignment is used for all cells of the row.
11096 As our text is smaller than 2.5
11097 \begin_inset space \thinspace{}
11100 cm, only one line will appear.
11101 To get two lines, a justified line break (shortcut
11104 arg "newline-insert linebreak"
11108 If the text is wider than the set cell width, it will automatically be
11109 broken to several lines.
11112 \begin_layout Standard
11113 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11114 by LaTeX if it is the first entry.
11115 Therefore you need to insert something to prevent the word not being the
11117 So add a horizontal space of 0
11118 \begin_inset space \thinspace{}
11121 pt before the word.
11122 As the space is zero, it doesn't change the output.
11124 \begin_inset space ~
11128 \begin_inset CommandInset ref
11130 reference "tab:Table-with-and"
11137 \begin_layout Standard
11138 \begin_inset Float table
11144 \begin_layout Plain Layout
11145 \begin_inset Caption
11147 \begin_layout Plain Layout
11148 \begin_inset CommandInset label
11150 name "tab:Table-with-and"
11154 Table with and without hyphenation
11162 \begin_layout Plain Layout
11163 \begin_inset space \hfill{}
11167 \begin_inset Tabular
11168 <lyxtabular version="3" rows="3" columns="3">
11169 <features tabularvalignment="middle">
11170 <column alignment="center" valignment="middle" width="2.5cm">
11171 <column alignment="center" valignment="middle" width="0">
11172 <column alignment="center" valignment="middle" width="0">
11174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11177 \begin_layout Plain Layout
11178 verylongtablecellword
11183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11186 \begin_layout Plain Layout
11192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11195 \begin_layout Plain Layout
11203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11206 \begin_layout Plain Layout
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11215 \begin_layout Plain Layout
11221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11224 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11235 \begin_layout Plain Layout
11241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11244 \begin_layout Plain Layout
11250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11253 \begin_layout Plain Layout
11265 \begin_inset space \hfill{}
11269 \begin_inset Tabular
11270 <lyxtabular version="3" rows="3" columns="3">
11271 <features tabularvalignment="middle">
11272 <column alignment="center" valignment="middle" width="2.5cm">
11273 <column alignment="center" valignment="middle" width="0">
11274 <column alignment="center" valignment="middle" width="0">
11276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11279 \begin_layout Plain Layout
11280 \begin_inset space \hspace{}
11284 verylongtablecellword
11289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11292 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11301 \begin_layout Plain Layout
11309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11312 \begin_layout Plain Layout
11318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11321 \begin_layout Plain Layout
11327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11330 \begin_layout Plain Layout
11338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11341 \begin_layout Plain Layout
11347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11350 \begin_layout Plain Layout
11356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11359 \begin_layout Plain Layout
11371 \begin_inset space \hfill{}
11382 \begin_layout Subsection
11384 \begin_inset CommandInset label
11386 name "sub:Multicolumns"
11391 \begin_inset Index idx
11394 \begin_layout Plain Layout
11401 \begin_inset Index idx
11404 \begin_layout Plain Layout
11405 Table ! Multicolumns
11413 \begin_layout Subsubsection
11417 \begin_layout Standard
11418 To merge cells over multiple columns, select as many cells within a row
11419 as you want to merge and use either the table-toolbar button
11420 \begin_inset Graphics
11421 filename ../images/tabular-feature_multicolumn.png
11423 scaleBeforeRotation
11429 Edit\SpecialChar \menuseparator
11430 Table\SpecialChar \menuseparator
11433 , or right click on the marked cells and choose
11437 in the context menu.
11440 \begin_layout Standard
11441 Multicolumns have there own cell settings.
11442 That means changing cell borders, cell alignment, and the width only affects
11444 Here is an example table with a multicolumn cell in the first row and one
11445 in the last row without the upper border:
11448 \begin_layout Standard
11450 \begin_inset Tabular
11451 <lyxtabular version="3" rows="3" columns="4">
11452 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11453 <column alignment="center" valignment="top" width="0pt">
11454 <column alignment="center" valignment="middle" width="0">
11455 <column alignment="center" valignment="top" width="0in">
11456 <column alignment="center" valignment="top" width="0pt">
11458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11470 \begin_layout Plain Layout
11476 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11479 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11488 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11517 \begin_layout Plain Layout
11523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11526 \begin_layout Plain Layout
11532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11535 \begin_layout Plain Layout
11543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11546 \begin_layout Plain Layout
11552 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11555 \begin_layout Plain Layout
11561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11564 \begin_layout Plain Layout
11570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11573 \begin_layout Plain Layout
11587 \begin_layout Subsubsection
11588 Multicolumn Calculations
11589 \begin_inset CommandInset label
11591 name "sub:Multicolumn-Calculations"
11596 \begin_inset Index idx
11599 \begin_layout Plain Layout
11600 Multicolumns ! Calculations
11608 \begin_layout Standard
11609 LyX supports multicolumns directly, but we have to take account of the cell
11610 width of the columns spanned by the multicolumn cell.
11613 \begin_layout Standard
11614 \begin_inset Float table
11620 \begin_layout Plain Layout
11621 \begin_inset Caption
11623 \begin_layout Plain Layout
11624 \begin_inset CommandInset label
11626 name "tab:Table-with-centered"
11630 Table with centered multicolumn text above two columns that have exactly
11631 half the width of the multicolumn cell
11632 \begin_inset Argument
11635 \begin_layout Plain Layout
11636 Perfect multicolumn table
11649 \begin_layout Plain Layout
11651 \begin_inset Tabular
11652 <lyxtabular version="3" rows="3" columns="3">
11653 <features tabularvalignment="middle">
11654 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11655 <column alignment="center" valignment="middle" width="0">
11656 <column alignment="center" valignment="top" width="0">
11658 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11661 \begin_layout Plain Layout
11662 multiple lines multicolumn
11667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11670 \begin_layout Plain Layout
11676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11679 \begin_layout Plain Layout
11687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11690 \begin_layout Plain Layout
11696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11699 \begin_layout Plain Layout
11705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11708 \begin_layout Plain Layout
11716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11719 \begin_layout Plain Layout
11725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11728 \begin_layout Plain Layout
11734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11737 \begin_layout Plain Layout
11756 \begin_layout Standard
11757 To create for example Table
11758 \begin_inset space ~
11762 \begin_inset CommandInset ref
11764 reference "tab:Table-with-centered"
11768 , mark the first two cells in the first row of a 3×3 table and right-click
11770 Now choose for this cell
11779 \begin_inset space \thinspace{}
11782 cm in the table dialog.
11783 The merged columns should have exactly half the width of the multicolumn
11784 cell, so that you would set a width of 1.25
11785 \begin_inset space \thinspace{}
11788 cm for the first column.
11789 The second column has then automatically a width of 1.25
11790 \begin_inset space \thinspace{}
11793 cm (multicolumn width - width of first column).
11794 This was done for Table
11795 \begin_inset space ~
11799 \begin_inset CommandInset ref
11801 reference "tab:Table-without-half"
11808 \begin_layout Standard
11809 \begin_inset Float table
11814 \begin_layout Plain Layout
11815 \begin_inset Caption
11817 \begin_layout Plain Layout
11818 \begin_inset CommandInset label
11820 name "tab:Table-without-half"
11824 Table where the spanned table columns are not exactly half the width of
11825 the multicolumn cell
11826 \begin_inset Argument
11829 \begin_layout Plain Layout
11830 Imperfect multicolumn table
11843 \begin_layout Plain Layout
11845 \begin_inset Tabular
11846 <lyxtabular version="3" rows="3" columns="3">
11847 <features tabularvalignment="middle">
11848 <column alignment="center" valignment="top" width="1.25cm">
11849 <column alignment="center" valignment="top" width="0">
11850 <column alignment="center" valignment="top" width="0">
11852 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11855 \begin_layout Plain Layout
11856 multiple lines multicolumn
11861 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11864 \begin_layout Plain Layout
11870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11873 \begin_layout Plain Layout
11881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11884 \begin_layout Plain Layout
11890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11893 \begin_layout Plain Layout
11899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11902 \begin_layout Plain Layout
11910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11913 \begin_layout Plain Layout
11919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11922 \begin_layout Plain Layout
11928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11931 \begin_layout Plain Layout
11950 \begin_layout Standard
11951 You can see that the first column is not half the width of the multicolumn
11952 cell, it is a bit bigger.
11953 The reason is that the specified width of a cell
11954 \begin_inset Formula $W_{g}$
11957 is not its total width
11958 \begin_inset Formula $W_{\mathrm{tot}}$
11961 because a cell is always a bit larger than specified.
11963 \begin_inset space ~
11967 \begin_inset CommandInset ref
11969 reference "cha:Explanation-of-Equation"
11973 explains this in detail.
11976 \begin_layout Standard
11978 \begin_inset Formula $W_{g\, n}$
11981 which the user needs to set when
11985 columns are spanned can be calculated, so that each column has a total
11987 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11991 \begin_inset Formula \begin{equation}
11992 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11999 \begin_layout Standard
12000 In our case we have
12001 \begin_inset Formula $n=2$
12005 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12008 cm and the default values for the lengths, so that equation
12009 \begin_inset CommandInset ref
12016 \begin_inset Formula \begin{equation}
12017 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12024 \begin_layout Standard
12025 To enable calculations in LaTeX, the LaTeX-package
12029 must be loaded with the document preamble line
12030 \begin_inset Index idx
12033 \begin_layout Plain Layout
12034 LaTeX-packages ! calc
12042 \begin_layout Standard
12050 \begin_layout Standard
12051 LyX does not allow you to calculate lengths in the
12055 field of the table dialog.
12056 Therefore you have to format the column by inserting a LaTeX-argument in
12058 Here is an overview about the arguments:
12061 \begin_layout Itemize
12066 creates cell with a fixed width, its text is vertically top-aligned
12069 \begin_layout Itemize
12074 creates cell with a fixed width, its text is vertically centered
12077 \begin_layout Itemize
12082 creates cell with a fixed width, its text is vertically bottom-aligned
12085 \begin_layout Standard
12086 By entering a LaTeX-argument, all cell settings set in the table dialog
12090 \begin_layout Standard
12091 \begin_inset Note Greyedout
12094 \begin_layout Plain Layout
12099 Due to a bug, LyX shows the overwritten settings anyway.
12107 \begin_layout Standard
12108 As the text should be horizontally centered, the command
12115 You can now enter the following LaTeX-argument for the first spanned column:
12118 \begin_layout Standard
12123 centering}m{1.25cm-6.2pt}
12126 \begin_layout Standard
12131 means, that the commands inside the braces are applied before the cell
12135 \begin_layout Standard
12136 Although we have chosen centered alignment for the text of the multicolumn
12137 cell, it is still left aligned.
12138 This is because LyX only applies the alignment to single columns.
12139 So for the multicolumn cell we have to use the LaTeX-argument
12142 \begin_layout Standard
12150 \begin_layout Subsection
12152 \begin_inset CommandInset label
12154 name "sub:Multirows"
12159 \begin_inset Index idx
12162 \begin_layout Plain Layout
12169 \begin_inset Index idx
12172 \begin_layout Plain Layout
12181 \begin_layout Standard
12182 To merge cells over multiple rows, select as many cells within a column
12183 as you want to merge and use either the table-toolbar button
12184 \begin_inset Graphics
12185 filename ../images/tabular-feature_multirow.png
12187 scaleBeforeRotation
12193 Edit\SpecialChar \menuseparator
12194 Table\SpecialChar \menuseparator
12197 , or right click on the marked cells and choose
12201 in the context menu.
12204 \begin_layout Standard
12205 Here is an example table with a multirow in the first column:
12208 \begin_layout Standard
12210 \begin_inset Tabular
12211 <lyxtabular version="3" rows="3" columns="3">
12212 <features tabularvalignment="middle">
12213 <column alignment="center" valignment="top" width="0pt">
12214 <column alignment="center" valignment="top" width="0">
12215 <column alignment="center" valignment="top" width="0">
12217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12220 \begin_layout Plain Layout
12226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12229 \begin_layout Plain Layout
12235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12238 \begin_layout Plain Layout
12246 <cell multirow="3" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12249 \begin_layout Plain Layout
12255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12258 \begin_layout Plain Layout
12264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12267 \begin_layout Plain Layout
12275 <cell multirow="4" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12278 \begin_layout Plain Layout
12284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12287 \begin_layout Plain Layout
12293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12296 \begin_layout Plain Layout
12310 \begin_layout Standard
12311 The width and alignment of multirow cells is set by setting the width and
12312 alignment for the whole column.
12315 \begin_layout Section
12317 \begin_inset CommandInset label
12319 name "sec:Formal-Tables"
12324 \begin_inset Index idx
12327 \begin_layout Plain Layout
12336 \begin_layout Standard
12337 Tables are often typeset in books similar to Table
12338 \begin_inset space ~
12342 \begin_inset CommandInset ref
12344 reference "tab:Example-booktabs-table"
12349 This kind of tables is called
12350 \begin_inset Quotes eld
12358 \begin_inset Quotes erd
12362 To make a table a formal table use the option
12370 tab of the table dialog.
12373 \begin_layout Standard
12374 \begin_inset Float table
12380 \begin_layout Plain Layout
12381 \begin_inset Caption
12383 \begin_layout Plain Layout
12384 \begin_inset CommandInset label
12386 name "tab:Example-booktabs-table"
12390 Example booktabs-table
12398 \begin_layout Plain Layout
12400 \begin_inset Tabular
12401 <lyxtabular version="3" rows="8" columns="4">
12402 <features booktabs="true" tabularvalignment="middle">
12403 <column alignment="center" valignment="top" width="0">
12404 <column alignment="center" valignment="top" width="0">
12405 <column alignment="center" valignment="top" width="0">
12406 <column alignment="center" valignment="top" width="0">
12408 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12411 \begin_layout Plain Layout
12417 <cell alignment="center" valignment="top" topline="true" usebox="none">
12420 \begin_layout Plain Layout
12422 \begin_inset space \thinspace{}
12430 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12433 \begin_layout Plain Layout
12435 \begin_inset space \thinspace{}
12443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12446 \begin_layout Plain Layout
12454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12457 \begin_layout Plain Layout
12461 \begin_layout Plain Layout
12474 \begin_layout Plain Layout
12483 Detector thickness in µm
12488 <cell alignment="center" valignment="top" usebox="none">
12491 \begin_layout Plain Layout
12497 <cell alignment="center" valignment="top" usebox="none">
12500 \begin_layout Plain Layout
12506 <cell alignment="center" valignment="top" usebox="none">
12509 \begin_layout Plain Layout
12517 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" usebox="none">
12529 \begin_layout Plain Layout
12535 <cell alignment="center" valignment="top" topline="true" usebox="none">
12538 \begin_layout Plain Layout
12544 <cell alignment="center" valignment="top" topline="true" usebox="none">
12547 \begin_layout Plain Layout
12554 <row topspace="default">
12555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12558 \begin_layout Plain Layout
12559 Spatial resolution in µm
12564 <cell alignment="center" valignment="top" usebox="none">
12567 \begin_layout Plain Layout
12573 <cell alignment="center" valignment="top" usebox="none">
12576 \begin_layout Plain Layout
12582 <cell alignment="center" valignment="top" usebox="none">
12585 \begin_layout Plain Layout
12592 <row topspace="default">
12593 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12596 \begin_layout Plain Layout
12598 \begin_inset Formula $f_{\mathrm{max}}$
12606 <cell alignment="center" valignment="top" usebox="none">
12609 \begin_layout Plain Layout
12615 <cell alignment="center" valignment="top" usebox="none">
12618 \begin_layout Plain Layout
12624 <cell alignment="center" valignment="top" usebox="none">
12627 \begin_layout Plain Layout
12634 <row topspace="default">
12635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12638 \begin_layout Plain Layout
12642 \begin_layout Plain Layout
12646 cmidrule(l{10pt}){1-1}
12651 LSF-spatial resolution
12656 <cell alignment="center" valignment="top" usebox="none">
12659 \begin_layout Plain Layout
12665 <cell alignment="center" valignment="top" usebox="none">
12668 \begin_layout Plain Layout
12674 <cell alignment="center" valignment="top" usebox="none">
12677 \begin_layout Plain Layout
12685 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12688 \begin_layout Plain Layout
12694 <cell alignment="center" valignment="top" usebox="none">
12697 \begin_layout Plain Layout
12703 <cell alignment="center" valignment="top" usebox="none">
12706 \begin_layout Plain Layout
12712 <cell alignment="center" valignment="top" usebox="none">
12715 \begin_layout Plain Layout
12723 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12726 \begin_layout Plain Layout
12732 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12735 \begin_layout Plain Layout
12741 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12744 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12753 \begin_layout Plain Layout
12772 \begin_layout Standard
12773 Spaces to table rows can be added using the
12777 tab of the table dialog as described in section
12778 \begin_inset space ~
12782 \begin_inset CommandInset ref
12784 reference "sub:Row-Spacing"
12791 \begin_layout Standard
12792 Unlike normal tables, formal tables have no vertical table lines.
12793 The horizontal table lines can be set as for normal tables but they appear
12794 with different widths in the output:
12795 \begin_inset Newline newline
12798 The first and the last table line have a default width of 0.08
12799 \begin_inset space \thinspace{}
12802 em while the other lines have a default width of 0.05
12803 \begin_inset space \thinspace{}
12809 \begin_layout Standard
12810 The default widths can be changed with the following preamble lines
12813 \begin_layout Standard
12823 \begin_inset Newline newline
12835 \begin_layout Standard
12836 This example is for the first line, the so called
12841 If you want to change the width for the last line, replace
12850 To change the width for the other lines replace
12859 You can use all units listed in appendix
12860 \begin_inset space ~
12864 \begin_inset CommandInset ref
12866 reference "cha:Units-available-in"
12873 \begin_layout Standard
12874 Lines that do not span all table columns can be created by setting a table
12875 line for multicolumn cells.
12876 LyX will then internally use the command
12882 to create this line.
12886 \begin_layout Standard
12891 cmidrule[width](trim){startcol-endcol}
12894 \begin_layout Standard
12901 are currently not supported by LyX so you have to use TeX-Code to be able
12909 s can manually be created by inserting the command as TeX-Code as the first
12910 cell entry of the first cell of a row.
12911 The line is then drawn in the output above the current row.
12914 \begin_layout Standard
12915 The default for the width is 0.03
12916 \begin_inset space \thinspace{}
12920 Startcol is the number of the column where the line starts and endcol the
12921 column number where the line ends.
12922 The endcol always needs to be specified, also when the line should span
12924 The optional parameter trim could be either
12932 where the trimwidth is also optional.
12933 Using for example the parameter
12937 means that the line is trimmed from its left end by 2
12938 \begin_inset space \thinspace{}
12942 If you don't specify the trimwidth the lines are trimmed by the default
12944 \begin_inset space \thinspace{}
12950 \begin_layout Standard
12951 \begin_inset VSpace bigskip
12955 \begin_inset space ~
12959 \begin_inset CommandInset ref
12961 reference "tab:Example-booktabs-table"
12965 was created using the commands
12968 \begin_layout Standard
12978 \begin_layout Standard
12979 at the beginning of the second row and
12982 \begin_layout Standard
12987 cmidrule(l{10pt}){1-1}
12990 \begin_layout Standard
12994 \begin_layout Standard
12995 \begin_inset VSpace bigskip
13001 \begin_layout Standard
13002 You might want to have overlapping
13009 \begin_inset space ~
13013 \begin_inset CommandInset ref
13015 reference "tab:Special-booktabs-table"
13020 This can be achieved with the TeX-Code command
13023 \begin_layout Standard
13031 \begin_layout Standard
13032 The command that was used for the second row of Table
13033 \begin_inset space ~
13037 \begin_inset CommandInset ref
13039 reference "tab:Special-booktabs-table"
13046 \begin_layout Standard
13060 \begin_layout Standard
13061 The command for the sixth row is
13064 \begin_layout Standard
13076 \begin_layout Standard
13077 \begin_inset VSpace bigskip
13083 \begin_layout Standard
13084 If you are anyway not satisfied with the border line spacing, you can use
13085 the following command to produce lines that span over all table columns
13090 \begin_layout Standard
13095 specialrule{width}{space above}{space below}
13098 \begin_layout Standard
13099 For more information about these features, refer to the manual of the LaTeX-pack
13105 \begin_inset CommandInset citation
13112 \begin_inset Index idx
13115 \begin_layout Plain Layout
13116 LaTeX-packages ! booktabs
13124 \begin_layout Standard
13125 \begin_inset Float table
13131 \begin_layout Plain Layout
13132 \begin_inset Caption
13134 \begin_layout Plain Layout
13135 \begin_inset CommandInset label
13137 name "tab:Special-booktabs-table"
13141 Special booktabs-table
13149 \begin_layout Plain Layout
13151 \begin_inset Tabular
13152 <lyxtabular version="3" rows="8" columns="4">
13153 <features booktabs="true" tabularvalignment="middle">
13154 <column alignment="center" valignment="top" width="0">
13155 <column alignment="center" valignment="top" width="0">
13156 <column alignment="center" valignment="top" width="0">
13157 <column alignment="center" valignment="top" width="0">
13159 <cell alignment="center" valignment="top" topline="true" usebox="none">
13162 \begin_layout Plain Layout
13168 <cell alignment="center" valignment="top" topline="true" usebox="none">
13171 \begin_layout Plain Layout
13173 \begin_inset space \thinspace{}
13181 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13184 \begin_layout Plain Layout
13186 \begin_inset space \thinspace{}
13194 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13197 \begin_layout Plain Layout
13205 <cell alignment="center" valignment="top" usebox="none">
13208 \begin_layout Plain Layout
13212 \begin_layout Plain Layout
13225 \begin_layout Plain Layout
13238 \begin_layout Plain Layout
13251 \begin_layout Plain Layout
13260 Detector thickness in µm
13265 <cell alignment="center" valignment="top" usebox="none">
13268 \begin_layout Plain Layout
13274 <cell alignment="center" valignment="top" usebox="none">
13277 \begin_layout Plain Layout
13283 <cell alignment="center" valignment="top" usebox="none">
13286 \begin_layout Plain Layout
13294 <cell alignment="center" valignment="top" topline="true" usebox="none">
13297 \begin_layout Plain Layout
13303 <cell alignment="center" valignment="top" topline="true" usebox="none">
13306 \begin_layout Plain Layout
13312 <cell alignment="center" valignment="top" topline="true" usebox="none">
13315 \begin_layout Plain Layout
13321 <cell alignment="center" valignment="top" topline="true" usebox="none">
13324 \begin_layout Plain Layout
13331 <row topspace="default">
13332 <cell alignment="center" valignment="top" usebox="none">
13335 \begin_layout Plain Layout
13336 Spatial resolution in µm
13341 <cell alignment="center" valignment="top" usebox="none">
13344 \begin_layout Plain Layout
13350 <cell alignment="center" valignment="top" usebox="none">
13353 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" usebox="none">
13362 \begin_layout Plain Layout
13369 <row topspace="default">
13370 <cell alignment="center" valignment="top" usebox="none">
13373 \begin_layout Plain Layout
13375 \begin_inset Formula $f_{\mathrm{max}}$
13383 <cell alignment="center" valignment="top" usebox="none">
13386 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" usebox="none">
13404 \begin_layout Plain Layout
13412 <cell alignment="center" valignment="top" topline="true" usebox="none">
13415 \begin_layout Plain Layout
13419 \begin_layout Plain Layout
13432 \begin_layout Plain Layout
13441 LSF-spatial resolution
13446 <cell alignment="center" valignment="top" topline="true" usebox="none">
13449 \begin_layout Plain Layout
13455 <cell alignment="center" valignment="top" topline="true" usebox="none">
13458 \begin_layout Plain Layout
13464 <cell alignment="center" valignment="top" topline="true" usebox="none">
13467 \begin_layout Plain Layout
13475 <cell alignment="center" valignment="top" usebox="none">
13478 \begin_layout Plain Layout
13484 <cell alignment="center" valignment="top" usebox="none">
13487 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" usebox="none">
13505 \begin_layout Plain Layout
13513 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13516 \begin_layout Plain Layout
13522 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13525 \begin_layout Plain Layout
13531 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13534 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13543 \begin_layout Plain Layout
13562 \begin_layout Section
13563 Vertical Table Alignment
13564 \begin_inset Index idx
13567 \begin_layout Plain Layout
13576 \begin_layout Standard
13577 To align tables vertically in a text line the table must be inside a box.
13578 The box can then be vertically aligned as described in section
13579 \begin_inset space ~
13583 \begin_inset CommandInset ref
13585 reference "sec:Box-Dialog"
13592 \begin_layout Standard
13593 In the following example the tables are inside a minipage
13597 \begin_layout Plain Layout
13598 Minipages are described in section
13599 \begin_inset space ~
13603 \begin_inset CommandInset ref
13605 reference "sec:Minipages"
13614 box that has a width of 15
13615 \begin_inset space \thinspace{}
13621 \begin_layout Itemize
13623 \begin_inset Box Frameless
13633 height_special "totalheight"
13636 \begin_layout Plain Layout
13637 \begin_inset Tabular
13638 <lyxtabular version="3" rows="3" columns="3">
13639 <features tabularvalignment="middle">
13640 <column alignment="center" valignment="top" width="0">
13641 <column alignment="center" valignment="top" width="0">
13642 <column alignment="center" valignment="top" width="0">
13644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13647 \begin_layout Plain Layout
13653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13656 \begin_layout Plain Layout
13662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13665 \begin_layout Plain Layout
13673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13676 \begin_layout Plain Layout
13682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13685 \begin_layout Plain Layout
13691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13694 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13714 \begin_layout Plain Layout
13720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13723 \begin_layout Plain Layout
13743 \begin_layout Plain Layout
13755 \begin_inset Box Frameless
13765 height_special "totalheight"
13768 \begin_layout Plain Layout
13769 \begin_inset Tabular
13770 <lyxtabular version="3" rows="3" columns="3">
13771 <features tabularvalignment="middle">
13772 <column alignment="center" valignment="top" width="0">
13773 <column alignment="center" valignment="top" width="0">
13774 <column alignment="center" valignment="top" width="0">
13776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13788 \begin_layout Plain Layout
13794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13797 \begin_layout Plain Layout
13805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13808 \begin_layout Plain Layout
13814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13817 \begin_layout Plain Layout
13823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13826 \begin_layout Plain Layout
13834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13837 \begin_layout Plain Layout
13843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13846 \begin_layout Plain Layout
13852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13855 \begin_layout Plain Layout
13875 \begin_layout Plain Layout
13885 \begin_layout Itemize
13887 \begin_inset Box Frameless
13897 height_special "totalheight"
13900 \begin_layout Plain Layout
13901 \begin_inset Tabular
13902 <lyxtabular version="3" rows="3" columns="3">
13903 <features tabularvalignment="middle">
13904 <column alignment="center" valignment="top" width="0">
13905 <column alignment="center" valignment="top" width="0">
13906 <column alignment="center" valignment="top" width="0">
13908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13911 \begin_layout Plain Layout
13917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13920 \begin_layout Plain Layout
13926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13929 \begin_layout Plain Layout
13937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13940 \begin_layout Plain Layout
13946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13949 \begin_layout Plain Layout
13955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13958 \begin_layout Plain Layout
13966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13969 \begin_layout Plain Layout
13975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13978 \begin_layout Plain Layout
13984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13987 \begin_layout Plain Layout
14006 \begin_layout Itemize
14008 \begin_inset Box Frameless
14018 height_special "totalheight"
14021 \begin_layout Plain Layout
14022 \begin_inset Tabular
14023 <lyxtabular version="3" rows="3" columns="3">
14024 <features tabularvalignment="middle">
14025 <column alignment="center" valignment="top" width="0">
14026 <column alignment="center" valignment="top" width="0">
14027 <column alignment="center" valignment="top" width="0">
14029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14032 \begin_layout Plain Layout
14038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14041 \begin_layout Plain Layout
14047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14050 \begin_layout Plain Layout
14058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14061 \begin_layout Plain Layout
14067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14070 \begin_layout Plain Layout
14076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14079 \begin_layout Plain Layout
14087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14090 \begin_layout Plain Layout
14096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14099 \begin_layout Plain Layout
14105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14108 \begin_layout Plain Layout
14128 \begin_layout Plain Layout
14140 \begin_inset Box Frameless
14150 height_special "totalheight"
14153 \begin_layout Plain Layout
14154 \begin_inset Tabular
14155 <lyxtabular version="3" rows="3" columns="3">
14156 <features tabularvalignment="middle">
14157 <column alignment="center" valignment="top" width="0">
14158 <column alignment="center" valignment="top" width="0">
14159 <column alignment="center" valignment="top" width="0">
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Plain Layout
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14173 \begin_layout Plain Layout
14179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14182 \begin_layout Plain Layout
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Plain Layout
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14202 \begin_layout Plain Layout
14208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14211 \begin_layout Plain Layout
14219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14222 \begin_layout Plain Layout
14228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14231 \begin_layout Plain Layout
14237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14240 \begin_layout Plain Layout
14260 \begin_layout Plain Layout
14270 \begin_layout Standard
14271 As you will see, the content of the first and last table row is not correctly
14273 To get this alignment, the minipage box must be set into a raisebox
14277 \begin_layout Plain Layout
14278 Raiseboxes are described in section
14279 \begin_inset space ~
14283 \begin_inset CommandInset ref
14285 reference "sub:Vertical-Alignment"
14295 In the example above the second table in the first item is aligned using
14296 the TeX-Code-command
14299 \begin_layout Standard
14309 \begin_layout Standard
14311 After the box the closing brace
14315 is inserted as TeX-Code.
14316 For the second table in the last item the command
14319 \begin_layout Standard
14329 \begin_layout Standard
14333 \begin_layout Standard
14334 \begin_inset Note Greyedout
14337 \begin_layout Plain Layout
14342 The alignment of the table row content to the surrounding text line is
14344 The required value for the
14350 command for this alignment depends on the document font, the font size,
14351 and the table line thickness.
14359 \begin_layout Section
14361 \begin_inset CommandInset label
14363 name "sec:Colored-Tables"
14368 \begin_inset Index idx
14371 \begin_layout Plain Layout
14380 \begin_layout Subsection
14382 \begin_inset Index idx
14385 \begin_layout Plain Layout
14386 Table Color ! for Cells
14392 \begin_inset Index idx
14395 \begin_layout Plain Layout
14396 Color ! for Table Cells
14404 \begin_layout Standard
14405 \begin_inset Float table
14411 \begin_layout Plain Layout
14412 \begin_inset Caption
14414 \begin_layout Plain Layout
14415 \begin_inset CommandInset label
14417 name "tab:Table-colored-without"
14421 Table colored without using the package
14426 \begin_inset Argument
14429 \begin_layout Plain Layout
14430 Table without colortbl
14443 \begin_layout Plain Layout
14445 \begin_inset Tabular
14446 <lyxtabular version="3" rows="3" columns="3">
14447 <features tabularvalignment="middle">
14448 <column alignment="center" valignment="top" width="0">
14449 <column alignment="center" valignment="top" width="0">
14450 <column alignment="center" valignment="top" width="0">
14452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14455 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14466 \begin_layout Plain Layout
14474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14477 \begin_layout Plain Layout
14487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14490 \begin_layout Plain Layout
14498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14501 \begin_layout Plain Layout
14509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14512 \begin_layout Plain Layout
14522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14525 \begin_layout Plain Layout
14533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14536 \begin_layout Plain Layout
14544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14547 \begin_layout Plain Layout
14568 \begin_layout Standard
14569 If you only need colored text, mark the cells and choose a color in the
14572 Edit\SpecialChar \menuseparator
14574 \begin_inset space ~
14580 This was used to create Table
14581 \begin_inset space ~
14585 \begin_inset CommandInset ref
14587 reference "tab:Table-colored-without"
14592 In any other case you have to use the LaTeX-package
14597 \begin_inset Index idx
14600 \begin_layout Plain Layout
14601 LaTeX-packages ! colortbl
14609 \begin_layout Standard
14613 \begin_layout Plain Layout
14623 \begin_inset Note Note
14626 \begin_layout Plain Layout
14627 The following section part will only be displayed when the LaTeX-package
14640 \begin_layout Standard
14641 To create colored tables,
14645 must be loaded in the preamble with the line
14648 \begin_layout Standard
14653 usepackage{colortbl}
14656 \begin_layout Standard
14657 The color of a column is adjusted with the command
14660 \begin_layout Standard
14665 columncolor{name of color}
14668 \begin_layout Standard
14674 More about the command
14678 is contained in section
14679 \begin_inset space ~
14683 \begin_inset CommandInset ref
14685 reference "sub:Multicolumn-Calculations"
14692 \begin_layout Standard
14693 The following color names are predefined:
14696 \begin_layout Standard
14730 \begin_layout Standard
14731 \begin_inset VSpace medskip
14737 \begin_layout Standard
14738 You can also define your own color with the command
14741 \begin_layout Standard
14746 definecolor{color name}{color model}{color values}
14749 \begin_layout Standard
14750 The color model can be
14753 \begin_layout Labeling
14754 \labelwidthstring 00.00.0000
14755 cmyk: cyan, magenta, yellow, black
14758 \begin_layout Labeling
14759 \labelwidthstring 00.00.0000
14760 rgb: red, green blue
14763 \begin_layout Labeling
14764 \labelwidthstring 00.00.0000
14768 \begin_layout Standard
14769 and the color values are comma separated numbers between 0 and 1 describing
14770 the factor for the corresponding color of the color model.
14773 \begin_layout Standard
14775 \begin_inset space \thinspace{}
14779 \begin_inset space \space{}
14786 " in the preamble with
14789 \begin_layout Standard
14794 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14797 \begin_layout Standard
14805 \begin_layout Standard
14810 definecolor{lightgray}{gray}{0.8}
14813 \begin_layout Standard
14814 \begin_inset VSpace medskip
14820 \begin_layout Standard
14821 Lines are colored with the command
14824 \begin_layout Standard
14829 rowcolor{name of color}
14832 \begin_layout Standard
14833 and cells are colored with the command
14836 \begin_layout Standard
14841 cellcolor{name of color}
14844 \begin_layout Standard
14845 Both commands are inserted at the beginning of a cell as TeX-Code.
14848 \begin_layout Standard
14849 To color characters in the table, mark the cells and use the LyX menu
14851 Edit\SpecialChar \menuseparator
14853 \begin_inset space ~
14859 If a cell contains TeX-Code mark only the characters, otherwise the colored
14860 TeX-Code will cause LaTeX-errors.
14863 \begin_layout Standard
14864 \begin_inset Note Greyedout
14867 \begin_layout Plain Layout
14872 Not all DVI-viewers are able to display self-defined colors.
14880 \begin_layout Standard
14881 \begin_inset VSpace bigskip
14887 \begin_layout Standard
14889 \begin_inset space ~
14893 \begin_inset CommandInset ref
14895 reference "tab:Table-colored-using"
14899 do the following: The color of the first column should be
14907 \begin_layout Standard
14912 columncolor{darkgreen}
14917 \begin_layout Standard
14918 as LaTeX-argument for this column.
14919 The first row should be blue, therefore the TeX-Code command
14922 \begin_layout Standard
14930 \begin_layout Standard
14931 is inserted to the first cell of this row.
14932 Note that this overwrites the column color for the first cell.
14933 The last cell of the last row is colored magenta by inserting the TeX-Code
14937 \begin_layout Standard
14945 \begin_layout Standard
14946 The characters could now be colored using the menu
14948 Edit\SpecialChar \menuseparator
14950 \begin_inset space ~
14958 \begin_layout Standard
14959 \begin_inset Float table
14965 \begin_layout Plain Layout
14966 \begin_inset Caption
14968 \begin_layout Plain Layout
14969 \begin_inset CommandInset label
14971 name "tab:Table-colored-using"
14975 Table colored using the package
14980 \begin_inset Argument
14983 \begin_layout Plain Layout
14984 Table with colortbl
14997 \begin_layout Plain Layout
14999 \begin_inset Tabular
15000 <lyxtabular version="3" rows="3" columns="3">
15001 <features tabularvalignment="middle">
15002 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15003 <column alignment="center" valignment="top" width="0">
15004 <column alignment="center" valignment="top" width="0">
15006 <cell alignment="center" valignment="top" usebox="none">
15009 \begin_layout Plain Layout
15013 \begin_layout Plain Layout
15029 <cell alignment="center" valignment="top" usebox="none">
15032 \begin_layout Plain Layout
15040 <cell alignment="center" valignment="top" usebox="none">
15043 \begin_layout Plain Layout
15053 <cell alignment="center" valignment="top" usebox="none">
15056 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" usebox="none">
15067 \begin_layout Plain Layout
15075 <cell alignment="center" valignment="top" usebox="none">
15078 \begin_layout Plain Layout
15088 <cell alignment="center" valignment="top" usebox="none">
15091 \begin_layout Plain Layout
15099 <cell alignment="center" valignment="top" usebox="none">
15102 \begin_layout Plain Layout
15110 <cell alignment="center" valignment="top" usebox="none">
15113 \begin_layout Plain Layout
15117 \begin_layout Plain Layout
15146 \begin_layout Standard
15150 \begin_layout Plain Layout
15160 \begin_inset Note Note
15163 \begin_layout Plain Layout
15164 The following will be displayed when the LaTeX-package
15176 \begin_layout Standard
15177 You need to install the package
15181 to see the content of this section in the output.
15184 \begin_layout Standard
15188 \begin_layout Plain Layout
15200 \begin_layout Subsection
15202 \begin_inset Index idx
15205 \begin_layout Plain Layout
15206 Table Color ! for Lines
15212 \begin_inset Index idx
15215 \begin_layout Plain Layout
15216 Color ! for Table Lines
15224 \begin_layout Standard
15225 As described in section
15226 \begin_inset space ~
15230 \begin_inset CommandInset ref
15232 reference "sub:Line-Thickness"
15236 , the line thickness for all lines in a table can be adjusted with the length
15245 \begin_inset space \thinspace{}
15248 pt for all tables of this section.
15252 \begin_layout Plain Layout
15258 arrayrulewidth}{1.5pt}
15266 \begin_layout Standard
15267 To color vertical lines for example with green, create the following column
15268 format in the document preamble, according to the description in section
15269 \begin_inset space ~
15273 \begin_inset CommandInset ref
15275 reference "sub:Customized-Format"
15282 \begin_layout Standard
15287 newcolumntype{W}{!{
15294 \begin_layout Standard
15296 \begin_inset space ~
15300 \begin_inset CommandInset ref
15302 reference "tab:Table-with-vertical-colored"
15310 was used for the last column and
15314 for the other columns.
15317 \begin_layout Standard
15318 If you want to have several colors, define more column formats.
15321 \begin_layout Standard
15322 \begin_inset Float table
15328 \begin_layout Plain Layout
15329 \begin_inset Caption
15331 \begin_layout Plain Layout
15332 \begin_inset CommandInset label
15334 name "tab:Table-with-vertical-colored"
15338 Table with colored vertical lines
15346 \begin_layout Plain Layout
15348 \begin_inset Tabular
15349 <lyxtabular version="3" rows="3" columns="3">
15350 <features tabularvalignment="middle">
15351 <column alignment="center" valignment="top" width="0" special="Wc">
15352 <column alignment="center" valignment="top" width="0" special="Wc">
15353 <column alignment="center" valignment="top" width="0" special="WcW">
15355 <cell alignment="center" valignment="top" topline="true" usebox="none">
15358 \begin_layout Plain Layout
15364 <cell alignment="center" valignment="top" topline="true" usebox="none">
15367 \begin_layout Plain Layout
15373 <cell alignment="center" valignment="top" topline="true" usebox="none">
15376 \begin_layout Plain Layout
15384 <cell alignment="center" valignment="top" topline="true" usebox="none">
15387 \begin_layout Plain Layout
15393 <cell alignment="center" valignment="top" topline="true" usebox="none">
15396 \begin_layout Plain Layout
15402 <cell alignment="center" valignment="top" topline="true" usebox="none">
15405 \begin_layout Plain Layout
15413 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15416 \begin_layout Plain Layout
15422 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15425 \begin_layout Plain Layout
15431 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15434 \begin_layout Plain Layout
15453 \begin_layout Standard
15454 \begin_inset VSpace bigskip
15457 To color horizontal lines for example with red, as in Table
15458 \begin_inset space ~
15462 \begin_inset CommandInset ref
15464 reference "tab:Table-with-horizontal-colored"
15468 , insert these commands in TeX-Code before the table or table float:
15471 \begin_layout Standard
15481 \begin_inset Newline newline
15489 \begin_inset Newline newline
15493 \begin_inset Phantom HPhantom
15496 \begin_layout Plain Layout
15499 \begin_inset space ~
15509 arrayrulecolor{red}
15513 arrayrulecolor{black}}
15516 \begin_layout Standard
15520 \begin_layout Plain Layout
15531 \begin_layout Plain Layout
15540 \begin_layout Plain Layout
15544 arrayrulecolor{red}
15548 arrayrulecolor{black}}
15554 \begin_inset Float table
15560 \begin_layout Plain Layout
15561 \begin_inset Caption
15563 \begin_layout Plain Layout
15564 \begin_inset CommandInset label
15566 name "tab:Table-with-horizontal-colored"
15570 Table with colored horizontal lines
15578 \begin_layout Plain Layout
15580 \begin_inset Tabular
15581 <lyxtabular version="3" rows="3" columns="3">
15582 <features tabularvalignment="middle">
15583 <column alignment="center" valignment="top" width="0">
15584 <column alignment="center" valignment="top" width="0">
15585 <column alignment="center" valignment="top" width="0">
15587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15590 \begin_layout Plain Layout
15596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15599 \begin_layout Plain Layout
15605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15608 \begin_layout Plain Layout
15616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15619 \begin_layout Plain Layout
15625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15628 \begin_layout Plain Layout
15634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15637 \begin_layout Plain Layout
15645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15648 \begin_layout Plain Layout
15654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15657 \begin_layout Plain Layout
15663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15666 \begin_layout Plain Layout
15685 \begin_layout Standard
15686 To return to the default line color black, insert this command in TeX-Code
15687 after the table or table float:
15690 \begin_layout Standard
15702 \begin_layout Standard
15704 \begin_inset space ~
15708 \begin_inset CommandInset ref
15710 reference "tab:Table-with-colored"
15714 is an example with colored vertical and horizontal lines.
15717 \begin_layout Standard
15718 \begin_inset Float table
15724 \begin_layout Plain Layout
15725 \begin_inset Caption
15727 \begin_layout Plain Layout
15728 \begin_inset CommandInset label
15730 name "tab:Table-with-colored"
15734 Table with colored lines
15742 \begin_layout Plain Layout
15744 \begin_inset Tabular
15745 <lyxtabular version="3" rows="3" columns="3">
15746 <features tabularvalignment="middle">
15747 <column alignment="center" valignment="top" width="0" special="Wc">
15748 <column alignment="center" valignment="top" width="0" special="Wc">
15749 <column alignment="center" valignment="top" width="0" special="WcW">
15751 <cell alignment="center" valignment="top" topline="true" usebox="none">
15754 \begin_layout Plain Layout
15760 <cell alignment="center" valignment="top" topline="true" usebox="none">
15763 \begin_layout Plain Layout
15769 <cell alignment="center" valignment="top" topline="true" usebox="none">
15772 \begin_layout Plain Layout
15780 <cell alignment="center" valignment="top" topline="true" usebox="none">
15783 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" topline="true" usebox="none">
15792 \begin_layout Plain Layout
15798 <cell alignment="center" valignment="top" topline="true" usebox="none">
15801 \begin_layout Plain Layout
15808 <row topspace="default">
15809 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15812 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15821 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15830 \begin_layout Plain Layout
15849 \begin_layout Standard
15853 \begin_layout Plain Layout
15869 \begin_layout Standard
15873 \begin_layout Plain Layout
15879 arrayrulewidth}{0.4pt}
15887 \begin_layout Section
15888 Table Customization
15889 \begin_inset Index idx
15892 \begin_layout Plain Layout
15893 Table Customization
15899 \begin_inset Index idx
15902 \begin_layout Plain Layout
15903 Table ! Customization
15911 \begin_layout Subsection
15913 \begin_inset CommandInset label
15915 name "sub:Row-Spacing"
15920 \begin_inset Index idx
15923 \begin_layout Plain Layout
15924 Table Customization ! Row Spacing
15932 \begin_layout Standard
15933 You can add vertical space to table rows in the
15937 tab of the table dialog.
15938 You find there three possibilities:
15941 \begin_layout Description
15943 \begin_inset space ~
15947 \begin_inset space ~
15950 row will add space above the characters of the table row.
15951 If the table is a formal table
15955 \begin_layout Plain Layout
15956 Formal tables are explained in section
15957 \begin_inset space ~
15961 \begin_inset CommandInset ref
15963 reference "sec:Formal-Tables"
15972 LyX will insert as default 0.5
15973 \begin_inset space \thinspace{}
15977 For normal tables the inserted space will unfortunately destroy the vertical
15978 table lines as in the following table:
15979 \begin_inset VSpace medskip
15983 \begin_inset Newline newline
15987 \begin_inset space \hspace*{}
15992 \begin_inset space \hfill{}
15996 \begin_inset Tabular
15997 <lyxtabular version="3" rows="3" columns="1">
15998 <features tabularvalignment="middle">
15999 <column alignment="center" valignment="top" width="0">
16001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16004 \begin_layout Plain Layout
16011 <row topspace="3mm">
16012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16015 \begin_layout Plain Layout
16017 \begin_inset space \thinspace{}
16020 mm space top of row
16027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16030 \begin_layout Plain Layout
16042 \begin_inset space \hfill{}
16046 \begin_inset space \hspace*{}
16051 \begin_inset VSpace medskip
16055 \begin_inset Newline newline
16058 So inserting space in the top of row for normal tables is only useful when
16059 you don't have vertical lines.
16062 \begin_layout Description
16064 \begin_inset space ~
16068 \begin_inset space ~
16071 row will add space below the characters of the table row.
16072 If the table is a formal table LyX will insert as default 0.5
16073 \begin_inset space \thinspace{}
16076 em space, for normal tables the default size is 2
16077 \begin_inset space \thinspace{}
16083 \begin_layout Description
16085 \begin_inset space ~
16088 rows adds space between the current and the following row.
16089 If the table is a formal table LyX will insert as default 0.5
16090 \begin_inset space \thinspace{}
16094 For normal tables the inserted space will unfortunately destroy the vertical
16095 table lines as in the following table:
16096 \begin_inset VSpace medskip
16100 \begin_inset Newline newline
16104 \begin_inset space \hspace*{}
16109 \begin_inset space \hfill{}
16113 \begin_inset Tabular
16114 <lyxtabular version="3" rows="3" columns="1">
16115 <features tabularvalignment="middle">
16116 <column alignment="center" valignment="top" width="0">
16118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16121 \begin_layout Plain Layout
16128 <row interlinespace="3mm">
16129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16132 \begin_layout Plain Layout
16133 \begin_inset Formula $\downarrow$
16137 \begin_inset space \thinspace{}
16140 mm space between row
16141 \begin_inset Formula $\downarrow$
16151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16154 \begin_layout Plain Layout
16155 \begin_inset Formula $\uparrow$
16159 \begin_inset space \thinspace{}
16162 mm space between row
16163 \begin_inset Formula $\uparrow$
16177 \begin_inset space \hfill{}
16181 \begin_inset space \hspace*{}
16186 \begin_inset VSpace medskip
16190 \begin_inset Newline newline
16193 So inserting space between rows for normal tables is only useful when you
16194 don't have vertical lines.
16197 \begin_layout Standard
16198 \begin_inset VSpace bigskip
16201 When you want to add extra height to all cells of all tables, you can do
16202 this with the following preamble lines:
16205 \begin_layout Standard
16210 @ifundefined{extrarowheight}
16211 \begin_inset Newline newline
16215 \begin_inset Phantom HPhantom
16218 \begin_layout Plain Layout
16221 \begin_inset space ~
16231 usepackage{array}}{}
16232 \begin_inset Newline newline
16239 extrarowheight}{height}
16242 \begin_layout Standard
16243 But this has the disadvantage that the cell texts are no longer exactly
16244 vertically centered.
16249 will be loaded automatically by LyX when you use self defined table formats.
16250 To avoid that it being loaded twice the command
16256 is used in the above command.)
16259 \begin_layout Standard
16260 If you are using font sizes larger than the normal size, the table borders
16261 are often too close to the letters.
16262 This can be corrected by inserting the command
16268 in TeX code at the beginning of a table row.
16270 \begin_inset space ~
16274 \begin_inset CommandInset ref
16276 reference "tab:Vertical-alignment-of"
16280 illustrates the effect.
16283 \begin_layout Standard
16285 \begin_inset Float table
16291 \begin_layout Plain Layout
16292 \begin_inset Caption
16294 \begin_layout Plain Layout
16295 \begin_inset CommandInset label
16297 name "tab:Vertical-alignment-of"
16301 Vertical alignment of text with large font sizes.
16309 \begin_layout Plain Layout
16310 \begin_inset space \hfill{}
16314 \begin_inset Float table
16319 \begin_layout Plain Layout
16320 \begin_inset Caption
16322 \begin_layout Plain Layout
16331 \begin_layout Plain Layout
16334 \begin_inset Tabular
16335 <lyxtabular version="3" rows="6" columns="1">
16336 <features tabularvalignment="middle">
16337 <column alignment="left" valignment="top" width="0">
16339 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16342 \begin_layout Plain Layout
16350 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16353 \begin_layout Plain Layout
16363 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16366 \begin_layout Plain Layout
16376 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16379 \begin_layout Plain Layout
16389 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16392 \begin_layout Plain Layout
16402 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16405 \begin_layout Plain Layout
16424 \begin_inset space \hfill{}
16428 \begin_inset Float table
16433 \begin_layout Plain Layout
16434 \begin_inset Caption
16436 \begin_layout Plain Layout
16437 Table using the command
16451 \begin_layout Plain Layout
16454 \begin_inset Tabular
16455 <lyxtabular version="3" rows="6" columns="1">
16456 <features tabularvalignment="middle">
16457 <column alignment="left" valignment="top" width="0">
16459 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16462 \begin_layout Plain Layout
16470 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16473 \begin_layout Plain Layout
16479 \begin_layout Plain Layout
16495 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16498 \begin_layout Plain Layout
16504 \begin_layout Plain Layout
16520 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16523 \begin_layout Plain Layout
16529 \begin_layout Plain Layout
16545 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16554 \begin_layout Plain Layout
16570 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Plain Layout
16579 \begin_layout Plain Layout
16606 \begin_inset space \hfill{}
16617 \begin_layout Subsection
16618 Special Cell Alignment
16619 \begin_inset Index idx
16622 \begin_layout Plain Layout
16623 Table Customization ! Special Cell Alignment
16631 \begin_layout Standard
16632 Sometimes it looks better when the cell entries of a column are aligned
16633 with a special character, e.
16634 \begin_inset space \thinspace{}
16638 \begin_inset space \space{}
16641 with the decimal separator as in Table
16642 \begin_inset space ~
16646 \begin_inset CommandInset ref
16648 reference "tab:Table-cells-of"
16655 \begin_layout Standard
16656 \begin_inset Float table
16662 \begin_layout Plain Layout
16663 \begin_inset Caption
16665 \begin_layout Plain Layout
16666 \begin_inset CommandInset label
16668 name "tab:Table-cells-of"
16672 Table cells of a column aligned with the decimal separator.
16680 \begin_layout Plain Layout
16682 \begin_inset Tabular
16683 <lyxtabular version="3" rows="4" columns="2">
16684 <features tabularvalignment="middle">
16685 <column alignment="right" valignment="top" width="0">
16686 <column alignment="left" valignment="top" width="0" special="@{}l">
16688 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16691 \begin_layout Plain Layout
16697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16700 \begin_layout Plain Layout
16708 <cell alignment="center" valignment="top" usebox="none">
16711 \begin_layout Plain Layout
16717 <cell alignment="center" valignment="top" usebox="none">
16720 \begin_layout Plain Layout
16728 <cell alignment="center" valignment="top" usebox="none">
16731 \begin_layout Plain Layout
16737 <cell alignment="center" valignment="top" usebox="none">
16740 \begin_layout Plain Layout
16748 <cell alignment="center" valignment="top" usebox="none">
16751 \begin_layout Plain Layout
16757 <cell alignment="center" valignment="top" usebox="none">
16760 \begin_layout Plain Layout
16779 \begin_layout Standard
16780 This table was created with a 4×2 table.
16781 The heading is a centered multicolumn.
16782 The first column is right-aligned and contains the digits before the decimal
16783 point and the decimal point.
16784 The second column is left aligned and contains the digits after the decimal
16786 To omit the space that is normally between two table columns, the following
16787 LaTeX-argument was used for the second column:
16790 \begin_layout Standard
16796 \begin_layout Standard
16798 \begin_inset space ~
16802 \begin_inset CommandInset ref
16804 reference "tab:Several-table-cell"
16808 shows some example alignments.
16809 For the alignment with the relation sign, you must add the second smallest
16810 math-space at the beginning of the last column to get the correct space
16811 surrounding the relation sign.
16814 \begin_layout Standard
16815 \begin_inset Float table
16821 \begin_layout Plain Layout
16822 \begin_inset Caption
16824 \begin_layout Plain Layout
16825 \begin_inset CommandInset label
16827 name "tab:Several-table-cell"
16831 Several table cell alignments.
16839 \begin_layout Plain Layout
16841 \begin_inset Tabular
16842 <lyxtabular version="3" rows="4" columns="6">
16843 <features tabularvalignment="middle">
16844 <column alignment="right" valignment="top" width="0">
16845 <column alignment="left" valignment="top" width="0" special="@{}l">
16846 <column alignment="right" valignment="top" width="0">
16847 <column alignment="left" valignment="top" width="0" special="@{}l">
16848 <column alignment="right" valignment="top" width="0">
16849 <column alignment="left" valignment="top" width="0" special="@{}l">
16851 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16854 \begin_layout Plain Layout
16860 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16863 \begin_layout Plain Layout
16869 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16872 \begin_layout Plain Layout
16878 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16881 \begin_layout Plain Layout
16887 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16890 \begin_layout Plain Layout
16896 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16899 \begin_layout Plain Layout
16907 <cell alignment="center" valignment="top" usebox="none">
16910 \begin_layout Plain Layout
16916 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16919 \begin_layout Plain Layout
16921 \begin_inset space \thinspace{}
16929 <cell alignment="center" valignment="top" usebox="none">
16932 \begin_layout Plain Layout
16933 \begin_inset Formula $10\cdot$
16941 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16945 \begin_inset Formula $10^{\mbox{-}17}$
16953 <cell alignment="center" valignment="top" usebox="none">
16956 \begin_layout Plain Layout
16957 \begin_inset Formula $\Gamma(t)\propto$
16965 <cell alignment="center" valignment="top" usebox="none">
16968 \begin_layout Plain Layout
16969 \begin_inset Formula $\:\Upsilon(t)$
16979 <cell alignment="center" valignment="top" usebox="none">
16982 \begin_layout Plain Layout
16988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16991 \begin_layout Plain Layout
16993 \begin_inset space \thinspace{}
17001 <cell alignment="center" valignment="top" usebox="none">
17004 \begin_layout Plain Layout
17005 \begin_inset Formula $5.78\cdot$
17013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17016 \begin_layout Plain Layout
17017 \begin_inset Formula $10^{7}$
17025 <cell alignment="center" valignment="top" usebox="none">
17028 \begin_layout Plain Layout
17029 \begin_inset Formula $A\ne$
17037 <cell alignment="center" valignment="top" usebox="none">
17040 \begin_layout Plain Layout
17041 \begin_inset Formula $\: B_{\mathrm{red}}$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17063 \begin_layout Plain Layout
17065 \begin_inset space \thinspace{}
17073 <cell alignment="center" valignment="top" usebox="none">
17076 \begin_layout Plain Layout
17078 \begin_inset Formula $33.5\cdot$
17086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17089 \begin_layout Plain Layout
17090 \begin_inset Formula $10^{4}$
17098 <cell alignment="center" valignment="top" usebox="none">
17101 \begin_layout Plain Layout
17102 \begin_inset Formula $\sin(\alpha)\ge$
17110 <cell alignment="center" valignment="top" usebox="none">
17113 \begin_layout Plain Layout
17114 \begin_inset Formula $\:\sin(\beta)$
17135 \begin_layout Standard
17136 \begin_inset VSpace bigskip
17139 There is also the LaTeX-package
17144 \begin_inset Index idx
17147 \begin_layout Plain Layout
17148 LaTeX-packages ! dcolumn
17153 that provides table cell alignments.
17154 But this unfortunately treats the cell entries as math and does not allow
17155 formulas in table cells: The first column of Table
17156 \begin_inset space ~
17160 \begin_inset CommandInset ref
17162 reference "tab:Several-table-cell"
17170 like the first column in Table
17171 \begin_inset space ~
17175 \begin_inset CommandInset ref
17177 reference "tab:Alignments-when"
17181 and only with some tricks as you would want.
17182 The alignment of the second and third column of Table
17183 \begin_inset space ~
17187 \begin_inset CommandInset ref
17189 reference "tab:Several-table-cell"
17193 is not possible with
17200 \begin_layout Standard
17201 \begin_inset Newpage newpage
17207 \begin_layout Standard
17208 \begin_inset Float table
17214 \begin_layout Plain Layout
17215 \begin_inset Caption
17217 \begin_layout Plain Layout
17218 \begin_inset CommandInset label
17220 name "tab:Alignments-when"
17224 Alignments when LaTeX-package dcolumn is used.
17225 For all column alignments tricks have to be used to get the output.
17233 \begin_layout Plain Layout
17235 \begin_inset Tabular
17236 <lyxtabular version="3" rows="4" columns="3">
17237 <features tabularvalignment="middle">
17238 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17239 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17240 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17242 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17245 \begin_layout Plain Layout
17251 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17254 \begin_layout Plain Layout
17260 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17263 \begin_layout Plain Layout
17271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17274 \begin_layout Plain Layout
17276 \begin_inset space \thinspace{}
17284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17287 \begin_layout Plain Layout
17289 \begin_inset space \thinspace{}
17293 \begin_inset Formula $\mbox{bottles}$
17301 <cell alignment="center" valignment="top" usebox="none">
17304 \begin_layout Plain Layout
17309 \begin_layout Plain Layout
17319 \begin_inset Formula $\mbox{bottles}$
17329 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17332 \begin_layout Plain Layout
17334 \begin_inset space \thinspace{}
17342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17345 \begin_layout Plain Layout
17347 \begin_inset space \thinspace{}
17351 \begin_inset Formula $\mbox{Pixels}$
17359 <cell alignment="center" valignment="top" usebox="none">
17362 \begin_layout Plain Layout
17367 \begin_layout Plain Layout
17377 \begin_inset Formula $\mbox{Pixels}$
17387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17390 \begin_layout Plain Layout
17392 \begin_inset space \thinspace{}
17400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17403 \begin_layout Plain Layout
17405 \begin_inset space \thinspace{}
17409 \begin_inset Formula $\mbox{cm}$
17417 <cell alignment="center" valignment="top" usebox="none">
17420 \begin_layout Plain Layout
17425 \begin_layout Plain Layout
17435 \begin_inset Formula $\mbox{cm}$
17456 \begin_layout Subsection
17457 Customized Cell/Column Format
17458 \begin_inset CommandInset label
17460 name "sub:Customized-Format"
17465 \begin_inset Index idx
17468 \begin_layout Plain Layout
17469 Table Customization ! Cell/Column Format
17477 \begin_layout Standard
17478 Calculating the required width for spanned columns as in section
17479 \begin_inset space ~
17483 \begin_inset CommandInset ref
17485 reference "sub:Multicolumn-Calculations"
17489 is very annoying if you have several tables with multicolumn cells.
17490 To make life easier, you can define a cell/column format in the preamble,
17491 so that it can be used in all tables of the document.
17492 The format is defined with the command
17495 \begin_layout Standard
17500 newcolumntype{name of format}[number of arguments]{commands}
17503 \begin_layout Standard
17504 The format name may only consist of one letter.
17529 are predefined and cannot be used.
17530 But all letters are allowed as capitals.
17533 \begin_layout Standard
17534 \begin_inset VSpace medskip
17540 \begin_layout Standard
17541 For vertically and horizontally centered multicolumn cells with a fixed
17542 width you can define the cell format
17545 \begin_layout Standard
17550 newcolumntype{M}[1]{>{
17557 \begin_layout Standard
17564 avoids the problem of hyphenating the first word, as described in section
17565 \begin_inset space ~
17569 \begin_inset CommandInset ref
17571 reference "sub:Multiple-Lines-in"
17576 Now you can simply enter
17579 \begin_layout Standard
17585 \begin_layout Standard
17586 as LaTeX-argument in the table dialog to create a multicolumn.
17589 \begin_layout Standard
17590 \begin_inset VSpace bigskip
17596 \begin_layout Standard
17597 For cells spanned by a multicolumn cell, you can define the format
17600 \begin_layout Standard
17605 newcolumntype{S}[2]{>{
17610 \begin_inset Newline newline
17614 \begin_inset Phantom HPhantom
17617 \begin_layout Plain Layout
17631 arrayrulewidth)*(1-#2))/#2}}
17634 \begin_layout Standard
17635 This format uses equation
17636 \begin_inset CommandInset ref
17642 to calculate the required width so that each spanned cell has the same
17646 \begin_layout Standard
17650 \begin_layout Standard
17653 S{width of multicolumn cell}{number of spanned columns}
17656 \begin_layout Standard
17657 as LaTeX-argument of the column.
17660 \begin_layout Standard
17661 \begin_inset VSpace bigskip
17667 \begin_layout Standard
17668 For colored columns, you can define
17671 \begin_layout Standard
17676 newcolumntype{K}[1]{>{
17683 \begin_layout Standard
17685 \begin_inset Quotes eld
17689 \begin_inset Quotes erd
17692 at the end creates a column with a flexible width whose text is horizontally
17697 \begin_layout Standard
17703 \begin_layout Standard
17707 \begin_layout Standard
17708 \begin_inset VSpace bigskip
17714 \begin_layout Standard
17716 \begin_inset space ~
17720 \begin_inset CommandInset ref
17722 reference "tab:Table-using-user-defined"
17726 use the LaTeX-arguments
17729 \begin_layout Standard
17735 \begin_layout Standard
17736 for the first column and the multicolumn,
17739 \begin_layout Standard
17745 \begin_layout Standard
17746 for the last column, and
17749 \begin_layout Standard
17755 \begin_layout Standard
17756 for the cells in the second column.
17759 \begin_layout Standard
17760 \begin_inset Float table
17766 \begin_layout Plain Layout
17767 \begin_inset Caption
17769 \begin_layout Plain Layout
17770 \begin_inset CommandInset label
17772 name "tab:Table-using-user-defined"
17776 Table using user-defined table formats
17784 \begin_layout Plain Layout
17786 \begin_inset Tabular
17787 <lyxtabular version="3" rows="3" columns="4">
17788 <features tabularvalignment="middle">
17789 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17790 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17791 <column alignment="center" valignment="middle" width="0">
17792 <column alignment="center" valignment="middle" width="0" special="K{red}">
17794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17797 \begin_layout Plain Layout
17798 verylongtablecellword
17803 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17806 \begin_layout Plain Layout
17807 multiple lines multicolumn
17812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17815 \begin_layout Plain Layout
17821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17824 \begin_layout Plain Layout
17832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17835 \begin_layout Plain Layout
17841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17844 \begin_layout Plain Layout
17850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17853 \begin_layout Plain Layout
17859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17862 \begin_layout Plain Layout
17870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17873 \begin_layout Plain Layout
17879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17882 \begin_layout Plain Layout
17888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17891 \begin_layout Plain Layout
17897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17900 \begin_layout Plain Layout
17919 \begin_layout Subsection
17921 \begin_inset CommandInset label
17923 name "sub:Line-Thickness"
17928 \begin_inset Index idx
17931 \begin_layout Plain Layout
17932 Table Customization ! Line Thickness
17940 \begin_layout Standard
17941 The line thickness for all lines in a table can be adjusted with the length
17949 To set for example a line thickness of 1.5
17950 \begin_inset space \thinspace{}
17954 \begin_inset space ~
17958 \begin_inset CommandInset ref
17960 reference "tab:Table-with-1.5"
17964 , insert the command
17967 \begin_layout Standard
17974 arrayrulewidth}{1.5pt}
17977 \begin_layout Standard
17978 in TeX-Code before the table or table float.
17979 The changed thickness is valid for all subsequent tables.
17980 To use the default value again, set
17987 \begin_inset space \thinspace{}
17990 pt in TeX-Code after the table or table float.
17993 \begin_layout Standard
17997 \begin_layout Plain Layout
18003 arrayrulewidth}{1.5pt}
18009 \begin_inset Float table
18014 \begin_layout Plain Layout
18015 \begin_inset Caption
18017 \begin_layout Plain Layout
18018 \begin_inset CommandInset label
18020 name "tab:Table-with-1.5"
18025 \begin_inset space \thinspace{}
18036 \begin_layout Plain Layout
18038 \begin_inset Tabular
18039 <lyxtabular version="3" rows="3" columns="3">
18040 <features tabularvalignment="middle">
18041 <column alignment="center" valignment="top" width="0">
18042 <column alignment="center" valignment="top" width="0">
18043 <column alignment="center" valignment="top" width="0">
18045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18048 \begin_layout Plain Layout
18054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18057 \begin_layout Plain Layout
18063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18066 \begin_layout Plain Layout
18074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18077 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18095 \begin_layout Plain Layout
18103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18106 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18124 \begin_layout Plain Layout
18144 \begin_layout Plain Layout
18150 arrayrulewidth}{0.4pt}
18158 \begin_layout Standard
18159 \begin_inset VSpace bigskip
18162 To set the line thickness to 1.5
18163 \begin_inset space \thinspace{}
18166 pt only for horizontal lines, as in Table
18167 \begin_inset space ~
18171 \begin_inset CommandInset ref
18173 reference "tab:Table-with-horizontal"
18177 , insert these commands in TeX-Code before the table or table float:
18180 \begin_layout Standard
18190 \begin_inset Newline newline
18198 \begin_inset Newline newline
18207 arrayrulewidth 1.5pt}
18208 \begin_inset Newline newline
18219 arrayrulewidth 0.4pt}}
18222 \begin_layout Standard
18223 To return to the default line thickness, insert this command in TeX-Code
18224 after the table or table float:
18227 \begin_layout Standard
18239 \begin_layout Standard
18243 \begin_layout Plain Layout
18254 \begin_layout Plain Layout
18263 \begin_layout Plain Layout
18271 arrayrulewidth 1.5pt}
18274 \begin_layout Plain Layout
18284 arrayrulewidth 0.4pt}}
18290 \begin_inset Float table
18295 \begin_layout Plain Layout
18296 \begin_inset Caption
18298 \begin_layout Plain Layout
18299 \begin_inset CommandInset label
18301 name "tab:Table-with-horizontal"
18306 \begin_inset space \thinspace{}
18309 pt thick horizontal lines
18317 \begin_layout Plain Layout
18319 \begin_inset Tabular
18320 <lyxtabular version="3" rows="3" columns="3">
18321 <features tabularvalignment="middle">
18322 <column alignment="center" valignment="top" width="0">
18323 <column alignment="center" valignment="top" width="0">
18324 <column alignment="center" valignment="top" width="0">
18326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18329 \begin_layout Plain Layout
18335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18338 \begin_layout Plain Layout
18344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18347 \begin_layout Plain Layout
18355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18358 \begin_layout Plain Layout
18364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18367 \begin_layout Plain Layout
18373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18376 \begin_layout Plain Layout
18384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18387 \begin_layout Plain Layout
18393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18396 \begin_layout Plain Layout
18402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18405 \begin_layout Plain Layout
18425 \begin_layout Plain Layout
18441 \begin_layout Standard
18442 \begin_inset VSpace bigskip
18445 To set the line thickness to 1.5
18446 \begin_inset space \thinspace{}
18449 pt only for vertical lines, create the following column format in the document
18450 preamble, according to the description in section
18451 \begin_inset space ~
18455 \begin_inset CommandInset ref
18457 reference "sub:Customized-Format"
18464 \begin_layout Standard
18469 newcolumntype{V}{!{
18471 vrule width 1.5pt}}
18474 \begin_layout Standard
18476 \begin_inset space ~
18480 \begin_inset CommandInset ref
18482 reference "tab:Table-with-vertical"
18489 \begin_layout Standard
18495 \begin_layout Standard
18496 was used for the last column and
18499 \begin_layout Standard
18505 \begin_layout Standard
18506 for the other columns.
18509 \begin_layout Standard
18510 \begin_inset Float table
18515 \begin_layout Plain Layout
18516 \begin_inset Caption
18518 \begin_layout Plain Layout
18519 \begin_inset CommandInset label
18521 name "tab:Table-with-vertical"
18526 \begin_inset space \thinspace{}
18529 pt thick vertical lines
18537 \begin_layout Plain Layout
18539 \begin_inset Tabular
18540 <lyxtabular version="3" rows="3" columns="3">
18541 <features tabularvalignment="middle">
18542 <column alignment="center" valignment="top" width="0" special="Vc">
18543 <column alignment="center" valignment="top" width="0" special="Vc">
18544 <column alignment="center" valignment="top" width="0" special="VcV">
18546 <cell alignment="center" valignment="top" topline="true" usebox="none">
18549 \begin_layout Plain Layout
18555 <cell alignment="center" valignment="top" topline="true" usebox="none">
18558 \begin_layout Plain Layout
18564 <cell alignment="center" valignment="top" topline="true" usebox="none">
18567 \begin_layout Plain Layout
18575 <cell alignment="center" valignment="top" topline="true" usebox="none">
18578 \begin_layout Plain Layout
18584 <cell alignment="center" valignment="top" topline="true" usebox="none">
18587 \begin_layout Plain Layout
18593 <cell alignment="center" valignment="top" topline="true" usebox="none">
18596 \begin_layout Plain Layout
18604 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18607 \begin_layout Plain Layout
18613 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18616 \begin_layout Plain Layout
18622 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18625 \begin_layout Plain Layout
18644 \begin_layout Subsection
18646 \begin_inset Index idx
18649 \begin_layout Plain Layout
18650 Table Customization ! Dashed Lines
18658 \begin_layout Standard
18662 \begin_layout Plain Layout
18672 \begin_inset Note Note
18675 \begin_layout Plain Layout
18676 The following section will only be displayed when the LaTeX-package
18688 \begin_layout Standard
18689 \begin_inset Float table
18695 \begin_layout Plain Layout
18696 \begin_inset Caption
18698 \begin_layout Plain Layout
18699 \begin_inset CommandInset label
18701 name "tab:Table-with-dashed"
18705 Table with dashed lines
18713 \begin_layout Plain Layout
18715 \begin_inset Tabular
18716 <lyxtabular version="3" rows="5" columns="5">
18717 <features tabularvalignment="middle">
18718 <column alignment="center" valignment="top" width="0">
18719 <column alignment="center" valignment="top" width="0">
18720 <column alignment="center" valignment="top" width="0" special=":c">
18721 <column alignment="center" valignment="top" width="0">
18722 <column alignment="center" valignment="top" width="0">
18724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18727 \begin_layout Plain Layout
18733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18736 \begin_layout Plain Layout
18742 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18745 \begin_layout Plain Layout
18751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18754 \begin_layout Plain Layout
18760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18763 \begin_layout Plain Layout
18771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18774 \begin_layout Plain Layout
18780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18783 \begin_layout Plain Layout
18789 <cell alignment="center" valignment="top" topline="true" usebox="none">
18792 \begin_layout Plain Layout
18798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18801 \begin_layout Plain Layout
18807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18810 \begin_layout Plain Layout
18818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18821 \begin_layout Plain Layout
18825 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18842 \begin_layout Plain Layout
18848 <cell alignment="center" valignment="top" usebox="none">
18851 \begin_layout Plain Layout
18857 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18860 \begin_layout Plain Layout
18866 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18869 \begin_layout Plain Layout
18877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18880 \begin_layout Plain Layout
18884 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18910 \begin_layout Plain Layout
18916 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18919 \begin_layout Plain Layout
18925 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18928 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18948 \begin_layout Plain Layout
18954 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18957 \begin_layout Plain Layout
18963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18966 \begin_layout Plain Layout
18972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18975 \begin_layout Plain Layout
18994 \begin_layout Standard
18995 LyX does not natively support dashed lines, so you have to use TeX-Code.
18996 As a prerequisite the LaTeX-package
19001 \begin_inset Index idx
19004 \begin_layout Plain Layout
19005 LaTeX-packages ! arydshln
19010 must be loaded in the document preamble with the command
19013 \begin_layout Standard
19018 usepackage{arydshln}
19021 \begin_layout Standard
19022 To make a vertical line dashed, enter the colon
19023 \begin_inset Quotes eld
19027 \begin_inset Quotes erd
19030 together with the character for the horizontal alignment as LaTeX-argument
19031 in the table cell dialog.
19034 \begin_layout Standard
19035 For a horizontal dashed line add the command
19038 \begin_layout Standard
19046 \begin_layout Standard
19047 in TeX-Code as first element of the first cell in the table row.
19050 \begin_layout Standard
19051 For dashed multicolumn lines use the command
19054 \begin_layout Standard
19059 cdashline{line number
19064 \begin_layout Standard
19065 in TeX-Code as the first element of the first cell in the table row.
19066 If you have for example a multicolumn spanning columns 2 to 4 and you want
19067 to have a dashed line above, add the command
19070 \begin_layout Standard
19078 \begin_layout Standard
19079 as the first element of the first cell in the row of the multicolumn.
19082 \begin_layout Standard
19083 \begin_inset VSpace bigskip
19089 \begin_layout Standard
19091 \begin_inset space ~
19095 \begin_inset CommandInset ref
19097 reference "tab:Table-with-dashed"
19102 \begin_inset Quotes eld
19110 \begin_inset Quotes erd
19113 as LaTeX-argument of the third column.
19114 The TeX-Code command
19120 was inserted in the first cell of the third row and the TeX-Code command
19121 \begin_inset Newline newline
19130 was inserted in the first cell of the fourth row.
19133 \begin_layout Standard
19134 \begin_inset Note Greyedout
19137 \begin_layout Plain Layout
19146 is apparently not compatible with the LaTeX-package
19151 \begin_inset Index idx
19154 \begin_layout Plain Layout
19155 LaTeX-packages ! colortbl
19160 that is used for colored tables in section
19161 \begin_inset space ~
19165 \begin_inset CommandInset ref
19167 reference "sec:Colored-Tables"
19172 That means colored tables cannot have dashed lines.
19180 \begin_layout Standard
19184 \begin_layout Plain Layout
19194 \begin_inset Note Note
19197 \begin_layout Plain Layout
19198 The following will be displayed when the LaTeX-package
19210 \begin_layout Standard
19211 You need to install the package
19215 to see the content of this section in the output.
19218 \begin_layout Standard
19222 \begin_layout Plain Layout
19234 \begin_layout Chapter
19236 \begin_inset Index idx
19239 \begin_layout Plain Layout
19248 \begin_layout Section
19250 \begin_inset CommandInset label
19252 name "sec:FloatIntroduction"
19257 \begin_inset Index idx
19260 \begin_layout Plain Layout
19261 Floats ! Introduction
19269 \begin_layout Standard
19270 A float is a block of text associated with some sort of label, which doesn't
19271 have a fixed location.
19273 \begin_inset Quotes eld
19277 \begin_inset Quotes erd
19280 forward or backward a page or two, to wherever it fits best.
19288 \begin_inset space ~
19293 are also floats, because they can float to the next page when there are
19294 too many notes on the page.
19297 \begin_layout Standard
19298 Floats allow a high quality layout.
19299 Images and tables can be spread evenly to the pages to avoid white space
19300 and pages without text.
19301 As the floating often destroys the context between the text and the image/table
19302 , every float can be referenced in the text.
19303 Floats are therefore numbered.
19304 Referencing is described in section
19305 \begin_inset space ~
19309 \begin_inset CommandInset ref
19311 reference "sec:Referencing-Floats"
19318 \begin_layout Standard
19319 To insert a float, use the menu
19321 Insert\SpecialChar \menuseparator
19329 inset, a box with a label.
19330 The label will automatically be translated to the document language in
19332 After the label you can insert the caption text.
19333 The image or table is inserted above or below the caption in a separate
19334 paragraph within the float.
19335 More about the caption placement is contained in section
19336 \begin_inset space ~
19340 \begin_inset CommandInset ref
19342 reference "sec:Caption-Placement"
19347 To keep your LyX-document readable, you can open and close the float box
19348 by left-clicking on the box label.
19349 A closed float box looks like this:
19350 \begin_inset Graphics
19351 filename clipart/floatQt4.png
19353 scaleBeforeRotation
19357 – a gray button with a red label.
19360 \begin_layout Standard
19361 It is recommended that you insert floats as a separate standard paragraph
19362 to avoid possible LaTeX-errors that can occur when the surrounding text
19363 is specially formatted.
19366 \begin_layout Standard
19367 Existing figures or tables can be put into a float by highlighting them
19368 and then pressing the corresponding toolbar button for a new float.
19371 \begin_layout Section
19375 \begin_layout Standard
19376 Besides figure and table floats that are described in sections
19377 \begin_inset space ~
19381 \begin_inset CommandInset ref
19383 reference "sec:Figure-Floats"
19388 \begin_inset CommandInset ref
19390 reference "sec:Table-Floats"
19394 respectively, LyX offers the float types
19405 \begin_layout Subsection
19407 \begin_inset Index idx
19410 \begin_layout Plain Layout
19411 Floats ! Algorithms
19419 \begin_layout Standard
19420 \begin_inset Float algorithm
19426 \begin_layout Plain Layout
19427 \begin_inset Caption
19429 \begin_layout Plain Layout
19430 \begin_inset CommandInset label
19432 name "alg:Example-Algorithm-float"
19436 Example Algorithm float
19444 \begin_layout LyX-Code
19446 \begin_inset Newline newline
19449 Sum:= Sum + A(I); /*comment*/
19450 \begin_inset Newline newline
19454 \begin_inset VSpace -4mm
19465 \begin_layout Standard
19466 This float type is inserted with the menu
19468 Insert\SpecialChar \menuseparator
19469 Floats\SpecialChar \menuseparator
19473 It is used for program codes and descriptions of algorithms and can be
19474 seen as an alternative to program code listings that are explained in chapter
19475 \begin_inset space ~
19479 \begin_inset CommandInset ref
19481 reference "cha:Program-Code-Listings"
19486 A possible environment for algorithms is the
19490 , described in LyX's
19496 \begin_inset space ~
19500 \begin_inset CommandInset ref
19502 reference "alg:Example-Algorithm-float"
19506 is an example of an algorithm float where -4
19507 \begin_inset space \thinspace{}
19510 mm vertical space was added at the end of the float to have the bottom rule
19511 exactly below the last text line.
19514 \begin_layout Standard
19515 The float label is not automatically translated into the document language.
19516 If your document is not in English, you have to do this manually by adding
19517 the following line to the document preamble
19522 \begin_layout Standard
19527 floatname{algorithm}{your
19528 \begin_inset space ~
19534 \begin_layout Standard
19538 \begin_inset space ~
19544 \begin_inset Quotes eld
19552 \begin_inset Quotes erd
19558 \begin_layout Standard
19559 To insert the list of algorithms you can use the menu
19561 Insert\SpecialChar \menuseparator
19563 \begin_inset space \thinspace{}
19567 \begin_inset space \thinspace{}
19570 TOC\SpecialChar \menuseparator
19573 when your document has the same language as LyX's menu names.
19574 In other cases use this command in TeX-Code instead:
19577 \begin_layout Standard
19582 listof{algorithm}{your
19583 \begin_inset space ~
19589 \begin_layout Standard
19593 \begin_inset space ~
19599 \begin_inset Quotes eld
19607 \begin_inset Quotes erd
19613 \begin_layout Standard
19614 Algorithm floats are not by default numbered in the scheme
19615 \begin_inset Quotes eld
19619 \begin_inset Quotes erd
19622 as is the case for table and figure floats in many document-classes.
19623 To number algorithm floats in the same scheme, add this command to your
19627 \begin_layout Standard
19632 numberwithin{algorithm}{chapter}
19635 \begin_layout Standard
19636 To be able to use the command
19645 \begin_inset space ~
19650 in the document settings the option
19653 \begin_inset space ~
19657 \begin_inset space ~
19661 \begin_inset space ~
19669 \begin_layout Subsection
19671 \begin_inset Index idx
19674 \begin_layout Plain Layout
19675 Floats ! Wrap Floats
19683 \begin_layout Standard
19684 \begin_inset Wrap figure
19691 \begin_layout Plain Layout
19692 \begin_inset Graphics
19693 filename clipart/mobius.eps
19695 scaleBeforeRotation
19696 rotateOrigin center
19703 \begin_layout Plain Layout
19704 \begin_inset Caption
19706 \begin_layout Plain Layout
19707 \begin_inset CommandInset label
19709 name "fig:This-is-a"
19713 This is a figure wrap float.
19723 This float type is used if you want to wrap text around a figure or table
19724 so that it only occupies some fraction of the column width.
19725 It can be inserted using the menu
19727 Insert\SpecialChar \menuseparator
19728 Floats\SpecialChar \menuseparator
19730 \begin_inset space ~
19734 \begin_inset space ~
19742 \begin_inset space ~
19746 \begin_inset space ~
19751 if the LaTeX-package
19756 \begin_inset Index idx
19759 \begin_layout Plain Layout
19760 LaTeX-packages ! wrapfig
19764 \begin_layout Plain Layout
19782 \begin_layout Plain Layout
19783 Installing a LaTeX-package is explained it in the
19786 \begin_inset space ~
19796 The settings of the float can be modified by right-clicking on the float
19798 The mandatory settings are the float
19811 that specifies how much the float is set into the paragraph
19812 \begin_inset space \thinspace{}
19816 \begin_inset space \thinspace{}
19819 page margin, and the
19822 \begin_inset space ~
19827 that specifies how many text lines the float will approximately need.
19828 The line span is often hard to approximate; so it is better only to use
19829 it when you encounter float placement problems.
19830 You can furthermore decide if LaTeX is allowed to let the float float within
19831 the paragraph or to surrounding paragraphs.
19833 \begin_inset space ~
19837 \begin_inset CommandInset ref
19839 reference "fig:This-is-a"
19843 is an example text wrap float with a width of 40
19844 \begin_inset space \thinspace{}
19848 \begin_inset space \thinspace{}
19851 cm overhang, set to the left.
19855 \begin_layout Plain Layout
19856 Available units are explained in appendix
19857 \begin_inset space ~
19861 \begin_inset CommandInset ref
19863 reference "cha:Units-available-in"
19875 \begin_layout Standard
19876 \begin_inset Note Greyedout
19879 \begin_layout Plain Layout
19885 \begin_inset space ~
19888 wrap float floats are fragile! E.
19889 \begin_inset space \thinspace{}
19893 \begin_inset space \space{}
19896 having a figure too close to the bottom of the page can mess things up in
19897 such a way that the float does not appear in the output or that it is placed
19898 over some other text.
19906 \begin_layout Standard
19910 \begin_layout Itemize
19911 Wrap floats should not be placed in paragraphs that run over a page break.
19912 That means that wrap floats are better inserted in their exact place when
19913 the document is almost finished and you are able to estimate where page
19914 breaks will appear.
19917 \begin_layout Itemize
19918 Wrap floats should either be placed in their own paragraph before the paragraph
19919 where they should wrap into or within a paragraph.
19922 \begin_layout Itemize
19923 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
19924 there is a text paragraph between them as separator.
19927 \begin_layout Itemize
19928 Wrap floats are not allowed in section headings or tables.
19931 \begin_layout Section
19933 \begin_inset Index idx
19936 \begin_layout Plain Layout
19945 \begin_layout Standard
19946 Floats are usually numbered either independently from the sections the floats
19947 are in, or in the scheme
19948 \begin_inset Quotes eld
19952 \begin_inset Quotes erd
19956 \begin_inset Quotes eld
19960 \begin_inset Quotes erd
19964 This depends on the document class used.
19967 \begin_layout Standard
19968 To change section-independent numbering, you can use this command in the
19972 \begin_layout Standard
19984 \begin_layout Standard
19991 is the command that prints the table number, for figure floats, the command
20005 in the command above prints the table number as small roman number.
20008 \begin_layout Standard
20009 To change the numbering scheme for example to
20010 \begin_inset Quotes eld
20014 \begin_inset Quotes erd
20017 , use this command in the preamble:
20020 \begin_layout Standard
20025 numberwithin{table}{subsection}
20028 \begin_layout Standard
20029 To be able to use the command
20038 \begin_inset space ~
20043 in the document settings the option
20046 \begin_inset space ~
20050 \begin_inset space ~
20054 \begin_inset space ~
20062 \begin_layout Standard
20063 Please also have a look at section
20064 \begin_inset space ~
20068 \begin_inset CommandInset ref
20070 reference "sub:Footnote-Numbering"
20074 for the details and important notes about the numbering commands.
20077 \begin_layout Section
20079 \begin_inset CommandInset label
20081 name "sec:Referencing-Floats"
20086 \begin_inset Index idx
20089 \begin_layout Plain Layout
20090 Floats ! References
20096 \begin_inset Index idx
20099 \begin_layout Plain Layout
20100 References ! to Floats
20108 \begin_layout Standard
20109 To reference a float, insert a label into its caption using the menu
20111 Insert\SpecialChar \menuseparator
20114 or the toolbar button
20115 \begin_inset Graphics
20116 filename ../images/label-insert.png
20118 scaleBeforeRotation
20123 A grey label box like this one:
20124 \begin_inset Graphics
20125 filename clipart/labelQt4.png
20127 scaleBeforeRotation
20131 will be inserted and the label window pops up asking for the label text.
20132 LyX offers as text the first words of the caption with a prefix.
20133 The prefix depends on the float type, e.
20134 \begin_inset space \thinspace{}
20138 \begin_inset space \space{}
20141 for figure floats the prefix will be "
20148 \begin_layout Standard
20149 The label is used as anchor and name for the reference.
20150 You can refer to the label using the menu
20152 Insert\SpecialChar \menuseparator
20155 or the toolbar button
20156 \begin_inset Graphics
20157 filename ../images/dialog-show-new-inset_ref.png
20159 scaleBeforeRotation
20164 A grey cross-reference box like this one:
20165 \begin_inset Graphics
20166 filename clipart/referenceQt4.png
20168 scaleBeforeRotation
20172 will be inserted and the cross-reference window appear showing all labels
20174 If you have multiple LyX-documents opened, choose the one you are working
20175 on from the drop-list at the top of the dialog.
20176 You can now sort the labels alphabetically and then choose one.
20177 At the position of the cross-reference box the float number will appear
20181 \begin_layout Standard
20182 It is recommended that you use a protected space between the cross-reference
20183 name and its number to avoid line breaks between them.
20184 If a cross-reference refers to a non-existing label, you will see two question
20185 marks in the output instead of the reference.
20188 \begin_layout Standard
20189 You can change labels at any time by clicking on the label box.
20190 References to the changed label will automatically change its link to the
20191 new label text, so that you don't need to take care about this.
20194 \begin_layout Standard
20198 \begin_inset space ~
20202 \begin_inset space ~
20207 in the cross-reference window sets the cursor before the referred label.
20208 The button text changes then to Go
20209 \begin_inset space ~
20212 Back and you can use it to set the cursor back to the cross-reference.
20213 Right-clicking on a cross-reference box also sets the cursor before the
20214 referenced label but without the possibility of going back.
20217 \begin_layout Subsection
20218 Cross-Reference Formats
20219 \begin_inset CommandInset label
20221 name "sub:Cross-Reference-Formats"
20226 \begin_inset Index idx
20229 \begin_layout Plain Layout
20230 References ! Formats
20238 \begin_layout Standard
20239 There are six varieties of cross-references:
20242 \begin_layout Description
20243 <reference>: prints the float number, this is the default:
20244 \begin_inset CommandInset ref
20246 reference "fig:Two-distorted-images"
20253 \begin_layout Description
20254 (<reference>): prints the float number within two parentheses, this is the
20255 style normally used to reference formulas, especially when the reference
20257 \begin_inset Quotes eld
20261 \begin_inset Quotes erd
20265 \begin_inset CommandInset ref
20274 \begin_layout Description
20275 <page>: prints the page number: Page
20276 \begin_inset space ~
20280 \begin_inset CommandInset ref
20281 LatexCommand pageref
20282 reference "fig:Two-distorted-images"
20289 \begin_layout Description
20291 \begin_inset space ~
20295 \begin_inset space ~
20298 <page>: prints the text "on page" and the page number:
20299 \begin_inset CommandInset ref
20300 LatexCommand vpageref
20301 reference "fig:Two-distorted-images"
20308 \begin_layout Description
20310 \begin_inset space ~
20314 \begin_inset space ~
20318 \begin_inset space ~
20321 <page>: prints the float number, the text "on page", and the page number:
20323 \begin_inset CommandInset ref
20325 reference "fig:Two-distorted-images"
20332 \begin_layout Description
20334 \begin_inset space ~
20337 reference: prints a self-defined cross-reference format.
20338 \begin_inset Newline newline
20342 \begin_inset Note Greyedout
20345 \begin_layout Plain Layout
20350 This feature is only available when you have the LaTeX-package
20359 \begin_inset Index idx
20362 \begin_layout Plain Layout
20363 LaTeX-packages ! prettyref
20369 \begin_inset Index idx
20372 \begin_layout Plain Layout
20373 LaTeX-packages ! refstyle
20384 \begin_inset Newline newline
20387 You can select which LaTeX-package should be used for this feature by setting
20390 Use refstyle (not prettyref) for cross-references
20394 Document\SpecialChar \menuseparator
20395 Settings\SpecialChar \menuseparator
20399 The format is specified by adding the command
20411 (refstyle) to the preamble of the document.
20412 For example redefining all references to figures (which have the label
20414 \begin_inset Quotes eld
20422 \begin_inset Quotes erd
20425 ) can be done with this command
20426 \begin_inset Newline newline
20433 newref{fig}{refcmd={Image on page
20438 \begin_inset Newline newline
20441 For more information about the format, have a look at the package documentations
20443 \begin_inset CommandInset citation
20445 key "prettyref,refstyle"
20452 \begin_layout Description
20454 \begin_inset space ~
20457 reference: prints the caption of the reference:
20458 \begin_inset CommandInset ref
20459 LatexCommand nameref
20460 reference "fig:Two-distorted-images"
20467 \begin_layout Standard
20472 will not print the page number if the label is on the previous, the same,
20475 \begin_inset space \thinspace{}
20479 \begin_inset space \space{}
20483 \begin_inset Quotes eld
20491 \begin_inset Quotes erd
20497 <reference> on page <page>
20499 will not print anything about the page if the label is on the same page.
20502 \begin_layout Standard
20503 The number and current page of the part of the document referred to in the
20504 output is automatically calculated by LaTeX.
20505 The varieties are adjusted in the field
20509 of the cross-reference window that appears when you click on the cross-referenc
20513 \begin_layout Standard
20514 \begin_inset Note Greyedout
20517 \begin_layout Plain Layout
20522 It is recommended to use the LaTeX-package
20527 \begin_inset Index idx
20530 \begin_layout Plain Layout
20531 LaTeX-packages ! refstyle
20541 \begin_inset Index idx
20544 \begin_layout Plain Layout
20545 LaTeX-packages ! prettyref
20550 does not know all of LyX's possible label shortcuts
20554 \begin_layout Plain Layout
20555 \begin_inset Quotes eld
20559 \begin_inset Quotes erd
20562 is for example LyX's shortcut for labels in figure captions.
20567 and is not internationalized.
20575 \begin_layout Standard
20576 \begin_inset Note Greyedout
20579 \begin_layout Plain Layout
20584 Due to a bug in the LaTeX-package
20588 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20589 languages that make the period character active (like French).
20590 For a workaround, see
20591 \begin_inset Newline newline
20595 \begin_inset CommandInset href
20597 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20609 \begin_layout Subsection
20610 Automatic Reference Naming
20611 \begin_inset Index idx
20614 \begin_layout Plain Layout
20615 References ! Automatic Reference Naming
20623 \begin_layout Standard
20629 \begin_inset Index idx
20632 \begin_layout Plain Layout
20633 LaTeX-packages ! hyperref
20638 , that is enabled in the
20646 dialog, provides a very useful feature that cross-references automatically
20647 include the name of the referenced floats (or text parts like
20652 So you will save having to write e.
20653 \begin_inset space \thinspace{}
20657 \begin_inset space \space{}
20661 \begin_inset Quotes eld
20665 \begin_inset Quotes erd
20668 before every reference to a figure.
20669 To use this feature, enable
20673 and insert this line to the LaTeX preamble:
20676 \begin_layout Standard
20692 \begin_layout Standard
20693 When you prefer other reference names than the default ones, for example
20694 you want instead of
20695 \begin_inset Quotes eld
20699 \begin_inset Quotes erd
20703 \begin_inset Quotes eld
20707 \begin_inset space \thinspace{}
20711 \begin_inset Quotes eld
20714 , you can redefine the name by inserting this in the preamble:
20717 \begin_layout Standard
20728 sectionautorefname}
20729 \begin_inset Newline newline
20733 \begin_inset Phantom HPhantom
20736 \begin_layout Plain Layout
20739 \begin_inset space ~
20752 \begin_layout Standard
20753 When you are using another document language than English, replace
20754 \begin_inset Newline newline
20769 , where *** is the name of the language used.
20772 \begin_layout Standard
20773 To get automatic names, but not for certain reference types, for example
20774 not for equations, use this preamble code:
20777 \begin_layout Standard
20785 \begin_inset Newline newline
20795 \begin_inset Newline newline
20806 equationautorefname}
20807 \begin_inset Newline newline
20811 \begin_inset Phantom HPhantom
20814 \begin_layout Plain Layout
20817 \begin_inset space ~
20832 \begin_layout Standard
20833 More about this topic can be found in
20838 \begin_inset CommandInset citation
20847 \begin_layout Standard
20848 \begin_inset Note Greyedout
20851 \begin_layout Plain Layout
20856 Automatic reference naming cannot be used when you use cross-references
20860 \begin_inset space ~
20865 style, as described in section
20866 \begin_inset space ~
20870 \begin_inset CommandInset ref
20872 reference "sub:Cross-Reference-Formats"
20884 \begin_layout Standard
20889 manual is an example where automatic reference naming is used.
20892 \begin_layout Subsection
20894 \begin_inset CommandInset label
20896 name "sub:Reference-Position"
20901 \begin_inset Index idx
20904 \begin_layout Plain Layout
20905 References ! Reference Position
20913 \begin_layout Standard
20919 \begin_inset Index idx
20922 \begin_layout Plain Layout
20923 LaTeX-packages ! hyperref
20936 dialog to link cross-references in the output, you will see that clicking
20937 on an image float reference jumps to the image label.
20938 The caption will be the first text part on the screen, so that you cannot
20939 see the image without scrolling.
20940 This is because the reference link anchor is placed at the position of
20942 With the use of the package
20947 \begin_inset Index idx
20950 \begin_layout Plain Layout
20951 LaTeX-packages ! hypcap
20956 , which is part of the LaTeX-package
20961 \begin_inset Index idx
20964 \begin_layout Plain Layout
20965 LaTeX-packages ! oberdiek
20970 , the link anchor is placed at the beginning of a float.
20971 To use this feature for figure floats, load
20975 in the document preamble with the line
20978 \begin_layout Standard
20983 usepackage[figure]{hypcap}
20986 \begin_layout Standard
20991 for all float types but this is not recommended for stability reasons.
20992 For more information, have a look at
20997 \begin_inset CommandInset citation
21006 \begin_layout Standard
21007 \begin_inset Note Greyedout
21010 \begin_layout Plain Layout
21019 has no effect on references to subfigures.
21027 \begin_layout Section
21029 \begin_inset CommandInset label
21031 name "sec:Float-Placement"
21036 \begin_inset Index idx
21039 \begin_layout Plain Layout
21048 \begin_layout Standard
21049 Right-clicking on a float-box opens a dialog where you can alter the placement
21050 options that LaTeX uses for positioning the float.
21051 \begin_inset Newline newline
21057 \begin_inset space ~
21062 is only useful for two-column documents: If you select it, the float will
21063 span both columns on the page instead of being confined to just one.
21064 \begin_inset Newline newline
21070 \begin_inset space ~
21075 is used to rotate floats, see section
21076 \begin_inset CommandInset ref
21078 reference "sec:Rotated-Floats"
21085 \begin_layout Standard
21086 You can use one ore more of the following options in the float dialog to
21087 set the placement for a particular float when you uncheck the option
21090 \begin_inset space ~
21094 \begin_inset space ~
21102 \begin_layout Description
21104 \begin_inset space ~
21108 \begin_inset space ~
21111 possible try to place the float on the position where it has been inserted
21114 \begin_layout Description
21116 \begin_inset space ~
21120 \begin_inset space ~
21123 page try to place the float at the top of the current page
21126 \begin_layout Description
21128 \begin_inset space ~
21132 \begin_inset space ~
21135 page try to place the float at the bottom of the current page
21138 \begin_layout Description
21140 \begin_inset space ~
21144 \begin_inset space ~
21147 floats try to place the float on its own page
21150 \begin_layout Standard
21151 The order of the above option is
21156 That means, if you use the default placement, LaTeX will first try out
21160 \begin_inset space ~
21164 \begin_inset space ~
21172 \begin_inset space ~
21176 \begin_inset space ~
21181 , and then the others.
21182 If you do not use the default, LaTeX will try only the checked options
21183 but in the same order.
21185 \begin_inset space ~
21188 placements are possible the procedure is internally repeated but it is tried
21189 to put the float on the following page.
21192 \begin_layout Standard
21193 By default, each option has its own rules:
21196 \begin_layout Labeling
21197 \labelwidthstring 00.00.0000
21201 \begin_inset space ~
21205 \begin_inset space ~
21210 only floats occupying less than 70
21211 \begin_inset space \thinspace{}
21214 % of the page can be placed at the top of a page (
21223 \begin_layout Labeling
21224 \labelwidthstring 00.00.0000
21228 \begin_inset space ~
21232 \begin_inset space ~
21237 : only floats occupying less than 30
21238 \begin_inset space \thinspace{}
21241 % of the page can be placed at the bottom of a page.
21251 \begin_layout Labeling
21252 \labelwidthstring 00.00.0000
21256 \begin_inset space ~
21260 \begin_inset space ~
21265 : only if more than 50
21266 \begin_inset space \thinspace{}
21269 % of the page are occupied by floats, several floats can be set together
21280 \begin_layout Standard
21281 If you don't like these rules, you can ignore them by using the additional
21285 \begin_inset space ~
21289 \begin_inset space ~
21295 \begin_inset Newline newline
21298 You can also redefine the rules with LaTeX-commands that are given in parenthese
21299 s after the rules description above.
21300 To increase for example the often too small default of the bottom-rule
21302 \begin_inset space \thinspace{}
21305 % of the page, add this line to your document preamble:
21308 \begin_layout Standard
21315 bottomfraction}{0.5}
21318 \begin_layout Standard
21319 Sometimes you might need, under all circumstances, a float to be placed
21320 exactly at the position where it is inserted.
21321 For this case you can use the option
21324 \begin_inset space ~
21330 Use this option very rarely and only if the document is almost ready to
21331 be printed, because the float is then no longer able to
21332 \begin_inset Quotes eld
21336 \begin_inset Quotes erd
21339 when you change your document and this will often destroy the page layout.
21342 \begin_layout Standard
21343 There are no placement options for text wrap floats, because they are always
21344 surrounded by the text of a certain paragraph.
21345 \begin_inset VSpace bigskip
21351 \begin_layout Standard
21352 Sometimes you have the problem that a float is placed at the top of a page
21353 while its corresponding section starts at the middle of the page, so that
21354 the reader could think the float is part of the previous section.
21355 To avoid this the LaTeX-command
21362 It suppresses a given float placement for the page where it is inserted
21363 and can therefore be used to avoid floats being set before a section starts.
21364 To get this, add these commands to your document preamble:
21367 \begin_layout Standard
21377 \begin_inset Newline newline
21391 \begin_layout Standard
21392 You can define the same for all section headings, like chapters and subsections.
21393 This definition is not recommended to be used for small text parts like
21394 subsubsections because LaTeX may then have problems finding a suitable
21398 \begin_layout Standard
21399 \begin_inset VSpace bigskip
21402 In some cases it is required to have all figures/tables at the end of the
21404 For this purpose the LaTeX-package
21409 \begin_inset Index idx
21412 \begin_layout Plain Layout
21413 LaTeX-packages ! endfloat
21419 It puts all figure and table floats at the end of the document into their
21421 At the original float position a text hint like
21422 \begin_inset Quotes eld
21428 \begin_inset space ~
21434 \begin_inset Quotes erd
21438 The endfloat-package is loaded in the preamble with the line
21441 \begin_layout Standard
21446 usepackage[options]{endfloat}
21449 \begin_layout Standard
21450 There are various package options to format the created figure/table sections.
21451 For more information we refer to the
21456 \begin_inset CommandInset citation
21463 \begin_inset Newline newline
21467 \begin_inset Note Greyedout
21470 \begin_layout Plain Layout
21475 doesn't provide an automatic translation for the text hint, you have to
21476 do this manually, see section
21477 \begin_inset space ~
21481 \begin_inset CommandInset citation
21493 \begin_inset Newline newline
21497 \begin_inset Note Greyedout
21500 \begin_layout Plain Layout
21505 There is currently a bug in
21509 when the caption contains a German
21510 \begin_inset Quotes eld
21514 \begin_inset Quotes erd
21518 Use in this case the command
21519 \begin_inset Quotes eld
21529 \begin_inset Quotes erd
21532 in TeX-Code instead of
21533 \begin_inset Quotes eld
21537 \begin_inset Quotes erd
21548 \begin_layout Standard
21549 \begin_inset VSpace bigskip
21552 For more details about float placements, have a look at LaTeX books,
21553 \begin_inset CommandInset citation
21555 key "latexcompanion,latexguide,latexbook"
21562 \begin_layout Section
21564 \begin_inset CommandInset label
21566 name "sec:Rotated-Floats"
21571 \begin_inset Index idx
21574 \begin_layout Plain Layout
21583 \begin_layout Standard
21584 Especially for wide tables you might have floats rotated.
21585 To rotate a whole float including the caption, right-click on the float-box
21589 \begin_inset space ~
21597 \begin_layout Standard
21598 Rotated floats are always placed on a page of their own (or column of their
21599 own; in case you have a multi-column document).
21600 You can let them span several columns using the float settings option
21603 \begin_inset space ~
21609 Floats are rotated so that you can read them from the outside margin.
21610 To force a certain rotation direction for all pages, you can add either
21619 to the document class options.
21622 \begin_layout Standard
21623 Referencing rotated floats is the same as for normal floats, the caption
21624 format is also the same: Table
21625 \begin_inset space ~
21629 \begin_inset CommandInset ref
21631 reference "tab:Rotated-table"
21635 is an example of a rotated table float.
21638 \begin_layout Standard
21639 \begin_inset Note Greyedout
21642 \begin_layout Plain Layout
21647 Not all DVI-viewers are able to display rotated floats.
21655 \begin_layout Standard
21656 \begin_inset Float table
21661 \begin_layout Plain Layout
21662 \begin_inset Caption
21664 \begin_layout Plain Layout
21665 \begin_inset CommandInset label
21667 name "tab:Rotated-table"
21679 \begin_layout Plain Layout
21681 \begin_inset Tabular
21682 <lyxtabular version="3" rows="1" columns="5">
21683 <features tabularvalignment="middle">
21684 <column alignment="center" valignment="top" width="0">
21685 <column alignment="center" valignment="top" width="0">
21686 <column alignment="center" valignment="top" width="0">
21687 <column alignment="center" valignment="top" width="0">
21688 <column alignment="center" valignment="top" width="0">
21690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21693 \begin_layout Plain Layout
21699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21702 \begin_layout Plain Layout
21708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21711 \begin_layout Plain Layout
21717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21720 \begin_layout Plain Layout
21726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21729 \begin_layout Plain Layout
21748 \begin_layout Section
21750 \begin_inset Index idx
21753 \begin_layout Plain Layout
21762 \begin_layout Standard
21763 Subfloats are for example used when a figure consists of several images.
21764 They are created by inserting a float into an existing float.
21765 The placement of the subfloats can be controlled in the same way as for
21766 paragraphs as shown in table
21767 \begin_inset space ~
21771 \begin_inset CommandInset ref
21773 reference "tab:Two-subtables-side"
21778 \begin_inset CommandInset ref
21780 reference "tab:Two-subtables-upon"
21787 \begin_layout Standard
21788 Referencing subfloats works as for normal floats: Table
21789 \begin_inset space ~
21793 \begin_inset CommandInset ref
21795 reference "tab:This-is-subtable-a"
21800 \begin_inset CommandInset ref
21802 reference "tab:This-is-subtable-b"
21806 are subtables of table
21807 \begin_inset space ~
21811 \begin_inset CommandInset ref
21813 reference "tab:Two-subtables-side"
21820 \begin_layout Standard
21821 \begin_inset Float table
21826 \begin_layout Plain Layout
21827 \begin_inset Caption
21829 \begin_layout Plain Layout
21830 \begin_inset CommandInset label
21832 name "tab:Two-subtables-side"
21836 Two subtables placed side by side.
21844 \begin_layout Plain Layout
21846 \begin_inset space \hfill{}
21850 \begin_inset Float table
21855 \begin_layout Plain Layout
21856 \begin_inset Caption
21858 \begin_layout Plain Layout
21859 \begin_inset CommandInset label
21861 name "tab:This-is-subtable-a"
21865 This is subtable a.
21873 \begin_layout Plain Layout
21875 \begin_inset Tabular
21876 <lyxtabular version="3" rows="1" columns="5">
21877 <features tabularvalignment="middle">
21878 <column alignment="center" valignment="top" width="0">
21879 <column alignment="center" valignment="top" width="0">
21880 <column alignment="center" valignment="top" width="0">
21881 <column alignment="center" valignment="top" width="0">
21882 <column alignment="center" valignment="top" width="0">
21884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21887 \begin_layout Plain Layout
21893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21896 \begin_layout Plain Layout
21902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21905 \begin_layout Plain Layout
21911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21914 \begin_layout Plain Layout
21920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21923 \begin_layout Plain Layout
21940 \begin_inset space \hfill{}
21944 \begin_inset Float table
21949 \begin_layout Plain Layout
21950 \begin_inset Caption
21952 \begin_layout Plain Layout
21953 \begin_inset CommandInset label
21955 name "tab:This-is-subtable-b"
21959 This is subtable b.
21967 \begin_layout Plain Layout
21969 \begin_inset Tabular
21970 <lyxtabular version="3" rows="1" columns="5">
21971 <features tabularvalignment="middle">
21972 <column alignment="center" valignment="top" width="0">
21973 <column alignment="center" valignment="top" width="0">
21974 <column alignment="center" valignment="top" width="0">
21975 <column alignment="center" valignment="top" width="0">
21976 <column alignment="center" valignment="top" width="0">
21978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21981 \begin_layout Plain Layout
21987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21990 \begin_layout Plain Layout
21996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21999 \begin_layout Plain Layout
22005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22008 \begin_layout Plain Layout
22014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22017 \begin_layout Plain Layout
22034 \begin_inset space \hfill{}
22045 \begin_layout Standard
22046 \begin_inset Float table
22051 \begin_layout Plain Layout
22052 \begin_inset Caption
22054 \begin_layout Plain Layout
22055 \begin_inset CommandInset label
22057 name "tab:Two-subtables-upon"
22061 Two subtables placed one above the other.
22062 (a) table with 4 cells, (b) table with 5 cells.
22070 \begin_layout Plain Layout
22072 \begin_inset Float table
22077 \begin_layout Plain Layout
22078 \begin_inset Caption
22080 \begin_layout Plain Layout
22089 \begin_layout Plain Layout
22091 \begin_inset Tabular
22092 <lyxtabular version="3" rows="1" columns="4">
22093 <features tabularvalignment="middle">
22094 <column alignment="center" valignment="top" width="0">
22095 <column alignment="center" valignment="top" width="0">
22096 <column alignment="center" valignment="top" width="0">
22097 <column alignment="center" valignment="top" width="0">
22099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22102 \begin_layout Plain Layout
22108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22111 \begin_layout Plain Layout
22117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22120 \begin_layout Plain Layout
22126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22129 \begin_layout Plain Layout
22148 \begin_layout Plain Layout
22150 \begin_inset Float table
22155 \begin_layout Plain Layout
22156 \begin_inset Caption
22158 \begin_layout Plain Layout
22167 \begin_layout Plain Layout
22169 \begin_inset Tabular
22170 <lyxtabular version="3" rows="1" columns="5">
22171 <features tabularvalignment="middle">
22172 <column alignment="center" valignment="top" width="0">
22173 <column alignment="center" valignment="top" width="0">
22174 <column alignment="center" valignment="top" width="0">
22175 <column alignment="center" valignment="top" width="0">
22176 <column alignment="center" valignment="top" width="0">
22178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22181 \begin_layout Plain Layout
22187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22190 \begin_layout Plain Layout
22196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22199 \begin_layout Plain Layout
22205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22208 \begin_layout Plain Layout
22214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22217 \begin_layout Plain Layout
22241 \begin_layout Section
22242 Floats Side by Side
22243 \begin_inset Index idx
22246 \begin_layout Plain Layout
22247 Floats ! Side by side
22255 \begin_layout Standard
22256 To place floats side by side, as in Figures
22257 \begin_inset space ~
22261 \begin_inset CommandInset ref
22263 reference "fig:Float-left"
22268 \begin_inset CommandInset ref
22270 reference "fig:Float-right"
22279 In it two minipage boxes are inserted.
22283 \begin_layout Plain Layout
22284 Minipages are explained in section
22285 \begin_inset space ~
22289 \begin_inset CommandInset ref
22291 reference "sec:Minipages"
22300 The width is set to 45
22301 \begin_inset space \thinspace{}
22305 \begin_inset space \thinspace{}
22308 column% and the box alignment to
22313 The minipage boxes contain the image and the caption in the same way as
22314 they are in a float.
22315 The only difference is that the image unit
22318 \begin_inset space ~
22322 \begin_inset space ~
22327 is now calculated according to the width of the minipage boxes.
22330 \begin_layout Standard
22331 \begin_inset Float figure
22336 \begin_layout Plain Layout
22337 \begin_inset Box Frameless
22347 height_special "totalheight"
22350 \begin_layout Plain Layout
22352 \begin_inset Graphics
22353 filename clipart/mobius.eps
22356 scaleBeforeRotation
22363 \begin_layout Plain Layout
22364 \begin_inset Caption
22366 \begin_layout Plain Layout
22367 \begin_inset CommandInset label
22369 name "fig:Float-left"
22373 Float on the left side.
22384 \begin_inset space \hfill{}
22388 \begin_inset Box Frameless
22398 height_special "totalheight"
22401 \begin_layout Plain Layout
22403 \begin_inset Graphics
22404 filename clipart/platypus.eps
22407 scaleBeforeRotation
22414 \begin_layout Plain Layout
22415 \begin_inset Caption
22417 \begin_layout Plain Layout
22418 \begin_inset CommandInset label
22420 name "fig:Float-right"
22424 Float on the right side.
22437 \begin_layout Plain Layout
22446 \begin_layout Section
22448 \begin_inset Index idx
22451 \begin_layout Plain Layout
22452 Caption ! Formatting
22458 \begin_inset Index idx
22461 \begin_layout Plain Layout
22462 Floats ! Caption Formatting
22468 \begin_inset CommandInset label
22470 name "sec:Caption-Formatting"
22477 \begin_layout Standard
22482 environment is the default paragraph environment for
22487 On the LyX screen captions appear as label, e.
22488 \begin_inset space \thinspace{}
22492 \begin_inset space \space{}
22496 \begin_inset Quotes eld
22504 \begin_inset Quotes erd
22507 followed by the caption text.
22509 \begin_inset Quotes eld
22513 \begin_inset Quotes erd
22516 is the actual reference number.
22517 By default the label and the number are in the same font as the caption
22518 text and a colon follows the number to divide the label from the text.
22519 This caption format is not suitable for all document formats.
22523 \begin_layout Standard
22524 To change the default caption format, load the LaTeX-package
22529 \begin_inset Index idx
22532 \begin_layout Plain Layout
22533 LaTeX-packages ! caption
22538 in the document preamble with this line:
22541 \begin_layout Standard
22546 usepackage[format definition]{caption}
22549 \begin_layout Standard
22550 To have for example the label and the number in sans-serif bold font and
22551 the table captions always above the table as in this document, use the
22555 \begin_layout Standard
22560 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22563 \begin_layout Standard
22564 You can also define different caption formats for the different float types.
22565 In this case load the
22569 package without format specific options and define the different formats
22570 with the help of the command
22573 \begin_layout Standard
22578 captionsetup[float type]{format definition}
22581 \begin_layout Standard
22582 in the document preamble.
22583 For example the caption formats of Figure
22584 \begin_inset space ~
22588 \begin_inset CommandInset ref
22590 reference "fig:This-is-an-fig"
22595 \begin_inset space ~
22599 \begin_inset CommandInset ref
22601 reference "tab:This-is-an-tab"
22605 can be created using these commands in the document preamble:
22608 \begin_layout Standard
22613 usepackage[tableposition=top]{caption}
22616 \begin_inset Newline newline
22623 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22624 \begin_inset Newline newline
22628 \begin_inset Phantom HPhantom
22631 \begin_layout Plain Layout
22636 captionsetup[figure]{
22642 \begin_inset Newline newline
22647 captionsetup[table]{labelfont={bf,sf}}
22650 \begin_layout Standard
22651 \begin_inset Note Greyedout
22654 \begin_layout Plain Layout
22663 has no effect when a
22668 \begin_inset Index idx
22671 \begin_layout Plain Layout
22672 LaTeX-packages ! KOMA-Script
22677 document class is used.
22678 In this case the document class option
22680 captions=tableheading
22690 \begin_layout Standard
22691 For more information about the package
22695 we refer to its documentation
22696 \begin_inset CommandInset citation
22705 \begin_layout Standard
22706 To change the label name from e.
22707 \begin_inset space \thinspace{}
22711 \begin_inset space \space{}
22715 \begin_inset Quotes eld
22719 \begin_inset Quotes erd
22723 \begin_inset Quotes eld
22727 \begin_inset Quotes erd
22730 use this preamble command:
22733 \begin_layout Standard
22740 fnum@figure}{Image~
22745 \begin_layout Standard
22752 inserts the figure number and
22755 \begin_inset Quotes eld
22761 \begin_inset Quotes erd
22764 creates a protected space.
22767 \begin_layout Standard
22768 \begin_inset VSpace bigskip
22776 \begin_inset Index idx
22779 \begin_layout Plain Layout
22780 LaTeX-packages ! KOMA-Script
22787 article (KOMA-Script)
22795 letter (KOMA-Script)
22799 report (KOMA-Script)
22802 \begin_inset space \thinspace{}
22805 ), you can alternatively to the
22813 's built-in command
22820 For example, to have the caption label in bold, add this command to your
22824 \begin_layout Standard
22829 setkomafont{captionlabel}{
22834 \begin_layout Standard
22835 For more information about
22846 \begin_inset CommandInset citation
22855 \begin_layout Standard
22859 \begin_layout Plain Layout
22863 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22870 \begin_inset Note Note
22873 \begin_layout Plain Layout
22874 The caption format is changed only for this example.
22882 \begin_layout Standard
22883 \begin_inset Float figure
22889 \begin_layout Plain Layout
22891 \begin_inset Graphics
22892 filename clipart/mobius.eps
22895 scaleBeforeRotation
22902 \begin_layout Plain Layout
22903 \begin_inset Caption
22905 \begin_layout Plain Layout
22906 \begin_inset CommandInset label
22908 name "fig:This-is-an-fig"
22912 This is an example figure caption that is longer than one line to show the
22913 different caption format.
22914 Here a self-defined caption format is used.
22927 \begin_layout Standard
22931 \begin_layout Plain Layout
22935 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22944 \begin_layout Standard
22945 \begin_inset Float table
22951 \begin_layout Plain Layout
22952 \begin_inset Caption
22954 \begin_layout Plain Layout
22955 \begin_inset CommandInset label
22957 name "tab:This-is-an-tab"
22961 This is an example table caption that is longer than one line to show the
22962 different caption format.
22963 Here the standard caption format for tables in this document is used.
22971 \begin_layout Plain Layout
22973 \begin_inset Tabular
22974 <lyxtabular version="3" rows="1" columns="5">
22975 <features tabularvalignment="middle">
22976 <column alignment="center" valignment="top" width="0">
22977 <column alignment="center" valignment="top" width="0">
22978 <column alignment="center" valignment="top" width="0">
22979 <column alignment="center" valignment="top" width="0">
22980 <column alignment="center" valignment="top" width="0">
22982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22985 \begin_layout Plain Layout
22991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22994 \begin_layout Plain Layout
23000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23003 \begin_layout Plain Layout
23009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23012 \begin_layout Plain Layout
23018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23021 \begin_layout Plain Layout
23040 \begin_layout Section
23042 \begin_inset Index idx
23045 \begin_layout Plain Layout
23046 Caption ! Placement
23052 \begin_inset Index idx
23055 \begin_layout Plain Layout
23056 Floats ! Caption Placement
23062 \begin_inset CommandInset label
23064 name "sec:Caption-Placement"
23071 \begin_layout Standard
23072 The common caption placement rule is:
23075 \begin_layout Description
23076 Figure: Caption is set below the figure
23079 \begin_layout Description
23080 Table: Caption is set above the table
23083 \begin_layout Standard
23084 Having the caption above the table is unfortunately not supported in LaTeX's
23086 That means if you are using the document classes
23102 there will be no space between the caption and the table.
23103 To insert the necessary space, add the following option to the load command
23104 of the LaTeX-package
23108 in your document preamble
23112 \begin_layout Plain Layout
23114 \begin_inset space ~
23118 \begin_inset CommandInset ref
23120 reference "sec:Caption-Formatting"
23124 for more information of the package
23136 \begin_layout Standard
23142 \begin_layout Standard
23148 \begin_inset Index idx
23151 \begin_layout Plain Layout
23152 LaTeX-packages ! KOMA-Script
23159 article (KOMA-Script)
23167 letter (KOMA-Script)
23171 report (KOMA-Script)
23174 \begin_inset space \thinspace{}
23177 ), you can alternatively to the
23181 package set the document class option
23183 captions=tableheading
23188 \begin_layout Standard
23189 \begin_inset VSpace bigskip
23192 It is also possible to set the caption beside a figure or table.
23193 To get this the LaTeX-package
23198 \begin_inset Index idx
23201 \begin_layout Plain Layout
23202 LaTeX-packages ! sidecap
23207 has to be loaded in the document preamble with the line
23210 \begin_layout Standard
23215 usepackage[option]{sidecap}
23218 \begin_layout Standard
23219 If you set no option, the caption is placed on the side of the outer page
23220 margin – to the right on odd pages, to the left on even pages.
23221 You can change the placement to inner margin with the option
23226 To force the placement always to the right or left, use the option
23237 \begin_layout Standard
23241 \begin_layout Plain Layout
23251 \begin_inset Note Note
23254 \begin_layout Plain Layout
23255 The following section will only be displayed when the LaTeX-package
23267 \begin_layout Standard
23268 To place in LyX the caption of a float on the side, it is necessary to add
23269 these commands to the document preamble:
23272 \begin_layout Standard
23274 \begin_inset CommandInset line
23285 \begin_layout Standard
23293 \begin_inset Newline newline
23297 \begin_inset Phantom HPhantom
23300 \begin_layout Plain Layout
23303 \begin_inset space ~
23318 \begin_inset Newline newline
23322 \begin_inset Phantom HPhantom
23325 \begin_layout Plain Layout
23328 \begin_inset space ~
23343 \begin_inset Newline newline
23347 \begin_inset Phantom HPhantom
23350 \begin_layout Plain Layout
23353 \begin_inset space ~
23363 renewenvironment{table}{
23370 \begin_layout Standard
23378 \begin_inset Newline newline
23382 \begin_inset Phantom HPhantom
23385 \begin_layout Plain Layout
23388 \begin_inset space ~
23403 \begin_inset Newline newline
23407 \begin_inset Phantom HPhantom
23410 \begin_layout Plain Layout
23413 \begin_inset space ~
23430 \begin_layout Standard
23438 \begin_inset Newline newline
23442 \begin_inset Phantom HPhantom
23445 \begin_layout Plain Layout
23448 \begin_inset space ~
23463 \begin_inset Newline newline
23467 \begin_inset Phantom HPhantom
23470 \begin_layout Plain Layout
23473 \begin_inset space ~
23488 \begin_inset Newline newline
23492 \begin_inset Phantom HPhantom
23495 \begin_layout Plain Layout
23498 \begin_inset space ~
23508 renewenvironment{figure}{
23515 \begin_layout Standard
23523 \begin_inset Newline newline
23527 \begin_inset Phantom HPhantom
23530 \begin_layout Plain Layout
23533 \begin_inset space ~
23548 \begin_inset Newline newline
23552 \begin_inset Phantom HPhantom
23555 \begin_layout Plain Layout
23558 \begin_inset space ~
23575 \begin_layout Standard
23577 \begin_inset CommandInset line
23588 \begin_layout Standard
23589 The commands allow you to redefine the floats so that the caption is set
23591 For figure floats use the command
23594 \begin_layout Standard
23602 \begin_layout Standard
23603 in TeX-Code before the float.
23604 After the float insert the command
23607 \begin_layout Standard
23615 \begin_layout Standard
23616 in TeX-Code to get back to the original float definition.
23619 \begin_layout Standard
23620 For table floats use the corresponding commands
23623 \begin_layout Standard
23637 \begin_layout Standard
23639 \begin_inset space ~
23643 \begin_inset CommandInset ref
23645 reference "fig:cap-beside-fig"
23650 \begin_inset space ~
23654 \begin_inset CommandInset ref
23656 reference "tab:cap-beside-tab"
23660 are examples where the caption is set beside.
23663 \begin_layout Standard
23664 You can see in the examples that the caption text appears at the top of
23665 the floats for table floats and at the bottom for figure floats.
23666 To change this, you can use the command
23669 \begin_layout Standard
23674 sidecaptionvpos{float type}{placement}
23677 \begin_layout Standard
23678 in the document preamble or in TeX-Code before the float.
23679 The float type is either
23687 , the placement can be
23688 \begin_inset Quotes eld
23696 \begin_inset Quotes erd
23700 \begin_inset Quotes eld
23708 \begin_inset Quotes erd
23712 \begin_inset Quotes eld
23720 \begin_inset Quotes erd
23724 To have for example the caption of figure floats vertically centered, use
23728 \begin_layout Standard
23733 sidecaptionvpos{figure}{c}
23736 \begin_layout Standard
23737 This was used for Figure
23738 \begin_inset space ~
23742 \begin_inset CommandInset ref
23744 reference "fig:cap-beside-fig-2"
23751 \begin_layout Standard
23752 \begin_inset VSpace medskip
23755 For more information about the package
23759 we refer to its documentation
23760 \begin_inset CommandInset citation
23769 \begin_layout Standard
23770 \begin_inset Note Greyedout
23773 \begin_layout Plain Layout
23783 \begin_inset Index idx
23786 \begin_layout Plain Layout
23787 LaTeX-packages ! hypcap
23792 , described in section
23793 \begin_inset space ~
23797 \begin_inset CommandInset ref
23799 reference "sub:Reference-Position"
23803 , has no effect on floats with the caption set beside.
23811 \begin_layout Standard
23815 \begin_layout Plain Layout
23827 \begin_layout Standard
23828 \begin_inset Float figure
23833 \begin_layout Plain Layout
23834 \begin_inset Graphics
23835 filename clipart/escher-lsd.eps
23837 scaleBeforeRotation
23844 \begin_layout Plain Layout
23845 \begin_inset Caption
23847 \begin_layout Plain Layout
23848 \begin_inset CommandInset label
23850 name "fig:cap-beside-fig"
23854 This is a caption beside a figure.
23867 \begin_layout Standard
23871 \begin_layout Plain Layout
23883 \begin_layout Standard
23884 \begin_inset Float table
23889 \begin_layout Plain Layout
23890 \begin_inset Caption
23892 \begin_layout Plain Layout
23893 \begin_inset CommandInset label
23895 name "tab:cap-beside-tab"
23899 This is a caption beside a table.
23907 \begin_layout Plain Layout
23908 \begin_inset Tabular
23909 <lyxtabular version="3" rows="4" columns="5">
23910 <features tabularvalignment="middle">
23911 <column alignment="center" valignment="top" width="0">
23912 <column alignment="center" valignment="top" width="0">
23913 <column alignment="center" valignment="top" width="0">
23914 <column alignment="center" valignment="top" width="0">
23915 <column alignment="center" valignment="top" width="0">
23917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23920 \begin_layout Plain Layout
23926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23929 \begin_layout Plain Layout
23935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23938 \begin_layout Plain Layout
23944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23947 \begin_layout Plain Layout
23953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23956 \begin_layout Plain Layout
23964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23967 \begin_layout Plain Layout
23973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23976 \begin_layout Plain Layout
23982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23985 \begin_layout Plain Layout
23991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23994 \begin_layout Plain Layout
24000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24003 \begin_layout Plain Layout
24011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24014 \begin_layout Plain Layout
24020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24023 \begin_layout Plain Layout
24029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24032 \begin_layout Plain Layout
24038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24041 \begin_layout Plain Layout
24047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24050 \begin_layout Plain Layout
24058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24061 \begin_layout Plain Layout
24067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24070 \begin_layout Plain Layout
24076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24079 \begin_layout Plain Layout
24085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24088 \begin_layout Plain Layout
24094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24097 \begin_layout Plain Layout
24116 \begin_layout Standard
24120 \begin_layout Plain Layout
24132 \begin_layout Standard
24136 \begin_layout Plain Layout
24140 sidecaptionvpos{figure}{c}
24146 \begin_inset Float figure
24151 \begin_layout Plain Layout
24152 \begin_inset Graphics
24153 filename clipart/escher-lsd.eps
24155 scaleBeforeRotation
24162 \begin_layout Plain Layout
24163 \begin_inset Caption
24165 \begin_layout Plain Layout
24166 \begin_inset CommandInset label
24168 name "fig:cap-beside-fig-2"
24172 This is a vertically centered caption beside a figure.
24185 \begin_layout Standard
24189 \begin_layout Plain Layout
24201 \begin_layout Standard
24205 \begin_layout Plain Layout
24215 \begin_inset Note Note
24218 \begin_layout Plain Layout
24219 The following will be displayed when the LaTeX-package
24231 \begin_layout Standard
24232 You need to install the LaTeX-package
24236 to see the following part of this section in the output.
24239 \begin_layout Standard
24243 \begin_layout Plain Layout
24255 \begin_layout Section
24257 \begin_inset Index idx
24260 \begin_layout Plain Layout
24261 Floats ! Float Lists
24269 \begin_layout Standard
24270 Similar to the table of contents where the sections of the document are
24271 listed, there are listings for all float types, like the figures of the
24273 You can insert them via the
24275 Insert\SpecialChar \menuseparator
24277 \begin_inset space ~
24281 \begin_inset space ~
24289 \begin_layout Standard
24290 The list entries are the float captions or its short title, the float number,
24291 and the page number where they appear in the document.
24294 \begin_layout Standard
24295 You can find the list of figures and tables at the end of this document.
24298 \begin_layout Chapter
24302 \begin_layout Section
24304 \begin_inset Index idx
24307 \begin_layout Plain Layout
24316 \begin_layout Standard
24317 Notes are inserted with the toolbar button
24318 \begin_inset Graphics
24319 filename ../images/note-insert.png
24321 scaleBeforeRotation
24327 Insert\SpecialChar \menuseparator
24331 There are three types of notes:
24334 \begin_layout Description
24336 \begin_inset space ~
24339 Note This note type is for internal notes that won't appear in the output.
24340 Its note-box looks like this:
24341 \begin_inset Newline newline
24345 \begin_inset Newline newline
24349 \begin_inset Graphics
24350 filename clipart/LyXNoteImageQt4.png
24353 scaleBeforeRotation
24358 \begin_inset Note Note
24361 \begin_layout Plain Layout
24362 This is text in a note box that doesn't appear in the output.
24370 \begin_layout Description
24371 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24372 ent, when you export the document to LaTeX via the menu
24374 File\SpecialChar \menuseparator
24375 Export\SpecialChar \menuseparator
24376 LaTeX (pdflatex) / (plain)
24379 Its note-box looks like this:
24380 \begin_inset Newline newline
24384 \begin_inset Newline newline
24388 \begin_inset Graphics
24389 filename clipart/CommentNoteImageQt4.png
24392 scaleBeforeRotation
24397 \begin_inset Note Comment
24400 \begin_layout Plain Layout
24401 This is text in a note box that only appears as comment in LaTeX-files.
24409 \begin_layout Description
24411 \begin_inset space ~
24414 Out This note will appear in the output as grey text.
24415 Its note-box looks like this:
24416 \begin_inset Newline newline
24420 \begin_inset Newline newline
24424 \begin_inset Graphics
24425 filename clipart/GreyedOutNoteImageQt4.png
24428 scaleBeforeRotation
24433 \begin_inset Newline newline
24440 \begin_layout Plain Layout
24444 renewenvironment{lyxgreyedout}
24447 \begin_layout Plain Layout
24451 textcolor[gray]{0.8}
24461 \begin_inset Note Greyedout
24464 \begin_layout Plain Layout
24469 \begin_layout Plain Layout
24470 This is an example footnote within a greyed out note.
24475 of a comment that appears in the output as grey text.
24484 \begin_layout Plain Layout
24488 renewenvironment{lyxgreyedout}
24491 \begin_layout Plain Layout
24505 \begin_inset Note Note
24508 \begin_layout Plain Layout
24509 The greyed out note is here redefined to show it with the original LyX definitio
24510 n because greyed out notes are redefined in the preamble of this document,
24511 as described below, to have blue text.
24517 \begin_inset Newline newline
24521 \begin_inset Newline newline
24524 As you can see in the example, the first line of greyed out notes is a bit
24525 indented and greyed out notes can have footnotes.
24528 \begin_layout Standard
24529 \begin_inset VSpace bigskip
24532 When you use the toolbar button
24533 \begin_inset Graphics
24534 filename ../images/note-insert.png
24536 scaleBeforeRotation
24543 \begin_inset space ~
24549 You can switch between the five note types by right-clicking on the note-box.
24554 If you want to turn existing text into a note, mark it and click on the
24568 To change a note to text, press the backspace key when the cursor is in
24569 the first position of a note, or press the delete key when the cursor is
24570 in the very last position of the note, respectively.
24573 \begin_layout Standard
24574 \begin_inset VSpace bigskip
24577 You can change the text color of the greyed out notes in the preamble with
24578 the following command:
24581 \begin_layout Standard
24586 renewenvironment{lyxgreyedout}
24587 \begin_inset Newline newline
24591 \begin_inset Phantom HPhantom
24594 \begin_layout Plain Layout
24597 \begin_inset space ~
24614 \begin_layout Standard
24615 The available colors and the method to define colors is explained in section
24616 \begin_inset space ~
24620 \begin_inset CommandInset ref
24622 reference "sec:Colored-Tables"
24629 \begin_layout Standard
24630 Notes that appear in blue in this document are set using greyed out notes
24634 \begin_layout Section
24636 \begin_inset CommandInset label
24638 name "sec:Footnotes"
24643 \begin_inset Index idx
24646 \begin_layout Plain Layout
24653 \begin_inset Index idx
24656 \begin_layout Plain Layout
24665 \begin_layout Standard
24666 Footnotes can be inserted using the toolbar button
24667 \begin_inset Graphics
24668 filename ../images/footnote-insert.png
24670 scaleBeforeRotation
24676 Insert\SpecialChar \menuseparator
24688 then the following footnote-box:
24689 \begin_inset Graphics
24690 filename clipart/footnoteQt4.png
24692 scaleBeforeRotation
24700 where you can enter the footnote text.
24701 If you want to turn existing text into a footnote, mark it and click on
24723 to text, press the Backspace key when the cursor is in the first position
24732 , or press the Delete key when the cursor is in the very last position of
24744 \begin_layout Standard
24745 Here is an example footnote:
24753 \begin_layout Plain Layout
24754 \begin_inset CommandInset label
24756 name "foot:This-is-an"
24760 This is an example footnote.
24773 \begin_layout Plain Layout
24777 newcounter{MyRepeatFoot}
24780 \begin_layout Plain Layout
24784 setcounter{MyRepeatFoot}{
24794 \begin_layout Standard
24795 The footnote will appear in the output as a superscript number at the text
24796 position where the footnote box is placed.
24797 The footnote text is placed at the bottom of the current page.
24798 The footnote number is calculated by LaTeX; the numbers are consecutive.
24799 It depends on your document-class, whether the footnote number is reset
24803 \begin_layout Standard
24804 Footnotes can be referenced like floats: Insert a label into the footnote
24805 and cross-reference this label in the text as described in section
24806 \begin_inset space ~
24810 \begin_inset CommandInset ref
24812 reference "sec:Referencing-Floats"
24817 \begin_inset Newline newline
24820 This is a cross-reference of Footnote
24821 \begin_inset space ~
24825 \begin_inset CommandInset ref
24827 reference "foot:This-is-an"
24834 \begin_layout Standard
24835 \begin_inset VSpace defskip
24838 Footnotes in tables are not printed by LaTeX due to technical reasons.
24839 However there exists another method to print them: Instead of the footnote
24846 is inserted as TeX-code.
24847 The text of the footnote is entered as an argument of the TeX-code command
24855 \begin_inset Newline newline
24858 This was done for the following table with the command
24861 \begin_layout Standard
24868 Printed table footnote.
24873 \begin_layout Standard
24874 \begin_inset Tabular
24875 <lyxtabular version="3" rows="2" columns="1">
24876 <features tabularvalignment="middle">
24877 <column alignment="center" valignment="top" width="0">
24879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24882 \begin_layout Plain Layout
24883 This an example text.
24887 \begin_layout Plain Layout
24888 This footnote will not be printed!
24900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24903 \begin_layout Plain Layout
24904 This an example text.
24908 \begin_layout Plain Layout
24931 \begin_layout Plain Layout
24940 Printed table footnote.
24944 \begin_layout Plain Layout
24954 \begin_layout Standard
24955 Footnotes in longtables are described in section
24956 \begin_inset space ~
24960 \begin_inset CommandInset ref
24962 reference "sub:Footnotes-in-Longtables"
24969 \begin_layout Standard
24970 Footnotes in minipage boxes are printed, but inside the box and with a different
24971 numbering because a minipage box is like a page inside a page.
24972 (For more about minipages, see section
24973 \begin_inset space ~
24977 \begin_inset CommandInset ref
24979 reference "sec:Minipages"
24983 .) To get a footnote in the minipage that is output at the bottom of the
24984 page like normal footnotes, also use the method of
24999 \begin_layout Standard
25000 \begin_inset Box Frameless
25010 height_special "totalheight"
25013 \begin_layout Plain Layout
25014 This an example text in a minipage.
25018 \begin_layout Plain Layout
25019 Footnote in the minipage.
25027 \begin_layout Plain Layout
25028 This an example text in a minipage.
25032 \begin_layout Plain Layout
25049 \begin_layout Standard
25053 \begin_layout Plain Layout
25062 Footnote outside the minipage.
25066 \begin_layout Plain Layout
25076 \begin_layout Standard
25077 \begin_inset VSpace defskip
25083 \begin_layout Standard
25084 To refer to the same footnote several times without printing the footnote
25085 text every time, use the command
25089 footnotemark[number]
25092 \begin_inset Newline newline
25095 As you do not know the number of the repeating footnote while you are writing
25096 the text, you have to store its number.
25097 For the following footnote mark example, these commands were inserted in
25098 TeX-code after Footnote
25099 \begin_inset space ~
25103 \begin_inset CommandInset ref
25105 reference "foot:This-is-an"
25109 to store the footnote number:
25112 \begin_layout Standard
25117 newcounter{MyRepeatFoot}
25118 \begin_inset Newline newline
25123 setcounter{MyRepeatFoot}{
25128 \begin_layout Standard
25129 The footnote mark was then created with this command:
25132 \begin_layout Standard
25142 \begin_layout Standard
25143 Here is a repeated footnote:
25151 \begin_layout Plain Layout
25165 \begin_layout Standard
25166 If you want to repeat the previous footnote, you can omit the storage of
25167 the footnote number and just use this command instead:
25170 \begin_layout Standard
25180 \begin_layout Standard
25181 Here is another repeated footnote:
25189 \begin_layout Plain Layout
25203 \begin_layout Subsection
25205 \begin_inset CommandInset label
25207 name "sub:Footnote-Numbering"
25212 \begin_inset Index idx
25215 \begin_layout Plain Layout
25216 Footnotes ! Numbering
25224 \begin_layout Standard
25225 To reset the footnote number back to 1 after each section
25227 , add this command to your document preamble:
25230 \begin_layout Standard
25235 @addtoreset{footnote}{section}
25238 \begin_layout Standard
25239 \begin_inset VSpace bigskip
25242 The following preamble command changes the footnote numbering style to small
25246 \begin_layout Standard
25258 \begin_layout Standard
25262 \begin_layout Plain Layout
25275 This is a footnote with roman numbering:
25279 \begin_layout Plain Layout
25280 This is an example footnote with roman numbering.
25288 \begin_layout Standard
25289 To change the numbering style to capital roman numerals replace in the command
25304 \begin_inset Quotes eld
25308 \begin_inset Quotes erd
25311 footnotes with capital or small Latin letters use
25325 \begin_inset Quotes eld
25329 \begin_inset Quotes erd
25332 footnotes with symbols use
25341 \begin_layout Standard
25342 \begin_inset Note Greyedout
25345 \begin_layout Plain Layout
25350 You can only number 26 footnotes with Latin letters, because this numbering
25351 is limited to single letters.
25357 \begin_inset Newline newline
25361 \begin_inset Note Greyedout
25364 \begin_layout Plain Layout
25369 You can only number 9 footnotes with symbols.
25377 \begin_layout Standard
25378 To return to the default numbering style after you have changed to another
25391 in the command above.
25395 \begin_layout Plain Layout
25411 \begin_layout Standard
25412 \begin_inset VSpace bigskip
25418 \begin_layout Standard
25419 If you want to have footnotes numbered in the scheme
25420 \begin_inset Quotes eld
25424 \begin_inset Quotes erd
25427 , add the following command to your document preamble:
25430 \begin_layout Standard
25435 numberwithin{footnote}{chapter}
25438 \begin_layout Standard
25439 To be able to use the command
25448 \begin_inset space ~
25453 in the document settings the option
25456 \begin_inset space ~
25460 \begin_inset space ~
25464 \begin_inset space ~
25472 \begin_layout Standard
25476 \begin_layout Plain Layout
25480 numberwithin{footnote}{chapter}
25485 This is another example footnote:
25491 \begin_layout Plain Layout
25492 This is a footnote numbered in the scheme
25493 \begin_inset Quotes eld
25497 \begin_inset Quotes erd
25511 \begin_layout Plain Layout
25527 \begin_layout Standard
25528 \begin_inset Note Greyedout
25531 \begin_layout Plain Layout
25542 always prints out the footnote number as arabic number; previous redefinitions
25543 to get non-arabic numbers are overwritten.
25551 \begin_layout Standard
25552 So to get for example the scheme
25553 \begin_inset Quotes eld
25559 \begin_inset Quotes erd
25562 , use this command instead of
25571 \begin_layout Standard
25585 \begin_layout Subsection
25587 \begin_inset Index idx
25590 \begin_layout Plain Layout
25591 Footnotes ! Placement
25599 \begin_layout Standard
25600 If you have several footnotes in one page, they appear without vertical
25601 space between them at the bottom of the page.
25602 To make them more readable you can e.
25603 \begin_inset space \thinspace{}
25607 \begin_inset space \space{}
25611 \begin_inset space \thinspace{}
25614 mm space with the following preamble command:
25617 \begin_layout Standard
25627 \begin_inset Newline newline
25641 \begin_layout Standard
25642 \begin_inset VSpace bigskip
25645 In a two-column document the footnotes appear at the bottom of every column,
25647 \begin_inset space ~
25651 \begin_inset CommandInset ref
25653 reference "fig:Standard-footnote-placement"
25658 If the footnotes should only appear at the bottom of the right column,
25660 \begin_inset space ~
25664 \begin_inset CommandInset ref
25666 reference "fig:Footnote-placement-in"
25670 , use the LaTeX-package
25675 \begin_inset Index idx
25678 \begin_layout Plain Layout
25679 LaTeX-packages ! ftnright
25684 with this command in the document preamble:
25687 \begin_layout Standard
25692 usepackage{ftnright}
25695 \begin_layout Standard
25696 \begin_inset Float figure
25702 \begin_layout Plain Layout
25706 \begin_layout Plain Layout
25716 \begin_inset Graphics
25717 filename clipart/without_fntright.pdf
25719 scaleBeforeRotation
25727 \begin_layout Plain Layout
25737 \begin_layout Plain Layout
25738 \begin_inset Caption
25740 \begin_layout Plain Layout
25741 \begin_inset CommandInset label
25743 name "fig:Standard-footnote-placement"
25747 Standard footnote placement in two-column documents.
25760 \begin_layout Standard
25761 \begin_inset Float figure
25767 \begin_layout Plain Layout
25771 \begin_layout Plain Layout
25781 \begin_inset Graphics
25782 filename clipart/with_fntright.pdf
25784 scaleBeforeRotation
25792 \begin_layout Plain Layout
25802 \begin_layout Plain Layout
25803 \begin_inset Caption
25805 \begin_layout Plain Layout
25806 \begin_inset CommandInset label
25808 name "fig:Footnote-placement-in"
25812 Footnote placement in two-column documents when the LaTeX-package
25829 \begin_layout Standard
25830 \begin_inset VSpace bigskip
25833 In some scientific literature it is usual to collect the footnotes and print
25834 them in a separate paragraph at the end of a section, as in Figure
25835 \begin_inset space ~
25839 \begin_inset CommandInset ref
25841 reference "fig:Endnotes"
25846 They are then called
25847 \begin_inset Quotes eld
25851 \begin_inset Quotes erd
25855 \begin_inset Index idx
25858 \begin_layout Plain Layout
25864 To use endnotes instead of footnotes in your document, load in the menu
25867 Document\SpecialChar \menuseparator
25868 Settings\SpecialChar \menuseparator
25874 \begin_inset space ~
25878 \begin_inset space ~
25884 To insert the collected footnotes, insert the command
25887 \begin_layout Standard
25895 \begin_layout Standard
25896 in TeX-Code at the end of a section or chapter.
25899 \begin_layout Standard
25900 \begin_inset Float figure
25905 \begin_layout Plain Layout
25910 \begin_layout Plain Layout
25920 \begin_inset Graphics
25921 filename clipart/endnotes.pdf
25922 scaleBeforeRotation
25930 \begin_layout Plain Layout
25940 \begin_layout Plain Layout
25941 \begin_inset Caption
25943 \begin_layout Plain Layout
25944 \begin_inset CommandInset label
25946 name "fig:Endnotes"
25950 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25964 \begin_layout Standard
25965 \begin_inset VSpace medskip
25968 The paragraph heading for the endnotes isn't automatically translated into
25969 the document language, this must be done manually.
25970 The following preamble command translates the default English
25971 \begin_inset Quotes eld
25975 \begin_inset Quotes erd
25979 \begin_inset Quotes eld
25983 \begin_inset Quotes erd
25989 \begin_layout Standard
25996 notesname}{Anmerkungen}
25999 \begin_layout Standard
26000 \begin_inset VSpace medskip
26003 The numbering of endnotes can be changed like the footnote numbering as
26004 described in section
26005 \begin_inset space ~
26009 \begin_inset CommandInset ref
26011 reference "sub:Footnote-Numbering"
26015 ; just replace the command
26028 To reset the endnote number use the command
26034 as described in section
26035 \begin_inset space ~
26039 \begin_inset CommandInset ref
26041 reference "sub:Footnote-Numbering"
26045 and replace the command parameter
26056 \begin_layout Standard
26057 For endnotes there is the command
26061 endnotemark[number]
26063 similar to the command
26069 , that is described in section
26070 \begin_inset space ~
26074 \begin_inset CommandInset ref
26076 reference "sec:Footnotes"
26083 \begin_layout Standard
26084 \begin_inset VSpace bigskip
26087 Footnotes can also be placed in the page margin and the footnote text alignment
26088 can be changed, see the LaTeX-package
26093 \begin_inset Index idx
26096 \begin_layout Plain Layout
26097 LaTeX-packages ! footmisc
26103 \begin_inset CommandInset citation
26109 for more information about this.
26112 \begin_layout Standard
26113 For various further footnote formatting issues have a look at LaTeX-books,
26115 \begin_inset CommandInset citation
26117 key "latexcompanion,latexguide,latexbook"
26124 \begin_layout Section
26126 \begin_inset Index idx
26129 \begin_layout Plain Layout
26130 Notes ! Margin Notes
26138 \begin_layout Standard
26139 Margin notes look and behave in LyX like footnotes.
26140 They are inserted via the menu
26142 Insert\SpecialChar \menuseparator
26144 \begin_inset space ~
26149 or the toolbar button
26150 \begin_inset Graphics
26151 filename ../images/marginalnote-insert.png
26153 scaleBeforeRotation
26168 \begin_inset Quotes eld
26172 \begin_inset Quotes erd
26175 appears where you can enter the text of the margin note.
26178 \begin_layout Standard
26179 At the side is an example margin note.
26184 \begin_inset Marginal
26187 \begin_layout Plain Layout
26188 This is a margin note.
26196 \begin_layout Standard
26197 Margin notes appear at the right side in single-sided documents.
26198 In double-sided documents they appear in the outer margin – left on even
26199 pages, right on odd pages.
26200 The text of margin notes is aligned opposite to the outer margin – right-aligne
26201 d when the note appears in the left margin.
26202 The first line of the margin note is placed at the position of the text
26203 line where it is inserted in the document.
26206 \begin_layout Standard
26207 \begin_inset VSpace bigskip
26210 To place the margin note in the inner margin, add the command
26213 \begin_layout Standard
26221 \begin_layout Standard
26222 in TeX-Code before a margin note.
26223 The new placement is valid for all subsequent margin notes.
26228 \begin_layout Plain Layout
26238 \begin_inset Marginal
26241 \begin_layout Plain Layout
26242 This is a margin note in the inner margin.
26250 \begin_inset Newline newline
26256 \begin_inset Note Greyedout
26259 \begin_layout Plain Layout
26264 There is often not enough space in the inner margin so that the notes are
26265 not correctly displayed in the output.
26273 \begin_layout Standard
26274 To return to the default placement insert the command
26277 \begin_layout Standard
26285 \begin_layout Standard
26290 \begin_layout Plain Layout
26300 \begin_inset Note Greyedout
26303 \begin_layout Plain Layout
26308 The command is ignored when it is within a paragraph where also the command
26323 \begin_layout Standard
26324 \begin_inset VSpace bigskip
26331 \begin_inset Marginal
26334 \begin_layout Plain Layout
26335 AVeryLongMarginParWord that isn't hyphenated.
26343 Similar to the case described in section
26344 \begin_inset space ~
26348 \begin_inset CommandInset ref
26350 reference "sub:Multiple-Lines-in"
26354 , long words cannot be hyphenated when they are the first word in a margin
26356 To avoid this, insert 0
26357 \begin_inset space \thinspace{}
26360 pt horizontal space before the word
26365 \begin_inset Marginal
26368 \begin_layout Plain Layout
26369 \begin_inset space \hspace*{}
26373 AVeryLongMarginParWord that is hyphenated.
26381 \begin_layout Standard
26382 \begin_inset VSpace bigskip
26388 \begin_layout Standard
26389 \begin_inset Note Greyedout
26392 \begin_layout Plain Layout
26397 Margin notes can normally not be used inside tables, floats, and footnotes.
26405 \begin_layout Standard
26406 \begin_inset VSpace bigskip
26412 \begin_layout Standard
26416 \begin_layout Plain Layout
26426 \begin_inset Note Note
26429 \begin_layout Plain Layout
26430 The following section will only be displayed when the LaTeX-package
26442 \begin_layout Standard
26443 This restriction can be evaded by using the LaTeX-package
26448 \begin_inset Index idx
26451 \begin_layout Plain Layout
26452 LaTeX-packages ! marginnote
26458 By adding these two lines to your document preamble, the command used by
26459 LyX for margin notes is redefined to use the command provided by the
26466 \begin_layout Standard
26471 usepackage{marginnote}
26472 \begin_inset Newline newline
26484 \begin_layout Standard
26485 This is also used in this document because
26489 has another useful feature: You can set a vertical offset for the note.
26490 This is often needed when too many margin notes are too close together
26491 or for a better page layout.
26492 The offset is set in LyX as TeX-Code directly after the margin note in
26496 \begin_layout Standard
26502 \begin_layout Standard
26503 where the offset is a length with one of the units listed in Table
26504 \begin_inset space ~
26508 \begin_inset CommandInset ref
26510 reference "tab:Units"
26515 A negative value shifts the note up, a positive value shifts it down.
26519 For example the margin note beside this text line is shifted up 1.5
26520 \begin_inset space \thinspace{}
26523 cm with the TeX-Code-command
26524 \begin_inset Quotes eld
26534 \begin_inset Quotes erd
26538 \begin_inset Marginal
26541 \begin_layout Plain Layout
26542 This margin note is shifted up 1.5
26543 \begin_inset space \thinspace{}
26546 cm from its original position.
26558 \begin_layout Plain Layout
26568 \begin_layout Standard
26569 \begin_inset VSpace medskip
26576 you can also change the alignment of the text in the margin note.
26577 For example the commands
26580 \begin_layout Standard
26587 raggedleftmarginnote}{
26590 \begin_inset Newline newline
26597 raggedrightmarginnote}{
26602 \begin_layout Standard
26603 set the alignment to centered.
26608 raggedleftmarginnote
26610 denotes margin notes that appear at the left side.
26617 \begin_layout Plain Layout
26623 raggedleftmarginnote}{
26628 \begin_layout Plain Layout
26634 raggedrightmarginnote}{
26642 \begin_inset Marginal
26645 \begin_layout Plain Layout
26646 The text of this margin note is centered.
26657 \begin_layout Standard
26664 raggedleftmarginnote}{
26667 \begin_inset Newline newline
26674 raggedrightmarginnote}{
26683 \begin_layout Plain Layout
26689 raggedleftmarginnote}{
26694 \begin_layout Plain Layout
26700 raggedrightmarginnote}{
26710 \begin_layout Standard
26711 \begin_inset VSpace medskip
26714 For the other features of
26718 refer to its documentation
26719 \begin_inset CommandInset citation
26728 \begin_layout Standard
26729 \begin_inset VSpace bigskip
26732 You can adjust the layout of margin notes by changing its definition.
26733 To create for example a header for all margin notes with the underlined,
26734 sans-serif, and bold header text
26735 \begin_inset Quotes eld
26747 \begin_inset Quotes erd
26750 , add this to your document preamble:
26753 \begin_layout Standard
26763 \begin_inset Newline newline
26773 \begin_inset Newline newline
26777 \begin_inset Phantom HPhantom
26780 \begin_layout Plain Layout
26783 \begin_inset space ~
26799 underbar{Attention!}}}%
26800 \begin_inset Newline newline
26804 \begin_inset Phantom HPhantom
26807 \begin_layout Plain Layout
26810 \begin_inset space ~
26827 \begin_layout Standard
26834 \begin_layout Plain Layout
26845 \begin_layout Plain Layout
26856 \begin_layout Plain Layout
26864 underbar{Attention!}}}%
26867 \begin_layout Plain Layout
26881 \begin_inset Marginal
26884 \begin_layout Plain Layout
26885 This is a margin note with a defined heading.
26897 \begin_layout Plain Layout
26911 \begin_layout Plain Layout
26928 \begin_inset Note Note
26931 \begin_layout Plain Layout
26932 The margin note format is changed only for this example.
26940 \begin_layout Standard
26944 \begin_layout Plain Layout
26954 \begin_inset Note Note
26957 \begin_layout Plain Layout
26958 The following will be displayed when the LaTeX-package
26970 \begin_layout Standard
26971 You need to install the LaTeX-package
26975 to see the following part of this section in the output.
26978 \begin_layout Standard
26982 \begin_layout Plain Layout
26994 \begin_layout Chapter
26998 \begin_layout Section
27000 \begin_inset Index idx
27003 \begin_layout Plain Layout
27004 Boxes ! Introduction
27012 \begin_layout Standard
27013 Boxes are used to format a block of text.
27014 Boxes can be used to write documents with multiple languages, see section
27015 \begin_inset space ~
27019 \begin_inset CommandInset ref
27021 reference "sec:Minipages"
27025 , to frame texts, see section
27026 \begin_inset space ~
27030 \begin_inset CommandInset ref
27032 reference "sec:Decoration"
27036 , to prevent words from being hyphenated, see section
27037 \begin_inset space ~
27041 \begin_inset CommandInset ref
27043 reference "sec:Prevent-Hyphenation"
27047 , to align text, see section
27048 \begin_inset space ~
27052 \begin_inset CommandInset ref
27054 reference "sub:Vertical-Alignment"
27058 , or to set the background color of texts, see section
27059 \begin_inset space ~
27063 \begin_inset CommandInset ref
27065 reference "sec:Colored-Boxes"
27072 \begin_layout Standard
27073 Boxes can be inserted with the menu
27075 Insert\SpecialChar \menuseparator
27078 or the toolbar button
27079 \begin_inset Graphics
27080 filename ../images/box-insert.png
27082 scaleBeforeRotation
27087 A grey box with the label
27092 \begin_inset Graphics
27093 filename clipart/BoxInsetDefaultQt4.png
27095 scaleBeforeRotation
27100 The box type can be specified by right-clicking on the box and selecting
27106 The box dialog offers the
27109 \begin_inset space ~
27131 is the default for new boxes and is explained in section
27132 \begin_inset space ~
27136 \begin_inset CommandInset ref
27138 reference "sec:Minipages"
27146 is described in section
27147 \begin_inset space ~
27151 \begin_inset CommandInset ref
27153 reference "sec:Parboxes"
27162 \begin_inset CommandInset ref
27164 reference "sec:Prevent-Hyphenation"
27171 \begin_layout Standard
27172 Boxes are not numbered and can therefore not be referenced like floats or
27176 \begin_layout Standard
27177 \begin_inset Note Greyedout
27180 \begin_layout Plain Layout
27185 Boxes must not be the item in an
27201 \begin_layout Standard
27202 \begin_inset Note Greyedout
27205 \begin_layout Plain Layout
27210 For an unknown reason you can only set the
27213 \begin_inset space ~
27222 when you use a framed box.
27226 \begin_inset space ~
27231 type and without frames are explained in section
27232 \begin_inset space ~
27236 \begin_inset CommandInset ref
27238 reference "sec:Prevent-Hyphenation"
27250 \begin_layout Section
27252 \begin_inset CommandInset label
27254 name "sec:Box-Dialog"
27259 \begin_inset Index idx
27262 \begin_layout Plain Layout
27271 \begin_layout Subsection
27273 \begin_inset Index idx
27276 \begin_layout Plain Layout
27285 \begin_layout Standard
27286 In the box dialog you can adjust the box geometry in the fields
27295 The available units for the geometry are explained in Table
27296 \begin_inset space ~
27300 \begin_inset CommandInset ref
27302 reference "tab:Units"
27311 offers the following additional sizes:
27314 \begin_layout Description
27315 Depth This is the plain text
27316 \begin_inset Quotes eld
27320 \begin_inset Quotes erd
27324 It ignores the total depth when there are multiple text lines in the box:
27325 \begin_inset Newline newline
27329 \begin_inset Newline newline
27333 \begin_inset Newline newline
27337 \begin_inset Box Boxed
27347 height_special "depth"
27350 \begin_layout Plain Layout
27352 Box height set to 1
27353 \begin_inset space \thinspace{}
27362 \begin_inset Newline newline
27366 \begin_inset Newline newline
27372 \begin_layout Description
27373 Height This is the height of the text that is inside the box.
27375 \begin_inset space \thinspace{}
27379 \begin_inset space \space{}
27382 2 for this size will set the box height to 2
27383 \begin_inset space ~
27386 times the text height:
27387 \begin_inset Box Boxed
27397 height_special "height"
27400 \begin_layout Plain Layout
27402 Box height set to 2
27403 \begin_inset space \thinspace{}
27414 \begin_layout Description
27416 \begin_inset space ~
27419 Height This is the Height
27420 \begin_inset space \thinspace{}
27424 \begin_inset space \thinspace{}
27428 \begin_inset Box Boxed
27438 height_special "totalheight"
27441 \begin_layout Plain Layout
27443 Box height set to 1
27444 \begin_inset space \thinspace{}
27448 \begin_inset space ~
27459 \begin_layout Description
27460 Width This sets the width of the box as height:
27461 \begin_inset Box Boxed
27471 height_special "width"
27474 \begin_layout Plain Layout
27476 Box height set to 1
27477 \begin_inset space \thinspace{}
27488 \begin_layout Subsection
27490 \begin_inset Index idx
27493 \begin_layout Plain Layout
27502 \begin_layout Standard
27503 When you have chosen an
27506 \begin_inset space ~
27511 , the vertical box alignment can be:
27514 \begin_layout Description
27515 Top This is an example text line.
27517 \begin_inset Box Boxed
27527 height_special "totalheight"
27530 \begin_layout Plain Layout
27532 This box is top-aligned.
27537 This is an example text line.
27540 \begin_layout Description
27541 Middle This is an example text line.
27543 \begin_inset Box Boxed
27553 height_special "totalheight"
27556 \begin_layout Plain Layout
27558 This box is middle-aligned.
27563 This is an example text line.
27566 \begin_layout Description
27567 Bottom This is an example text line.
27569 \begin_inset Box Boxed
27579 height_special "totalheight"
27582 \begin_layout Plain Layout
27584 This box is bottom-aligned.
27589 This is an example text line.
27592 \begin_layout Standard
27593 \begin_inset Note Greyedout
27596 \begin_layout Plain Layout
27601 The vertical box alignment can be lost in the output when you have two
27602 boxes in a line and one has e.
27603 \begin_inset space \thinspace{}
27607 \begin_inset space \space{}
27610 a shadow and the other one not.
27618 \begin_layout Standard
27619 The horizontal box alignment can be set via LyX's paragraph dialog when
27620 you set the box into its own paragraph.
27623 \begin_layout Standard
27624 \begin_inset VSpace bigskip
27627 When you have chosen an
27630 \begin_inset space ~
27635 , the box content can be aligned vertically to:
27638 \begin_layout Description
27639 top This is an example text line.
27641 \begin_inset Box Boxed
27651 height_special "totalheight"
27654 \begin_layout Plain Layout
27656 This box text is top-aligned.
27661 This is an example text line.
27664 \begin_layout Description
27665 middle This is an example text line.
27667 \begin_inset Box Boxed
27677 height_special "totalheight"
27680 \begin_layout Plain Layout
27682 This box text is middle-aligned.
27687 This is an example text line.
27690 \begin_layout Description
27691 bottom This is an example text line.
27693 \begin_inset Box Boxed
27703 height_special "totalheight"
27706 \begin_layout Plain Layout
27708 This box text is bottom-aligned.
27713 This is an example text line.
27716 \begin_layout Description
27717 stretch This is an example text line.
27719 \begin_inset Box Boxed
27729 height_special "totalheight"
27732 \begin_layout Plain Layout
27737 \begin_layout Plain Layout
27742 \begin_layout Plain Layout
27749 This is an example text line.
27752 \begin_layout Standard
27753 To stretch the box content, it must consist of more than one paragraph.
27754 In the example above every text line is in an own paragraph.
27757 \begin_layout Standard
27758 \begin_inset VSpace bigskip
27761 To align the box content horizontally you can use LyX's paragraph dialog
27762 when you have chosen an
27765 \begin_inset space ~
27773 \begin_layout Standard
27775 \begin_inset Box Boxed
27785 height_special "totalheight"
27788 \begin_layout Plain Layout
27793 \begin_layout Plain Layout
27798 \begin_layout Plain Layout
27808 \begin_layout Standard
27809 If you have not set an
27812 \begin_inset space ~
27817 , you can align the box content horizontally in the box dialog.
27820 \begin_layout Standard
27822 \begin_inset Box Boxed
27832 height_special "totalheight"
27835 \begin_layout Plain Layout
27837 This box text is horizontally stretched.
27845 \begin_layout Subsection
27847 \begin_inset CommandInset label
27849 name "sec:Decoration"
27854 \begin_inset Index idx
27857 \begin_layout Plain Layout
27866 \begin_layout Standard
27867 The type of the box can be specified in the box dialog in the drop-down
27873 The following types are possible:
27876 \begin_layout Description
27878 \begin_inset space ~
27881 frame Nothing is drawn.
27884 \begin_layout Description
27886 \begin_inset space ~
27890 \begin_inset space ~
27893 frame This draws a rectangular frame around the box.
27894 The frame line thickness has the size of
27902 \begin_inset Box Boxed
27912 height_special "totalheight"
27915 \begin_layout Plain Layout
27925 \begin_layout Description
27927 \begin_inset space ~
27931 \begin_inset space ~
27934 thin This draws an oval frame around the box.
27935 The frame line thickness has the size 0.4
27936 \begin_inset space \thinspace{}
27941 \begin_inset Box ovalbox
27951 height_special "totalheight"
27954 \begin_layout Plain Layout
27964 \begin_layout Description
27966 \begin_inset space ~
27970 \begin_inset space ~
27973 thick This draws an oval frame around the box.
27974 The frame line thickness has the size 0.8
27975 \begin_inset space \thinspace{}
27980 \begin_inset Box Ovalbox
27990 height_special "totalheight"
27993 \begin_layout Plain Layout
28003 \begin_layout Description
28005 \begin_inset space ~
28008 shadow This draws a rectangular frame with a shadow around the box.
28009 The frame line thickness has the size of
28015 , the shadow has a width of 4
28016 \begin_inset space \thinspace{}
28021 \begin_inset Box Shadowbox
28031 height_special "totalheight"
28034 \begin_layout Plain Layout
28044 \begin_layout Description
28046 \begin_inset space ~
28049 background This draws a box with a red background.
28050 Unlike colored boxes
28054 \begin_layout Plain Layout
28056 \begin_inset space \thinspace{}
28060 \begin_inset CommandInset ref
28062 reference "sec:Colored-Boxes"
28071 , it always uses the whole column width and the box is set as its own paragraph.
28073 \begin_inset Box Shaded
28083 height_special "totalheight"
28086 \begin_layout Plain Layout
28087 Shaded background box
28095 \begin_layout Description
28097 \begin_inset space ~
28101 \begin_inset space ~
28104 frame This draws a double-line rectangular frame around the box.
28105 The line thickness of the inner frame is 0.75
28106 \begin_inset space \thinspace{}
28115 , the thickness of the outer frame is 1.5
28116 \begin_inset space \thinspace{}
28126 The distance between the lines is 1.5
28127 \begin_inset space \thinspace{}
28137 \begin_inset space \thinspace{}
28141 \begin_inset space \thinspace{}
28145 \begin_inset space \thinspace{}
28150 \begin_inset Box Doublebox
28160 height_special "totalheight"
28163 \begin_layout Plain Layout
28165 Double rectangular box
28173 \begin_layout Standard
28174 \begin_inset VSpace bigskip
28177 LyX's box label will reflect the different frame types.
28178 To be able to use all types, the LaTeX-package
28183 \begin_inset Index idx
28186 \begin_layout Plain Layout
28187 LaTeX-packages ! fancybox
28195 \begin_layout Standard
28196 \begin_inset VSpace bigskip
28199 When you use the decoration
28201 simple rectangular frame
28203 and no inner box, you can allow page breaks within a box.
28204 Note that then, unlike other framed boxes, the frame always uses the whole
28205 column width, the box is set as its own paragraph, and
28217 have no effect on this box type.
28218 The frame line thickness has the size of
28226 \begin_inset Box Framed
28236 height_special "totalheight"
28239 \begin_layout Plain Layout
28240 Allow page break box
28248 \begin_layout Section
28250 \begin_inset Index idx
28253 \begin_layout Plain Layout
28254 Boxes ! Customization
28262 \begin_layout Standard
28263 The default value for the size
28270 \begin_inset space \thinspace{}
28274 It can be changed with the following command in TeX-Code to e.
28275 \begin_inset space \thinspace{}
28279 \begin_inset space \space{}
28283 \begin_inset space \thinspace{}
28289 \begin_layout Standard
28299 \begin_layout Standard
28303 \begin_layout Plain Layout
28315 \begin_inset Box Boxed
28325 height_special "totalheight"
28328 \begin_layout Plain Layout
28330 Rectangular box with
28337 \begin_inset space \thinspace{}
28341 \begin_inset space \thinspace{}
28345 \begin_inset space \thinspace{}
28357 \begin_layout Plain Layout
28371 \begin_layout Standard
28372 \begin_inset VSpace bigskip
28375 The space between the frame and the box content is for all frame styles
28377 \begin_inset space \thinspace{}
28381 You can change it by setting the length
28388 For example the command
28391 \begin_layout Standard
28401 \begin_layout Standard
28402 sets the value to 10
28403 \begin_inset space \thinspace{}
28406 pt, as with the following box:
28409 \begin_layout Standard
28413 \begin_layout Plain Layout
28425 \begin_inset Box Boxed
28435 height_special "totalheight"
28438 \begin_layout Plain Layout
28440 Rectangular box with
28447 \begin_inset space \thinspace{}
28451 \begin_inset space \thinspace{}
28455 \begin_inset space \thinspace{}
28467 \begin_layout Plain Layout
28481 \begin_layout Standard
28482 \begin_inset VSpace bigskip
28485 The diameter of the round corners of the oval boxes can be set with the
28496 \begin_layout Standard
28504 \begin_layout Standard
28505 sets the diameter to 1
28506 \begin_inset space \thinspace{}
28513 \begin_layout Standard
28521 \begin_layout Standard
28522 sets the diameter to
28525 \begin_inset space \thinspace{}
28529 \begin_inset space \thinspace{}
28532 minimum(width and heigth of box)
28544 \begin_layout Standard
28548 \begin_layout Plain Layout
28558 \begin_inset Box Ovalbox
28568 height_special "totalheight"
28571 \begin_layout Plain Layout
28580 \begin_inset space \thinspace{}
28584 \begin_inset space \thinspace{}
28588 \begin_inset space \thinspace{}
28600 \begin_layout Plain Layout
28612 \begin_layout Standard
28613 \begin_inset VSpace bigskip
28616 The size of the shadow can be adjusted by changing the length
28624 \begin_inset space \thinspace{}
28627 pt for the following box by this command:
28630 \begin_layout Standard
28640 \begin_layout Standard
28644 \begin_layout Plain Layout
28656 \begin_inset Box Shadowbox
28666 height_special "totalheight"
28669 \begin_layout Plain Layout
28678 \begin_inset space \thinspace{}
28682 \begin_inset space \thinspace{}
28686 \begin_inset space \thinspace{}
28698 \begin_layout Plain Layout
28712 \begin_layout Standard
28713 \begin_inset VSpace bigskip
28719 \begin_layout Standard
28720 The default value for the size
28727 \begin_inset space \thinspace{}
28731 The default space between the note content and the frame is 9
28732 \begin_inset space \thinspace{}
28735 pt and can be changed with the value of
28742 For example the frame appearance of the following
28746 is set with the TeX-Code commands
28749 \begin_layout Standard
28757 \begin_inset Newline newline
28767 \begin_layout Standard
28771 \begin_layout Plain Layout
28780 \begin_layout Plain Layout
28792 \begin_inset Box Framed
28802 height_special "totalheight"
28805 \begin_layout Plain Layout
28819 \begin_layout Plain Layout
28828 \begin_layout Plain Layout
28842 \begin_layout Standard
28843 \begin_inset VSpace bigskip
28849 \begin_layout Standard
28854 boxes the default space between the box content and the box border is 3
28855 \begin_inset space \thinspace{}
28858 pt and can be changed with the value of
28865 The default background color red can either be changed locally with the
28870 definecolor{shadecolor}
28872 or globally with the menu
28874 Tools\SpecialChar \menuseparator
28875 Preferences\SpecialChar \menuseparator
28876 Colors\SpecialChar \menuseparator
28878 \begin_inset space ~
28890 command is explained in section
28891 \begin_inset space ~
28895 \begin_inset CommandInset ref
28897 reference "sec:Colored-Tables"
28905 \begin_layout Plain Layout
28912 requires the LaTeX-package
28916 in the preamble, see section
28917 \begin_inset space ~
28921 \begin_inset CommandInset ref
28923 reference "sec:Colored-Boxes"
28932 For example the appearance of the following shaded background box is set
28933 with the TeX-Code commands
28936 \begin_layout Standard
28946 \begin_inset Newline newline
28953 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28956 \begin_layout Standard
28960 \begin_layout Plain Layout
28969 \begin_layout Plain Layout
28973 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28979 \begin_inset Box Shaded
28989 height_special "totalheight"
28992 \begin_layout Plain Layout
28995 This is yellow text in a
29005 box with dark green background.
29014 \begin_layout Plain Layout
29023 \begin_layout Plain Layout
29027 definecolor{shadecolor}{rgb}{1,0,0}
29035 \begin_layout Standard
29036 \begin_inset VSpace bigskip
29039 Changed lengths and widths are valid for all boxes following the commands
29043 \begin_layout Section
29045 \begin_inset CommandInset label
29047 name "sec:Minipages"
29052 \begin_inset Index idx
29055 \begin_layout Plain Layout
29064 \begin_layout Standard
29065 Minipages are treated by LaTeX as pages within pages and can therefore for
29066 example have their own footnotes.
29069 \begin_layout Standard
29070 Minipages are useful when you write documents with different languages.
29073 \begin_layout Standard
29074 Below are two example minipages side by side.
29075 Their width is set to 45
29076 \begin_inset space \thinspace{}
29079 col% and they are separated by a horizontal fill, that was inserted via
29082 Insert\SpecialChar \menuseparator
29084 \begin_inset space ~
29087 Formatting\SpecialChar \menuseparator
29089 \begin_inset space ~
29095 \begin_inset Newpage newpage
29101 \begin_layout Standard
29102 \begin_inset Box Frameless
29112 height_special "totalheight"
29115 \begin_layout Plain Layout
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.
29127 Dies ist ein deutscher Text.
29128 Dies ist ein deutscher Text.
29129 Dies ist ein deutscher Text.
29130 Dies ist ein deutscher Text
29134 \begin_layout Plain Layout
29137 Dies ist eine deutsche Fußnote.
29143 Dies ist ein deutscher Text.
29144 Dies ist ein deutscher Text.
29150 \begin_inset space \hfill{}
29154 \begin_inset Box Frameless
29164 height_special "totalheight"
29167 \begin_layout Plain Layout
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.
29180 This is an English Text.
29181 This is an English Text.
29182 This is an English Text.
29183 This is an English Text.
29187 \begin_layout Plain Layout
29188 This is an English footnote.
29193 This is an English Text.
29202 \begin_layout Standard
29203 \begin_inset VSpace bigskip
29206 The document-wide paragraph settings are ignored within minipages.
29207 That means that there will be no space between paragraphs in minipages
29208 although you set it to e.
29209 \begin_inset space \thinspace{}
29213 \begin_inset space \space{}
29220 in the document settings.
29223 \begin_layout Standard
29224 Minipages can also be used to set a background color for text parts, see
29226 \begin_inset space ~
29230 \begin_inset CommandInset ref
29232 reference "sub:Color-for-Paragraphs"
29239 \begin_layout Standard
29240 \begin_inset Note Greyedout
29243 \begin_layout Plain Layout
29248 You cannot have floats or margin notes inside minipages but minipages can
29249 be used inside tables, floats, and other boxes.
29257 \begin_layout Section
29259 \begin_inset CommandInset label
29261 name "sec:Parboxes"
29266 \begin_inset Index idx
29269 \begin_layout Plain Layout
29278 \begin_layout Standard
29279 Parboxes are very similar to minipages with the difference that they cannot
29280 have footnotes, because minipages, unlike parboxes, are not real boxes
29281 but LaTeX-environments.
29284 \begin_layout Standard
29286 \begin_inset Box Frameless
29296 height_special "totalheight"
29299 \begin_layout Plain Layout
29300 This a text within a parbox.
29301 This a text within a parbox.
29304 \begin_layout Plain Layout
29305 This footnote won't appear:
29309 \begin_layout Plain Layout
29310 This footnote is inside a parbox and will therefore not appear.
29323 \begin_layout Section
29324 Boxes for Words and Characters
29325 \begin_inset Index idx
29328 \begin_layout Plain Layout
29329 Boxes ! for Characters
29337 \begin_layout Subsection
29338 Prevent Hyphenation
29339 \begin_inset CommandInset label
29341 name "sec:Prevent-Hyphenation"
29346 \begin_inset Index idx
29349 \begin_layout Plain Layout
29350 Boxes ! to Prevent Hyphenation
29358 \begin_layout Standard
29359 You can use the box type
29363 to prevent words or text from being hyphenated.
29364 \begin_inset Newline newline
29367 Here is an example text:
29370 \begin_layout Standard
29371 This line is an example to show how you can prevent the hyphenation of
29372 \begin_inset Quotes eld
29376 \begin_inset Quotes erd
29382 \begin_layout Standard
29383 To prevent the hyphenation of the word
29384 \begin_inset Quotes eld
29388 \begin_inset Quotes erd
29391 , put the word into a box, set the
29394 \begin_inset space ~
29404 \begin_inset space \thinspace{}
29410 \begin_layout Standard
29411 This is the result:
29414 \begin_layout Standard
29415 This line is an example to show how you can prevent the hyphenation of
29416 \begin_inset Box Frameless
29426 height_special "totalheight"
29429 \begin_layout Plain Layout
29430 \begin_inset Quotes eld
29434 \begin_inset Quotes erd
29445 \begin_layout Standard
29446 You can alternatively set the command
29447 \begin_inset Quotes eld
29457 \begin_inset Quotes grd
29460 as TeX-Code directly before the word:
29463 \begin_layout Standard
29464 This line is an example to show how you can prevent the hyphenation of
29465 \begin_inset Quotes eld
29472 \begin_layout Plain Layout
29482 \begin_inset Quotes erd
29488 \begin_layout Standard
29489 Of course the word now protrudes over the side margin.
29490 To avoid this, add via the menu
29492 Insert\SpecialChar \menuseparator
29494 \begin_inset space ~
29497 Formatting\SpecialChar \menuseparator
29499 \begin_inset space ~
29507 arg "newline-insert newline"
29510 ) a line break before the word:
29513 \begin_layout Standard
29514 This line is an example to show how you can prevent the hyphenation of
29515 \begin_inset Newline newline
29519 \begin_inset Box Frameless
29529 height_special "totalheight"
29532 \begin_layout Plain Layout
29533 \begin_inset Quotes eld
29537 \begin_inset Quotes erd
29548 \begin_layout Subsection
29550 \begin_inset CommandInset label
29552 name "sub:Vertical-Alignment"
29557 \begin_inset Index idx
29560 \begin_layout Plain Layout
29561 Boxes ! for Vertical Alignment
29567 \begin_inset Index idx
29570 \begin_layout Plain Layout
29579 \begin_layout Standard
29580 With the help of the command
29586 you can align words, characters or other boxes vertically relative to the
29594 is used with the following scheme:
29597 \begin_layout Standard
29602 raisebox{lift}[height][depth]{box content}
29605 \begin_layout Standard
29606 The lift can be a positive value to raise the box or a negative value to
29610 \begin_layout Standard
29611 To align for example the word
29612 \begin_inset Quotes eld
29616 \begin_inset Quotes erd
29619 so that the bottom of the
29620 \begin_inset Quotes eld
29624 \begin_inset Quotes erd
29628 \begin_inset Quotes eld
29632 \begin_inset Quotes erd
29635 is at the baseline, insert the command
29638 \begin_layout Standard
29648 \begin_layout Standard
29649 in TeX-Code before the word.
29650 After the word insert a closing brace
29651 \begin_inset Quotes eld
29659 \begin_inset Quotes erd
29663 \begin_inset Newline newline
29666 This is the result:
29669 \begin_layout Standard
29670 This is a text line with the word
29674 \begin_layout Plain Layout
29686 \begin_inset Quotes eld
29690 \begin_inset Quotes erd
29697 \begin_layout Plain Layout
29707 \begin_layout Standard
29708 \begin_inset VSpace bigskip
29711 When you raise or lower characters in a line, the line distance will be
29715 \begin_layout Standard
29716 This is a text line with the word
29720 \begin_layout Plain Layout
29732 \begin_inset Quotes eld
29736 \begin_inset Quotes erd
29743 \begin_layout Plain Layout
29751 \begin_inset Newline newline
29754 This is a text line with the word
29758 \begin_layout Plain Layout
29768 \begin_inset Quotes eld
29772 \begin_inset Quotes erd
29779 \begin_layout Plain Layout
29789 \begin_layout Standard
29790 If you want to prevent this for a certain reason, set the box height to
29795 \begin_layout Standard
29805 \begin_layout Standard
29806 This is a text line with the word
29810 \begin_layout Plain Layout
29822 \begin_inset Quotes eld
29826 \begin_inset Quotes erd
29833 \begin_layout Plain Layout
29841 \begin_inset Newline newline
29844 This is a text line with the word
29848 \begin_layout Plain Layout
29852 raisebox{0.5cm}[0pt]{
29858 \begin_inset Quotes eld
29862 \begin_inset Quotes erd
29869 \begin_layout Plain Layout
29879 \begin_layout Section
29881 \begin_inset CommandInset label
29883 name "sec:Colored-Boxes"
29888 \begin_inset Index idx
29891 \begin_layout Plain Layout
29900 \begin_layout Subsection
29902 \begin_inset Index idx
29905 \begin_layout Plain Layout
29914 \begin_layout Standard
29915 To color the background of text the text must be put into a so called
29916 \begin_inset Quotes eld
29920 \begin_inset Quotes erd
29924 This requires that the LaTeX-package
29929 \begin_inset Index idx
29932 \begin_layout Plain Layout
29933 LaTeX-packages ! color
29938 is loaded in the document preamble with the command
29941 \begin_layout Standard
29946 @ifundefined{textcolor}
29947 \begin_inset Newline newline
29951 \begin_inset Phantom HPhantom
29954 \begin_layout Plain Layout
29957 \begin_inset space ~
29967 usepackage{color}}{}
29970 \begin_layout Standard
29975 will be loaded automatically by LyX when you color text.
29979 \begin_layout Plain Layout
29980 To avoid it being loaded twice the command
29994 \begin_layout Standard
29995 \begin_inset VSpace medskip
29998 Colorboxes are created with the command
30005 This will be used with the following scheme:
30008 \begin_layout Standard
30013 colorbox{color}{box content}
30016 \begin_layout Standard
30017 The box content can also be a box and colorboxes can also be within other
30021 \begin_layout Standard
30022 The following colors are predefined:
30023 \begin_inset Newline newline
30062 \begin_inset Newline newline
30065 You can also define your own color as described in section
30066 \begin_inset space ~
30070 \begin_inset CommandInset ref
30072 reference "sec:Colored-Tables"
30079 \begin_layout Standard
30081 \begin_inset space \thinspace{}
30085 \begin_inset space \space{}
30088 a red background for a word, insert the command
30091 \begin_layout Standard
30099 \begin_layout Standard
30100 before the word in TeX-Code.
30101 After the word insert a closing brace
30102 \begin_inset Quotes eld
30110 \begin_inset Quotes erd
30114 \begin_inset Newline newline
30117 This is the result:
30120 \begin_layout Standard
30121 This is a line where the word
30125 \begin_layout Plain Layout
30135 \begin_inset Quotes eld
30139 \begin_inset Quotes erd
30146 \begin_layout Plain Layout
30153 has a red background.
30156 \begin_layout Standard
30157 \begin_inset VSpace bigskip
30160 If you would like the box frame in a different color, you can use the command
30167 with the following scheme:
30170 \begin_layout Standard
30175 fcolorbox{frame color}{box color}{box content}
30178 \begin_layout Standard
30192 The frame thickness and the space between the frame and the box content
30193 can be adjusted with the lengths
30205 , respectively, as described in section
30206 \begin_inset space ~
30210 \begin_inset CommandInset ref
30212 reference "sec:Decoration"
30219 \begin_layout Standard
30220 For the following example the command
30223 \begin_layout Standard
30228 fcolorbox{cyan}{magenta}{
30231 \begin_layout Standard
30235 \begin_layout Standard
30236 Here is an example where the frame line thickness was set to 1
30237 \begin_inset space \thinspace{}
30241 \begin_inset Newline newline
30248 \begin_layout Plain Layout
30263 \begin_layout Plain Layout
30267 fcolorbox{cyan}{magenta}{
30272 This is text within a colored, framed box.
30276 \begin_layout Plain Layout
30286 \begin_layout Standard
30287 \begin_inset VSpace bigskip
30290 Of course you can also have colored text inside a colorbox:
30291 \begin_inset Newline newline
30298 \begin_layout Plain Layout
30302 fcolorbox{cyan}{magenta}{
30309 This is colored text within a colored, framed box.
30315 \begin_layout Plain Layout
30326 \begin_layout Plain Layout
30340 \begin_layout Standard
30343 \begin_inset VSpace medskip
30349 \begin_layout Standard
30350 \begin_inset Note Greyedout
30353 \begin_layout Plain Layout
30358 Text in colorboxes cannot have line breaks.
30359 To color multiple text lines or paragraphs, use a box inside a colorbox
30360 as described in the following.
30368 \begin_layout Subsection
30369 Color for Paragraphs
30370 \begin_inset CommandInset label
30372 name "sub:Color-for-Paragraphs"
30377 \begin_inset Index idx
30380 \begin_layout Plain Layout
30381 Color ! for Paragraphs
30389 \begin_layout Standard
30390 To set the background color for more than one text line, put the text into
30392 Before the minipage insert the
30401 \begin_layout Standard
30409 \begin_layout Standard
30411 After the minipage insert a closing brace
30412 \begin_inset Quotes eld
30420 \begin_inset Quotes erd
30426 \begin_layout Standard
30430 \begin_layout Plain Layout
30434 colorbox{lightgrey}{
30440 \begin_inset Box Frameless
30450 height_special "totalheight"
30453 \begin_layout Plain Layout
30454 This is text with background color.
30455 This is text with background color.
30458 \begin_layout Plain Layout
30459 \begin_inset VSpace defskip
30462 The text can have footnotes
30466 \begin_layout Plain Layout
30467 Another example footnote
30472 and can include tables and figures.
30475 \begin_layout Plain Layout
30477 \begin_inset Tabular
30478 <lyxtabular version="3" rows="3" columns="3">
30479 <features tabularvalignment="middle">
30480 <column alignment="center" valignment="top" width="0">
30481 <column alignment="center" valignment="top" width="0">
30482 <column alignment="center" valignment="top" width="0">
30484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30487 \begin_layout Plain Layout
30493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30496 \begin_layout Plain Layout
30502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30505 \begin_layout Plain Layout
30513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30516 \begin_layout Plain Layout
30522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30525 \begin_layout Plain Layout
30527 \begin_inset Quotes erd
30535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30538 \begin_layout Plain Layout
30546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30549 \begin_layout Plain Layout
30555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30558 \begin_layout Plain Layout
30564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30567 \begin_layout Plain Layout
30587 \begin_layout Plain Layout
30597 \begin_layout Section
30598 Rotated and Scaled Boxes
30601 \begin_layout Standard
30602 To use the commands described in this section, the LaTeX-package
30607 \begin_inset Index idx
30610 \begin_layout Plain Layout
30611 LaTeX-packages ! graphicx
30616 needs to be loaded in the document preamble with the command
30619 \begin_layout Standard
30624 @ifundefined{rotatebox}
30625 \begin_inset Newline newline
30629 \begin_inset Phantom HPhantom
30632 \begin_layout Plain Layout
30635 \begin_inset space ~
30645 usepackage{graphicx}}{}
30648 \begin_layout Standard
30649 \begin_inset Note Greyedout
30652 \begin_layout Plain Layout
30657 Some DVI-viewers can't display rotated or scaled material.
30665 \begin_layout Standard
30666 \begin_inset Note Greyedout
30669 \begin_layout Plain Layout
30674 Floats mustn't be inside a rotated or scaled box.
30682 \begin_layout Subsection
30684 \begin_inset Index idx
30687 \begin_layout Plain Layout
30694 \begin_inset Index idx
30697 \begin_layout Plain Layout
30704 \begin_inset Index idx
30707 \begin_layout Plain Layout
30714 \begin_inset Index idx
30717 \begin_layout Plain Layout
30718 Table Customization ! Rotating
30726 \begin_layout Standard
30727 To rotate material, you can put it into a rotated box.
30728 Such a box is created using the command
30734 in TeX-Code with the following scheme:
30737 \begin_layout Standard
30742 rotatebox[rotation origin]{rotation angle}{box content}
30745 \begin_layout Standard
30746 The rotation origin is specified in the form
30751 The following positions are possible:
30771 (top), along with meaningful combinations of the four base positions.
30776 means that the rotation origin is at the top left corner of the box.
30777 When no rotation origin is specified, the position
30782 The rotation angle is a number that can be negative that specifies the
30784 The rotation direction is counterclockwise.
30787 \begin_layout Standard
30788 In the following example the command
30792 rotatebox[origin=c]{60}{
30794 was inserted as TeX-Code before the text
30795 \begin_inset Quotes eld
30799 \begin_inset Quotes erd
30802 ; after the text the box was closed by a closing brace
30809 \begin_layout Standard
30814 \begin_layout Plain Layout
30818 rotatebox[origin=c]{60}{
30827 \begin_layout Plain Layout
30837 \begin_layout Standard
30838 The box content can also be another box or an inline formula:
30841 \begin_layout Standard
30846 \begin_layout Plain Layout
30850 rotatebox[origin=r]{-60}{
30856 \begin_inset Box Doublebox
30866 height_special "totalheight"
30869 \begin_layout Plain Layout
30879 \begin_layout Plain Layout
30890 \begin_layout Plain Layout
30894 rotatebox[origin=lb]{60}{
30900 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30907 \begin_layout Plain Layout
30917 \begin_layout Standard
30918 or an image or table:
30921 \begin_layout Standard
30926 \begin_layout Plain Layout
30930 rotatebox[origin=lb]{90}{
30936 \begin_inset Graphics
30937 filename clipart/platypus.eps
30947 \begin_layout Plain Layout
30954 with a rotated image
30958 \begin_layout Plain Layout
30962 rotatebox[origin=l]{-90}{
30968 \begin_inset Tabular
30969 <lyxtabular version="3" rows="2" columns="2">
30970 <features tabularvalignment="middle">
30971 <column alignment="center" valignment="top" width="0">
30972 <column alignment="center" valignment="top" width="0">
30974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30977 \begin_layout Plain Layout
30983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30986 \begin_layout Plain Layout
30994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30997 \begin_layout Plain Layout
31003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31006 \begin_layout Plain Layout
31021 \begin_layout Plain Layout
31031 \begin_layout Subsection
31033 \begin_inset Index idx
31036 \begin_layout Plain Layout
31043 \begin_inset Index idx
31046 \begin_layout Plain Layout
31053 \begin_inset Index idx
31056 \begin_layout Plain Layout
31063 \begin_inset Index idx
31066 \begin_layout Plain Layout
31067 Table Customization ! Scaling
31075 \begin_layout Standard
31076 To scale material the commands
31088 can be used as TeX-Code.
31091 \begin_layout Standard
31098 is used with the following scheme:
31101 \begin_layout Standard
31106 scalebox{horizontal}[vertical]{box content}
31109 \begin_layout Standard
31110 Horizontal and vertical are the corresponding scaling factors.
31111 If no vertical scaling factor is given, the horizontal factor will also
31112 be used as the vertical one.
31115 \begin_layout Standard
31122 creates for example a double size
31126 \begin_layout Plain Layout
31139 \begin_layout Plain Layout
31146 , compared with the document text size.
31149 \begin_layout Standard
31154 scalebox{2}[1]{Hello}
31156 on the other hand distorts the
31160 \begin_layout Plain Layout
31173 \begin_layout Plain Layout
31183 \begin_layout Standard
31184 If the scaling factor is negative, the box content will be mirrored.
31185 Therefore the command
31189 scalebox{-1}[1]{Hello}
31191 can be used to create mirror writing:
31195 \begin_layout Plain Layout
31208 \begin_layout Plain Layout
31218 \begin_layout Standard
31223 scalebox{1}[-1]{Hello}
31229 \begin_layout Plain Layout
31242 \begin_layout Plain Layout
31252 \begin_layout Standard
31257 scalebox{-1}[1]{box content}
31259 there exists the command
31260 \begin_inset Newline newline
31267 reflectbox{box content}
31272 \begin_layout Standard
31273 \begin_inset VSpace bigskip
31282 is used to scale the box to a defined width and height.
31283 The command scheme is:
31286 \begin_layout Standard
31291 resizebox{width}{height}{box content}
31294 \begin_layout Standard
31295 If one of the two command arguments given is an exclamation mark
31299 , the size is set so that the aspect ratio of the box content is kept.
31302 \begin_layout Standard
31307 resizebox{2cm}{1cm}{Hello}
31313 \begin_layout Plain Layout
31317 resizebox{2cm}{1cm}{
31326 \begin_layout Plain Layout
31334 \begin_inset Newline newline
31341 resizebox{2cm}{!}{Hello}
31347 \begin_layout Plain Layout
31360 \begin_layout Plain Layout
31370 \begin_layout Standard
31371 \begin_inset VSpace bigskip
31375 \begin_inset Note Greyedout
31378 \begin_layout Plain Layout
31395 are set to zero, no LaTeX-errors occur when exporting the document but
31396 the exported files can not or only partly be displayed.
31404 \begin_layout Standard
31405 \begin_inset VSpace bigskip
31411 \begin_layout Standard
31412 The boxes can be combined in any order.
31414 \begin_inset space \thinspace{}
31418 \begin_inset space \space{}
31422 \begin_inset Newline newline
31429 rotatebox[origin=c]{-45}{
31433 reflectbox{Hello}}}
31434 \begin_inset Newline newline
31442 \begin_layout Standard
31447 \begin_layout Plain Layout
31451 rotatebox[origin=c]{-45}{
31464 \begin_layout Plain Layout
31474 \begin_layout Standard
31476 Images, tables, and inline formulas are allowed as box content:
31479 \begin_layout Standard
31484 \begin_layout Plain Layout
31488 rotatebox[origin=c]{-30}{
31498 \begin_inset Graphics
31499 filename clipart/platypus.eps
31509 \begin_layout Plain Layout
31520 \begin_layout Plain Layout
31524 rotatebox[origin=c]{-45}{
31534 \begin_inset Tabular
31535 <lyxtabular version="3" rows="2" columns="2">
31536 <features tabularvalignment="middle">
31537 <column alignment="center" valignment="top" width="0">
31538 <column alignment="center" valignment="top" width="0">
31540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31543 \begin_layout Plain Layout
31549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31552 \begin_layout Plain Layout
31560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31563 \begin_layout Plain Layout
31569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31572 \begin_layout Plain Layout
31587 \begin_layout Plain Layout
31598 \begin_layout Plain Layout
31602 rotatebox[origin=c]{-45}{
31612 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31619 \begin_layout Plain Layout
31629 \begin_layout Standard
31630 When the global formula style
31634 is used in the document
31638 \begin_layout Plain Layout
31640 \begin_inset Quotes eld
31644 \begin_inset Quotes erd
31647 is added to the document class options.
31652 , display style formulas can also be scaled.
31655 \begin_layout Chapter
31656 External Document Parts
31657 \begin_inset Index idx
31660 \begin_layout Plain Layout
31661 External Document Parts
31669 \begin_layout Standard
31672 Insert\SpecialChar \menuseparator
31675 you can insert external material to your document.
31679 \begin_layout Description
31681 \begin_inset space ~
31684 Document Another LyX document; its content is directly inserted to your
31688 \begin_layout Description
31690 \begin_inset space ~
31693 Text A text document; each line is inserted in your document as a separate
31697 \begin_layout Description
31699 \begin_inset space ~
31703 \begin_inset space ~
31707 \begin_inset space ~
31710 Lines A text document; text lines are inserted in your document continuously
31711 but an empty text line creates a new paragraph.
31714 \begin_layout Description
31716 \begin_inset space ~
31719 Material Files in various formats.
31722 \begin_layout Description
31724 \begin_inset space ~
31727 Document LyX or LaTeX-documents.
31730 \begin_layout Section
31732 \begin_inset Index idx
31735 \begin_layout Plain Layout
31736 External Document Parts ! External Material
31744 \begin_layout Standard
31745 The external material feature allows you to insert files in to your document
31746 without converting them to a format that can be read by the document output
31748 LyX takes care of the necessary conversions.
31749 This is similar to images that can be inserted in various image formats
31751 When you have enabled Instant Preview in LyX's preferences under
31754 \begin_inset space ~
31758 \begin_inset space ~
31761 feel\SpecialChar \menuseparator
31764 , the external material types Dia and Xfig are directly shown in LyX.
31767 \begin_layout Standard
31768 External material can be inserted via the
31772 dialog that is accessible with the menu
31774 Insert\SpecialChar \menuseparator
31775 File\SpecialChar \menuseparator
31777 \begin_inset space ~
31783 Currently the following file types (
31790 \begin_layout Description
31791 ChessDiagram This template supports chess position diagrams made with the
31795 \begin_inset CommandInset href
31798 target "http://en.wikipedia.org/wiki/XBoard"
31807 \begin_layout Description
31808 Date This inserts the date in the form
31813 This is a date inserted as external material:
31814 \begin_inset External
31821 \begin_inset space ~
31825 \begin_inset Note Note
31828 \begin_layout Plain Layout
31829 Remove the protected space when bug 4398 is fixed!
31835 \begin_inset Newline newline
31838 The date is not shown within LyX, only in the output.
31839 There are two other methods of inserting a date: Via menu
31841 Insert\SpecialChar \menuseparator
31844 and with the LaTeX command
31851 The different methods are compared in Table
31852 \begin_inset space ~
31856 \begin_inset CommandInset ref
31858 reference "tab:Comparison-of-the"
31865 \begin_layout Description
31866 Dia This template supports diagrams created with the program
31869 \begin_inset CommandInset href
31872 target "http://en.wikipedia.org/wiki/Dia_(software)"
31881 \begin_layout Description
31882 LilyPond This template is used for music notation typeset with the program
31883 \begin_inset Newline linebreak
31889 \begin_inset CommandInset href
31892 target "http://en.wikipedia.org/wiki/LilyPond"
31901 \begin_layout Description
31902 PDFPages With this template you can insert PDF documents to your document.
31903 To insert certain or all pages of a PDF, use the
31913 LaTeX and LyX options
31915 tab according to the template description in the dialog.
31920 option is given, only the first page of the PDF will be inserted.
31923 \begin_layout Description
31924 RasterImage This can be used for bitmap images.
31925 Nearly all popular image formats are supported.
31926 The image can be treated in the
31930 dialog like the images that are usually included via the
31934 dialog as described in section
31935 \begin_inset space ~
31939 \begin_inset CommandInset ref
31941 reference "sec:Graphics-Dialog"
31946 The difference is that only raster images are allowed; that means that
31947 PDF and EPS-images are not supported.
31950 \begin_layout Description
31951 XFig This template supports images created with the program
31954 \begin_inset CommandInset href
31957 target "http://en.wikipedia.org/wiki/Xfig"
31966 \begin_layout Standard
31967 \begin_inset Float table
31973 \begin_layout Plain Layout
31974 \begin_inset Caption
31976 \begin_layout Plain Layout
31977 \begin_inset CommandInset label
31979 name "tab:Comparison-of-the"
31983 Comparison of the date input methods.
31991 \begin_layout Plain Layout
31993 \begin_inset Tabular
31994 <lyxtabular version="3" rows="4" columns="4">
31995 <features tabularvalignment="middle">
31996 <column alignment="center" valignment="top" width="0">
31997 <column alignment="center" valignment="top" width="0">
31998 <column alignment="center" valignment="top" width="0">
31999 <column alignment="center" valignment="top" width="0">
32001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32004 \begin_layout Plain Layout
32010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32013 \begin_layout Plain Layout
32016 External Material\SpecialChar \menuseparator
32022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32025 \begin_layout Plain Layout
32028 Insert\SpecialChar \menuseparator
32034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32037 \begin_layout Plain Layout
32049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32052 \begin_layout Plain Layout
32058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32061 \begin_layout Plain Layout
32067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32070 \begin_layout Plain Layout
32076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32079 \begin_layout Plain Layout
32080 as TeX-Code inset box
32087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32090 \begin_layout Plain Layout
32096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32099 \begin_layout Plain Layout
32105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32108 \begin_layout Plain Layout
32114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32117 \begin_layout Plain Layout
32125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32128 \begin_layout Plain Layout
32134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32137 \begin_layout Plain Layout
32143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32146 \begin_layout Plain Layout
32152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32155 \begin_layout Plain Layout
32174 \begin_layout Standard
32175 When you use the option
32187 dialog, only the path to the inserted file is shown in the output.
32188 \begin_inset Newline newline
32191 External material is displayed in LyX either as a box like this:
32192 \begin_inset Graphics
32193 filename clipart/ExternalMaterialQt4.png
32195 scaleBeforeRotation
32199 or as image, depending on the option
32205 LaTeX and LyX options
32210 \begin_layout Standard
32217 manual explains how you can define your own templates.
32220 \begin_layout Section
32222 \begin_inset CommandInset label
32224 name "sec:Child-Documents"
32229 \begin_inset Index idx
32232 \begin_layout Plain Layout
32233 External Document Parts ! Child Documents
32239 \begin_inset Index idx
32242 \begin_layout Plain Layout
32251 \begin_layout Standard
32252 Child documents are used when you have a long document consisting of several
32253 larger parts or sections.
32254 For maintenance it is often useful and sometimes even required to split
32255 the document in several files that can be revised separately.
32256 The different documents are then the so called child documents and a master
32257 document connects them to print the full document or parts of it.
32258 A child documents inherits elements of its master, for example the LaTeX
32259 preamble, the bibliography, and labels for cross-references.
32262 \begin_layout Standard
32263 To be able to work on child documents without the need to open their master,
32264 specify in the child document the master in the menu
32266 Document\SpecialChar \menuseparator
32267 Settings\SpecialChar \menuseparator
32269 \begin_inset space ~
32275 This master document will then be used in the background by LyX when you
32276 edit the child document.
32279 \begin_layout Standard
32280 Included documents are displayed in LyX as a box like this:
32281 \begin_inset Graphics
32282 filename clipart/ChildDocumentQt4.png
32284 scaleBeforeRotation
32288 To include child documents in a master document use the menu
32290 Insert\SpecialChar \menuseparator
32291 File\SpecialChar \menuseparator
32293 \begin_inset space ~
32299 A dialog pops up where you can choose between four include methods:
32302 \begin_layout Description
32303 Include You can include LyX and LaTeX-documents.
32312 dialog, the included documents will be opened in LyX in a new file tab
32313 so that you can modify them.
32314 \begin_inset Newline newline
32320 \begin_layout Standard
32321 Here is a child document inserted using
32326 \begin_inset CommandInset include
32327 LatexCommand include
32328 filename "DummyDocument1.lyx"
32335 \begin_layout Standard
32336 The section numbering includes the sections of the included files in the
32337 order they are inserted in the master document.
32338 The included example document has for example a subsection that is numbered
32339 as a subsection of this section.
32340 Labels of included documents can be referenced: Subsection
32341 \begin_inset space ~
32345 \begin_inset CommandInset ref
32347 reference "sub:External-Subsection-1"
32354 \begin_layout Standard
32355 The preamble of the child document is ignored; only the preamble of the
32356 master document is used.
32357 Branches in child documents will be ignored by the master document when
32358 the master document does not have a branch with the same name.
32359 Included documents are inserted starting on a new page and ending with
32363 \begin_layout Standard
32364 If you are only working on a certain chapter of a large document and want
32365 to save compiling time, you can put each included file into a branch.
32369 \begin_layout Plain Layout
32370 Branches are described in section
32383 By enabling/disabling branches you can decide what included files will
32384 appear in the output.
32387 \begin_layout Standard
32388 \begin_inset Note Greyedout
32391 \begin_layout Plain Layout
32396 Due to a bug in LyX the LaTeX command
32402 can currently not be used as an alternative to decide what files should
32411 \begin_layout Standard
32412 \begin_inset Note Greyedout
32415 \begin_layout Plain Layout
32420 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32421 w the document in case the child document uses another document class than
32422 the master document as this will lead to unexpected outputs.
32430 \begin_layout Description
32431 Input This method is very similar to the Include method.
32432 The differences are:
32436 \begin_layout Itemize
32437 Input files don't start with a new page and don't end with a page break.
32440 \begin_layout Itemize
32441 Input files can be previewed in LyX when
32444 \begin_inset space ~
32449 is enabled in LyX's preferences under
32452 \begin_inset space ~
32456 \begin_inset space ~
32459 feel\SpecialChar \menuseparator
32465 \begin_layout Itemize
32476 \begin_layout Standard
32477 Here is a child document inserted using
32482 \begin_inset CommandInset include
32484 filename "DummyDocument2.lyx"
32491 \begin_layout Description
32492 Verbatim With this method every text file can be included.
32493 The file is shown in the output with its source code; no command used in
32494 the text is invoked.
32495 You can use the option
32497 Mark spaces in output
32499 that displays the character
32500 \begin_inset Quotes eld
32507 \begin_layout Plain Layout
32517 \begin_inset Quotes erd
32520 for every space character in the source code.
32521 The difference from the method via the menu
32523 Insert\SpecialChar \menuseparator
32524 File\SpecialChar \menuseparator
32526 \begin_inset space ~
32531 is that the document content is not shown in LyX.
32534 \begin_layout Standard
32535 Here is a child document inserted as Verbatim:
32536 \begin_inset CommandInset include
32537 LatexCommand verbatiminput
32538 filename "DummyTextDocument.txt"
32543 \begin_inset VSpace bigskip
32546 Here is a child document inserted as Verbatim using the
32548 Mark spaces in output
32551 \begin_inset CommandInset include
32552 LatexCommand verbatiminput*
32553 filename "DummyTextDocument.txt"
32560 \begin_layout Standard
32561 \begin_inset VSpace bigskip
32567 \begin_layout Standard
32568 \begin_inset Note Greyedout
32571 \begin_layout Plain Layout
32576 As you can see in the examples above, the text of the documents included
32581 is not broken at the end of the document lines.
32589 \begin_layout Description
32590 Listings This type is described in chapter
32591 \begin_inset space ~
32595 \begin_inset CommandInset ref
32597 reference "cha:Program-Code-Listings"
32604 \begin_layout Standard
32605 \begin_inset Note Greyedout
32608 \begin_layout Plain Layout
32613 Including the same document twice in a document using different methods
32614 could cause LaTeX-problems.
32622 \begin_layout Chapter
32623 Program Code Listings
32624 \begin_inset CommandInset label
32626 name "cha:Program-Code-Listings"
32631 \begin_inset Index idx
32634 \begin_layout Plain Layout
32641 \begin_inset Index idx
32644 \begin_layout Plain Layout
32651 \begin_inset Index idx
32654 \begin_layout Plain Layout
32663 \begin_layout Standard
32664 To include and typeset program code you can use the
32668 inset that can be inserted via the menu
32670 Insert\SpecialChar \menuseparator
32679 \begin_inset Index idx
32682 \begin_layout Plain Layout
32683 LaTeX-packages ! listings
32688 provides a powerful and flexible way to insert program source code into
32692 \begin_layout Standard
32693 Right-clicking on a listings inset opens the context menu containing where
32694 you can set the listings format.
32697 \begin_layout Standard
32698 By default, a listing starts a new paragraph in the output.
32699 The placement option
32702 \begin_inset space ~
32707 prints the listing inline like this:
32708 \begin_inset listings
32709 lstparams "language={C++}"
32713 \begin_layout Plain Layout
32721 \begin_inset Newline newline
32728 creates a listings float where you can specify the placement options
32729 \begin_inset Quotes eld
32737 \begin_inset Quotes erd
32741 \begin_inset Quotes eld
32749 \begin_inset Quotes erd
32753 \begin_inset Quotes eld
32761 \begin_inset Quotes erd
32765 \begin_inset Quotes eld
32773 \begin_inset Quotes erd
32776 corresponding to the float placement options described in section
32777 \begin_inset space ~
32781 \begin_inset CommandInset ref
32783 reference "sec:Float-Placement"
32788 The placement options can be mixed and are inserted without any separation,
32790 \begin_inset space \thinspace{}
32794 \begin_inset space \space{}
32798 \begin_inset Quotes eld
32806 \begin_inset Quotes erd
32811 \begin_inset Quotes eld
32815 \begin_inset Quotes erd
32818 has sometimes no effect, but you don't need to use the
32822 option in this case as also non-float listings can have captions and be
32826 \begin_layout Standard
32827 You can add captions to listings with the menu
32829 Insert\SpecialChar \menuseparator
32833 Listings can be referenced like floats: Listing
32834 \begin_inset space ~
32838 \begin_inset CommandInset ref
32840 reference "lst:Example-Listing"
32847 \begin_layout Standard
32848 \begin_inset listings
32849 lstparams "language=Python"
32853 \begin_layout Plain Layout
32855 \begin_inset Caption
32857 \begin_layout Plain Layout
32858 \begin_inset CommandInset label
32860 name "lst:Example-Listing"
32864 Example Listing float
32869 # Example listing float
32872 \begin_layout Plain Layout
32877 \begin_layout Plain Layout
32879 'this is a python function'
32882 \begin_layout Plain Layout
32892 \begin_layout Standard
32893 When you have set a programming language in the listings dialog, the keywords
32894 of this language will be recognized and specially typeset in the output.
32895 In the example listings the Python keyword
32896 \begin_inset Quotes eld
32900 \begin_inset Quotes erd
32903 is recognized and printed bold in the output.
32906 \begin_layout Standard
32907 \begin_inset Note Greyedout
32910 \begin_layout Plain Layout
32915 If you don't get bold keywords when using typewriter fonts, your
32919 font probably doesn't provide a bold shape.
32920 In this case select a different one in the menu
32922 Document\SpecialChar \menuseparator
32923 Settings\SpecialChar \menuseparator
32935 provide bold shapes.)
32943 \begin_layout Standard
32947 \begin_inset space ~
32952 of the listings dialog you can specify the line numbering style.
32953 You can insert a number to specify which lines are numbered in the field
32960 \begin_inset space \thinspace{}
32964 \begin_inset space \space{}
32968 \begin_inset Quotes eld
32972 \begin_inset Quotes erd
32975 , only every 3rd line will be numbered.
32978 \begin_layout Standard
32979 You can furthermore specify a range of lines; only these will then appear
32983 Extended character table
32985 should be used when you use national characters like the German umlauts
32987 \begin_inset Newline newline
32990 Here is an example listing with left line numbering, step
32991 \begin_inset Quotes eld
32995 \begin_inset Quotes erd
32999 \begin_inset Quotes eld
33003 \begin_inset Quotes erd
33007 \begin_inset Quotes eld
33010 Extended character table
33011 \begin_inset Quotes erd
33015 \begin_inset Quotes eld
33019 \begin_inset space ~
33023 \begin_inset space ~
33027 \begin_inset Quotes erd
33031 \begin_inset space \thinspace{}
33035 \begin_inset space \thinspace{}
33041 \begin_layout Standard
33042 \begin_inset listings
33043 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33047 \begin_layout Plain Layout
33052 \begin_layout Plain Layout
33054 'this is a python function'
33057 \begin_layout Plain Layout
33062 \begin_layout Plain Layout
33067 \begin_layout Plain Layout
33069 'This is a German word: Tschüß'
33072 \begin_layout Plain Layout
33077 \begin_layout Plain Layout
33082 \begin_layout Plain Layout
33084 'this is a python function'
33087 \begin_layout Plain Layout
33097 \begin_layout Standard
33098 When you have tabulators in your listing, you can specify the number of
33099 characters that are spanned by a tabulator in the field
33102 \begin_inset space ~
33110 \begin_layout Standard
33111 \begin_inset Note Greyedout
33114 \begin_layout Plain Layout
33119 Due to a bug in the
33123 package the line numbering is shifted by a line by every previous listing.
33124 That's the reason why the lines 2 and 5 are numbered in the above listing
33125 and not the lines 3 and 6.
33133 \begin_layout Standard
33134 \begin_inset VSpace bigskip
33140 \begin_layout Standard
33141 It is also possible to print lines from a file as listing.
33142 To do this, use the menu
33144 Insert\SpecialChar \menuseparator
33145 File\SpecialChar \menuseparator
33148 and choose the type
33156 \begin_layout Plain Layout
33157 The other child document types are described in section
33158 \begin_inset space ~
33162 \begin_inset CommandInset ref
33164 reference "sec:Child-Documents"
33173 In the child document dialog you can specify the listing parameters in
33175 To show a list of all available parameters, type in a question mark
33176 \begin_inset Quotes eld
33180 \begin_inset Quotes erd
33186 \begin_layout Standard
33187 To reference child document listings, write a label text into the corresponding
33188 field of the child document dialog.
33189 The label can then be referenced using the menu
33191 Insert\SpecialChar \menuseparator
33197 \begin_layout Standard
33199 \begin_inset space ~
33203 \begin_inset CommandInset ref
33205 reference "lst:file-listing"
33209 is an example for a listing of a file; there the lines 10
33210 \begin_inset space \thinspace{}
33214 \begin_inset space \thinspace{}
33217 15 of this LyX file are listed.
33220 \begin_layout Standard
33221 \begin_inset CommandInset include
33222 LatexCommand lstinputlisting
33223 filename "EmbeddedObjects.lyx"
33224 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33231 \begin_layout Standard
33232 \begin_inset VSpace bigskip
33238 \begin_layout Standard
33239 Inserting a formula into a listing can be done the following way:
33242 \begin_layout Enumerate
33243 Open the listings dialog and add
33244 \begin_inset Newline newline
33252 \begin_inset Newline newline
33255 to the field of the
33262 \begin_layout Enumerate
33263 Create a formula outside the listing
33266 \begin_layout Enumerate
33267 Copy the content of the formula (not the formula inset) to the clipboard
33277 \begin_layout Enumerate
33278 In the listing write
33279 \begin_inset Quotes eld
33287 \begin_inset Quotes erd
33290 and copy from the clipboard between the dollar-signs (shortcut
33299 \begin_layout Standard
33300 \begin_inset listings
33301 lstparams "language=Python,mathescape=true"
33305 \begin_layout Plain Layout
33307 \begin_inset Caption
33309 \begin_layout Plain Layout
33310 Example Listing float containing a formula
33315 # Example listing float
33318 \begin_layout Plain Layout
33323 \begin_layout Plain Layout
33336 \begin_layout Plain Layout
33346 \begin_layout Standard
33347 \begin_inset VSpace bigskip
33353 \begin_layout Standard
33354 Global listings settings can be set in the
33356 Document\SpecialChar \menuseparator
33357 Settings\SpecialChar \menuseparator
33361 To get there a list of available options, type in a question mark
33362 \begin_inset Quotes eld
33366 \begin_inset Quotes erd
33372 \begin_inset space ~
33380 \begin_layout Standard
33381 For more information about the
33385 package, we refer to its documentation
33386 \begin_inset CommandInset citation
33395 \begin_layout Standard
33396 \begin_inset Newpage newpage
33402 \begin_layout Chapter
33404 Units available in LyX
33405 \begin_inset Index idx
33408 \begin_layout Plain Layout
33415 \begin_inset CommandInset label
33417 name "cha:Units-available-in"
33424 \begin_layout Standard
33425 To understand the units described in this documentation, Table
33426 \begin_inset space ~
33430 \begin_inset CommandInset ref
33432 reference "tab:Units"
33436 explains all units available in LyX.
33439 \begin_layout Standard
33440 \begin_inset Float table
33446 \begin_layout Plain Layout
33447 \begin_inset Caption
33449 \begin_layout Plain Layout
33450 \begin_inset CommandInset label
33464 \begin_layout Plain Layout
33465 \begin_inset VSpace medskip
33471 \begin_layout Plain Layout
33473 \begin_inset Tabular
33474 <lyxtabular version="3" rows="20" columns="2">
33475 <features tabularvalignment="middle">
33476 <column alignment="center" valignment="top" width="0">
33477 <column alignment="center" valignment="top" width="0">
33479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33482 \begin_layout Plain Layout
33488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33491 \begin_layout Plain Layout
33499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33502 \begin_layout Plain Layout
33508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33511 \begin_layout Plain Layout
33519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33522 \begin_layout Plain Layout
33528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33531 \begin_layout Plain Layout
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
33559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33562 \begin_layout Plain Layout
33568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33571 \begin_layout Plain Layout
33573 \begin_inset space \thinspace{}
33577 \begin_inset space \thinspace{}
33587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33590 \begin_layout Plain Layout
33596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33599 \begin_layout Plain Layout
33601 \begin_inset space \thinspace{}
33605 \begin_inset space \thinspace{}
33615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33618 \begin_layout Plain Layout
33624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33627 \begin_layout Plain Layout
33628 scaled point (65536
33629 \begin_inset space \thinspace{}
33633 \begin_inset space \thinspace{}
33643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33646 \begin_layout Plain Layout
33652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33655 \begin_layout Plain Layout
33657 \begin_inset space \thinspace{}
33661 \begin_inset space \thinspace{}
33671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33674 \begin_layout Plain Layout
33680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33683 \begin_layout Plain Layout
33685 \begin_inset space \thinspace{}
33689 \begin_inset Formula $\approx$
33693 \begin_inset space \thinspace{}
33703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33706 \begin_layout Plain Layout
33712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33715 \begin_layout Plain Layout
33717 \begin_inset space \thinspace{}
33721 \begin_inset space \thinspace{}
33731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33734 \begin_layout Plain Layout
33740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33743 \begin_layout Plain Layout
33744 % of original image width
33751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33754 \begin_layout Plain Layout
33760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33763 \begin_layout Plain Layout
33771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33774 \begin_layout Plain Layout
33780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33783 \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
33811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33814 \begin_layout Plain Layout
33820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33823 \begin_layout Plain Layout
33831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33834 \begin_layout Plain Layout
33840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33843 \begin_layout Plain Layout
33851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33854 \begin_layout Plain Layout
33860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33863 \begin_layout Plain Layout
33871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33874 \begin_layout Plain Layout
33880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33883 \begin_layout Plain Layout
33895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33898 \begin_layout Plain Layout
33904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33907 \begin_layout Plain Layout
33919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33922 \begin_layout Plain Layout
33928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33931 \begin_layout Plain Layout
33933 \begin_inset space \thinspace{}
33937 \begin_inset space \thinspace{}
33958 \begin_layout Chapter
33959 Output File Formats with Graphics
33960 \begin_inset CommandInset label
33962 name "cha:Output-File-Formats"
33969 \begin_layout Section
33971 \begin_inset Index idx
33974 \begin_layout Plain Layout
33981 \begin_inset Index idx
33984 \begin_layout Plain Layout
33989 \begin_layout Plain Layout
34000 \begin_layout Plain Layout
34015 \begin_layout Standard
34016 This file type has the extension
34017 \begin_inset Quotes eld
34025 \begin_inset Quotes erd
34030 \begin_inset Quotes eld
34034 \begin_inset Quotes erd
34037 (DVI), because it is completely portable; you can move them from one machine
34038 to another without needing to do any sort of conversion.
34039 At the time when this file-format was developed, this was no matter of
34041 DVIs are used for quick previews and as pre-stage for other output formats,
34045 \begin_layout Standard
34046 \begin_inset Note Greyedout
34049 \begin_layout Plain Layout
34054 DVI-files do not contain images; they will only be a linked.
34059 So don't forget this, if you move your
34063 file to another computer.
34064 This property can also slow down your computer when you view the DVI, because
34065 the DVI-viewer has to convert the image in the background to make it visible
34066 when you scroll in the DVI.
34067 So it is recommended that you use PDF for files with many images.
34070 \begin_layout Standard
34071 You can export your document to DVI by using the menu
34073 File\SpecialChar \menuseparator
34074 Export\SpecialChar \menuseparator
34078 You can view your document as DVI via the
34082 menu or by using the toolbar button
34083 \begin_inset Graphics
34084 filename ../images/buffer-view_dvi.png
34086 scaleBeforeRotation
34093 \begin_layout Section
34095 \begin_inset CommandInset label
34097 name "sec:PostScript"
34102 \begin_inset Index idx
34105 \begin_layout Plain Layout
34106 File Formats ! PostScript
34112 \begin_inset Index idx
34115 \begin_layout Plain Layout
34120 \begin_layout Plain Layout
34131 \begin_layout Plain Layout
34146 \begin_layout Standard
34147 This file type has the extension
34148 \begin_inset Quotes eld
34156 \begin_inset Quotes erd
34160 PostScript was developed by the company
34164 as a printer language.
34165 The file therefore contains commands that the printer uses to print the
34167 PostScript can be seen as a
34168 \begin_inset Quotes eld
34171 programming language
34172 \begin_inset Quotes erd
34175 ; you can calculate with it and draw diagrams and images
34179 \begin_layout Plain Layout
34180 If you are interested to learn more about this, have a look at the LaTeX-package
34186 \begin_inset CommandInset citation
34198 Due to this ability, the files are often bigger than PDFs.
34201 \begin_layout Standard
34202 PostScript can only contain images in the format
34203 \begin_inset Quotes eld
34206 Encapsulated PostScript
34207 \begin_inset Quotes erd
34210 (EPS, file extension
34211 \begin_inset Quotes eld
34219 \begin_inset Quotes erd
34223 As LyX allows you to use any known image format in your document, it has
34224 to convert images in the background to EPS.
34226 \begin_inset space ~
34230 \begin_inset space ~
34233 images in your document, LyX has to do 50
34234 \begin_inset space ~
34237 conversions whenever you view or export your document.
34238 This will slow down your work flow with LyX drastically.
34239 So if you plan to use PostScript, you can insert your images directly as
34240 EPS to avoid this problem.
34243 \begin_layout Standard
34244 You can export your document to PostScript using the menu
34246 File\SpecialChar \menuseparator
34247 Export\SpecialChar \menuseparator
34251 You can view your document as PostScript via the
34255 menu or by using the toolbar button
34256 \begin_inset Graphics
34257 filename ../images/buffer-view_ps.png
34259 scaleBeforeRotation
34266 \begin_layout Section
34268 \begin_inset Index idx
34271 \begin_layout Plain Layout
34278 \begin_inset Index idx
34281 \begin_layout Plain Layout
34290 \begin_layout Standard
34291 This file type has the extension
34292 \begin_inset Quotes eld
34300 \begin_inset Quotes erd
34305 \begin_inset Quotes eld
34308 Portable Document Format
34309 \begin_inset Quotes erd
34312 (PDF) was developed by
34316 as a derivative of PostScript.
34317 It is more compressed and it uses fewer commands than PostScript.
34319 \begin_inset Quotes eld
34323 \begin_inset Quotes erd
34326 implies, it can be processed at any computer system and the printed output
34327 looks exactly the same.
34330 \begin_layout Standard
34331 PDF can contain images in its own PDF format, in the format
34332 \begin_inset Quotes eld
34335 Joint Photographic Experts Group
34336 \begin_inset Quotes erd
34339 (JPG, file extension
34340 \begin_inset Quotes eld
34348 \begin_inset Quotes erd
34352 \begin_inset Quotes eld
34360 \begin_inset Quotes erd
34363 ), and in the format
34364 \begin_inset Quotes eld
34367 Portable Network Graphics
34368 \begin_inset Quotes erd
34371 (PNG, file extension
34372 \begin_inset Quotes eld
34380 \begin_inset Quotes erd
34384 Nevertheless you can use any other image format, because LyX converts them
34385 in the background to one of these formats.
34386 But as described in the section about PostScript, the image conversion
34387 will slow down your work flow.
34388 So it is recommended that you use images in one of the three mentioned
34392 \begin_layout Standard
34393 You can export your document to PDF via the menu
34395 File\SpecialChar \menuseparator
34398 in three different ways:
34401 \begin_layout Description
34403 \begin_inset space ~
34406 (ps2pdf) This uses the program
34410 that creates a PDF from a PostScript-version of your file.
34411 The PostScript-version is produced by the program
34415 which uses a DVI-version as intermediate step.
34416 So this export variant consists of three conversions.
34419 \begin_layout Description
34421 \begin_inset space ~
34424 (dvipdfm) This uses the program
34428 that converts your file in the background to DVI and in a second step to
34432 \begin_layout Description
34434 \begin_inset space ~
34437 (pdflatex) This uses the program
34441 that converts your file directly to PDF.
34444 \begin_layout Standard
34445 It is recommended that you use
34448 \begin_inset space ~
34457 supports all features of actual PDF-versions, is quick and works stable.
34462 is not under development and therefore a bit outdated.
34465 \begin_layout Standard
34466 You can view your document as PDF via the
34470 menu or by using the toolbar button
34471 \begin_inset Graphics
34472 filename ../images/buffer-view_pdf2.png
34474 scaleBeforeRotation
34485 \begin_inset space ~
34493 \begin_layout Chapter
34494 Explanation of Equation
34495 \begin_inset space ~
34499 \begin_inset CommandInset ref
34506 \begin_inset CommandInset label
34508 name "cha:Explanation-of-Equation"
34515 \begin_layout Standard
34516 We can calculate the total width of
34521 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34527 \begin_layout Standard
34528 \begin_inset Formula \begin{equation}
34529 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}
34534 \begin_inset Formula $W_{g\, n}$
34537 is the given width of all cells,
34543 is the LaTeX-length between the cell text and the cell border (its default
34545 \begin_inset space \thinspace{}
34555 is the thickness of the cell border line, the default is 0.4
34556 \begin_inset space \thinspace{}
34562 \begin_layout Standard
34564 \begin_inset space ~
34568 \begin_inset CommandInset ref
34570 reference "eq:Wtot_n"
34574 , the total width of a multicolumn
34575 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34581 \begin_layout Standard
34582 \begin_inset Formula \begin{equation}
34583 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34590 \begin_layout Standard
34591 By setting equation
34592 \begin_inset space ~
34596 \begin_inset CommandInset ref
34598 reference "eq:Wtot_n"
34603 \begin_inset CommandInset ref
34605 reference "eq:Wtot_mult"
34609 equal we can calculate the needed given width
34610 \begin_inset Formula $W_{g\, n}$
34617 columns are spanned, so that each column has a total width of
34618 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34624 \begin_layout Standard
34625 \begin_inset Formula \begin{equation}
34626 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34633 \begin_layout Bibliography
34634 \labelwidthstring Bibliography
34635 \begin_inset CommandInset bibitem
34636 LatexCommand bibitem
34637 key "latexcompanion"
34641 Frank Mittelbach and Michel Goossens:
34643 The LaTeX Companion Second Edition.
34646 Addison-Wesley, 2004
34649 \begin_layout Bibliography
34650 \labelwidthstring Bibliography
34651 \begin_inset CommandInset bibitem
34652 LatexCommand bibitem
34657 Helmut Kopka and Patrick W.
34660 A Guide to LaTeX Fourth Edition.
34663 Addison-Wesley, 2003
34666 \begin_layout Bibliography
34667 \labelwidthstring Bibliography
34668 \begin_inset CommandInset bibitem
34669 LatexCommand bibitem
34676 LaTeX: A Document Preparation System.
34679 Addison-Wesley, second edition, 1994
34682 \begin_layout Bibliography
34683 \labelwidthstring Bibliography
34684 \begin_inset CommandInset bibitem
34685 LatexCommand bibitem
34690 Documentation of the LaTeX-package
34693 \begin_inset CommandInset href
34696 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34703 \begin_inset Index idx
34706 \begin_layout Plain Layout
34707 LaTeX-packages ! booktabs
34715 \begin_layout Bibliography
34716 \labelwidthstring Bibliography
34717 \begin_inset CommandInset bibitem
34718 LatexCommand bibitem
34723 Documentation of the LaTeX-package
34726 \begin_inset CommandInset href
34729 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34736 \begin_inset Index idx
34739 \begin_layout Plain Layout
34740 LaTeX-packages ! caption
34748 \begin_layout Bibliography
34749 \labelwidthstring Bibliography
34750 \begin_inset CommandInset bibitem
34751 LatexCommand bibitem
34756 Documentation of the LaTeX-package
34759 \begin_inset CommandInset href
34762 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34769 \begin_inset Index idx
34772 \begin_layout Plain Layout
34773 LaTeX-packages ! endfloat
34781 \begin_layout Bibliography
34782 \labelwidthstring Bibliography
34783 \begin_inset CommandInset bibitem
34784 LatexCommand bibitem
34789 Documentation of the LaTeX-package
34792 \begin_inset CommandInset href
34795 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34802 \begin_inset Index idx
34805 \begin_layout Plain Layout
34806 LaTeX-packages ! wrapfig
34810 \begin_layout Plain Layout
34827 \begin_layout Bibliography
34828 \labelwidthstring Bibliography
34829 \begin_inset CommandInset bibitem
34830 LatexCommand bibitem
34835 Documentation of the LaTeX-package
34838 \begin_inset CommandInset href
34841 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34848 \begin_inset Index idx
34851 \begin_layout Plain Layout
34852 LaTeX-packages ! footmisc
34860 \begin_layout Bibliography
34861 \labelwidthstring Bibliography
34862 \begin_inset CommandInset bibitem
34863 LatexCommand bibitem
34868 Documentation of the LaTeX-package
34871 \begin_inset CommandInset href
34874 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34881 \begin_inset Index idx
34884 \begin_layout Plain Layout
34885 LaTeX-packages ! hyperref
34893 \begin_layout Bibliography
34894 \labelwidthstring Bibliography
34895 \begin_inset CommandInset bibitem
34896 LatexCommand bibitem
34901 Documentation of the LaTeX-package
34904 \begin_inset CommandInset href
34907 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34914 \begin_inset Index idx
34917 \begin_layout Plain Layout
34918 LaTeX-packages ! hyperref
34926 \begin_layout Bibliography
34927 \labelwidthstring Bibliography
34928 \begin_inset CommandInset bibitem
34929 LatexCommand bibitem
34934 Documentation of the LaTeX-package
34937 \begin_inset CommandInset href
34940 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34947 \begin_inset Index idx
34950 \begin_layout Plain Layout
34951 LaTeX-packages ! KOMA-Script
34959 \begin_layout Bibliography
34960 \labelwidthstring Bibliography
34961 \begin_inset CommandInset bibitem
34962 LatexCommand bibitem
34967 Documentation of the LaTeX-package
34970 \begin_inset CommandInset href
34973 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34980 \begin_inset Index idx
34983 \begin_layout Plain Layout
34984 LaTeX-packages ! listings
34992 \begin_layout Bibliography
34993 \labelwidthstring Bibliography
34994 \begin_inset CommandInset bibitem
34995 LatexCommand bibitem
35000 Documentation of the LaTeX-package
35003 \begin_inset CommandInset href
35006 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35013 \begin_inset Index idx
35016 \begin_layout Plain Layout
35017 LaTeX-packages ! marginnote
35025 \begin_layout Bibliography
35026 \labelwidthstring Bibliography
35027 \begin_inset CommandInset bibitem
35028 LatexCommand bibitem
35033 Web page of the LaTeX-package
35036 \begin_inset CommandInset href
35039 target "http://tug.org/PSTricks/"
35046 \begin_inset Index idx
35049 \begin_layout Plain Layout
35050 LaTeX-packages ! PSTricks
35058 \begin_layout Bibliography
35059 \labelwidthstring Bibliography
35060 \begin_inset CommandInset bibitem
35061 LatexCommand bibitem
35066 Documentation of the LaTeX-package
35069 \begin_inset CommandInset href
35072 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35079 \begin_inset Index idx
35082 \begin_layout Plain Layout
35083 LaTeX-packages ! sidecap
35091 \begin_layout Bibliography
35092 \labelwidthstring Bibliography
35093 \begin_inset CommandInset bibitem
35094 LatexCommand bibitem
35099 Documentation of the LaTeX-package
35102 \begin_inset CommandInset href
35105 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35112 \begin_inset Index idx
35115 \begin_layout Plain Layout
35116 LaTeX-packages ! prettyref
35124 \begin_layout Bibliography
35125 \labelwidthstring Bibliography
35126 \begin_inset CommandInset bibitem
35127 LatexCommand bibitem
35132 Documentation of the LaTeX-package
35135 \begin_inset CommandInset href
35138 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35145 \begin_inset Index idx
35148 \begin_layout Plain Layout
35149 LaTeX-packages ! refstyle
35157 \begin_layout Bibliography
35158 \labelwidthstring Bibliography
35159 \begin_inset CommandInset bibitem
35160 LatexCommand bibitem
35166 \begin_inset CommandInset href
35169 target "http://wiki.lyx.org/LyX/NewInLyX20"
35173 about new features in
35180 \begin_layout Standard
35181 \begin_inset CommandInset index_print
35182 LatexCommand printindex