1 #LyX 1.6.3svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
486 in the appearing context menu.
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about the caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because as LaTeX will reposition the floats in the final document, it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , every output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixeled in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In this cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: Move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as their widest cell content
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotates the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as decribed in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table toolbar is opened, you can move the cursor with the arrow
2178 keys from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables to the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 That means if you are using the document classes
2803 there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appear on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 In contrary to the alignment of the table columns and row, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 Where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use for a table row the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for every longtable, also if you didn't set
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6078 2.4 follows on Table
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code behind every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example for a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are pieces of the tables that are at once in LaTeX's memory.
9342 The default value is historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such situation, add the command
9380 as TeX-Code before your longtable.
9383 \begin_layout Subsection
9388 \begin_layout Plain Layout
9389 Longtables ! Forced Page Breaks
9397 \begin_layout Standard
9398 By default tables are only broken between rows.
9399 If you have a cell with multiples lines and want to have a page break within
9400 the cell, insert the new line command
9401 \begin_inset Quotes eld
9413 \begin_inset Quotes erd
9416 as TeX-Code at this point of the cell where it can be broken.
9425 command you have to insert in TeX-Code so many
9426 \begin_inset Quotes eld
9434 \begin_inset Quotes erd
9437 characters like the number of the following table columns.
9442 is the character to separate table cells.
9443 Write in TeX-Code after each
9447 the content of the corresponding following cell and delete the content
9449 \begin_inset Newline newline
9460 command, insert so many
9464 characters like the number of table columns before the current column.
9466 \begin_inset space ~
9470 \begin_inset CommandInset ref
9472 reference "tab:ForcedPagebreak"
9476 the cell that should be broken is in the second column followed by another
9478 Therefore the following command was inserted in the cell as TeX-Code behind
9480 \begin_inset Quotes eld
9488 \begin_inset Quotes erd
9494 \begin_layout Standard
9504 \begin_inset Newline newline
9510 \begin_layout Standard
9512 \begin_inset Quotes eld
9516 \begin_inset Quotes erd
9519 in the third columns of the row was deleted.
9526 is only needed when a page break should definitively occur at this position,
9527 otherwise it is only a possibility to break.
9528 If your footer row of the longtable has for a certain reason no upper line
9529 but you would have a horizontal line where the cell is broken, use this
9533 \begin_layout Standard
9541 \begin_inset Newline newline
9549 \begin_layout Standard
9550 When the cell to be broken is in the last column, the command
9553 \begin_layout Standard
9563 \begin_layout Standard
9564 must be inserted as TeX-Code at the beginning of the cell.
9565 This assures that the part of the cell that will be displayed on the new
9566 page appears with the full width.
9569 \begin_layout Standard
9571 \begin_inset Tabular
9572 <lyxtabular version="3" rows="38" columns="3">
9573 <features islongtable="true" lastFootEmpty="true">
9574 <column alignment="left" valignment="top" width="0cm">
9575 <column alignment="left" valignment="top" width="3cm">
9576 <column alignment="center" valignment="top" width="0pt">
9577 <row caption="true">
9578 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9581 \begin_layout Plain Layout
9582 \begin_inset Caption
9584 \begin_layout Plain Layout
9585 Table with forced page break in table cell
9586 \begin_inset CommandInset label
9588 name "tab:ForcedPagebreak"
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9615 \begin_layout Plain Layout
9621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9624 \begin_layout Plain Layout
9631 <row endfirsthead="true">
9632 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9635 \begin_layout Plain Layout
9638 Example Phone List (ignore the names)
9643 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9646 \begin_layout Plain Layout
9652 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9655 \begin_layout Plain Layout
9662 <row endfirsthead="true">
9663 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9666 \begin_layout Plain Layout
9674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9677 \begin_layout Plain Layout
9683 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9686 \begin_layout Plain Layout
9695 <row endhead="true">
9696 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9699 \begin_layout Plain Layout
9703 \begin_layout Plain Layout
9707 caption*{Continued Example Phone List}
9721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9724 \begin_layout Plain Layout
9730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9733 \begin_layout Plain Layout
9740 <row endhead="true">
9741 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9744 \begin_layout Plain Layout
9752 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9755 \begin_layout Plain Layout
9761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9764 \begin_layout Plain Layout
9771 <row endhead="true">
9772 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9775 \begin_layout Plain Layout
9783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9786 \begin_layout Plain Layout
9792 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9795 \begin_layout Plain Layout
9804 <row endfoot="true">
9805 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9808 \begin_layout Plain Layout
9809 continued on next page
9814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9817 \begin_layout Plain Layout
9823 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9826 \begin_layout Plain Layout
9834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9837 \begin_layout Plain Layout
9845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9848 \begin_layout Plain Layout
9854 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9857 \begin_layout Plain Layout
9865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9868 \begin_layout Plain Layout
9876 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9879 \begin_layout Plain Layout
9885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9888 \begin_layout Plain Layout
9896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9899 \begin_layout Plain Layout
9907 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9910 \begin_layout Plain Layout
9916 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9919 \begin_layout Plain Layout
9927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9930 \begin_layout Plain Layout
9938 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9941 \begin_layout Plain Layout
9947 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9950 \begin_layout Plain Layout
9958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9961 \begin_layout Plain Layout
9969 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9972 \begin_layout Plain Layout
9978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9981 \begin_layout Plain Layout
9989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9992 \begin_layout Plain Layout
10000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10003 \begin_layout Plain Layout
10009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10012 \begin_layout Plain Layout
10020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10023 \begin_layout Plain Layout
10031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10034 \begin_layout Plain Layout
10040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10054 \begin_layout Plain Layout
10062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10065 \begin_layout Plain Layout
10071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10074 \begin_layout Plain Layout
10082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10085 \begin_layout Plain Layout
10093 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10096 \begin_layout Plain Layout
10102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10116 \begin_layout Plain Layout
10124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10127 \begin_layout Plain Layout
10133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10136 \begin_layout Plain Layout
10144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10147 \begin_layout Plain Layout
10155 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10158 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10178 \begin_layout Plain Layout
10186 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10189 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10209 \begin_layout Plain Layout
10217 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10220 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10240 \begin_layout Plain Layout
10248 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10251 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10271 \begin_layout Plain Layout
10279 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10282 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10302 \begin_layout Plain Layout
10310 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10313 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10333 \begin_layout Plain Layout
10341 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10344 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10364 \begin_layout Plain Layout
10372 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10375 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10395 \begin_layout Plain Layout
10403 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10406 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10426 \begin_layout Plain Layout
10434 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10437 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10457 \begin_layout Plain Layout
10465 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10468 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10488 \begin_layout Plain Layout
10496 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10499 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10519 \begin_layout Plain Layout
10527 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10530 \begin_layout Plain Layout
10532 Fürst von Montecompatri, 11.
10533 Fürst von Sulmona und Vivaro, 10.
10534 Fürst von Rossano, 5.
10535 Herzog von Canemorte, 11.
10536 Herzog von Palombara, 5.
10537 Herzog von Castelchiodato,
10541 \begin_layout Plain Layout
10552 \begin_layout Plain Layout
10560 Herzog von Poggionativo, 11.
10561 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10562 Graf von Valinfreda, 11.
10563 Baron von Cropalati, 11.
10564 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10569 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10572 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10594 \begin_layout Plain Layout
10600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10603 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10625 \begin_layout Plain Layout
10631 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10634 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10656 \begin_layout Plain Layout
10662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10665 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10687 \begin_layout Plain Layout
10693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10696 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10718 \begin_layout Plain Layout
10724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10727 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10749 \begin_layout Plain Layout
10755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10758 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10780 \begin_layout Plain Layout
10786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10789 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10811 \begin_layout Plain Layout
10817 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10820 \begin_layout Plain Layout
10834 \begin_layout Section
10835 Multiple Lines Columns and Rows
10838 \begin_layout Subsection
10839 Multiple Lines in Table Cells
10840 \begin_inset CommandInset label
10842 name "sub:Multiple-Lines-in"
10850 \begin_layout Plain Layout
10851 Multiple Lines in Table Cells
10860 \begin_layout Plain Layout
10869 \begin_layout Standard
10871 \begin_inset Float table
10877 \begin_layout Plain Layout
10878 \begin_inset Caption
10880 \begin_layout Plain Layout
10881 \begin_inset CommandInset label
10883 name "tab:Table-with-multiple"
10887 Table with multiple lines in cells
10895 \begin_layout Plain Layout
10897 \begin_inset Tabular
10898 <lyxtabular version="3" rows="3" columns="3">
10900 <column alignment="center" valignment="middle" width="2.5cm">
10901 <column alignment="center" valignment="middle" width="0">
10902 <column alignment="center" valignment="middle" width="0">
10904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10907 \begin_layout Plain Layout
10909 \begin_inset Newline linebreak
10917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10920 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10949 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10958 \begin_layout Plain Layout
10966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10969 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10978 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
11006 \begin_layout Standard
11007 Adjusting a fixed width for a column, enables to enter text as a paragraph
11008 with multiple lines and hyphenations.
11011 \begin_layout Standard
11013 \begin_inset space ~
11017 \begin_inset CommandInset ref
11019 reference "tab:Table-with-multiple"
11023 , create a 3×3 table, mark the first cell and right-click on it.
11024 In the appearing table dialog we set a cell width of 2.5
11025 \begin_inset space \thinspace{}
11028 cm and choose centered for the vertical and horizontal alignment.
11029 The vertical alignment is used for all cells of the row.
11030 As our text is smaller than than 2.5
11031 \begin_inset space \thinspace{}
11034 cm, only one line will appear.
11035 To get two lines, a justified line break (shortcut
11038 arg "newline-insert linebreak"
11042 If the text is wider than the set cell width, it will automatically be
11043 broken to several lines.
11046 \begin_layout Standard
11047 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11048 by LaTeX if it is the first entry.
11049 Therefore you need to insert something, to make the word not being the
11051 So add a horizontal space of 0
11052 \begin_inset space \thinspace{}
11055 pt before the word.
11056 As the space is zero, it doesn't change the output.
11058 \begin_inset space ~
11062 \begin_inset CommandInset ref
11064 reference "tab:Table-with-and"
11071 \begin_layout Standard
11072 \begin_inset Float table
11078 \begin_layout Plain Layout
11079 \begin_inset Caption
11081 \begin_layout Plain Layout
11082 \begin_inset CommandInset label
11084 name "tab:Table-with-and"
11088 Table with and without hyphenation
11096 \begin_layout Plain Layout
11097 \begin_inset space \hfill{}
11101 \begin_inset Tabular
11102 <lyxtabular version="3" rows="3" columns="3">
11104 <column alignment="center" valignment="middle" width="2.5cm">
11105 <column alignment="center" valignment="middle" width="0">
11106 <column alignment="center" valignment="middle" width="0">
11108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11111 \begin_layout Plain Layout
11112 verylongtablecellword
11117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11120 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11149 \begin_layout Plain Layout
11155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11158 \begin_layout Plain Layout
11166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11169 \begin_layout Plain Layout
11175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11178 \begin_layout Plain Layout
11184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11187 \begin_layout Plain Layout
11199 \begin_inset space \hfill{}
11203 \begin_inset Tabular
11204 <lyxtabular version="3" rows="3" columns="3">
11206 <column alignment="center" valignment="middle" width="2.5cm">
11207 <column alignment="center" valignment="middle" width="0">
11208 <column alignment="center" valignment="middle" width="0">
11210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11213 \begin_layout Plain Layout
11214 \begin_inset space \hspace{}
11218 verylongtablecellword
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11235 \begin_layout Plain Layout
11243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11246 \begin_layout Plain Layout
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11255 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11264 \begin_layout Plain Layout
11272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11275 \begin_layout Plain Layout
11281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11284 \begin_layout Plain Layout
11290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11293 \begin_layout Plain Layout
11305 \begin_inset space \hfill{}
11316 \begin_layout Subsection
11318 \begin_inset CommandInset label
11320 name "sub:Multicolumns"
11328 \begin_layout Plain Layout
11338 \begin_layout Plain Layout
11339 Table ! Multicolumns
11347 \begin_layout Subsubsection
11351 \begin_layout Standard
11352 To span a cell over multiple columns, mark as much cells within a line that
11353 should be one spanned cell and use either the table-toolbar button
11354 \begin_inset Graphics
11355 filename ../images/tabular-feature_multicolumn.png
11357 scaleBeforeRotation
11363 Edit\SpecialChar \menuseparator
11364 Table\SpecialChar \menuseparator
11367 , or right click on the marked cells and choose multicolumn in the appearing
11368 table dialog under the tab
11375 \begin_layout Standard
11376 Multicolumns have there own cell settings.
11377 That means changing cell borders, cell alignment, and the width only affects
11379 Here is an example table with a multicolumn cell in the first row and one
11380 in the last row without the upper border:
11383 \begin_layout Standard
11385 \begin_inset Tabular
11386 <lyxtabular version="3" rows="3" columns="4">
11387 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11388 <column alignment="center" valignment="top" width="0pt">
11389 <column alignment="center" valignment="middle" width="0">
11390 <column alignment="center" valignment="top" width="0in">
11391 <column alignment="center" valignment="top" width="0pt">
11393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11396 \begin_layout Plain Layout
11402 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11405 \begin_layout Plain Layout
11411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11414 \begin_layout Plain Layout
11420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11423 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11470 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11490 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11508 \begin_layout Plain Layout
11522 \begin_layout Subsubsection
11523 Multicolumn Calculations
11524 \begin_inset CommandInset label
11526 name "sub:Multicolumn-Calculations"
11534 \begin_layout Plain Layout
11535 Multicolumns ! Calculations
11543 \begin_layout Standard
11544 LyX supports multicolumns directly, but we have to take notice of the cell
11545 width of the columns spanned by the multicolumn cell.
11548 \begin_layout Standard
11549 \begin_inset Float table
11555 \begin_layout Plain Layout
11556 \begin_inset Caption
11558 \begin_layout Plain Layout
11559 \begin_inset CommandInset label
11561 name "tab:Table-with-centered"
11565 Table with centered multicolumn text above two columns that have exactly
11566 half the width of the multicolumn cell
11567 \begin_inset OptArg
11570 \begin_layout Plain Layout
11571 Perfect multicolumn table
11584 \begin_layout Plain Layout
11586 \begin_inset Tabular
11587 <lyxtabular version="3" rows="3" columns="3">
11589 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11590 <column alignment="center" valignment="middle" width="0">
11591 <column alignment="center" valignment="top" width="0">
11593 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11596 \begin_layout Plain Layout
11597 multiple lines multicolumn
11602 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Plain Layout
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11614 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11625 \begin_layout Plain Layout
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11634 \begin_layout Plain Layout
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11643 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11654 \begin_layout Plain Layout
11660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11663 \begin_layout Plain Layout
11669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11672 \begin_layout Plain Layout
11691 \begin_layout Standard
11692 To create for example Table
11693 \begin_inset space ~
11697 \begin_inset CommandInset ref
11699 reference "tab:Table-with-centered"
11703 , mark the first two cells in the first row of a 3×3 table and right-click
11705 Now choose for this cell
11714 \begin_inset space \thinspace{}
11717 cm in the table dialog.
11718 The spanned columns should have exactly half the width of the multicolumn
11719 cell, so that you would adjust a width of 1.25
11720 \begin_inset space \thinspace{}
11723 cm for the first column.
11724 The second column has then automatically a width of 1.25
11725 \begin_inset space \thinspace{}
11728 cm (multicolumn width - width of first column).
11729 This was done for Table
11730 \begin_inset space ~
11734 \begin_inset CommandInset ref
11736 reference "tab:Table-without-half"
11743 \begin_layout Standard
11744 \begin_inset Float table
11749 \begin_layout Plain Layout
11750 \begin_inset Caption
11752 \begin_layout Plain Layout
11753 \begin_inset CommandInset label
11755 name "tab:Table-without-half"
11759 Table where the spanned table columns have not exactly half the width of
11760 the multicolumn cell
11761 \begin_inset OptArg
11764 \begin_layout Plain Layout
11765 Imperfect multicolumn table
11778 \begin_layout Plain Layout
11780 \begin_inset Tabular
11781 <lyxtabular version="3" rows="3" columns="3">
11783 <column alignment="center" valignment="top" width="1.25cm">
11784 <column alignment="center" valignment="top" width="0">
11785 <column alignment="center" valignment="top" width="0">
11787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11790 \begin_layout Plain Layout
11791 multiple lines multicolumn
11796 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11799 \begin_layout Plain Layout
11805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11808 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11828 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11837 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11857 \begin_layout Plain Layout
11863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11866 \begin_layout Plain Layout
11885 \begin_layout Standard
11886 You can see that the first column has not the half width of the multicolumn
11887 cell, it is a bit bigger.
11888 The reason is that the given width of a cell
11889 \begin_inset Formula $W_{g}$
11892 is not its total width
11893 \begin_inset Formula $W_{\mathrm{tot}}$
11896 because a cell is always a bit larger than its given width.
11898 \begin_inset space ~
11902 \begin_inset CommandInset ref
11904 reference "cha:Explanation-of-Equation"
11908 explains it in detail.
11911 \begin_layout Standard
11912 The needed given width
11913 \begin_inset Formula $W_{g\, n}$
11920 columns are spanned can be calculated, so that each column has a total
11922 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11926 \begin_inset Formula \begin{equation}
11927 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11934 \begin_layout Standard
11935 In our case we have
11936 \begin_inset Formula $n=2$
11940 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11943 cm and the default values for the lengths, so that equation
11944 \begin_inset CommandInset ref
11951 \begin_inset Formula \begin{equation}
11952 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11959 \begin_layout Standard
11960 To enable calculations in LaTeX, the LaTeX-package
11964 must be loaded with the document preamble line
11968 \begin_layout Plain Layout
11969 LaTeX-packages ! calc
11977 \begin_layout Standard
11985 \begin_layout Standard
11986 LyX does not allow to calculate lengths in the width-field of the table
11988 Therefore you have to format the column by inserting a LaTeX-argument in
11990 Here is an overview about the arguments:
11993 \begin_layout Itemize
11998 creates cell with a fixed width, its text is vertically top-aligned
12001 \begin_layout Itemize
12006 creates cell with a fixed width, its text is vertically centered
12009 \begin_layout Itemize
12014 creates cell with a fixed width, its text is vertically bottom-aligned
12017 \begin_layout Standard
12018 By entering a LaTeX-argument, all cell settings set in the table dialog
12022 \begin_layout Standard
12023 \begin_inset Note Greyedout
12026 \begin_layout Plain Layout
12031 Due to a bug, LyX shows the overwritten settings anyway.
12039 \begin_layout Standard
12040 As the text should be horizontally centered, the command
12047 You can now enter the following LaTeX-argument for the first spanned column:
12050 \begin_layout Standard
12055 centering}m{1.25cm-6.2pt}
12058 \begin_layout Standard
12063 means, that the commands inside the braces are applied before the cell
12067 \begin_layout Standard
12068 Although we have chosen centered alignment for the text of the multicolumn
12069 cell, it is still left aligned.
12070 This is because LyX only applies the alignment to single columns.
12071 So we have to use for the multicolumn the LaTeX-argument
12074 \begin_layout Standard
12082 \begin_layout Subsection
12087 \begin_layout Plain Layout
12097 \begin_layout Plain Layout
12106 \begin_layout Standard
12107 In contrary to multicolumns multirows are not yet supported by LyX so a
12108 bit of TeX-Code needs to be used.
12109 To use multirows load the LaTeX-package
12117 \begin_layout Plain Layout
12118 LaTeX-packages ! multirow
12123 in your document preamble with the command
12126 \begin_layout Standard
12131 usepackage{multirow}
12134 \begin_layout Standard
12135 Multirows are created with the command
12138 \begin_layout Standard
12143 multirow{number of rows}{cell width}{cell entry}
12146 \begin_layout Standard
12147 To create the following table:
12150 \begin_layout Standard
12155 \begin_layout Plain Layout
12169 \begin_inset Tabular
12170 <lyxtabular version="3" rows="3" columns="3">
12172 <column alignment="center" valignment="top" width="0">
12173 <column alignment="center" valignment="top" width="0">
12174 <column alignment="center" valignment="top" width="0">
12176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12188 \begin_layout Plain Layout
12194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12197 \begin_layout Plain Layout
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12208 \begin_layout Plain Layout
12212 \begin_layout Plain Layout
12216 multirow{2}{2.5cm}{
12225 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12240 \begin_layout Plain Layout
12246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12249 \begin_layout Plain Layout
12257 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12269 \begin_layout Plain Layout
12275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12278 \begin_layout Plain Layout
12293 \begin_layout Plain Layout
12309 \begin_layout Standard
12310 create a 3×3 table.
12311 To get rid of the line above the last cell in the first column, the cell
12312 is marked as multicolumn and the upper border is unset.
12313 The multirow is now created in the second row of the first column by inserting
12317 \begin_layout Standard
12322 multirow{2}{2.5cm}{
12325 \begin_layout Standard
12327 According to the command parameters the multirow spans now two rows and
12329 \begin_inset space \thinspace{}
12333 The content of the multirow cell follows outside the TeX-Code box and the
12334 command is finished with a right brace
12338 in another TeX-Code-box behind the text.
12341 \begin_layout Standard
12348 left-aligns its content by default.
12349 To override the default, renew the command
12358 \begin_layout Standard
12370 \begin_layout Standard
12371 in TeX-Code in the document preamble.
12372 Then all entries of multirow cells in the document are centered.
12373 If centering is only needed for several tables, you can renew the command
12374 in an TeX-Code box just before the table instead of the preamble.
12375 If the text should be right-aligned, replace
12388 To return to left-alignment
12397 \begin_layout Section
12399 \begin_inset CommandInset label
12401 name "sec:Formal-Tables"
12409 \begin_layout Plain Layout
12418 \begin_layout Standard
12419 Tables are often typeset in books similar to Table
12420 \begin_inset space ~
12424 \begin_inset CommandInset ref
12426 reference "tab:Example-booktabs-table"
12431 This kind of tables is called
12432 \begin_inset Quotes eld
12440 \begin_inset Quotes erd
12444 To make a table a formal table use the option
12452 tab of the table dialog.
12455 \begin_layout Standard
12456 \begin_inset Float table
12462 \begin_layout Plain Layout
12463 \begin_inset Caption
12465 \begin_layout Plain Layout
12466 \begin_inset CommandInset label
12468 name "tab:Example-booktabs-table"
12472 Example booktabs-table
12480 \begin_layout Plain Layout
12482 \begin_inset Tabular
12483 <lyxtabular version="3" rows="8" columns="4">
12484 <features booktabs="true">
12485 <column alignment="center" valignment="top" width="0">
12486 <column alignment="center" valignment="top" width="0">
12487 <column alignment="center" valignment="top" width="0">
12488 <column alignment="center" valignment="top" width="0">
12490 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12493 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" topline="true" usebox="none">
12502 \begin_layout Plain Layout
12504 \begin_inset space \thinspace{}
12512 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12515 \begin_layout Plain Layout
12517 \begin_inset space \thinspace{}
12525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12528 \begin_layout Plain Layout
12536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12539 \begin_layout Plain Layout
12543 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12565 Detector thickness [µm]
12570 <cell alignment="center" valignment="top" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" usebox="none">
12582 \begin_layout Plain Layout
12588 <cell alignment="center" valignment="top" usebox="none">
12591 \begin_layout Plain Layout
12599 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" topline="true" usebox="none">
12611 \begin_layout Plain Layout
12617 <cell alignment="center" valignment="top" topline="true" usebox="none">
12620 \begin_layout Plain Layout
12626 <cell alignment="center" valignment="top" topline="true" usebox="none">
12629 \begin_layout Plain Layout
12636 <row topspace="default">
12637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12640 \begin_layout Plain Layout
12641 Spatial resolution [µm]
12646 <cell alignment="center" valignment="top" usebox="none">
12649 \begin_layout Plain Layout
12655 <cell alignment="center" valignment="top" usebox="none">
12658 \begin_layout Plain Layout
12664 <cell alignment="center" valignment="top" usebox="none">
12667 \begin_layout Plain Layout
12674 <row topspace="default">
12675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12678 \begin_layout Plain Layout
12680 \begin_inset Formula $f_{\mathrm{max}}$
12688 <cell alignment="center" valignment="top" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" usebox="none">
12700 \begin_layout Plain Layout
12706 <cell alignment="center" valignment="top" usebox="none">
12709 \begin_layout Plain Layout
12716 <row topspace="default">
12717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12720 \begin_layout Plain Layout
12724 \begin_layout Plain Layout
12728 cmidrule(l{10pt}){1-1}
12733 LSF-spatial resolution
12738 <cell alignment="center" valignment="top" usebox="none">
12741 \begin_layout Plain Layout
12747 <cell alignment="center" valignment="top" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" usebox="none">
12759 \begin_layout Plain Layout
12767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" usebox="none">
12779 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" usebox="none">
12797 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12808 \begin_layout Plain Layout
12814 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12817 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12826 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12835 \begin_layout Plain Layout
12854 \begin_layout Standard
12855 Spaces to table rows can be added using the
12859 tab of the table dialog as described in section
12860 \begin_inset space ~
12864 \begin_inset CommandInset ref
12866 reference "sub:Row-Spacing"
12873 \begin_layout Standard
12874 In contrary to normal tables, formal tables have no vertical table lines.
12875 The horizontal table lines can be set like for normal tables but they appear
12876 with different width in the output:
12877 \begin_inset Newline newline
12880 The first and the last table line have a default width of 0.08
12881 \begin_inset space \thinspace{}
12884 em while the other lines have a default width of 0.05
12885 \begin_inset space \thinspace{}
12891 \begin_layout Standard
12892 The default widths can be changed with the following preamble lines
12895 \begin_layout Standard
12905 \begin_inset Newline newline
12917 \begin_layout Standard
12918 This example is for the first line, the so called
12923 If you want to change the width for the last line, replace
12932 To change the width for the other lines replace
12941 You can use all units listed in appendix
12942 \begin_inset space ~
12946 \begin_inset CommandInset ref
12948 reference "cha:Units-available-in"
12955 \begin_layout Standard
12956 Lines that don't span over all table columns can be created by setting a
12957 table line for multicolumn cells.
12958 LyX will then internally use the command
12964 to create this line.
12968 \begin_layout Standard
12973 cmidrule[width](trim){startcol-endcol}
12976 \begin_layout Standard
12983 are are currently not supported by LyX so you have to use TeX-Code to be
12991 s can manually be created by inserting the command as TeX-Code as first
12992 cell entry of the first cell of a row.
12993 The line is then drawn in the output above the current row.
12996 \begin_layout Standard
12997 The default for the width is 0.03
12998 \begin_inset space \thinspace{}
13002 Startcol is the number of the column where the line starts and endcol the
13003 column number where the line ends.
13004 The endcol always needs to be specified, also when the line should span
13006 The optional parameter trim could be either
13014 where the trimwidth is also optional.
13015 Using for example the parameter
13019 means that the line is trimmed from its left end by 2
13020 \begin_inset space \thinspace{}
13024 If you don't specify the trimwidth the lines are trimmed by the default
13026 \begin_inset space \thinspace{}
13032 \begin_layout Standard
13033 \begin_inset VSpace bigskip
13037 \begin_inset space ~
13041 \begin_inset CommandInset ref
13043 reference "tab:Example-booktabs-table"
13047 was created using the commands
13050 \begin_layout Standard
13060 \begin_layout Standard
13061 at the beginning of the in the second row and
13064 \begin_layout Standard
13069 cmidrule(l{10pt}){1-1}
13072 \begin_layout Standard
13076 \begin_layout Standard
13077 \begin_inset VSpace bigskip
13083 \begin_layout Standard
13084 You might want to have overlapping
13091 \begin_inset space ~
13095 \begin_inset CommandInset ref
13097 reference "tab:Special-booktabs-table"
13102 This can be achieved with the TeX-Code command
13105 \begin_layout Standard
13113 \begin_layout Standard
13114 The command that was used for the second row of Table
13115 \begin_inset space ~
13119 \begin_inset CommandInset ref
13121 reference "tab:Special-booktabs-table"
13128 \begin_layout Standard
13142 \begin_layout Standard
13143 The command for the sixth row is
13146 \begin_layout Standard
13158 \begin_layout Standard
13159 \begin_inset VSpace bigskip
13165 \begin_layout Standard
13166 If you are anyway not satisfied with the border line spacing, you can use
13167 the following command to produce lines that span over all table columns
13172 \begin_layout Standard
13177 specialrule{width}{space above}{space below}
13180 \begin_layout Standard
13181 For more information about these specialties, we refer to the manual of
13187 \begin_inset CommandInset citation
13197 \begin_layout Plain Layout
13198 LaTeX-packages ! booktabs
13206 \begin_layout Standard
13207 \begin_inset Float table
13213 \begin_layout Plain Layout
13214 \begin_inset Caption
13216 \begin_layout Plain Layout
13217 \begin_inset CommandInset label
13219 name "tab:Special-booktabs-table"
13223 Special booktabs-table
13231 \begin_layout Plain Layout
13233 \begin_inset Tabular
13234 <lyxtabular version="3" rows="8" columns="4">
13235 <features booktabs="true">
13236 <column alignment="center" valignment="top" width="0">
13237 <column alignment="center" valignment="top" width="0">
13238 <column alignment="center" valignment="top" width="0">
13239 <column alignment="center" valignment="top" width="0">
13241 <cell alignment="center" valignment="top" topline="true" usebox="none">
13244 \begin_layout Plain Layout
13250 <cell alignment="center" valignment="top" topline="true" usebox="none">
13253 \begin_layout Plain Layout
13255 \begin_inset space \thinspace{}
13263 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13266 \begin_layout Plain Layout
13268 \begin_inset space \thinspace{}
13276 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13279 \begin_layout Plain Layout
13287 <cell alignment="center" valignment="top" usebox="none">
13290 \begin_layout Plain Layout
13294 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13333 \begin_layout Plain Layout
13342 Detector thickness [µm]
13347 <cell alignment="center" valignment="top" usebox="none">
13350 \begin_layout Plain Layout
13356 <cell alignment="center" valignment="top" usebox="none">
13359 \begin_layout Plain Layout
13365 <cell alignment="center" valignment="top" usebox="none">
13368 \begin_layout Plain Layout
13376 <cell alignment="center" valignment="top" topline="true" usebox="none">
13379 \begin_layout Plain Layout
13385 <cell alignment="center" valignment="top" topline="true" usebox="none">
13388 \begin_layout Plain Layout
13394 <cell alignment="center" valignment="top" topline="true" usebox="none">
13397 \begin_layout Plain Layout
13403 <cell alignment="center" valignment="top" topline="true" usebox="none">
13406 \begin_layout Plain Layout
13413 <row topspace="default">
13414 <cell alignment="center" valignment="top" usebox="none">
13417 \begin_layout Plain Layout
13418 Spatial resolution [µm]
13423 <cell alignment="center" valignment="top" usebox="none">
13426 \begin_layout Plain Layout
13432 <cell alignment="center" valignment="top" usebox="none">
13435 \begin_layout Plain Layout
13441 <cell alignment="center" valignment="top" usebox="none">
13444 \begin_layout Plain Layout
13451 <row topspace="default">
13452 <cell alignment="center" valignment="top" usebox="none">
13455 \begin_layout Plain Layout
13457 \begin_inset Formula $f_{\mathrm{max}}$
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13474 <cell alignment="center" valignment="top" usebox="none">
13477 \begin_layout Plain Layout
13483 <cell alignment="center" valignment="top" usebox="none">
13486 \begin_layout Plain Layout
13494 <cell alignment="center" valignment="top" topline="true" usebox="none">
13497 \begin_layout Plain Layout
13501 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13523 LSF-spatial resolution
13528 <cell alignment="center" valignment="top" topline="true" usebox="none">
13531 \begin_layout Plain Layout
13537 <cell alignment="center" valignment="top" topline="true" usebox="none">
13540 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" usebox="none">
13549 \begin_layout Plain Layout
13557 <cell alignment="center" valignment="top" usebox="none">
13560 \begin_layout Plain Layout
13566 <cell alignment="center" valignment="top" usebox="none">
13569 \begin_layout Plain Layout
13575 <cell alignment="center" valignment="top" usebox="none">
13578 \begin_layout Plain Layout
13584 <cell alignment="center" valignment="top" usebox="none">
13587 \begin_layout Plain Layout
13595 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13598 \begin_layout Plain Layout
13604 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13607 \begin_layout Plain Layout
13613 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13616 \begin_layout Plain Layout
13622 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13625 \begin_layout Plain Layout
13644 \begin_layout Section
13645 Vertical Table Alignment
13649 \begin_layout Plain Layout
13658 \begin_layout Standard
13659 To align tables vertically in a text line the table must be inside a box.
13660 The box can then be vertically aligned as described in section
13661 \begin_inset space ~
13665 \begin_inset CommandInset ref
13667 reference "sec:Box-Dialog"
13674 \begin_layout Standard
13675 In the following example the tables are inside a minipage
13679 \begin_layout Plain Layout
13680 Minipages are described in section
13681 \begin_inset space ~
13685 \begin_inset CommandInset ref
13687 reference "sec:Minipages"
13696 box that has a width of 15
13697 \begin_inset space \thinspace{}
13703 \begin_layout Itemize
13705 \begin_inset Box Frameless
13714 height_special "totalheight"
13717 \begin_layout Plain Layout
13718 \begin_inset Tabular
13719 <lyxtabular version="3" rows="3" columns="3">
13721 <column alignment="center" valignment="top" width="0">
13722 <column alignment="center" valignment="top" width="0">
13723 <column alignment="center" valignment="top" width="0">
13725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13728 \begin_layout Plain Layout
13734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13737 \begin_layout Plain Layout
13743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13746 \begin_layout Plain Layout
13754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13766 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13775 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13795 \begin_layout Plain Layout
13801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13804 \begin_layout Plain Layout
13824 \begin_layout Plain Layout
13836 \begin_inset Box Frameless
13845 height_special "totalheight"
13848 \begin_layout Plain Layout
13849 \begin_inset Tabular
13850 <lyxtabular version="3" rows="3" columns="3">
13852 <column alignment="center" valignment="top" width="0">
13853 <column alignment="center" valignment="top" width="0">
13854 <column alignment="center" valignment="top" width="0">
13856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13859 \begin_layout Plain Layout
13865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13868 \begin_layout Plain Layout
13874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13877 \begin_layout Plain Layout
13885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13888 \begin_layout Plain Layout
13894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13897 \begin_layout Plain Layout
13903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13906 \begin_layout Plain Layout
13914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13917 \begin_layout Plain Layout
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13935 \begin_layout Plain Layout
13955 \begin_layout Plain Layout
13965 \begin_layout Itemize
13967 \begin_inset Box Frameless
13976 height_special "totalheight"
13979 \begin_layout Plain Layout
13980 \begin_inset Tabular
13981 <lyxtabular version="3" rows="3" columns="3">
13983 <column alignment="center" valignment="top" width="0">
13984 <column alignment="center" valignment="top" width="0">
13985 <column alignment="center" valignment="top" width="0">
13987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13990 \begin_layout Plain Layout
13996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13999 \begin_layout Plain Layout
14005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14008 \begin_layout Plain Layout
14016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14019 \begin_layout Plain Layout
14025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14028 \begin_layout Plain Layout
14034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14037 \begin_layout Plain Layout
14045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14048 \begin_layout Plain Layout
14054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14057 \begin_layout Plain Layout
14063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14066 \begin_layout Plain Layout
14085 \begin_layout Itemize
14087 \begin_inset Box Frameless
14096 height_special "totalheight"
14099 \begin_layout Plain Layout
14100 \begin_inset Tabular
14101 <lyxtabular version="3" rows="3" columns="3">
14103 <column alignment="center" valignment="top" width="0">
14104 <column alignment="center" valignment="top" width="0">
14105 <column alignment="center" valignment="top" width="0">
14107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14110 \begin_layout Plain Layout
14116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14119 \begin_layout Plain Layout
14125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14128 \begin_layout Plain Layout
14136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14139 \begin_layout Plain Layout
14145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14148 \begin_layout Plain Layout
14154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14157 \begin_layout Plain Layout
14165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14168 \begin_layout Plain Layout
14174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14177 \begin_layout Plain Layout
14183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14186 \begin_layout Plain Layout
14206 \begin_layout Plain Layout
14218 \begin_inset Box Frameless
14227 height_special "totalheight"
14230 \begin_layout Plain Layout
14231 \begin_inset Tabular
14232 <lyxtabular version="3" rows="3" columns="3">
14234 <column alignment="center" valignment="top" width="0">
14235 <column alignment="center" valignment="top" width="0">
14236 <column alignment="center" valignment="top" width="0">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Plain Layout
14247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14250 \begin_layout Plain Layout
14256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14259 \begin_layout Plain Layout
14267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14270 \begin_layout Plain Layout
14276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14279 \begin_layout Plain Layout
14285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14288 \begin_layout Plain Layout
14296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14299 \begin_layout Plain Layout
14305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14308 \begin_layout Plain Layout
14314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14317 \begin_layout Plain Layout
14337 \begin_layout Plain Layout
14347 \begin_layout Standard
14348 As you can see, the content of the first and last table row is not correctly
14349 aligned with the text line where the table is in.
14350 To get this alignment, the minipage box must be set into a raisebox
14354 \begin_layout Plain Layout
14355 Raiseboxes are described in section
14356 \begin_inset space ~
14360 \begin_inset CommandInset ref
14362 reference "sub:Vertical-Alignment"
14372 In the example above the second table in the first item is aligned using
14373 the TeX-Code-command
14376 \begin_layout Standard
14386 \begin_layout Standard
14388 Behind the box the closing brace
14392 is inserted as TeX-Code.
14393 For the second table in the last item the command
14396 \begin_layout Standard
14406 \begin_layout Standard
14410 \begin_layout Standard
14411 \begin_inset Note Greyedout
14414 \begin_layout Plain Layout
14419 The alignment of the table row content to the surrounding text line is
14421 The needed factor of the
14427 command for this alignment depends on the document font, the font size,
14428 and the table line thickness.
14436 \begin_layout Section
14438 \begin_inset CommandInset label
14440 name "sec:Colored-Tables"
14448 \begin_layout Plain Layout
14457 \begin_layout Subsection
14462 \begin_layout Plain Layout
14463 Table Color ! for Cells
14472 \begin_layout Plain Layout
14473 Color ! for Table Cells
14481 \begin_layout Standard
14482 \begin_inset Float table
14488 \begin_layout Plain Layout
14489 \begin_inset Caption
14491 \begin_layout Plain Layout
14492 \begin_inset CommandInset label
14494 name "tab:Table-colored-without"
14498 Table colored without using the package
14503 \begin_inset OptArg
14506 \begin_layout Plain Layout
14507 Table without colortbl
14520 \begin_layout Plain Layout
14522 \begin_inset Tabular
14523 <lyxtabular version="3" rows="3" columns="3">
14525 <column alignment="center" valignment="top" width="0">
14526 <column alignment="center" valignment="top" width="0">
14527 <column alignment="center" valignment="top" width="0">
14529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14532 \begin_layout Plain Layout
14540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14543 \begin_layout Plain Layout
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14554 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14567 \begin_layout Plain Layout
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14578 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14589 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14602 \begin_layout Plain Layout
14610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14613 \begin_layout Plain Layout
14621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14624 \begin_layout Plain Layout
14645 \begin_layout Standard
14646 If you only need colored text, mark the cells and choose a color in the
14649 Edit\SpecialChar \menuseparator
14651 \begin_inset space ~
14657 This was used to create Table
14658 \begin_inset space ~
14662 \begin_inset CommandInset ref
14664 reference "tab:Table-colored-without"
14669 In any other case you have to use the LaTeX-package
14677 \begin_layout Plain Layout
14678 LaTeX-packages ! colortbl
14686 \begin_layout Standard
14690 \begin_layout Plain Layout
14700 \begin_inset Note Note
14703 \begin_layout Plain Layout
14704 The following section part will only be displayed when the LaTeX-package
14717 \begin_layout Standard
14718 To create colored tables,
14722 must be loaded in the preamble with the line
14725 \begin_layout Standard
14730 usepackage{colortbl}
14733 \begin_layout Standard
14734 The color of a column is adjusted with the command
14737 \begin_layout Standard
14742 columncolor{name of color}
14745 \begin_layout Standard
14751 More about the command
14755 is described in section
14756 \begin_inset space ~
14760 \begin_inset CommandInset ref
14762 reference "sub:Multicolumn-Calculations"
14769 \begin_layout Standard
14770 The following color names are predefined:
14773 \begin_layout Standard
14807 \begin_layout Standard
14808 \begin_inset VSpace medskip
14814 \begin_layout Standard
14815 You can also define your own color with the command
14818 \begin_layout Standard
14823 definecolor{color name}{color model}{color values}
14826 \begin_layout Standard
14827 The color model can be
14830 \begin_layout Labeling
14831 \labelwidthstring 00.00.0000
14832 cmyk: cyan, magenta, yellow, black
14835 \begin_layout Labeling
14836 \labelwidthstring 00.00.0000
14837 rgb: red, green blue
14840 \begin_layout Labeling
14841 \labelwidthstring 00.00.0000
14845 \begin_layout Standard
14846 and the color values are comma separated numbers between 0 and 1 describing
14847 the factor for the corresponding color of the color model.
14850 \begin_layout Standard
14852 \begin_inset space \thinspace{}
14856 \begin_inset space \space{}
14863 " in the preamble with
14866 \begin_layout Standard
14871 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14874 \begin_layout Standard
14882 \begin_layout Standard
14887 definecolor{lightgray}{gray}{0.8}
14890 \begin_layout Standard
14891 \begin_inset VSpace medskip
14897 \begin_layout Standard
14898 Lines are colored with the command
14901 \begin_layout Standard
14906 rowcolor{name of color}
14909 \begin_layout Standard
14910 and cells are colored with the command
14913 \begin_layout Standard
14918 cellcolor{name of color}
14921 \begin_layout Standard
14922 Both commands are inserted at the beginning of a cell as TeX-Code.
14925 \begin_layout Standard
14926 To color characters in the table, mark the cells and use the LyX menu
14928 Edit\SpecialChar \menuseparator
14930 \begin_inset space ~
14936 If a cell contains TeX-Code mark only the characters, otherwise the colored
14937 TeX-Code will cause LaTeX-errors.
14940 \begin_layout Standard
14941 \begin_inset Note Greyedout
14944 \begin_layout Plain Layout
14949 Not all DVI-viewers are able to display self-defined colors.
14957 \begin_layout Standard
14958 \begin_inset VSpace bigskip
14964 \begin_layout Standard
14966 \begin_inset space ~
14970 \begin_inset CommandInset ref
14972 reference "tab:Table-colored-using"
14976 do the following: The color of the first column should be
14984 \begin_layout Standard
14989 columncolor{darkgreen}
14994 \begin_layout Standard
14995 as LaTeX-argument for this column.
14996 The first row should be blue, therefore the TeX-Code command
14999 \begin_layout Standard
15007 \begin_layout Standard
15008 is inserted to the first cell of this row.
15009 Note that this overwrites the column color for the first cell.
15010 The last cell of the last row is colored magenta by inserting the TeX-Code
15014 \begin_layout Standard
15022 \begin_layout Standard
15023 The characters could now be colored using the menu
15025 Edit\SpecialChar \menuseparator
15027 \begin_inset space ~
15035 \begin_layout Standard
15036 \begin_inset Float table
15042 \begin_layout Plain Layout
15043 \begin_inset Caption
15045 \begin_layout Plain Layout
15046 \begin_inset CommandInset label
15048 name "tab:Table-colored-using"
15052 Table colored using the package
15057 \begin_inset OptArg
15060 \begin_layout Plain Layout
15061 Table with colortbl
15074 \begin_layout Plain Layout
15076 \begin_inset Tabular
15077 <lyxtabular version="3" rows="3" columns="3">
15079 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15080 <column alignment="center" valignment="top" width="0">
15081 <column alignment="center" valignment="top" width="0">
15083 <cell alignment="center" valignment="top" usebox="none">
15086 \begin_layout Plain Layout
15090 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" usebox="none">
15109 \begin_layout Plain Layout
15117 <cell alignment="center" valignment="top" usebox="none">
15120 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15141 <cell alignment="center" valignment="top" usebox="none">
15144 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" usebox="none">
15179 \begin_layout Plain Layout
15187 <cell alignment="center" valignment="top" usebox="none">
15190 \begin_layout Plain Layout
15194 \begin_layout Plain Layout
15223 \begin_layout Standard
15227 \begin_layout Plain Layout
15237 \begin_inset Note Note
15240 \begin_layout Plain Layout
15241 The following will be displayed when the LaTeX-package
15253 \begin_layout Standard
15254 You need to install the package
15258 to see the content of this section in the output.
15261 \begin_layout Standard
15265 \begin_layout Plain Layout
15277 \begin_layout Subsection
15282 \begin_layout Plain Layout
15283 Table Color ! for Lines
15292 \begin_layout Plain Layout
15293 Color ! for Table Lines
15301 \begin_layout Standard
15302 As described in section
15303 \begin_inset space ~
15307 \begin_inset CommandInset ref
15309 reference "sub:Line-Thickness"
15313 , the line thickness for all lines in a table can be adjusted with the length
15322 \begin_inset space \thinspace{}
15325 pt for all tables of this section.
15329 \begin_layout Plain Layout
15335 arrayrulewidth}{1.5pt}
15343 \begin_layout Standard
15344 To color vertical lines for example with green, create the following column
15345 format in the document preamble, according to the description in section
15346 \begin_inset space ~
15350 \begin_inset CommandInset ref
15352 reference "sub:Customized-Format"
15359 \begin_layout Standard
15364 newcolumntype{W}{!{
15371 \begin_layout Standard
15373 \begin_inset space ~
15377 \begin_inset CommandInset ref
15379 reference "tab:Table-with-vertical-colored"
15387 was used for the last column and
15391 for the other columns.
15394 \begin_layout Standard
15395 If you want to have several colors, define more column formats.
15398 \begin_layout Standard
15399 \begin_inset Float table
15405 \begin_layout Plain Layout
15406 \begin_inset Caption
15408 \begin_layout Plain Layout
15409 \begin_inset CommandInset label
15411 name "tab:Table-with-vertical-colored"
15415 Table with colored vertical lines
15423 \begin_layout Plain Layout
15425 \begin_inset Tabular
15426 <lyxtabular version="3" rows="3" columns="3">
15428 <column alignment="center" valignment="top" width="0" special="Wc">
15429 <column alignment="center" valignment="top" width="0" special="Wc">
15430 <column alignment="center" valignment="top" width="0" special="WcW">
15432 <cell alignment="center" valignment="top" topline="true" usebox="none">
15435 \begin_layout Plain Layout
15441 <cell alignment="center" valignment="top" topline="true" usebox="none">
15444 \begin_layout Plain Layout
15450 <cell alignment="center" valignment="top" topline="true" usebox="none">
15453 \begin_layout Plain Layout
15461 <cell alignment="center" valignment="top" topline="true" usebox="none">
15464 \begin_layout Plain Layout
15470 <cell alignment="center" valignment="top" topline="true" usebox="none">
15473 \begin_layout Plain Layout
15479 <cell alignment="center" valignment="top" topline="true" usebox="none">
15482 \begin_layout Plain Layout
15490 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15493 \begin_layout Plain Layout
15499 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15502 \begin_layout Plain Layout
15508 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15511 \begin_layout Plain Layout
15530 \begin_layout Standard
15531 \begin_inset VSpace bigskip
15534 To color horizontal lines for example with red, like in Table
15535 \begin_inset space ~
15539 \begin_inset CommandInset ref
15541 reference "tab:Table-with-horizontal-colored"
15545 , insert these commands in TeX-Code before the table or table float:
15548 \begin_layout Standard
15558 \begin_inset Newline newline
15566 \begin_inset Newline newline
15573 \begin_layout Plain Layout
15584 arrayrulecolor{red}
15588 arrayrulecolor{black}}
15591 \begin_layout Standard
15595 \begin_layout Plain Layout
15606 \begin_layout Plain Layout
15615 \begin_layout Plain Layout
15619 arrayrulecolor{red}
15623 arrayrulecolor{black}}
15629 \begin_inset Float table
15635 \begin_layout Plain Layout
15636 \begin_inset Caption
15638 \begin_layout Plain Layout
15639 \begin_inset CommandInset label
15641 name "tab:Table-with-horizontal-colored"
15645 Table with colored horizontal lines
15653 \begin_layout Plain Layout
15655 \begin_inset Tabular
15656 <lyxtabular version="3" rows="3" columns="3">
15658 <column alignment="center" valignment="top" width="0">
15659 <column alignment="center" valignment="top" width="0">
15660 <column alignment="center" valignment="top" width="0">
15662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15665 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15683 \begin_layout Plain Layout
15691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15694 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15703 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15712 \begin_layout Plain Layout
15720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15723 \begin_layout Plain Layout
15729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15732 \begin_layout Plain Layout
15738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15741 \begin_layout Plain Layout
15760 \begin_layout Standard
15761 To return to the default line color black, insert this command in TeX-Code
15762 behind the table or table float:
15765 \begin_layout Standard
15777 \begin_layout Standard
15779 \begin_inset space ~
15783 \begin_inset CommandInset ref
15785 reference "tab:Table-with-colored"
15789 is an example with colored vertical and horizontal lines.
15792 \begin_layout Standard
15793 \begin_inset Float table
15799 \begin_layout Plain Layout
15800 \begin_inset Caption
15802 \begin_layout Plain Layout
15803 \begin_inset CommandInset label
15805 name "tab:Table-with-colored"
15809 Table with colored lines
15817 \begin_layout Plain Layout
15819 \begin_inset Tabular
15820 <lyxtabular version="3" rows="3" columns="3">
15822 <column alignment="center" valignment="top" width="0" special="Wc">
15823 <column alignment="center" valignment="top" width="0" special="Wc">
15824 <column alignment="center" valignment="top" width="0" special="WcW">
15826 <cell alignment="center" valignment="top" topline="true" usebox="none">
15829 \begin_layout Plain Layout
15835 <cell alignment="center" valignment="top" topline="true" usebox="none">
15838 \begin_layout Plain Layout
15844 <cell alignment="center" valignment="top" topline="true" usebox="none">
15847 \begin_layout Plain Layout
15855 <cell alignment="center" valignment="top" topline="true" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" topline="true" usebox="none">
15867 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" topline="true" usebox="none">
15876 \begin_layout Plain Layout
15883 <row topspace="default">
15884 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15887 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15896 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15905 \begin_layout Plain Layout
15924 \begin_layout Standard
15928 \begin_layout Plain Layout
15944 \begin_layout Standard
15948 \begin_layout Plain Layout
15954 arrayrulewidth}{0.4pt}
15962 \begin_layout Section
15963 Table Customization
15967 \begin_layout Plain Layout
15968 Table Customization
15977 \begin_layout Plain Layout
15978 Table ! Customization
15986 \begin_layout Subsection
15988 \begin_inset CommandInset label
15990 name "sub:Row-Spacing"
15998 \begin_layout Plain Layout
15999 Table Customization ! Row Spacing
16007 \begin_layout Standard
16008 You can add vertical space to table rows in the
16012 tab of the table dialog.
16013 You find there three possibilities:
16016 \begin_layout Description
16018 \begin_inset space ~
16022 \begin_inset space ~
16025 row will add space above the characters of the table row.
16026 If the table is a formal table
16030 \begin_layout Plain Layout
16031 Formal tables are explained in section
16032 \begin_inset space ~
16036 \begin_inset CommandInset ref
16038 reference "sec:Formal-Tables"
16047 LyX will insert as default 0.5
16048 \begin_inset space \thinspace{}
16052 For normal tables the inserted space will unfortunately destroy the vertical
16053 table lines as in the following table:
16054 \begin_inset VSpace medskip
16058 \begin_inset Newline newline
16062 \begin_inset space \hspace*{}
16067 \begin_inset space \hfill{}
16071 \begin_inset Tabular
16072 <lyxtabular version="3" rows="3" columns="1">
16074 <column alignment="center" valignment="top" width="0">
16076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16079 \begin_layout Plain Layout
16086 <row topspace="3mm">
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16090 \begin_layout Plain Layout
16092 \begin_inset space \thinspace{}
16095 mm space top of row
16102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16117 \begin_inset space \hfill{}
16121 \begin_inset space \hspace*{}
16126 \begin_inset VSpace medskip
16130 \begin_inset Newline newline
16133 So inserting space to the top of row for normal tables is only useful when
16134 you don't have vertical lines.
16137 \begin_layout Description
16139 \begin_inset space ~
16143 \begin_inset space ~
16146 row will add space below the characters of the table row.
16147 If the table is a formal table LyX will insert as default 0.5
16148 \begin_inset space \thinspace{}
16151 em space, for normal tables the default size is 2
16152 \begin_inset space \thinspace{}
16158 \begin_layout Description
16160 \begin_inset space ~
16163 rows adds space between the current and the following row.
16164 If the table is a formal table LyX will insert as default 0.5
16165 \begin_inset space \thinspace{}
16169 For normal tables the inserted space will unfortunately destroy the vertical
16170 table lines as in the following table:
16171 \begin_inset VSpace medskip
16175 \begin_inset Newline newline
16179 \begin_inset space \hspace*{}
16184 \begin_inset space \hfill{}
16188 \begin_inset Tabular
16189 <lyxtabular version="3" rows="3" columns="1">
16191 <column alignment="center" valignment="top" width="0">
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16196 \begin_layout Plain Layout
16203 <row interlinespace="3mm">
16204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16207 \begin_layout Plain Layout
16208 \begin_inset Formula $\downarrow$
16212 \begin_inset space \thinspace{}
16215 mm space between row
16216 \begin_inset Formula $\downarrow$
16226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16229 \begin_layout Plain Layout
16230 \begin_inset Formula $\uparrow$
16234 \begin_inset space \thinspace{}
16237 mm space between row
16238 \begin_inset Formula $\uparrow$
16252 \begin_inset space \hfill{}
16256 \begin_inset space \hspace*{}
16261 \begin_inset VSpace medskip
16265 \begin_inset Newline newline
16268 So inserting space between rows for normal tables is only useful when you
16269 don't have vertical lines.
16272 \begin_layout Standard
16273 \begin_inset VSpace bigskip
16276 When you want to add extra height to all cells of all tables, you can do
16277 this with the following preamble lines:
16280 \begin_layout Standard
16285 @ifundefined{extrarowheight}
16286 \begin_inset Newline newline
16293 \begin_layout Plain Layout
16304 usepackage{array}}{}
16305 \begin_inset Newline newline
16312 extrarowheight}{height}
16315 \begin_layout Standard
16316 But this has the disadvantage that the cell texts are no longer exactly
16317 vertically centered.
16322 will be loaded automatically by LyX when you use self defined table formats.
16323 To avoid that it is loaded twice the command
16329 is used in the above command.)
16332 \begin_layout Standard
16333 In case you are using font sizes larger than the normal size, the table
16334 borders are often too close to the letters.
16335 This can be corrected by inserting the command
16341 in TeX code at the beginning of a table row.
16343 \begin_inset space ~
16347 \begin_inset CommandInset ref
16349 reference "tab:Vertical-alignment-of"
16353 visualizes the effect.
16356 \begin_layout Standard
16358 \begin_inset Float table
16364 \begin_layout Plain Layout
16365 \begin_inset Caption
16367 \begin_layout Plain Layout
16368 \begin_inset CommandInset label
16370 name "tab:Vertical-alignment-of"
16374 Vertical alignment of text with large font sizes.
16382 \begin_layout Plain Layout
16383 \begin_inset space \hfill{}
16387 \begin_inset Float table
16392 \begin_layout Plain Layout
16393 \begin_inset Caption
16395 \begin_layout Plain Layout
16404 \begin_layout Plain Layout
16407 \begin_inset Tabular
16408 <lyxtabular version="3" rows="6" columns="1">
16410 <column alignment="left" valignment="top" width="0">
16412 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16415 \begin_layout Plain Layout
16423 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16426 \begin_layout Plain Layout
16436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16475 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16497 \begin_inset space \hfill{}
16501 \begin_inset Float table
16506 \begin_layout Plain Layout
16507 \begin_inset Caption
16509 \begin_layout Plain Layout
16510 Table using the command
16524 \begin_layout Plain Layout
16527 \begin_inset Tabular
16528 <lyxtabular version="3" rows="6" columns="1">
16530 <column alignment="left" valignment="top" width="0">
16532 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16543 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16546 \begin_layout Plain Layout
16552 \begin_layout Plain Layout
16568 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16577 \begin_layout Plain Layout
16593 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 \begin_layout Plain Layout
16618 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16621 \begin_layout Plain Layout
16627 \begin_layout Plain Layout
16643 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16646 \begin_layout Plain Layout
16652 \begin_layout Plain Layout
16679 \begin_inset space \hfill{}
16690 \begin_layout Subsection
16691 Special Cell Alignment
16695 \begin_layout Plain Layout
16696 Table Customization ! Special Cell Alignment
16704 \begin_layout Standard
16705 Sometimes it looks better when the cell entries of a column are aligned
16706 with a special character, e.
16707 \begin_inset space \thinspace{}
16711 \begin_inset space \space{}
16714 with the decimal separator as in Table
16715 \begin_inset space ~
16719 \begin_inset CommandInset ref
16721 reference "tab:Table-cells-of"
16728 \begin_layout Standard
16729 \begin_inset Float table
16735 \begin_layout Plain Layout
16736 \begin_inset Caption
16738 \begin_layout Plain Layout
16739 \begin_inset CommandInset label
16741 name "tab:Table-cells-of"
16745 Table cells of a column aligned with the decimal separator.
16753 \begin_layout Plain Layout
16755 \begin_inset Tabular
16756 <lyxtabular version="3" rows="4" columns="2">
16758 <column alignment="right" valignment="top" width="0">
16759 <column alignment="left" valignment="top" width="0" special="@{}l">
16761 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16764 \begin_layout Plain Layout
16770 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16773 \begin_layout Plain Layout
16781 <cell alignment="center" valignment="top" usebox="none">
16784 \begin_layout Plain Layout
16790 <cell alignment="center" valignment="top" usebox="none">
16793 \begin_layout Plain Layout
16801 <cell alignment="center" valignment="top" usebox="none">
16804 \begin_layout Plain Layout
16810 <cell alignment="center" valignment="top" usebox="none">
16813 \begin_layout Plain Layout
16821 <cell alignment="center" valignment="top" usebox="none">
16824 \begin_layout Plain Layout
16830 <cell alignment="center" valignment="top" usebox="none">
16833 \begin_layout Plain Layout
16852 \begin_layout Standard
16853 This table was created with a 4×2 table.
16854 The heading is a centered multicolumn.
16855 The first column is right-aligned and contains the digits before the decimal
16856 point and the decimal point.
16857 The second column is left aligned and contains the digits after the decimal
16859 To omit the space that is normally between two table columns, use the following
16860 LaTeX-argument for the second column:
16863 \begin_layout Standard
16869 \begin_layout Standard
16871 \begin_inset space ~
16875 \begin_inset CommandInset ref
16877 reference "tab:Several-table-cell"
16881 shows some example alignments.
16882 For the alignment with the relation sign, you must add the second smallest
16883 math-space at the beginning of the last column to get the correct space
16884 surrounding the relation sign.
16887 \begin_layout Standard
16888 \begin_inset Float table
16893 \begin_layout Plain Layout
16894 \begin_inset Caption
16896 \begin_layout Plain Layout
16897 \begin_inset CommandInset label
16899 name "tab:Several-table-cell"
16903 Several table cell alignments.
16911 \begin_layout Plain Layout
16913 \begin_inset Tabular
16914 <lyxtabular version="3" rows="4" columns="6">
16916 <column alignment="right" valignment="top" width="0">
16917 <column alignment="left" valignment="top" width="0" special="@{}l">
16918 <column alignment="right" valignment="top" width="0">
16919 <column alignment="left" valignment="top" width="0" special="@{}l">
16920 <column alignment="right" valignment="top" width="0">
16921 <column alignment="left" valignment="top" width="0" special="@{}l">
16923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16926 \begin_layout Plain Layout
16932 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16935 \begin_layout Plain Layout
16941 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16953 \begin_layout Plain Layout
16959 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16962 \begin_layout Plain Layout
16968 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16971 \begin_layout Plain Layout
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 $10\cdot$
17013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17016 \begin_layout Plain Layout
17017 \begin_inset Formula $10^{\mbox{-}17}$
17025 <cell alignment="center" valignment="top" usebox="none">
17028 \begin_layout Plain Layout
17029 \begin_inset Formula $\Gamma(t)\propto$
17037 <cell alignment="center" valignment="top" usebox="none">
17040 \begin_layout Plain Layout
17041 \begin_inset Formula $\:\Upsilon(t)$
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
17077 \begin_inset Formula $5.78\cdot$
17085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17088 \begin_layout Plain Layout
17089 \begin_inset Formula $10^{7}$
17097 <cell alignment="center" valignment="top" usebox="none">
17100 \begin_layout Plain Layout
17101 \begin_inset Formula $A\ne$
17109 <cell alignment="center" valignment="top" usebox="none">
17112 \begin_layout Plain Layout
17113 \begin_inset Formula $\: B_{\mathrm{red}}$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17135 \begin_layout Plain Layout
17137 \begin_inset space \thinspace{}
17145 <cell alignment="center" valignment="top" usebox="none">
17148 \begin_layout Plain Layout
17150 \begin_inset Formula $33.5\cdot$
17158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17161 \begin_layout Plain Layout
17162 \begin_inset Formula $10^{4}$
17170 <cell alignment="center" valignment="top" usebox="none">
17173 \begin_layout Plain Layout
17174 \begin_inset Formula $\sin(\alpha)\ge$
17182 <cell alignment="center" valignment="top" usebox="none">
17185 \begin_layout Plain Layout
17186 \begin_inset Formula $\:\sin(\beta)$
17207 \begin_layout Standard
17208 \begin_inset VSpace bigskip
17211 There is also the LaTeX-package
17219 \begin_layout Plain Layout
17220 LaTeX-packages ! dcolumn
17225 that provides table cell alignments.
17226 But this unfortunately treats the cell entries as math and doesn't allow
17227 formulas in table cells: The first column of Table
17228 \begin_inset space ~
17232 \begin_inset CommandInset ref
17234 reference "tab:Several-table-cell"
17242 like the first column in Table
17243 \begin_inset space ~
17247 \begin_inset CommandInset ref
17249 reference "tab:Alignments-when"
17253 and only with some tricks like the expected.
17254 The alignment of the second and third column of Table
17255 \begin_inset space ~
17259 \begin_inset CommandInset ref
17261 reference "tab:Several-table-cell"
17265 is not possible with
17272 \begin_layout Standard
17273 \begin_inset Float table
17279 \begin_layout Plain Layout
17280 \begin_inset Caption
17282 \begin_layout Plain Layout
17283 \begin_inset CommandInset label
17285 name "tab:Alignments-when"
17289 Alignments when LaTeX-package dcolumn is used.
17290 For all column alignments tricks have to be used to get the output.
17298 \begin_layout Plain Layout
17300 \begin_inset Tabular
17301 <lyxtabular version="3" rows="4" columns="3">
17303 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17304 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17305 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17307 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17310 \begin_layout Plain Layout
17316 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17319 \begin_layout Plain Layout
17325 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17328 \begin_layout Plain Layout
17336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17339 \begin_layout Plain Layout
17341 \begin_inset space \thinspace{}
17349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17352 \begin_layout Plain Layout
17354 \begin_inset space \thinspace{}
17358 \begin_inset Formula $\mbox{bottles}$
17366 <cell alignment="center" valignment="top" usebox="none">
17369 \begin_layout Plain Layout
17374 \begin_layout Plain Layout
17384 \begin_inset Formula $\mbox{bottles}$
17394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17397 \begin_layout Plain Layout
17399 \begin_inset space \thinspace{}
17407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17410 \begin_layout Plain Layout
17412 \begin_inset space \thinspace{}
17416 \begin_inset Formula $\mbox{Pixels}$
17424 <cell alignment="center" valignment="top" usebox="none">
17427 \begin_layout Plain Layout
17432 \begin_layout Plain Layout
17442 \begin_inset Formula $\mbox{Pixels}$
17452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17455 \begin_layout Plain Layout
17457 \begin_inset space \thinspace{}
17465 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17468 \begin_layout Plain Layout
17470 \begin_inset space \thinspace{}
17474 \begin_inset Formula $\mbox{cm}$
17482 <cell alignment="center" valignment="top" usebox="none">
17485 \begin_layout Plain Layout
17490 \begin_layout Plain Layout
17500 \begin_inset Formula $\mbox{cm}$
17521 \begin_layout Subsection
17522 Customized Cell/Column Format
17523 \begin_inset CommandInset label
17525 name "sub:Customized-Format"
17533 \begin_layout Plain Layout
17534 Table Customization ! Cell/Column Format
17542 \begin_layout Standard
17543 Calculating the needed width for spanned columns like in section
17544 \begin_inset space ~
17548 \begin_inset CommandInset ref
17550 reference "sub:Multicolumn-Calculations"
17554 is very annoying if you have several tables with multicolumn cells.
17555 To make life easier, you can define a cell/column format in the preamble,
17556 so that it can be used in all tables of the document.
17557 The format is defined with the command
17560 \begin_layout Standard
17565 newcolumntype{name of format}[number of arguments]{commands}
17568 \begin_layout Standard
17569 The format name may only consist of one letter.
17594 are predefined and cannot be used.
17595 But all letters are allowed as capitals.
17598 \begin_layout Standard
17599 \begin_inset VSpace medskip
17605 \begin_layout Standard
17606 For vertically and horizontally centered multicolumn cells with a fixed
17607 width you can define the cell format
17610 \begin_layout Standard
17615 newcolumntype{M}[1]{>{
17622 \begin_layout Standard
17629 avoids the problem of hyphenating the first word, as described in section
17630 \begin_inset space ~
17634 \begin_inset CommandInset ref
17636 reference "sub:Multiple-Lines-in"
17641 Now you can simply enter
17644 \begin_layout Standard
17650 \begin_layout Standard
17651 as LaTeX-argument in the table dialog to create a multicolumn.
17654 \begin_layout Standard
17655 \begin_inset VSpace bigskip
17661 \begin_layout Standard
17662 For cells spanned by a multicolumn cell, you can define the format
17665 \begin_layout Standard
17670 newcolumntype{S}[2]{>{
17675 \begin_inset Newline newline
17682 \begin_layout Plain Layout
17697 \begin_layout Plain Layout
17708 arrayrulewidth)*(1-#2))/#2}}
17711 \begin_layout Standard
17712 This format uses equation
17713 \begin_inset CommandInset ref
17719 to calculate the needed width so that each spanned cell has the same width.
17722 \begin_layout Standard
17726 \begin_layout Standard
17729 S{width of multicolumn cell}{number of spanned columns}
17732 \begin_layout Standard
17733 as LaTeX-argument of the column.
17736 \begin_layout Standard
17737 \begin_inset VSpace bigskip
17743 \begin_layout Standard
17744 For colored columns, you can define
17747 \begin_layout Standard
17752 newcolumntype{K}[1]{>{
17759 \begin_layout Standard
17761 \begin_inset Quotes eld
17765 \begin_inset Quotes erd
17768 at the end creates a column with a flexible width whose text is horizontally
17773 \begin_layout Standard
17779 \begin_layout Standard
17783 \begin_layout Standard
17784 \begin_inset VSpace bigskip
17790 \begin_layout Standard
17792 \begin_inset space ~
17796 \begin_inset CommandInset ref
17798 reference "tab:Table-using-user-defined"
17802 use the LaTeX-arguments
17805 \begin_layout Standard
17811 \begin_layout Standard
17812 for the first column and the multicolumn,
17815 \begin_layout Standard
17821 \begin_layout Standard
17822 for the the last column, and
17825 \begin_layout Standard
17831 \begin_layout Standard
17832 for the cells in the second column.
17835 \begin_layout Standard
17836 \begin_inset Float table
17842 \begin_layout Plain Layout
17843 \begin_inset Caption
17845 \begin_layout Plain Layout
17846 \begin_inset CommandInset label
17848 name "tab:Table-using-user-defined"
17852 Table using user-defined table formats
17860 \begin_layout Plain Layout
17862 \begin_inset Tabular
17863 <lyxtabular version="3" rows="3" columns="4">
17865 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17866 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17867 <column alignment="center" valignment="middle" width="0">
17868 <column alignment="center" valignment="middle" width="0" special="K{red}">
17870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17873 \begin_layout Plain Layout
17874 verylongtablecellword
17879 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17882 \begin_layout Plain Layout
17883 multiple lines multicolumn
17888 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17891 \begin_layout Plain Layout
17897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17900 \begin_layout Plain Layout
17908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17911 \begin_layout Plain Layout
17917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17920 \begin_layout Plain Layout
17926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17929 \begin_layout Plain Layout
17935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17938 \begin_layout Plain Layout
17946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17949 \begin_layout Plain Layout
17955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17958 \begin_layout Plain Layout
17964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17967 \begin_layout Plain Layout
17973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17976 \begin_layout Plain Layout
17995 \begin_layout Subsection
17997 \begin_inset CommandInset label
17999 name "sub:Line-Thickness"
18007 \begin_layout Plain Layout
18008 Table Customization ! Line Thickness
18016 \begin_layout Standard
18017 The line thickness for all lines in a table can be adjusted with the length
18025 To set for example a line thickness of 1.5
18026 \begin_inset space \thinspace{}
18030 \begin_inset space ~
18034 \begin_inset CommandInset ref
18036 reference "tab:Table-with-1.5"
18040 , insert the command
18043 \begin_layout Standard
18050 arrayrulewidth}{1.5pt}
18053 \begin_layout Standard
18054 in TeX-Code before the table or table float.
18055 The changed thickness is valid for all following tables.
18056 To use the default value again, set
18063 \begin_inset space \thinspace{}
18066 pt in TeX-Code behind the table or table float.
18069 \begin_layout Standard
18073 \begin_layout Plain Layout
18079 arrayrulewidth}{1.5pt}
18085 \begin_inset Float table
18090 \begin_layout Plain Layout
18091 \begin_inset Caption
18093 \begin_layout Plain Layout
18094 \begin_inset CommandInset label
18096 name "tab:Table-with-1.5"
18101 \begin_inset space \thinspace{}
18112 \begin_layout Plain Layout
18114 \begin_inset Tabular
18115 <lyxtabular version="3" rows="3" columns="3">
18117 <column alignment="center" valignment="top" width="0">
18118 <column alignment="center" valignment="top" width="0">
18119 <column alignment="center" valignment="top" width="0">
18121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18133 \begin_layout Plain Layout
18139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18142 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18162 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18171 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18182 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18191 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18200 \begin_layout Plain Layout
18220 \begin_layout Plain Layout
18226 arrayrulewidth}{0.4pt}
18234 \begin_layout Standard
18235 \begin_inset VSpace bigskip
18238 To set the line thickness to 1.5
18239 \begin_inset space \thinspace{}
18242 pt only for horizontal lines, like in Table
18243 \begin_inset space ~
18247 \begin_inset CommandInset ref
18249 reference "tab:Table-with-horizontal"
18253 , insert these commands in TeX-Code before the table or table float:
18256 \begin_layout Standard
18266 \begin_inset Newline newline
18274 \begin_inset Newline newline
18283 arrayrulewidth 1.5pt}
18284 \begin_inset Newline newline
18295 arrayrulewidth 0.4pt}}
18298 \begin_layout Standard
18299 To return to the default line thickness, insert this command in TeX-Code
18300 behind the table or table float:
18303 \begin_layout Standard
18315 \begin_layout Standard
18319 \begin_layout Plain Layout
18330 \begin_layout Plain Layout
18339 \begin_layout Plain Layout
18347 arrayrulewidth 1.5pt}
18350 \begin_layout Plain Layout
18360 arrayrulewidth 0.4pt}}
18366 \begin_inset Float table
18371 \begin_layout Plain Layout
18372 \begin_inset Caption
18374 \begin_layout Plain Layout
18375 \begin_inset CommandInset label
18377 name "tab:Table-with-horizontal"
18382 \begin_inset space \thinspace{}
18385 pt thick horizontal lines
18393 \begin_layout Plain Layout
18395 \begin_inset Tabular
18396 <lyxtabular version="3" rows="3" columns="3">
18398 <column alignment="center" valignment="top" width="0">
18399 <column alignment="center" valignment="top" width="0">
18400 <column alignment="center" valignment="top" width="0">
18402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18405 \begin_layout Plain Layout
18411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18414 \begin_layout Plain Layout
18420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18423 \begin_layout Plain Layout
18431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18434 \begin_layout Plain Layout
18440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18443 \begin_layout Plain Layout
18449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18452 \begin_layout Plain Layout
18460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18472 \begin_layout Plain Layout
18478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18481 \begin_layout Plain Layout
18501 \begin_layout Plain Layout
18517 \begin_layout Standard
18518 \begin_inset VSpace bigskip
18521 To set the line thickness to 1.5
18522 \begin_inset space \thinspace{}
18525 pt only for vertical lines, create the following column format in the document
18526 preamble, according to the description in section
18527 \begin_inset space ~
18531 \begin_inset CommandInset ref
18533 reference "sub:Customized-Format"
18540 \begin_layout Standard
18545 newcolumntype{V}{!{
18547 vrule width 1.5pt}}
18550 \begin_layout Standard
18552 \begin_inset space ~
18556 \begin_inset CommandInset ref
18558 reference "tab:Table-with-vertical"
18565 \begin_layout Standard
18571 \begin_layout Standard
18572 was used for the last column and
18575 \begin_layout Standard
18581 \begin_layout Standard
18582 for the other columns.
18585 \begin_layout Standard
18586 \begin_inset Float table
18591 \begin_layout Plain Layout
18592 \begin_inset Caption
18594 \begin_layout Plain Layout
18595 \begin_inset CommandInset label
18597 name "tab:Table-with-vertical"
18602 \begin_inset space \thinspace{}
18605 pt thick vertical lines
18613 \begin_layout Plain Layout
18615 \begin_inset Tabular
18616 <lyxtabular version="3" rows="3" columns="3">
18618 <column alignment="center" valignment="top" width="0" special="Vc">
18619 <column alignment="center" valignment="top" width="0" special="Vc">
18620 <column alignment="center" valignment="top" width="0" special="VcV">
18622 <cell alignment="center" valignment="top" topline="true" usebox="none">
18625 \begin_layout Plain Layout
18631 <cell alignment="center" valignment="top" topline="true" usebox="none">
18634 \begin_layout Plain Layout
18640 <cell alignment="center" valignment="top" topline="true" usebox="none">
18643 \begin_layout Plain Layout
18651 <cell alignment="center" valignment="top" topline="true" usebox="none">
18654 \begin_layout Plain Layout
18660 <cell alignment="center" valignment="top" topline="true" usebox="none">
18663 \begin_layout Plain Layout
18669 <cell alignment="center" valignment="top" topline="true" usebox="none">
18672 \begin_layout Plain Layout
18680 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18683 \begin_layout Plain Layout
18689 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18692 \begin_layout Plain Layout
18698 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18701 \begin_layout Plain Layout
18720 \begin_layout Subsection
18725 \begin_layout Plain Layout
18726 Table Customization ! Dashed Lines
18734 \begin_layout Standard
18738 \begin_layout Plain Layout
18748 \begin_inset Note Note
18751 \begin_layout Plain Layout
18752 The following section will only be displayed when the LaTeX-package
18764 \begin_layout Standard
18765 \begin_inset Float table
18771 \begin_layout Plain Layout
18772 \begin_inset Caption
18774 \begin_layout Plain Layout
18775 \begin_inset CommandInset label
18777 name "tab:Table-with-dashed"
18781 Table with dashed lines
18789 \begin_layout Plain Layout
18791 \begin_inset Tabular
18792 <lyxtabular version="3" rows="5" columns="5">
18794 <column alignment="center" valignment="top" width="0">
18795 <column alignment="center" valignment="top" width="0">
18796 <column alignment="center" valignment="top" width="0" special=":c">
18797 <column alignment="center" valignment="top" width="0">
18798 <column alignment="center" valignment="top" width="0">
18800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18803 \begin_layout Plain Layout
18809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18812 \begin_layout Plain Layout
18818 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18821 \begin_layout Plain Layout
18827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18830 \begin_layout Plain Layout
18836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18839 \begin_layout Plain Layout
18847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18850 \begin_layout Plain Layout
18856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18859 \begin_layout Plain Layout
18865 <cell alignment="center" valignment="top" topline="true" usebox="none">
18868 \begin_layout Plain Layout
18874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18877 \begin_layout Plain Layout
18883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18886 \begin_layout Plain Layout
18894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18897 \begin_layout Plain Layout
18901 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18918 \begin_layout Plain Layout
18924 <cell alignment="center" valignment="top" usebox="none">
18927 \begin_layout Plain Layout
18933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18936 \begin_layout Plain Layout
18942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18945 \begin_layout Plain Layout
18953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18956 \begin_layout Plain Layout
18960 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18977 \begin_layout Plain Layout
18983 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18986 \begin_layout Plain Layout
18992 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18995 \begin_layout Plain Layout
19001 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19004 \begin_layout Plain Layout
19012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19015 \begin_layout Plain Layout
19021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19024 \begin_layout Plain Layout
19030 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19033 \begin_layout Plain Layout
19039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19042 \begin_layout Plain Layout
19048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19051 \begin_layout Plain Layout
19070 \begin_layout Standard
19071 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19072 As prerequisite the LaTeX-package
19080 \begin_layout Plain Layout
19081 LaTeX-packages ! arydshln
19086 must be loaded in the document preamble with the command
19089 \begin_layout Standard
19094 usepackage{arydshln}
19097 \begin_layout Standard
19098 To make a vertical line dashed, enter the colon
19099 \begin_inset Quotes eld
19103 \begin_inset Quotes erd
19106 together with the character for the horizontal alignment as LaTeX-argument
19107 in the table cell dialog.
19110 \begin_layout Standard
19111 For a horizontal dashed line add the command
19114 \begin_layout Standard
19122 \begin_layout Standard
19123 in TeX-Code as first element of the first cell in the table row.
19126 \begin_layout Standard
19127 For dashed multicolumn lines use the command
19130 \begin_layout Standard
19135 cdashline{line number
19140 \begin_layout Standard
19141 in TeX-Code as first element of the first cell in the table row.
19142 If you have for example a multicolumn spanning over columns 2 to 4 and
19143 you want to have a dashed line above, add the command
19146 \begin_layout Standard
19154 \begin_layout Standard
19155 as first element of the first cell in the row of the multicolumn.
19158 \begin_layout Standard
19159 \begin_inset VSpace bigskip
19165 \begin_layout Standard
19167 \begin_inset space ~
19171 \begin_inset CommandInset ref
19173 reference "tab:Table-with-dashed"
19178 \begin_inset Quotes eld
19186 \begin_inset Quotes erd
19189 as LaTeX-argument of the third column.
19190 The TeX-Code command
19196 was inserted to the first cell of the third row and the the TeX-Code command
19197 \begin_inset Newline newline
19206 was inserted to the first cell of the fourth row.
19209 \begin_layout Standard
19210 \begin_inset Note Greyedout
19213 \begin_layout Plain Layout
19218 The used LaTeX-package
19222 is apparently not compatible with the LaTeX-package
19230 \begin_layout Plain Layout
19231 LaTeX-packages ! colortbl
19236 that is used for colored tables in section
19237 \begin_inset space ~
19241 \begin_inset CommandInset ref
19243 reference "sec:Colored-Tables"
19248 That means colored tables cannot have dashed lines.
19256 \begin_layout Standard
19260 \begin_layout Plain Layout
19270 \begin_inset Note Note
19273 \begin_layout Plain Layout
19274 The following will be displayed when the LaTeX-package
19286 \begin_layout Standard
19287 You need to install the package
19291 to see the content of this section in the output.
19294 \begin_layout Standard
19298 \begin_layout Plain Layout
19310 \begin_layout Chapter
19315 \begin_layout Plain Layout
19324 \begin_layout Section
19326 \begin_inset CommandInset label
19328 name "sec:FloatIntroduction"
19336 \begin_layout Plain Layout
19337 Floats ! Introduction
19345 \begin_layout Standard
19346 A float is a block of text associated with some sort of label, which doesn't
19347 have a fixed location.
19349 \begin_inset Quotes eld
19353 \begin_inset Quotes erd
19356 forward or backward a page or two, to wherever it fits best.
19364 \begin_inset space ~
19369 are also floats, because they can float to the next page when there are
19370 too many notes at the page.
19373 \begin_layout Standard
19374 Floats allow a high quality layout.
19375 Images and tables can evenly be spread to the pages to avoid white space
19376 and pages without text.
19377 As the floating often destroys the context between the text and the image/table
19378 , every float can be referenced in the text.
19379 Floats are therefore numbered.
19380 Referencing is described in section
19381 \begin_inset space ~
19385 \begin_inset CommandInset ref
19387 reference "sec:Referencing-Floats"
19394 \begin_layout Standard
19395 To insert a float, use the menu
19397 Insert\SpecialChar \menuseparator
19405 inset, a box with a label.
19406 The label will automatically be translated to the document language in
19408 Behind the label you can insert the caption text.
19409 The image or table is inserted above or below the caption in a separate
19410 paragraph within the float.
19411 More about the caption placement is described in section
19412 \begin_inset space ~
19416 \begin_inset CommandInset ref
19418 reference "sec:Caption-Placement"
19423 To keep your LyX-document readable, you can open and close the float box
19424 by left-clicking on the box label.
19425 A closed float box looks like this:
19426 \begin_inset Graphics
19427 filename clipart/floatQt4.png
19429 scaleBeforeRotation
19433 – a gray button with a red label.
19436 \begin_layout Standard
19437 It is recommended to insert floats as a separate paragraph to avoid possible
19438 LaTeX-errors that can occur when the surrounding text is specially formatted.
19441 \begin_layout Standard
19442 Existing figures or tables can be put into a float by marking them and then
19443 pressing the corresponding toolbar button for a new float.
19446 \begin_layout Section
19450 \begin_layout Standard
19451 Besides figure and table floats that are described in section
19452 \begin_inset space ~
19456 \begin_inset CommandInset ref
19458 reference "sec:Figure-Floats"
19463 \begin_inset CommandInset ref
19465 reference "sec:Table-Floats"
19469 , respectively, LyX offers the float types
19480 \begin_layout Subsection
19485 \begin_layout Plain Layout
19486 Floats ! Algorithms
19494 \begin_layout Standard
19495 \begin_inset Float algorithm
19501 \begin_layout Plain Layout
19502 \begin_inset Caption
19504 \begin_layout Plain Layout
19505 \begin_inset CommandInset label
19507 name "alg:Example-Algorithm-float"
19511 Example Algorithm float
19519 \begin_layout LyX-Code
19521 \begin_inset Newline newline
19524 Sum:= Sum + A(I); /*comment*/
19525 \begin_inset Newline newline
19529 \begin_inset VSpace -4mm
19540 \begin_layout Standard
19541 This float type is inserted with the menu
19543 Insert\SpecialChar \menuseparator
19544 Floats\SpecialChar \menuseparator
19548 It is used for program codes and descriptions of algorithms and can be
19549 seen as an alternative to program code listings that are explained in chapter
19550 \begin_inset space ~
19554 \begin_inset CommandInset ref
19556 reference "cha:Program-Code-Listings"
19561 A possible environment for algorithms is the
19565 , described in LyX's
19571 \begin_inset space ~
19575 \begin_inset CommandInset ref
19577 reference "alg:Example-Algorithm-float"
19581 is an example of an algorithm float where -4
19582 \begin_inset space \thinspace{}
19585 mm vertical space was added at the end of the float to have the bottom rule
19586 exactly below the last text line.
19589 \begin_layout Standard
19590 The float label is not automatically translated into the document language.
19591 If your document is not in English, you have to do this manually by adding
19592 the following line to the document preamble
19597 \begin_layout Standard
19602 floatname{algorithm}{your
19603 \begin_inset space ~
19609 \begin_layout Standard
19613 \begin_inset space ~
19619 \begin_inset Quotes eld
19627 \begin_inset Quotes erd
19633 \begin_layout Standard
19634 To insert the list of algorithms you can use the menu
19636 Insert\SpecialChar \menuseparator
19638 \begin_inset space \thinspace{}
19642 \begin_inset space \thinspace{}
19645 TOC\SpecialChar \menuseparator
19648 when your document has the same language as LyX's menu names.
19649 In other cases use this command in TeX-Code instead:
19652 \begin_layout Standard
19657 listof{algorithm}{your
19658 \begin_inset space ~
19664 \begin_layout Standard
19668 \begin_inset space ~
19674 \begin_inset Quotes eld
19682 \begin_inset Quotes erd
19688 \begin_layout Standard
19689 Algorithm floats are not by default numbered in the scheme
19690 \begin_inset Quotes eld
19694 \begin_inset Quotes erd
19697 like it is the case for table and figure floats in many document-classes.
19698 To number algorithm floats in the same scheme, add this command to your
19702 \begin_layout Standard
19707 numberwithin{algorithm}{chapter}
19710 \begin_layout Standard
19711 To be able to use the command
19720 \begin_inset space ~
19725 in the document settings the option
19728 \begin_inset space ~
19732 \begin_inset space ~
19736 \begin_inset space ~
19744 \begin_layout Subsection
19749 \begin_layout Plain Layout
19750 Floats ! Wrap Floats
19758 \begin_layout Standard
19759 \begin_inset Wrap figure
19766 \begin_layout Plain Layout
19767 \begin_inset Graphics
19768 filename clipart/mobius.eps
19770 scaleBeforeRotation
19771 rotateOrigin center
19778 \begin_layout Plain Layout
19779 \begin_inset Caption
19781 \begin_layout Plain Layout
19782 \begin_inset CommandInset label
19784 name "fig:This-is-a"
19788 This is a figure wrap float.
19798 This float type is used if you want to wrap text around a figure or table
19799 so that it only occupies some fraction of the column width.
19800 It can be inserted using the menu
19802 Insert\SpecialChar \menuseparator
19803 Floats\SpecialChar \menuseparator
19805 \begin_inset space ~
19809 \begin_inset space ~
19817 \begin_inset space ~
19821 \begin_inset space ~
19826 if the LaTeX-package
19834 \begin_layout Plain Layout
19835 LaTeX-packages ! wrapfig
19839 \begin_layout Plain Layout
19857 \begin_layout Plain Layout
19858 Installing a LaTeX-package is explained it in the
19861 \begin_inset space ~
19871 The settings of the float can be modified by right-clicking on the float
19873 The mandatory settings are the float
19886 that specifies how much the float is set into the paragraph
19887 \begin_inset space \thinspace{}
19891 \begin_inset space \thinspace{}
19894 page margin, and the
19897 \begin_inset space ~
19902 that specifies how many text lines the float will approximately need.
19903 The line span is often hard to be approximated, so better only use it when
19904 you encounter float placement problems.
19905 You can furthermore decide if LaTeX is allowed to let the float float within
19906 the paragraph or to surrounding paragraphs.
19908 \begin_inset space ~
19912 \begin_inset CommandInset ref
19914 reference "fig:This-is-a"
19918 is an example text wrap float with a width of 40
19919 \begin_inset space \thinspace{}
19923 \begin_inset space \thinspace{}
19926 cm overhang, set to the left.
19930 \begin_layout Plain Layout
19931 Available units are explained in appendix
19932 \begin_inset space ~
19936 \begin_inset CommandInset ref
19938 reference "cha:Units-available-in"
19950 \begin_layout Standard
19951 \begin_inset Note Greyedout
19954 \begin_layout Plain Layout
19960 \begin_inset space ~
19963 wrap float floats are fragile! E.
19964 \begin_inset space \thinspace{}
19968 \begin_inset space \space{}
19971 having a figure too close to the bottom of the page can mess things up in
19972 the way that the float doesn't appear in the output or that it is placed
19973 over some other text.
19981 \begin_layout Standard
19985 \begin_layout Itemize
19986 Wrap floats should not be placed in paragraphs that run over a page break.
19987 That means that wrap floats should better be inserted to the exact place
19988 when the document is nearly finished and you are able to estimate where
19989 page breaks will appear.
19992 \begin_layout Itemize
19993 Wrap floats should either be placed in an own paragraph before the paragraph
19994 where they should wrap into or within a paragraph.
19997 \begin_layout Itemize
19998 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19999 there is a text paragraph between them as separator.
20002 \begin_layout Itemize
20003 Wrap floats are not allowed in section headings or tables.
20006 \begin_layout Section
20011 \begin_layout Plain Layout
20020 \begin_layout Standard
20021 Floats are usually numbered either independent from the sections the floats
20022 are in, or in the scheme
20023 \begin_inset Quotes eld
20027 \begin_inset Quotes erd
20031 \begin_inset Quotes eld
20035 \begin_inset Quotes erd
20039 This depends on the used document class.
20042 \begin_layout Standard
20043 To change the section independent numbering, you can use this command in
20044 the document preamble:
20047 \begin_layout Standard
20059 \begin_layout Standard
20066 is the command that prints the table number, for figure floats, the command
20080 prints in the command above the table number as small roman number.
20083 \begin_layout Standard
20084 To change the numbering scheme for example to
20085 \begin_inset Quotes eld
20089 \begin_inset Quotes erd
20092 , use this command in the preamble:
20095 \begin_layout Standard
20100 numberwithin{table}{subsection}
20103 \begin_layout Standard
20104 To be able to use the command
20113 \begin_inset space ~
20118 in the document settings the option
20121 \begin_inset space ~
20125 \begin_inset space ~
20129 \begin_inset space ~
20137 \begin_layout Standard
20138 Please also have a look at section
20139 \begin_inset space ~
20143 \begin_inset CommandInset ref
20145 reference "sub:Footnote-Numbering"
20149 for the details and important notes about the numbering commands.
20152 \begin_layout Section
20154 \begin_inset CommandInset label
20156 name "sec:Referencing-Floats"
20164 \begin_layout Plain Layout
20165 Floats ! References
20174 \begin_layout Plain Layout
20175 References ! to Floats
20183 \begin_layout Standard
20184 To reference a float, insert a label into its caption using the menu
20186 Insert\SpecialChar \menuseparator
20189 or the toolbar button
20190 \begin_inset Graphics
20191 filename ../images/label-insert.png
20193 scaleBeforeRotation
20198 A grey label box like this one:
20199 \begin_inset Graphics
20200 filename clipart/labelQt4.png
20202 scaleBeforeRotation
20206 will be inserted and the label window pops up asking for the label text.
20207 LyX offers as text the first words of the caption with a prefix.
20208 The prefix depends on the float type, e.
20209 \begin_inset space \thinspace{}
20213 \begin_inset space \space{}
20216 for figure floats the prefix will be "
20223 \begin_layout Standard
20224 The label is used as anchor and name for the reference.
20225 You can refer to the label using the menu
20227 Insert\SpecialChar \menuseparator
20230 or the toolbar button
20231 \begin_inset Graphics
20232 filename ../images/dialog-show-new-inset_ref.png
20234 scaleBeforeRotation
20239 A grey cross-reference box like this one:
20240 \begin_inset Graphics
20241 filename clipart/referenceQt4.png
20243 scaleBeforeRotation
20247 will be inserted and the cross-reference window appear showing all labels
20249 If you have multiple LyX-documents opened, choose the one you are working
20250 on from the drop-list at the top of the dialog.
20251 You can now sort the labels alphabetically and then choose one.
20252 At the position of the cross-reference box the float number will appear
20256 \begin_layout Standard
20257 It is recommended to use a protected space between the cross-reference name
20258 and its number to avoid line breaks between them.
20259 If a cross-reference refers to a non-existing label, you will see two question
20260 marks in the output instead of the reference.
20263 \begin_layout Standard
20264 You can change labels at any time by clicking on the label box.
20265 References to the changed label will automatically change its link to the
20266 new label text, so that you don't need to take care about this.
20269 \begin_layout Standard
20273 \begin_inset space ~
20277 \begin_inset space ~
20282 in the cross-reference window sets the cursor before the referred label.
20283 The button text changes then to Go
20284 \begin_inset space ~
20287 Back and you can use it to set the cursor back to the cross-reference.
20288 Right-clicking on a cross-reference box also sets the cursor before the
20289 referenced label but without a possibility to go back.
20292 \begin_layout Subsection
20293 Cross-Reference Formats
20294 \begin_inset CommandInset label
20296 name "sub:Cross-Reference-Formats"
20304 \begin_layout Plain Layout
20305 References ! Formats
20313 \begin_layout Standard
20314 There are six varieties of cross-references:
20317 \begin_layout Description
20318 <reference>: prints the float number, this is the default:
20319 \begin_inset CommandInset ref
20321 reference "fig:Two-distorted-images"
20328 \begin_layout Description
20329 (<reference>): prints the float number within two parentheses, this is the
20330 style normally used to reference formulas, especially when the reference
20332 \begin_inset Quotes eld
20336 \begin_inset Quotes erd
20340 \begin_inset CommandInset ref
20349 \begin_layout Description
20350 <page>: prints the page number: Page
20351 \begin_inset space ~
20355 \begin_inset CommandInset ref
20356 LatexCommand pageref
20357 reference "fig:Two-distorted-images"
20364 \begin_layout Description
20366 \begin_inset space ~
20370 \begin_inset space ~
20373 <page>: prints the text "on page" and the page number:
20374 \begin_inset CommandInset ref
20375 LatexCommand vpageref
20376 reference "fig:Two-distorted-images"
20383 \begin_layout Description
20385 \begin_inset space ~
20389 \begin_inset space ~
20393 \begin_inset space ~
20396 <page>: prints the float number, the text "on page", and the page number:
20398 \begin_inset CommandInset ref
20400 reference "fig:Two-distorted-images"
20407 \begin_layout Description
20409 \begin_inset space ~
20412 reference: prints a self defined cross-reference format.
20414 \begin_inset Note Greyedout
20417 \begin_layout Plain Layout
20422 This feature is only available when you have the LaTeX-package
20434 \begin_layout Standard
20435 Note that the style <page> won't print the page number if the label is on
20436 the previous, the same, or the next page.
20438 \begin_inset space \thinspace{}
20442 \begin_inset space \space{}
20446 \begin_inset Quotes eld
20454 \begin_inset Quotes erd
20460 \begin_layout Standard
20461 The number and current page of the referred document part in the output,
20462 is automatically calculated by LaTeX.
20463 The varieties are adjusted in the field
20467 of the cross-reference window, that appear when you click on the cross-referenc
20471 \begin_layout Subsection
20472 Automatic Reference Naming
20476 \begin_layout Plain Layout
20477 References ! Automatic Reference Naming
20485 \begin_layout Standard
20494 \begin_layout Plain Layout
20495 LaTeX-packages ! hyperref
20500 , that is enabled in the
20508 dialog, provides a very useful feature that cross-references automatically
20509 include the name of the referenced floats (or text parts like
20514 So you will save to write e.
20515 \begin_inset space \thinspace{}
20519 \begin_inset space \space{}
20523 \begin_inset Quotes eld
20527 \begin_inset Quotes erd
20530 before every reference to a figure.
20531 To use this feature, enable
20535 and insert this line to the LaTeX preamble:
20538 \begin_layout Standard
20554 \begin_layout Standard
20555 When you prefer other reference names than the default ones, for example
20556 you want instead of
20557 \begin_inset Quotes eld
20561 \begin_inset Quotes erd
20565 \begin_inset Quotes eld
20569 \begin_inset space \thinspace{}
20573 \begin_inset Quotes eld
20576 , you can redefine the name by inserting this to the preamble:
20579 \begin_layout Standard
20590 sectionautorefname}
20591 \begin_inset Newline newline
20598 \begin_layout Plain Layout
20612 \begin_layout Standard
20613 When you are using another document language than English, replace
20614 \begin_inset Newline newline
20629 , where *** is the name of the used language.
20632 \begin_layout Standard
20633 To get automatic names, but not for certain reference types, for example
20634 not for equations, use this preamble code:
20637 \begin_layout Standard
20645 \begin_inset Newline newline
20655 \begin_inset Newline newline
20666 equationautorefname}
20667 \begin_inset Newline newline
20674 \begin_layout Plain Layout
20690 \begin_layout Standard
20691 More about this topic can be found in
20696 \begin_inset CommandInset citation
20705 \begin_layout Standard
20706 \begin_inset Note Greyedout
20709 \begin_layout Plain Layout
20714 Automatic reference naming cannot be used when you use cross-references
20718 \begin_inset space ~
20723 style, as described in section
20724 \begin_inset space ~
20728 \begin_inset CommandInset ref
20730 reference "sub:Cross-Reference-Formats"
20742 \begin_layout Standard
20747 manual is an example where automatic reference naming is used.
20750 \begin_layout Subsection
20752 \begin_inset CommandInset label
20754 name "sub:Reference-Position"
20762 \begin_layout Plain Layout
20763 References ! Reference Position
20771 \begin_layout Standard
20780 \begin_layout Plain Layout
20781 LaTeX-packages ! hyperref
20794 dialog to link cross-references in the output, you will see that clicking
20795 on an image float reference jumps to the image label.
20796 The caption will be the first text part on the screen, so that you cannot
20797 see the image without scrolling.
20798 This is because the reference link anchor is placed at the position of
20800 With the use of the package
20808 \begin_layout Plain Layout
20809 LaTeX-packages ! hypcap
20814 , which is part of the LaTeX-package
20822 \begin_layout Plain Layout
20823 LaTeX-packages ! oberdiek
20828 , the link anchor is placed at the beginning of a float.
20829 To use this feature for figure floats, load
20833 in the document preamble with the line
20836 \begin_layout Standard
20841 usepackage[figure]{hypcap}
20844 \begin_layout Standard
20849 for all float types but this is not recommended for stability reasons.
20850 For more information, have a look at
20855 \begin_inset CommandInset citation
20864 \begin_layout Standard
20865 \begin_inset Note Greyedout
20868 \begin_layout Plain Layout
20877 has no effect for references to subfigures.
20885 \begin_layout Section
20887 \begin_inset CommandInset label
20889 name "sec:Float-Placement"
20897 \begin_layout Plain Layout
20906 \begin_layout Standard
20907 Right-clicking on a float-box opens a dialog where you can alter the placement
20908 options that LaTeX uses for positioning the float.
20909 \begin_inset Newline newline
20915 \begin_inset space ~
20920 is only useful for two-column documents: If you select it, the float will
20921 span across both columns on the page instead of being confined to just
20923 \begin_inset Newline newline
20929 \begin_inset space ~
20934 is used to rotate floats, see section
20935 \begin_inset CommandInset ref
20937 reference "sec:Rotated-Floats"
20944 \begin_layout Standard
20945 You can use one ore more of the following options in the float dialog to
20946 set the placement for a particular float when you uncheck the option
20949 \begin_inset space ~
20953 \begin_inset space ~
20961 \begin_layout Description
20963 \begin_inset space ~
20967 \begin_inset space ~
20970 possible try to place the float on the position where it is inserted
20973 \begin_layout Description
20975 \begin_inset space ~
20979 \begin_inset space ~
20982 page try to place the float on the top of the current page
20985 \begin_layout Description
20987 \begin_inset space ~
20991 \begin_inset space ~
20994 page try to place the float on the bottom of the current page
20997 \begin_layout Description
20999 \begin_inset space ~
21003 \begin_inset space ~
21006 floats try to place the float on an own page
21009 \begin_layout Standard
21010 The order of the above option is
21015 That means, if you use the default placement, LaTeX will first try out
21019 \begin_inset space ~
21023 \begin_inset space ~
21031 \begin_inset space ~
21035 \begin_inset space ~
21040 , and then the others.
21041 If you don't use the default, LaTeX will try only the checked options but
21043 If none of the 4 placements are possible the procedure is internally repeated
21044 but it is tried to put the float on the following page.
21047 \begin_layout Standard
21048 By default, each option has its own rules:
21051 \begin_layout Labeling
21052 \labelwidthstring 00.00.0000
21056 \begin_inset space ~
21060 \begin_inset space ~
21065 only floats occupying less than 70
21066 \begin_inset space \thinspace{}
21069 % of the page can be placed at the top of a page (
21078 \begin_layout Labeling
21079 \labelwidthstring 00.00.0000
21083 \begin_inset space ~
21087 \begin_inset space ~
21092 : only floats occupying less than 30
21093 \begin_inset space \thinspace{}
21096 % of the page can be placed at the bottom of a page.
21106 \begin_layout Labeling
21107 \labelwidthstring 00.00.0000
21111 \begin_inset space ~
21115 \begin_inset space ~
21120 : only if more than 50
21121 \begin_inset space \thinspace{}
21124 % of the page are occupied by floats, several floats can be set together
21135 \begin_layout Standard
21136 If you don't like these rules, you can ignore them by using the additional
21140 \begin_inset space ~
21144 \begin_inset space ~
21150 \begin_inset Newline newline
21153 You can also redefine the rules with LaTeX-commands that are given in parenthese
21154 s behind the rules description above.
21155 To increase for example the often too small default of the bottom-rule
21157 \begin_inset space \thinspace{}
21160 % of the page, add this line to your document preamble:
21163 \begin_layout Standard
21170 bottomfraction}{0.5}
21173 \begin_layout Standard
21174 Sometimes you might need, under all circumstances, a float to be placed
21175 exactly at the position where it is inserted.
21176 For this case you can use the option
21179 \begin_inset space ~
21185 Use this option very rarely and only if the document is nearly ready to
21187 Because the float is then no longer able to
21188 \begin_inset Quotes eld
21192 \begin_inset Quotes erd
21195 when you change your document and this will often destroy the page layout.
21198 \begin_layout Standard
21199 There are no placement options for text wrap floats, because they are always
21200 surrounded by the text of a certain paragraph.
21201 \begin_inset VSpace bigskip
21207 \begin_layout Standard
21208 Sometimes you have the problem that a float is placed at the top of a page
21209 while its corresponding section starts at the middle of the page, so that
21210 the reader could think the float is part of the previous section.
21211 To avoid this the LaTeX-command
21218 It suppresses a given float placement for the page where it is inserted
21219 and can therefore be used to avoid that floats could be set before a section
21221 To get this, add these commands to your document preamble:
21224 \begin_layout Standard
21234 \begin_inset Newline newline
21248 \begin_layout Standard
21249 You can define the same for all section headings, like chapters and subsections.
21250 This definition is not recommended to be used for small text parts like
21251 subsubsections because LaTeX may then have problems to find a suitable
21255 \begin_layout Standard
21256 \begin_inset VSpace bigskip
21259 In some cases it is required to have all figures/tables at the end of the
21261 For this purpose the LaTeX-package
21269 \begin_layout Plain Layout
21270 LaTeX-packages ! endfloat
21276 It puts all figure and table floats at the end of the document into own
21278 At the original float position a text hint like
21279 \begin_inset Quotes eld
21285 \begin_inset space ~
21291 \begin_inset Quotes erd
21295 The endfloat-package is loaded in the preamble with the line
21298 \begin_layout Standard
21303 usepackage[options]{endfloat}
21306 \begin_layout Standard
21307 There are various package options to format the created figure/table sections.
21308 For more information we refer to the
21313 \begin_inset CommandInset citation
21320 \begin_inset Newline newline
21324 \begin_inset Note Greyedout
21327 \begin_layout Plain Layout
21332 doesn't provide an automatic translation for the text hint, you have to
21333 do this manually, see section
21334 \begin_inset space ~
21338 \begin_inset CommandInset citation
21350 \begin_inset Newline newline
21354 \begin_inset Note Greyedout
21357 \begin_layout Plain Layout
21362 There is currently a bug in
21366 when the caption contains a German
21367 \begin_inset Quotes eld
21371 \begin_inset Quotes erd
21375 Use in this case the command
21376 \begin_inset Quotes eld
21386 \begin_inset Quotes erd
21389 in TeX-Code instead of
21390 \begin_inset Quotes eld
21394 \begin_inset Quotes erd
21405 \begin_layout Standard
21406 \begin_inset VSpace bigskip
21409 For more details about float placements, have a look at LaTeX books,
21410 \begin_inset CommandInset citation
21412 key "latexcompanion,latexguide,latexbook"
21419 \begin_layout Section
21421 \begin_inset CommandInset label
21423 name "sec:Rotated-Floats"
21431 \begin_layout Plain Layout
21440 \begin_layout Standard
21441 Especially for wide tables you might have floats rotated.
21442 To rotate a whole float including the caption, right-click on the float-box
21446 \begin_inset space ~
21454 \begin_layout Standard
21455 Rotated floats are always placed on its own page (or column, in case you
21456 have a multi-column document).
21457 You can let them span several columns using the float settings option
21460 \begin_inset space ~
21466 Floats are rotated so that you can read them from the outside margin.
21467 To force a certain rotation direction for all pages, you can add either
21476 to the document class options.
21479 \begin_layout Standard
21480 Referencing rotated floats is the same like for normal floats, the caption
21481 format is also the same: Table
21482 \begin_inset space ~
21486 \begin_inset CommandInset ref
21488 reference "tab:Rotated-table"
21492 is an example of a rotated table float.
21495 \begin_layout Standard
21496 \begin_inset Note Greyedout
21499 \begin_layout Plain Layout
21504 Not all DVI-viewers are able to display rotated floats.
21512 \begin_layout Standard
21513 \begin_inset Float table
21518 \begin_layout Plain Layout
21519 \begin_inset Caption
21521 \begin_layout Plain Layout
21522 \begin_inset CommandInset label
21524 name "tab:Rotated-table"
21536 \begin_layout Plain Layout
21538 \begin_inset Tabular
21539 <lyxtabular version="3" rows="1" columns="5">
21541 <column alignment="center" valignment="top" width="0">
21542 <column alignment="center" valignment="top" width="0">
21543 <column alignment="center" valignment="top" width="0">
21544 <column alignment="center" valignment="top" width="0">
21545 <column alignment="center" valignment="top" width="0">
21547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21550 \begin_layout Plain Layout
21556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21559 \begin_layout Plain Layout
21565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21568 \begin_layout Plain Layout
21574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21577 \begin_layout Plain Layout
21583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21586 \begin_layout Plain Layout
21605 \begin_layout Section
21606 Floats Side by Side
21610 \begin_layout Plain Layout
21611 Floats ! Side by side
21619 \begin_layout Standard
21620 To place floats side by side, like for Figure
21621 \begin_inset space ~
21625 \begin_inset CommandInset ref
21627 reference "fig:Float-left"
21632 \begin_inset CommandInset ref
21634 reference "fig:Float-right"
21643 In it two minipage boxes are inserted.
21647 \begin_layout Plain Layout
21648 Minipages are explained in section
21649 \begin_inset space ~
21653 \begin_inset CommandInset ref
21655 reference "sec:Minipages"
21664 The width is set to 45
21665 \begin_inset space \thinspace{}
21669 \begin_inset space \thinspace{}
21672 column% and the box alignment to
21677 The minipage boxes contain the image and the caption in the same way as
21678 they are in a float.
21679 The only difference is that the image unit
21682 \begin_inset space ~
21686 \begin_inset space ~
21691 is now calculated according to the width of the minipage boxes.
21694 \begin_layout Standard
21695 \begin_inset Float figure
21700 \begin_layout Plain Layout
21701 \begin_inset Box Frameless
21710 height_special "totalheight"
21713 \begin_layout Plain Layout
21715 \begin_inset Graphics
21716 filename clipart/mobius.eps
21719 scaleBeforeRotation
21726 \begin_layout Plain Layout
21727 \begin_inset Caption
21729 \begin_layout Plain Layout
21730 \begin_inset CommandInset label
21732 name "fig:Float-left"
21736 Float on the left side.
21747 \begin_inset space \hfill{}
21751 \begin_inset Box Frameless
21760 height_special "totalheight"
21763 \begin_layout Plain Layout
21765 \begin_inset Graphics
21766 filename clipart/platypus.eps
21769 scaleBeforeRotation
21776 \begin_layout Plain Layout
21777 \begin_inset Caption
21779 \begin_layout Plain Layout
21780 \begin_inset CommandInset label
21782 name "fig:Float-right"
21786 Float on the right side.
21799 \begin_layout Plain Layout
21808 \begin_layout Section
21813 \begin_layout Plain Layout
21814 Caption ! Formatting
21823 \begin_layout Plain Layout
21824 Floats ! Caption Formatting
21830 \begin_inset CommandInset label
21832 name "sec:Caption-Formatting"
21839 \begin_layout Standard
21844 environment is the default paragraph environment for
21849 On the LyX screen captions appear as label, e.
21850 \begin_inset space \thinspace{}
21854 \begin_inset space \space{}
21858 \begin_inset Quotes eld
21866 \begin_inset Quotes erd
21869 followed by the caption text.
21871 \begin_inset Quotes eld
21875 \begin_inset Quotes erd
21878 is the actual reference number.
21879 By default the label and the number are in the same font as the caption
21880 text and a colon follows the number to divide the label from the text.
21881 This caption format is not suitable for all document formats.
21885 \begin_layout Standard
21886 To change the default caption format, load the LaTeX-package
21894 \begin_layout Plain Layout
21895 LaTeX-packages ! caption
21900 in the document preamble with this line:
21903 \begin_layout Standard
21908 usepackage[format definition]{caption}
21911 \begin_layout Standard
21912 To have for example the label and the number in sans-serif bold font and
21913 the table captions always above the table like in this document, use the
21917 \begin_layout Standard
21922 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21925 \begin_layout Standard
21926 You can also define different caption formats for the different float types.
21927 In this case load the
21931 package without format specific options and define the different formats
21932 with the help of the command
21935 \begin_layout Standard
21940 captionsetup[float type]{format definition}
21943 \begin_layout Standard
21944 in the document preamble.
21945 For example the caption formats of Figure
21946 \begin_inset space ~
21950 \begin_inset CommandInset ref
21952 reference "fig:This-is-an-fig"
21957 \begin_inset space ~
21961 \begin_inset CommandInset ref
21963 reference "tab:This-is-an-tab"
21967 can be created using these commands in the document preamble:
21970 \begin_layout Standard
21975 usepackage[tableposition=top]{caption}
21978 \begin_inset Newline newline
21985 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21986 \begin_inset Newline newline
21993 \begin_layout Plain Layout
22001 captionsetup[figure]
22009 \begin_inset Newline newline
22014 captionsetup[table]{labelfont={bf,sf}}
22017 \begin_layout Standard
22018 \begin_inset Note Greyedout
22021 \begin_layout Plain Layout
22030 has no effect when a
22038 \begin_layout Plain Layout
22039 LaTeX-packages ! koma-script
22044 document class is used.
22045 In this case the document class option
22057 \begin_layout Standard
22058 For more information about the package
22062 we refer to its documentation
22063 \begin_inset CommandInset citation
22072 \begin_layout Standard
22073 To change the label name from e.
22074 \begin_inset space \thinspace{}
22078 \begin_inset space \space{}
22082 \begin_inset Quotes eld
22086 \begin_inset Quotes erd
22090 \begin_inset Quotes eld
22094 \begin_inset Quotes erd
22097 use this preamble command:
22100 \begin_layout Standard
22107 fnum@figure}{Image~
22112 \begin_layout Standard
22119 inserts the figure number and
22122 \begin_inset Quotes eld
22128 \begin_inset Quotes erd
22131 creates a protected space.
22134 \begin_layout Standard
22135 \begin_inset VSpace bigskip
22146 \begin_layout Plain Layout
22147 LaTeX-packages ! koma-script
22154 article (koma-script)
22162 letter (koma-script)
22166 report (koma-script)
22169 \begin_inset space \thinspace{}
22172 ), you can alternatively to the
22180 's built-in command
22187 For example, to have the caption label in bold, add this command to your
22191 \begin_layout Standard
22196 setkomafont{captionlabel}{
22201 \begin_layout Standard
22202 For more information about
22213 \begin_inset CommandInset citation
22222 \begin_layout Standard
22226 \begin_layout Plain Layout
22230 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22237 \begin_inset Note Note
22240 \begin_layout Plain Layout
22241 The caption format is changed only for this example.
22249 \begin_layout Standard
22250 \begin_inset Float figure
22256 \begin_layout Plain Layout
22258 \begin_inset Graphics
22259 filename clipart/mobius.eps
22262 scaleBeforeRotation
22269 \begin_layout Plain Layout
22270 \begin_inset Caption
22272 \begin_layout Plain Layout
22273 \begin_inset CommandInset label
22275 name "fig:This-is-an-fig"
22279 This is an example figure caption that is longer than one line to show the
22280 different caption format.
22281 Here a self-defined caption format is used.
22294 \begin_layout Standard
22298 \begin_layout Plain Layout
22302 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22311 \begin_layout Standard
22312 \begin_inset Float table
22318 \begin_layout Plain Layout
22319 \begin_inset Caption
22321 \begin_layout Plain Layout
22322 \begin_inset CommandInset label
22324 name "tab:This-is-an-tab"
22328 This is an example table caption that is longer than one line to show the
22329 different caption format.
22330 Here the standard caption format for tables in this document is used.
22338 \begin_layout Plain Layout
22340 \begin_inset Tabular
22341 <lyxtabular version="3" rows="1" columns="5">
22343 <column alignment="center" valignment="top" width="0">
22344 <column alignment="center" valignment="top" width="0">
22345 <column alignment="center" valignment="top" width="0">
22346 <column alignment="center" valignment="top" width="0">
22347 <column alignment="center" valignment="top" width="0">
22349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22352 \begin_layout Plain Layout
22358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22361 \begin_layout Plain Layout
22367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22370 \begin_layout Plain Layout
22376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22379 \begin_layout Plain Layout
22385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22388 \begin_layout Plain Layout
22407 \begin_layout Section
22412 \begin_layout Plain Layout
22413 Caption ! Placement
22422 \begin_layout Plain Layout
22423 Floats ! Caption Placement
22429 \begin_inset CommandInset label
22431 name "sec:Caption-Placement"
22438 \begin_layout Standard
22439 The common caption placement rule is:
22442 \begin_layout Description
22443 Figure: Caption is set below the figure
22446 \begin_layout Description
22447 Table: Caption is set above the table
22450 \begin_layout Standard
22451 Having the caption above the table is unfortunately not supported in LaTeX's
22453 That means if you are using the document classes
22469 there will be no space between the caption and the table.
22470 To insert the needed space, add the following option to the load command
22471 of the LaTeX-package
22475 in your document preamble
22479 \begin_layout Plain Layout
22481 \begin_inset space ~
22485 \begin_inset CommandInset ref
22487 reference "sec:Caption-Formatting"
22491 for more information of the package
22503 \begin_layout Standard
22509 \begin_layout Standard
22518 \begin_layout Plain Layout
22519 LaTeX-packages ! koma-script
22526 article (koma-script)
22534 letter (koma-script)
22538 report (koma-script)
22541 \begin_inset space \thinspace{}
22544 ), you can alternatively to the
22548 package set the document class option
22555 \begin_layout Standard
22556 \begin_inset VSpace bigskip
22559 It is also possible to set the caption beside a figure or table.
22560 To get this the LaTeX-package
22568 \begin_layout Plain Layout
22569 LaTeX-packages ! sidecap
22574 has to be loaded in the document preamble with the line
22577 \begin_layout Standard
22582 usepackage[option]{sidecap}
22585 \begin_layout Standard
22586 If you set no option, the caption is placed on the side of the outer page
22587 margin – to the right on odd pages, to the left on even pages.
22588 You can change the placement to inner margin with the option
22593 To force the placement always to the right or left, use the option
22604 \begin_layout Standard
22608 \begin_layout Plain Layout
22618 \begin_inset Note Note
22621 \begin_layout Plain Layout
22622 The following section will only be displayed when the LaTeX-package
22634 \begin_layout Standard
22635 To place in LyX the caption of a float on the side, it is necessary to add
22636 these commands to the document preamble:
22639 \begin_layout Standard
22645 \begin_layout Standard
22653 \begin_inset Newline newline
22660 \begin_layout Plain Layout
22676 \begin_inset Newline newline
22683 \begin_layout Plain Layout
22699 \begin_inset Newline newline
22706 \begin_layout Plain Layout
22717 renewenvironment{table}{
22724 \begin_layout Standard
22732 \begin_inset Newline newline
22739 \begin_layout Plain Layout
22755 \begin_inset Newline newline
22762 \begin_layout Plain Layout
22780 \begin_layout Standard
22788 \begin_inset Newline newline
22795 \begin_layout Plain Layout
22811 \begin_inset Newline newline
22818 \begin_layout Plain Layout
22834 \begin_inset Newline newline
22841 \begin_layout Plain Layout
22852 renewenvironment{figure}{
22859 \begin_layout Standard
22867 \begin_inset Newline newline
22874 \begin_layout Plain Layout
22890 \begin_inset Newline newline
22897 \begin_layout Plain Layout
22915 \begin_layout Standard
22921 \begin_layout Standard
22922 The commands allow you to redefine the floats so that the caption is set
22924 For figure floats use the command
22927 \begin_layout Standard
22935 \begin_layout Standard
22936 in TeX-Code before the float.
22937 Behind the float insert the command
22940 \begin_layout Standard
22948 \begin_layout Standard
22949 in TeX-Code to get back to the original float definition.
22952 \begin_layout Standard
22953 For table floats use the corresponding commands
22956 \begin_layout Standard
22970 \begin_layout Standard
22972 \begin_inset space ~
22976 \begin_inset CommandInset ref
22978 reference "fig:cap-beside-fig"
22983 \begin_inset space ~
22987 \begin_inset CommandInset ref
22989 reference "tab:cap-beside-tab"
22993 are examples where the caption is set beside.
22996 \begin_layout Standard
22997 You can see in the examples that the caption text appears at the top of
22998 the floats for table floats and at the bottom for figure floats.
22999 To change this, you can use the command
23002 \begin_layout Standard
23007 sidecaptionvpos{float type}{placement}
23010 \begin_layout Standard
23011 in the document preamble or in TeX-Code before the float.
23012 The float type is either
23020 , the placement can be
23021 \begin_inset Quotes eld
23029 \begin_inset Quotes erd
23033 \begin_inset Quotes eld
23041 \begin_inset Quotes erd
23045 \begin_inset Quotes eld
23053 \begin_inset Quotes erd
23057 To have for example the caption of figure floats vertically centered, use
23061 \begin_layout Standard
23066 sidecaptionvpos{figure}{c}
23069 \begin_layout Standard
23070 This was used for Figure
23071 \begin_inset space ~
23075 \begin_inset CommandInset ref
23077 reference "fig:cap-beside-fig-2"
23084 \begin_layout Standard
23085 \begin_inset VSpace medskip
23088 For more information about the package
23092 we refer to its documentation
23093 \begin_inset CommandInset citation
23102 \begin_layout Standard
23103 \begin_inset Note Greyedout
23106 \begin_layout Plain Layout
23119 \begin_layout Plain Layout
23120 LaTeX-packages ! hypcap
23125 , described in section
23126 \begin_inset space ~
23130 \begin_inset CommandInset ref
23132 reference "sub:Reference-Position"
23136 , has no effect on floats with the caption set beside.
23144 \begin_layout Standard
23148 \begin_layout Plain Layout
23160 \begin_layout Standard
23161 \begin_inset Float figure
23166 \begin_layout Plain Layout
23167 \begin_inset Graphics
23168 filename clipart/escher-lsd.eps
23170 scaleBeforeRotation
23177 \begin_layout Plain Layout
23178 \begin_inset Caption
23180 \begin_layout Plain Layout
23181 \begin_inset CommandInset label
23183 name "fig:cap-beside-fig"
23187 This is a caption beside a figure.
23200 \begin_layout Standard
23204 \begin_layout Plain Layout
23216 \begin_layout Standard
23217 \begin_inset Float table
23222 \begin_layout Plain Layout
23223 \begin_inset Caption
23225 \begin_layout Plain Layout
23226 \begin_inset CommandInset label
23228 name "tab:cap-beside-tab"
23232 This is a caption beside a table.
23240 \begin_layout Plain Layout
23241 \begin_inset Tabular
23242 <lyxtabular version="3" rows="4" columns="5">
23244 <column alignment="center" valignment="top" width="0">
23245 <column alignment="center" valignment="top" width="0">
23246 <column alignment="center" valignment="top" width="0">
23247 <column alignment="center" valignment="top" width="0">
23248 <column alignment="center" valignment="top" width="0">
23250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23253 \begin_layout Plain Layout
23259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23262 \begin_layout Plain Layout
23268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23271 \begin_layout Plain Layout
23277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23280 \begin_layout Plain Layout
23286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23289 \begin_layout Plain Layout
23297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23300 \begin_layout Plain Layout
23306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23309 \begin_layout Plain Layout
23315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23318 \begin_layout Plain Layout
23324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23327 \begin_layout Plain Layout
23333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23336 \begin_layout Plain Layout
23344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23347 \begin_layout Plain Layout
23353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23356 \begin_layout Plain Layout
23362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23365 \begin_layout Plain Layout
23371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23374 \begin_layout Plain Layout
23380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23383 \begin_layout Plain Layout
23391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23394 \begin_layout Plain Layout
23400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23403 \begin_layout Plain Layout
23409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23412 \begin_layout Plain Layout
23418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23421 \begin_layout Plain Layout
23427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23430 \begin_layout Plain Layout
23449 \begin_layout Standard
23453 \begin_layout Plain Layout
23465 \begin_layout Standard
23469 \begin_layout Plain Layout
23473 sidecaptionvpos{figure}{c}
23479 \begin_inset Float figure
23484 \begin_layout Plain Layout
23485 \begin_inset Graphics
23486 filename clipart/escher-lsd.eps
23488 scaleBeforeRotation
23495 \begin_layout Plain Layout
23496 \begin_inset Caption
23498 \begin_layout Plain Layout
23499 \begin_inset CommandInset label
23501 name "fig:cap-beside-fig-2"
23505 This is a vertically centered caption beside a figure.
23518 \begin_layout Standard
23522 \begin_layout Plain Layout
23534 \begin_layout Standard
23538 \begin_layout Plain Layout
23548 \begin_inset Note Note
23551 \begin_layout Plain Layout
23552 The following will be displayed when the LaTeX-package
23564 \begin_layout Standard
23565 You need to install the LaTeX-package
23569 to see the following part of this section in the output.
23572 \begin_layout Standard
23576 \begin_layout Plain Layout
23588 \begin_layout Section
23593 \begin_layout Plain Layout
23594 Floats ! Float Lists
23602 \begin_layout Standard
23603 Similar to the the table of contents where the sections of the document
23604 are listed, there are listings for all float types, like the figures of
23606 You can insert them via the
23608 Insert\SpecialChar \menuseparator
23610 \begin_inset space ~
23614 \begin_inset space ~
23622 \begin_layout Standard
23623 The list entries are the float captions or its short title, the float number,
23624 and the page number where they appear in the document.
23627 \begin_layout Standard
23628 You can find the list of figures and tables at the end of this document.
23631 \begin_layout Chapter
23635 \begin_layout Section
23640 \begin_layout Plain Layout
23649 \begin_layout Standard
23650 Notes are inserted with the toolbar button
23651 \begin_inset Graphics
23652 filename ../images/note-insert.png
23654 scaleBeforeRotation
23660 Insert\SpecialChar \menuseparator
23664 There are three types of notes:
23667 \begin_layout Description
23669 \begin_inset space ~
23672 Note This note type is for internal notes that won't appear in the output.
23673 Its note-box looks like this:
23674 \begin_inset Newline newline
23678 \begin_inset Newline newline
23682 \begin_inset Graphics
23683 filename clipart/LyXNoteImageQt4.png
23686 scaleBeforeRotation
23691 \begin_inset Note Note
23694 \begin_layout Plain Layout
23695 This is text in a note box that doesn't appear in the output.
23703 \begin_layout Description
23704 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23705 ent, when you export the document to LaTeX via the menu
23707 File\SpecialChar \menuseparator
23708 Export\SpecialChar \menuseparator
23709 LaTeX (pdflatex) / (plain)
23712 Its note-box looks like this:
23713 \begin_inset Newline newline
23717 \begin_inset Newline newline
23721 \begin_inset Graphics
23722 filename clipart/CommentNoteImageQt4.png
23725 scaleBeforeRotation
23730 \begin_inset Note Comment
23733 \begin_layout Plain Layout
23734 This is text in a note box that only appears as comment in LaTeX-files.
23742 \begin_layout Description
23744 \begin_inset space ~
23747 Out This note will appear in the output as grey text.
23748 Its note-box looks like this:
23749 \begin_inset Newline newline
23753 \begin_inset Newline newline
23757 \begin_inset Graphics
23758 filename clipart/GreyedOutNoteImageQt4.png
23761 scaleBeforeRotation
23766 \begin_inset Newline newline
23773 \begin_layout Plain Layout
23777 renewenvironment{lyxgreyedout}
23780 \begin_layout Plain Layout
23784 textcolor[gray]{0.8}
23794 \begin_inset Note Greyedout
23797 \begin_layout Plain Layout
23802 \begin_layout Plain Layout
23803 This is an example footnote within a greyed out note.
23808 of a comment that appears in the output as grey text.
23817 \begin_layout Plain Layout
23821 renewenvironment{lyxgreyedout}
23824 \begin_layout Plain Layout
23838 \begin_inset Note Note
23841 \begin_layout Plain Layout
23842 The greyed out note is here redefined to show it with the original LyX definitio
23843 n because greyed out notes are redefined in the preamble of this document,
23844 as described below, to have blue text.
23850 \begin_inset Newline newline
23854 \begin_inset Newline newline
23857 As you can see in the example, the first line of greyed out notes is a bit
23858 indented and greyed out notes can have footnotes.
23861 \begin_layout Standard
23862 \begin_inset VSpace bigskip
23865 When you use the toolbar button
23866 \begin_inset Graphics
23867 filename ../images/note-insert.png
23869 scaleBeforeRotation
23876 \begin_inset space ~
23882 You can switch between the five note types by right-clicking on the note-box.
23887 If you want to turn existing text into a note, mark it and click on the
23901 To change a note to text, press the backspace key when the cursor is in
23902 the first position of a note, or press the deletey key when the cursor
23903 is in the very last position of the note, respectively.
23906 \begin_layout Standard
23907 \begin_inset VSpace bigskip
23910 You can change the text color of the greyed out notes in the preamble with
23911 the following command:
23914 \begin_layout Standard
23919 renewenvironment{lyxgreyedout}
23920 \begin_inset Newline newline
23927 \begin_layout Plain Layout
23945 \begin_layout Standard
23946 The available colors and the method to define own colors is explained in
23948 \begin_inset space ~
23952 \begin_inset CommandInset ref
23954 reference "sec:Colored-Tables"
23961 \begin_layout Standard
23962 Notes that appear in blue in this document are set using greyed out notes
23966 \begin_layout Section
23968 \begin_inset CommandInset label
23970 name "sec:Footnotes"
23978 \begin_layout Plain Layout
23988 \begin_layout Plain Layout
23997 \begin_layout Standard
23998 Footnotes can be inserted using the toolbar button
23999 \begin_inset Graphics
24000 filename ../images/footnote-insert.png
24002 scaleBeforeRotation
24008 Insert\SpecialChar \menuseparator
24020 then the following footnote-box:
24021 \begin_inset Graphics
24022 filename clipart/footnoteQt4.png
24024 scaleBeforeRotation
24032 where you can enter the footnote text.
24033 If you want to turn existing text into a footnote, mark it and click on
24055 to text, press the Backspace key when the cursor is in the first position
24064 , or press the Delete key when the cursor is in the very last position of
24076 \begin_layout Standard
24077 Here is an example footnote:
24085 \begin_layout Plain Layout
24086 \begin_inset CommandInset label
24088 name "foot:This-is-an"
24092 This is an example footnote.
24105 \begin_layout Plain Layout
24109 newcounter{MyRepeatFoot}
24112 \begin_layout Plain Layout
24116 setcounter{MyRepeatFoot}{
24126 \begin_layout Standard
24127 The footnote will appear in the output as a superscript number at the text
24128 position where the footnote box is placed.
24129 The footnote text is placed at the bottom of the current page.
24130 The footnote number is calculated by LaTeX, the numbers are consecutive.
24131 It depends on your document-class, if the footnote number is reset for
24135 \begin_layout Standard
24136 Footnotes can be referenced like floats: Insert a label into the footnote
24137 and cross-reference this label in the text as described in section
24138 \begin_inset space ~
24142 \begin_inset CommandInset ref
24144 reference "sec:Referencing-Floats"
24149 \begin_inset Newline newline
24152 This is a cross-reference of Footnote
24153 \begin_inset space ~
24157 \begin_inset CommandInset ref
24159 reference "foot:This-is-an"
24166 \begin_layout Standard
24167 \begin_inset VSpace defskip
24170 To use footnotes within tables, you have to use minipages, see section
24171 \begin_inset space ~
24175 \begin_inset CommandInset ref
24177 reference "sec:Minipages"
24182 Footnotes within longtables are described in section
24183 \begin_inset space ~
24187 \begin_inset CommandInset ref
24189 reference "sub:Footnotes-in-Longtables"
24196 \begin_layout Standard
24197 \begin_inset VSpace defskip
24200 To create only a mark for a footnote, use the command
24204 footnotemark[number]
24207 This is used when you have the same annotation several times in a text
24208 but doesn't want to print the footnote text every time.
24209 \begin_inset Newline newline
24212 As you don't know the number of the repeating footnote while you are writing
24213 the text, you have to store its number.
24214 For the following footnote mark example, these commands were inserted in
24215 TeX-Code behind Footnote
24216 \begin_inset space ~
24220 \begin_inset CommandInset ref
24222 reference "foot:This-is-an"
24226 to store the footnote number:
24229 \begin_layout Standard
24234 newcounter{MyRepeatFoot}
24235 \begin_inset Newline newline
24240 setcounter{MyRepeatFoot}{
24245 \begin_layout Standard
24246 The footnote mark was then created with this command:
24249 \begin_layout Standard
24259 \begin_layout Standard
24260 Here is an example footnote mark:
24268 \begin_layout Plain Layout
24282 \begin_layout Subsection
24284 \begin_inset CommandInset label
24286 name "sub:Footnote-Numbering"
24294 \begin_layout Plain Layout
24295 Footnotes ! Numbering
24303 \begin_layout Standard
24304 To reset the footnote number back to 1 after each section
24306 , add this command to your document preamble:
24309 \begin_layout Standard
24314 @addtoreset{footnote}{section}
24317 \begin_layout Standard
24318 \begin_inset VSpace bigskip
24321 The following preamble command changes the footnote numbering style to small
24325 \begin_layout Standard
24337 \begin_layout Standard
24341 \begin_layout Plain Layout
24354 This is a footnote with roman numbering:
24358 \begin_layout Plain Layout
24359 This is an example footnote with roman numbering.
24367 \begin_layout Standard
24368 To change the numbering style to capital roman numerals replace in the command
24383 \begin_inset Quotes eld
24387 \begin_inset Quotes erd
24390 footnotes with capital or small Latin letters use
24404 \begin_inset Quotes eld
24408 \begin_inset Quotes erd
24411 footnotes with symbols use
24420 \begin_layout Standard
24421 \begin_inset Note Greyedout
24424 \begin_layout Plain Layout
24429 You can only number 26 footnotes with Latin letters, because this numbering
24430 is limited to single letters.
24436 \begin_inset Newline newline
24440 \begin_inset Note Greyedout
24443 \begin_layout Plain Layout
24448 You can only number 9 footnotes with symbols.
24456 \begin_layout Standard
24457 To return to the default numbering style when you changed to another one,
24470 in the command above.
24474 \begin_layout Plain Layout
24490 \begin_layout Standard
24491 \begin_inset VSpace bigskip
24497 \begin_layout Standard
24498 If you want to have footnotes numbered in the scheme
24499 \begin_inset Quotes eld
24503 \begin_inset Quotes erd
24506 , add the following command to your document preamble:
24509 \begin_layout Standard
24514 numberwithin{footnote}{chapter}
24517 \begin_layout Standard
24518 To be able to use the command
24527 \begin_inset space ~
24532 in the document settings the option
24535 \begin_inset space ~
24539 \begin_inset space ~
24543 \begin_inset space ~
24551 \begin_layout Standard
24555 \begin_layout Plain Layout
24559 numberwithin{footnote}{chapter}
24564 This is another example footnote:
24570 \begin_layout Plain Layout
24571 This is a footnote numbered in the scheme
24572 \begin_inset Quotes eld
24576 \begin_inset Quotes erd
24590 \begin_layout Plain Layout
24606 \begin_layout Standard
24607 \begin_inset Note Greyedout
24610 \begin_layout Plain Layout
24621 always prints out the footnote number as arabic number; previous redefinitions
24622 to get non-arabic numbers are overwritten.
24630 \begin_layout Standard
24631 So to get for example the scheme
24632 \begin_inset Quotes eld
24638 \begin_inset Quotes erd
24641 , use this command instead of
24650 \begin_layout Standard
24664 \begin_layout Subsection
24669 \begin_layout Plain Layout
24670 Footnotes ! Placement
24678 \begin_layout Standard
24679 If you have several footnotes in one page, they appear without vertical
24680 space between them at the bottom of the page.
24681 To make them better readable you can e.
24682 \begin_inset space \thinspace{}
24686 \begin_inset space \space{}
24690 \begin_inset space \thinspace{}
24693 mm space with the following preamble command:
24696 \begin_layout Standard
24706 \begin_inset Newline newline
24720 \begin_layout Standard
24721 \begin_inset VSpace bigskip
24724 In a two-column document the footnotes appear at the bottom of every column,
24726 \begin_inset space ~
24730 \begin_inset CommandInset ref
24732 reference "fig:Standard-footnote-placement"
24737 If the footnotes should only appear at the bottom of the right column,
24739 \begin_inset space ~
24743 \begin_inset CommandInset ref
24745 reference "fig:Footnote-placement-in"
24749 , use the LaTeX-package
24757 \begin_layout Plain Layout
24758 LaTeX-packages ! ftnright
24763 with this command in the document preamble:
24766 \begin_layout Standard
24771 usepackage{ftnright}
24774 \begin_layout Standard
24775 \begin_inset Float figure
24781 \begin_layout Plain Layout
24785 \begin_layout Plain Layout
24795 \begin_inset Graphics
24796 filename clipart/without_fntright.pdf
24798 scaleBeforeRotation
24806 \begin_layout Plain Layout
24816 \begin_layout Plain Layout
24817 \begin_inset Caption
24819 \begin_layout Plain Layout
24820 \begin_inset CommandInset label
24822 name "fig:Standard-footnote-placement"
24826 Standard footnote placement in two-column documents.
24839 \begin_layout Standard
24840 \begin_inset Float figure
24846 \begin_layout Plain Layout
24850 \begin_layout Plain Layout
24860 \begin_inset Graphics
24861 filename clipart/with_fntright.pdf
24863 scaleBeforeRotation
24871 \begin_layout Plain Layout
24881 \begin_layout Plain Layout
24882 \begin_inset Caption
24884 \begin_layout Plain Layout
24885 \begin_inset CommandInset label
24887 name "fig:Footnote-placement-in"
24891 Footnote placement in two-column documents when the LaTeX-package
24908 \begin_layout Standard
24909 \begin_inset VSpace bigskip
24912 In some scientific literature it is usual to collect the footnotes and print
24913 them in a separate paragraph at the the end of a section, like in Figure
24914 \begin_inset space ~
24918 \begin_inset CommandInset ref
24920 reference "fig:Endnotes----footnotes"
24925 They are then so called
24926 \begin_inset Quotes eld
24930 \begin_inset Quotes erd
24937 \begin_layout Plain Layout
24943 To use endnotes instead of footnotes in your document, load the LaTeX-package
24952 \begin_layout Plain Layout
24953 LaTeX-packages ! endnotes
24958 with the document preamble lines
24961 \begin_layout Standard
24966 usepackage{endnotes}
24967 \begin_inset Newline newline
24979 \begin_layout Standard
24980 To insert the collected footnotes, insert the command
24983 \begin_layout Standard
24991 \begin_layout Standard
24992 in TeX-Code at the the end of a section or chapter.
24995 \begin_layout Standard
24996 \begin_inset Float figure
25001 \begin_layout Plain Layout
25006 \begin_layout Plain Layout
25016 \begin_inset Graphics
25017 filename clipart/endnotes.pdf
25018 scaleBeforeRotation
25026 \begin_layout Plain Layout
25036 \begin_layout Plain Layout
25037 \begin_inset Caption
25039 \begin_layout Plain Layout
25040 \begin_inset CommandInset label
25042 name "fig:Endnotes----footnotes"
25046 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25060 \begin_layout Standard
25061 \begin_inset VSpace medskip
25064 The paragraph heading for the endnotes isn't automatically translated into
25065 the document language, this must be done manually.
25066 The following preamble command translate the default English name
25067 \begin_inset Quotes eld
25071 \begin_inset Quotes erd
25074 to the German translation
25075 \begin_inset Quotes eld
25079 \begin_inset Quotes erd
25085 \begin_layout Standard
25092 notesname}{Anmerkungen}
25095 \begin_layout Standard
25096 \begin_inset VSpace medskip
25099 The numbering of endnotes can be changed like the footnote numbering as
25100 described in section
25101 \begin_inset space ~
25105 \begin_inset CommandInset ref
25107 reference "sub:Footnote-Numbering"
25111 ; just replace the command
25124 To reset the endnote number use the command
25130 as described in section
25131 \begin_inset space ~
25135 \begin_inset CommandInset ref
25137 reference "sub:Footnote-Numbering"
25141 and replace the command parameter
25152 \begin_layout Standard
25153 To create only a mark for an endnote, use the command
25157 endnotemark[number]
25159 similar to the command
25165 , described in section
25166 \begin_inset space ~
25170 \begin_inset CommandInset ref
25172 reference "sec:Footnotes"
25179 \begin_layout Standard
25180 \begin_inset VSpace bigskip
25183 Footnotes can also be placed in the page margin and the footnote text alignment
25184 can be changed, see the LaTeX-package
25192 \begin_layout Plain Layout
25193 LaTeX-packages ! footmisc
25199 \begin_inset CommandInset citation
25205 for more information about this.
25208 \begin_layout Standard
25209 For various further footnote formatting issues have a look at LaTeX-books,
25211 \begin_inset CommandInset citation
25213 key "latexcompanion,latexguide,latexbook"
25220 \begin_layout Section
25225 \begin_layout Plain Layout
25226 Notes ! Margin Notes
25234 \begin_layout Standard
25235 Margin notes look and behave in LyX like footnotes.
25236 They are inserted via the menu
25238 Insert\SpecialChar \menuseparator
25240 \begin_inset space ~
25245 or the toolbar button
25246 \begin_inset Graphics
25247 filename ../images/marginalnote-insert.png
25249 scaleBeforeRotation
25264 \begin_inset Quotes eld
25268 \begin_inset Quotes erd
25271 appears where you can enter the text of the margin note.
25274 \begin_layout Standard
25275 At the side is an example margin note.
25280 \begin_inset Marginal
25283 \begin_layout Plain Layout
25284 This is a margin note.
25292 \begin_layout Standard
25293 Margin notes appear at the right side in single-sided documents.
25294 In double-sided documents they appear in the outer margin – left on even
25295 pages, right on odd pages.
25296 The text of margin notes is aligned opposite to the outer margin – right-aligne
25297 d when the note appears in the left margin.
25298 The first line of the margin note is placed at the position of the text
25299 line where it is inserted in the document.
25302 \begin_layout Standard
25303 \begin_inset VSpace bigskip
25306 To place the margin note in the inner margin, add the command
25309 \begin_layout Standard
25317 \begin_layout Standard
25318 in TeX-Code before a margin note.
25319 The new placement is valid for all following margin notes.
25324 \begin_layout Plain Layout
25334 \begin_inset Marginal
25337 \begin_layout Plain Layout
25338 This is a margin note in the inner margin.
25346 \begin_inset Newline newline
25352 \begin_inset Note Greyedout
25355 \begin_layout Plain Layout
25360 There is often not enough space in the inner margin so that the notes are
25361 not correctly displayed in the output.
25369 \begin_layout Standard
25370 To return to the default placement insert the command
25373 \begin_layout Standard
25381 \begin_layout Standard
25386 \begin_layout Plain Layout
25396 \begin_inset Note Greyedout
25399 \begin_layout Plain Layout
25404 The command is ignored when it is within a paragraph where also the command
25419 \begin_layout Standard
25420 \begin_inset VSpace bigskip
25427 \begin_inset Marginal
25430 \begin_layout Plain Layout
25431 AVeryLongMarginParWord that isn't hyphenated.
25439 Similar to the case described in section
25440 \begin_inset space ~
25444 \begin_inset CommandInset ref
25446 reference "sub:Multiple-Lines-in"
25450 , long words cannot be hyphenated when they are the first word in a margin
25452 To avoid this, insert 0
25453 \begin_inset space \thinspace{}
25456 pt horizontal space before the word
25461 \begin_inset Marginal
25464 \begin_layout Plain Layout
25465 \begin_inset space \hspace*{}
25469 AVeryLongMarginParWord that is hyphenated.
25477 \begin_layout Standard
25478 \begin_inset VSpace bigskip
25484 \begin_layout Standard
25485 \begin_inset Note Greyedout
25488 \begin_layout Plain Layout
25493 Margin notes can normally not be used inside tables, floats, and footnotes.
25501 \begin_layout Standard
25502 \begin_inset VSpace bigskip
25508 \begin_layout Standard
25512 \begin_layout Plain Layout
25522 \begin_inset Note Note
25525 \begin_layout Plain Layout
25526 The following section will only be displayed when the LaTeX-package
25538 \begin_layout Standard
25539 This restriction can be evaded by using the LaTeX-package
25547 \begin_layout Plain Layout
25548 LaTeX-packages ! marginnote
25554 By adding these two lines to your document preamble, the command used by
25555 LyX for margin notes is redefined to use the command provided by the
25562 \begin_layout Standard
25567 usepackage{marginnote}
25568 \begin_inset Newline newline
25580 \begin_layout Standard
25581 This is also used in this document because
25585 has another useful feature: You can set a vertical offset for the note.
25586 This is often needed when too many margin notes are too close together
25587 or for a better page layout.
25588 The offset is set in LyX as TeX-Code directly behind the margin note in
25592 \begin_layout Standard
25598 \begin_layout Standard
25599 where the offset is a length with one of the units listed in Table
25600 \begin_inset space ~
25604 \begin_inset CommandInset ref
25606 reference "tab:Units"
25611 A negative value shifts the note up, a positive value shifts it down.
25615 For example the margin note beside this text line is shifted up 1.5
25616 \begin_inset space \thinspace{}
25619 cm with the TeX-Code-command
25620 \begin_inset Quotes eld
25630 \begin_inset Quotes erd
25634 \begin_inset Marginal
25637 \begin_layout Plain Layout
25638 This margin note is shifted up 1.5
25639 \begin_inset space \thinspace{}
25642 cm from its original position.
25654 \begin_layout Plain Layout
25664 \begin_layout Standard
25665 \begin_inset VSpace medskip
25672 you can also change the alignment of the text in the margin note.
25673 For example the commands
25676 \begin_layout Standard
25683 raggedleftmarginnote}{
25686 \begin_inset Newline newline
25693 raggedrightmarginnote}{
25698 \begin_layout Standard
25699 set the alignment to centered.
25704 raggedleftmarginnote
25706 denotes margin notes that appear at the left side.
25713 \begin_layout Plain Layout
25719 raggedleftmarginnote}{
25724 \begin_layout Plain Layout
25730 raggedrightmarginnote}{
25738 \begin_inset Marginal
25741 \begin_layout Plain Layout
25742 The text of this margin note is centered.
25753 \begin_layout Standard
25760 raggedleftmarginnote}{
25763 \begin_inset Newline newline
25770 raggedrightmarginnote}{
25779 \begin_layout Plain Layout
25785 raggedleftmarginnote}{
25790 \begin_layout Plain Layout
25796 raggedrightmarginnote}{
25806 \begin_layout Standard
25807 \begin_inset VSpace medskip
25810 For the other features of
25814 we refer to its documentation
25815 \begin_inset CommandInset citation
25824 \begin_layout Standard
25825 \begin_inset VSpace bigskip
25828 You can adjust the layout of margin notes by changing its definition.
25829 To create for example a header for all margin notes with the underlined,
25830 sans-serif, and bold header text
25831 \begin_inset Quotes eld
25843 \begin_inset Quotes erd
25846 , add this to your document preamble:
25849 \begin_layout Standard
25859 \begin_inset Newline newline
25869 \begin_inset Newline newline
25876 \begin_layout Plain Layout
25893 underbar{Attention!}}}%
25894 \begin_inset Newline newline
25901 \begin_layout Plain Layout
25919 \begin_layout Standard
25926 \begin_layout Plain Layout
25937 \begin_layout Plain Layout
25948 \begin_layout Plain Layout
25956 underbar{Attention!}}}%
25959 \begin_layout Plain Layout
25973 \begin_inset Marginal
25976 \begin_layout Plain Layout
25977 This is a margin note with a defined heading.
25989 \begin_layout Plain Layout
26003 \begin_layout Plain Layout
26020 \begin_inset Note Note
26023 \begin_layout Plain Layout
26024 The margin note format is changed only for this example.
26032 \begin_layout Standard
26036 \begin_layout Plain Layout
26046 \begin_inset Note Note
26049 \begin_layout Plain Layout
26050 The following will be displayed when the LaTeX-package
26062 \begin_layout Standard
26063 You need to install the LaTeX-package
26067 to see the following part of this section in the output.
26070 \begin_layout Standard
26074 \begin_layout Plain Layout
26086 \begin_layout Chapter
26090 \begin_layout Section
26095 \begin_layout Plain Layout
26096 Boxes ! Introduction
26104 \begin_layout Standard
26105 Boxes are used to format a block of text.
26106 Boxes can be used to write documents with multiple languages, see section
26107 \begin_inset space ~
26111 \begin_inset CommandInset ref
26113 reference "sec:Minipages"
26117 , to frame texts, see section
26118 \begin_inset space ~
26122 \begin_inset CommandInset ref
26124 reference "sec:Decoration"
26128 , to prevent words to be hyphenated, see section
26129 \begin_inset space ~
26133 \begin_inset CommandInset ref
26135 reference "sec:Prevent-Hyphenation"
26139 , to align text, see section
26140 \begin_inset space ~
26144 \begin_inset CommandInset ref
26146 reference "sub:Vertical-Alignment"
26150 , or to set the background color of texts, see section
26151 \begin_inset space ~
26155 \begin_inset CommandInset ref
26157 reference "sec:Colored-Boxes"
26164 \begin_layout Standard
26165 Boxes can be inserted with the menu
26167 Insert\SpecialChar \menuseparator
26170 or the toolbar button
26171 \begin_inset Graphics
26172 filename ../images/box-insert.png
26174 scaleBeforeRotation
26179 A grey box with the label
26184 \begin_inset Graphics
26185 filename clipart/BoxInsetDefaultQt4.png
26187 scaleBeforeRotation
26192 The box type can be specified by right-clicking on the box.
26193 The appearing box dialog offers the
26196 \begin_inset space ~
26214 is the default for new boxes and is explained in section
26215 \begin_inset space ~
26219 \begin_inset CommandInset ref
26221 reference "sec:Minipages"
26229 is described in section
26230 \begin_inset space ~
26234 \begin_inset CommandInset ref
26236 reference "sec:Parboxes"
26243 \begin_layout Standard
26244 Boxes aren't numbered and can therefore not be referenced like floats or
26248 \begin_layout Standard
26249 \begin_inset Note Greyedout
26252 \begin_layout Plain Layout
26257 Boxes must not be the item in an
26273 \begin_layout Standard
26274 \begin_inset Note Greyedout
26277 \begin_layout Plain Layout
26282 For an unknown reason you can only set the
26285 \begin_inset space ~
26294 when you use a framed box.
26298 \begin_inset space ~
26303 type and without frames are explained in section
26304 \begin_inset space ~
26308 \begin_inset CommandInset ref
26310 reference "sec:Prevent-Hyphenation"
26322 \begin_layout Section
26324 \begin_inset CommandInset label
26326 name "sec:Box-Dialog"
26334 \begin_layout Plain Layout
26343 \begin_layout Subsection
26348 \begin_layout Plain Layout
26357 \begin_layout Standard
26358 In the box dialog you can adjust the box geometry in the fields
26367 The available units for the geometry are explained in Table
26368 \begin_inset space ~
26372 \begin_inset CommandInset ref
26374 reference "tab:Units"
26383 offers the following additional sizes:
26386 \begin_layout Description
26387 Depth This is the plain text
26388 \begin_inset Quotes eld
26392 \begin_inset Quotes erd
26396 It ignores the total depth when there are multiple text lines in the box:
26397 \begin_inset Newline newline
26401 \begin_inset Newline newline
26405 \begin_inset Newline newline
26409 \begin_inset Box Boxed
26418 height_special "depth"
26421 \begin_layout Plain Layout
26423 Box height set to 1
26424 \begin_inset space \thinspace{}
26433 \begin_inset Newline newline
26437 \begin_inset Newline newline
26443 \begin_layout Description
26444 Height This is the heigth of the text that is inside the box.
26446 \begin_inset space \thinspace{}
26450 \begin_inset space \space{}
26453 2 for this size will set the box heigth to 2 times the text height:
26454 \begin_inset Box Boxed
26463 height_special "height"
26466 \begin_layout Plain Layout
26468 Box height set to 2
26469 \begin_inset space \thinspace{}
26480 \begin_layout Description
26482 \begin_inset space ~
26485 Height This is the Height
26486 \begin_inset space \thinspace{}
26490 \begin_inset space \thinspace{}
26494 \begin_inset Box Boxed
26503 height_special "totalheight"
26506 \begin_layout Plain Layout
26508 Box height set to 1
26509 \begin_inset space \thinspace{}
26513 \begin_inset space ~
26524 \begin_layout Description
26525 Width This sets the width of the box as heigth:
26526 \begin_inset Box Boxed
26535 height_special "width"
26538 \begin_layout Plain Layout
26540 Box height set to 1
26541 \begin_inset space \thinspace{}
26552 \begin_layout Subsection
26557 \begin_layout Plain Layout
26566 \begin_layout Standard
26567 When you have chosen an
26570 \begin_inset space ~
26575 , the vertical box alignment can be:
26578 \begin_layout Description
26579 Top This is an example text line.
26581 \begin_inset Box Boxed
26590 height_special "totalheight"
26593 \begin_layout Plain Layout
26595 This box is top-aligned.
26600 This is an example text line.
26603 \begin_layout Description
26604 Middle This is an example text line.
26606 \begin_inset Box Boxed
26615 height_special "totalheight"
26618 \begin_layout Plain Layout
26620 This box is middle-aligned.
26625 This is an example text line.
26628 \begin_layout Description
26629 Bottom This is an example text line.
26631 \begin_inset Box Boxed
26640 height_special "totalheight"
26643 \begin_layout Plain Layout
26645 This box is bottom-aligned.
26650 This is an example text line.
26653 \begin_layout Standard
26654 \begin_inset Note Greyedout
26657 \begin_layout Plain Layout
26662 The vertical box aligment can be lost in the output when you have two boxes
26663 in a line and one has e.
26664 \begin_inset space \thinspace{}
26668 \begin_inset space \space{}
26671 a shadow and the other one not.
26679 \begin_layout Standard
26680 The horizontal box alignment can be set via LyX's paragraph dialog when
26681 you set the box into its own paragraph.
26684 \begin_layout Standard
26685 \begin_inset VSpace bigskip
26688 When you have chosen an
26691 \begin_inset space ~
26696 , the box content can be vertical aligned to:
26699 \begin_layout Description
26700 top This is an example text line.
26702 \begin_inset Box Boxed
26711 height_special "totalheight"
26714 \begin_layout Plain Layout
26716 This box text is top-aligned.
26721 This is an example text line.
26724 \begin_layout Description
26725 middle This is an example text line.
26727 \begin_inset Box Boxed
26736 height_special "totalheight"
26739 \begin_layout Plain Layout
26741 This box text is middle-aligned.
26746 This is an example text line.
26749 \begin_layout Description
26750 bottom This is an example text line.
26752 \begin_inset Box Boxed
26761 height_special "totalheight"
26764 \begin_layout Plain Layout
26766 This box text is bottom-aligned.
26771 This is an example text line.
26774 \begin_layout Description
26775 stretch This is an example text line.
26777 \begin_inset Box Boxed
26786 height_special "totalheight"
26789 \begin_layout Plain Layout
26794 \begin_layout Plain Layout
26799 \begin_layout Plain Layout
26806 This is an example text line.
26809 \begin_layout Standard
26810 To stretch the box content, it must consist of more than one paragraph.
26811 In the example above every text line is in an own paragraph.
26814 \begin_layout Standard
26815 \begin_inset VSpace bigskip
26818 To align the box content horizontally you can use LyX's paragraph dialog
26819 when you have chosen an
26822 \begin_inset space ~
26830 \begin_layout Standard
26832 \begin_inset Box Boxed
26841 height_special "totalheight"
26844 \begin_layout Plain Layout
26849 \begin_layout Plain Layout
26854 \begin_layout Plain Layout
26864 \begin_layout Standard
26865 If you haven't set an
26868 \begin_inset space ~
26873 , you can align the box content horizontally in the box dialog.
26876 \begin_layout Standard
26878 \begin_inset Box Boxed
26887 height_special "totalheight"
26890 \begin_layout Plain Layout
26892 This box text is horizontally stretched.
26900 \begin_layout Subsection
26902 \begin_inset CommandInset label
26904 name "sec:Decoration"
26912 \begin_layout Plain Layout
26921 \begin_layout Standard
26922 The type of the box can be specified in the box-dialog in the drop-down
26928 The following types are possible:
26931 \begin_layout Description
26933 \begin_inset space ~
26937 \begin_inset space ~
26940 frame This draws a rectangle frame around the box.
26941 The frame line thickness has the size of
26949 \begin_inset Box Boxed
26958 height_special "totalheight"
26961 \begin_layout Plain Layout
26971 \begin_layout Description
26973 \begin_inset space ~
26977 \begin_inset space ~
26980 break When you use the decoration
26982 simple rectangular frame
26984 and no inner box, you can allow page breaks within a box.
26985 Note that then, in contrary to other framed boxes, the frame always uses
26986 the whole column width, the box is set as its own paragraph, and
26998 has no effect on this box type.
26999 The frame line thickness has the size of
27007 \begin_inset Box Framed
27016 height_special "totalheight"
27019 \begin_layout Plain Layout
27020 Allow page break box
27028 \begin_layout Description
27030 \begin_inset space ~
27034 \begin_inset space ~
27037 thin This draws an oval frame around the box.
27038 The frame line thickness has the size 0.4
27039 \begin_inset space \thinspace{}
27044 \begin_inset Box ovalbox
27053 height_special "totalheight"
27056 \begin_layout Plain Layout
27066 \begin_layout Description
27068 \begin_inset space ~
27072 \begin_inset space ~
27075 thick This draws an oval frame around the box.
27076 The frame line thickness has the size 0.8
27077 \begin_inset space \thinspace{}
27082 \begin_inset Box Ovalbox
27091 height_special "totalheight"
27094 \begin_layout Plain Layout
27104 \begin_layout Description
27106 \begin_inset space ~
27109 shadow This draws a rectangle frame with a shadow around the box.
27110 The frame line thickness has the size of
27116 , the shadow has a width of 4
27117 \begin_inset space \thinspace{}
27122 \begin_inset Box Shadowbox
27131 height_special "totalheight"
27134 \begin_layout Plain Layout
27144 \begin_layout Description
27146 \begin_inset space ~
27149 background This draws a box with red background color.
27150 In contrary to colored boxes
27154 \begin_layout Plain Layout
27156 \begin_inset space \thinspace{}
27160 \begin_inset CommandInset ref
27162 reference "sec:Colored-Boxes"
27171 , it always uses the whole column width and the box is set as its own paragraph.
27173 \begin_inset Box Shaded
27182 height_special "totalheight"
27185 \begin_layout Plain Layout
27186 Shaded background box
27194 \begin_layout Description
27196 \begin_inset space ~
27200 \begin_inset space ~
27203 frame This draws a double-line rectangle frame around the box.
27204 The line thickness of the inner frame is 0.75
27205 \begin_inset space \thinspace{}
27214 , the thickness of the outer frame is 1.5
27215 \begin_inset space \thinspace{}
27225 The distance between the lines is 1.5
27226 \begin_inset space \thinspace{}
27236 \begin_inset space \thinspace{}
27240 \begin_inset space \thinspace{}
27244 \begin_inset space \thinspace{}
27249 \begin_inset Box Doublebox
27258 height_special "totalheight"
27261 \begin_layout Plain Layout
27263 Double rectangular box
27271 \begin_layout Standard
27272 \begin_inset VSpace bigskip
27275 LyX's box label will reflect the different frame types.
27276 To be able to use all types, the LaTeX-package
27284 \begin_layout Plain Layout
27285 LaTeX-packages ! fancybox
27293 \begin_layout Section
27298 \begin_layout Plain Layout
27299 Boxes ! Customization
27307 \begin_layout Standard
27308 The default value for the size
27315 \begin_inset space \thinspace{}
27319 It can be changed with the following command in TeX-Code to e.
27320 \begin_inset space \thinspace{}
27324 \begin_inset space \space{}
27328 \begin_inset space \thinspace{}
27334 \begin_layout Standard
27344 \begin_layout Standard
27348 \begin_layout Plain Layout
27360 \begin_inset Box Boxed
27369 height_special "totalheight"
27372 \begin_layout Plain Layout
27374 Rectangular box with
27381 \begin_inset space \thinspace{}
27385 \begin_inset space \thinspace{}
27389 \begin_inset space \thinspace{}
27401 \begin_layout Plain Layout
27415 \begin_layout Standard
27416 \begin_inset VSpace bigskip
27419 The space between the frame and the box content is for all frame styles
27421 \begin_inset space \thinspace{}
27425 You can change it by setting the length
27432 For example the command
27435 \begin_layout Standard
27445 \begin_layout Standard
27446 sets the value to 10
27447 \begin_inset space \thinspace{}
27450 pt, like for the following box:
27453 \begin_layout Standard
27457 \begin_layout Plain Layout
27469 \begin_inset Box Boxed
27478 height_special "totalheight"
27481 \begin_layout Plain Layout
27483 Rectangular box with
27490 \begin_inset space \thinspace{}
27494 \begin_inset space \thinspace{}
27498 \begin_inset space \thinspace{}
27510 \begin_layout Plain Layout
27524 \begin_layout Standard
27525 \begin_inset VSpace bigskip
27528 The diameter of the round corners of the oval boxes can be set with the
27539 \begin_layout Standard
27547 \begin_layout Standard
27548 sets the diameter to 1
27549 \begin_inset space \thinspace{}
27556 \begin_layout Standard
27564 \begin_layout Standard
27565 sets the diameter to
27568 \begin_inset space \thinspace{}
27572 \begin_inset space \thinspace{}
27575 minimum(width and heigth of box)
27587 \begin_layout Standard
27591 \begin_layout Plain Layout
27601 \begin_inset Box Ovalbox
27610 height_special "totalheight"
27613 \begin_layout Plain Layout
27622 \begin_inset space \thinspace{}
27626 \begin_inset space \thinspace{}
27630 \begin_inset space \thinspace{}
27642 \begin_layout Plain Layout
27654 \begin_layout Standard
27655 \begin_inset VSpace bigskip
27658 The size of the shadow can be adjusted by changing the length
27666 \begin_inset space \thinspace{}
27669 pt for the following box by this command:
27672 \begin_layout Standard
27682 \begin_layout Standard
27686 \begin_layout Plain Layout
27698 \begin_inset Box Shadowbox
27707 height_special "totalheight"
27710 \begin_layout Plain Layout
27719 \begin_inset space \thinspace{}
27723 \begin_inset space \thinspace{}
27727 \begin_inset space \thinspace{}
27739 \begin_layout Plain Layout
27753 \begin_layout Standard
27754 \begin_inset VSpace bigskip
27760 \begin_layout Standard
27761 The default value for the size
27768 \begin_inset space \thinspace{}
27772 The default space between the note content and the frame is 9
27773 \begin_inset space \thinspace{}
27776 pt and can be changed with the value of
27783 For example the frame appearance of the following
27787 is set with the TeX-Code commands
27790 \begin_layout Standard
27798 \begin_inset Newline newline
27808 \begin_layout Standard
27812 \begin_layout Plain Layout
27821 \begin_layout Plain Layout
27833 \begin_inset Box Framed
27842 height_special "totalheight"
27845 \begin_layout Plain Layout
27859 \begin_layout Plain Layout
27868 \begin_layout Plain Layout
27882 \begin_layout Standard
27883 \begin_inset VSpace bigskip
27889 \begin_layout Standard
27894 boxes the default space between the box content and the box border is 3
27895 \begin_inset space \thinspace{}
27898 pt and can be changed with the value of
27905 The default background color red can either be changed locally with the
27910 definecolor{shadebox}
27912 or globally with the menu
27914 Tools\SpecialChar \menuseparator
27915 Preferences\SpecialChar \menuseparator
27916 Colors\SpecialChar \menuseparator
27918 \begin_inset space ~
27930 command is explained in section
27931 \begin_inset space ~
27935 \begin_inset CommandInset ref
27937 reference "sec:Colored-Tables"
27945 \begin_layout Plain Layout
27952 requires the LaTeX-package
27956 in the preamble, see section
27957 \begin_inset space ~
27961 \begin_inset CommandInset ref
27963 reference "sec:Colored-Boxes"
27972 For example the appearance of the following shaded background note is set
27973 with the TeX-Code commands
27976 \begin_layout Standard
27986 \begin_inset Newline newline
27993 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27996 \begin_layout Standard
28000 \begin_layout Plain Layout
28009 \begin_layout Plain Layout
28013 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28019 \begin_inset Box Shaded
28028 height_special "totalheight"
28031 \begin_layout Plain Layout
28034 This is yellow text in a
28044 box with dark green background.
28053 \begin_layout Plain Layout
28062 \begin_layout Plain Layout
28066 definecolor{shadecolor}{rgb}{1,0,0}
28074 \begin_layout Standard
28075 \begin_inset VSpace bigskip
28078 Changed lengths and widths are valid for all boxes following the commands
28082 \begin_layout Section
28084 \begin_inset CommandInset label
28086 name "sec:Minipages"
28094 \begin_layout Plain Layout
28103 \begin_layout Standard
28104 Minipages are treated by LaTeX as pages within pages and can therefore for
28105 example have their own footnotes.
28108 \begin_layout Standard
28109 Minipages are useful when you write documents with different languages.
28112 \begin_layout Standard
28113 Below are two example minipages side by side.
28114 Their width is set to 45
28115 \begin_inset space \thinspace{}
28118 col% and they are separated by a horizontal fill, that was inserted via
28121 Insert\SpecialChar \menuseparator
28123 \begin_inset space ~
28126 Formatting\SpecialChar \menuseparator
28128 \begin_inset space ~
28134 \begin_inset Newpage newpage
28140 \begin_layout Standard
28141 \begin_inset Box Frameless
28150 height_special "totalheight"
28153 \begin_layout Plain Layout
28156 Dies ist ein deutscher Text.
28157 Dies ist ein deutscher Text.
28158 Dies ist ein deutscher Text.
28159 Dies ist ein deutscher Text.
28160 Dies ist ein deutscher Text.
28161 Dies ist ein deutscher Text.
28162 Dies ist ein deutscher Text.
28163 Dies ist ein deutscher Text.
28164 Dies ist ein deutscher Text.
28165 Dies ist ein deutscher Text.
28166 Dies ist ein deutscher Text.
28167 Dies ist ein deutscher Text.
28168 Dies ist ein deutscher Text
28172 \begin_layout Plain Layout
28175 Dies ist eine deutsche Fußnote.
28181 Dies ist ein deutscher Text.
28182 Dies ist ein deutscher Text.
28188 \begin_inset space \hfill{}
28192 \begin_inset Box Frameless
28201 height_special "totalheight"
28204 \begin_layout Plain Layout
28205 This is an English Text.
28206 This is an English Text.
28207 This is an English Text.
28208 This is an English Text.
28209 This is an English Text.
28210 This is an English Text.
28211 This is an English Text.
28212 This is an English Text.
28213 This is an English Text.
28214 This is an English Text.
28215 This is an English Text.
28216 This is an English Text.
28217 This is an English Text.
28218 This is an English Text.
28219 This is an English Text.
28220 This is an English Text.
28224 \begin_layout Plain Layout
28225 This is an English footnote.
28230 This is an English Text.
28239 \begin_layout Standard
28240 \begin_inset VSpace bigskip
28243 Another application for minipages are footnotes within tables.
28244 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28245 bottom of the current page.
28246 But when you put the table with the footnote to a minipage, the footnote
28247 will appear at its bottom, numbered with Latin letters.
28248 The footnote number is reset to 1 in every minipage but not outside the
28252 \begin_layout Standard
28253 The footnote of this table doesn't appear:
28254 \begin_inset Tabular
28255 <lyxtabular version="3" rows="3" columns="4">
28257 <column alignment="center" valignment="top" width="0pt">
28258 <column alignment="center" valignment="top" width="0pt">
28259 <column alignment="center" valignment="top" width="0pt">
28260 <column alignment="center" valignment="top" width="0pt">
28262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28265 \begin_layout Plain Layout
28271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28274 \begin_layout Plain Layout
28280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28283 \begin_layout Plain Layout
28288 \begin_layout Plain Layout
28289 This is a footnote within a table.
28299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28302 \begin_layout Plain Layout
28310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28313 \begin_layout Plain Layout
28319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28322 \begin_layout Plain Layout
28328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28331 \begin_layout Plain Layout
28337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28340 \begin_layout Plain Layout
28348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28351 \begin_layout Plain Layout
28357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28360 \begin_layout Plain Layout
28366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28369 \begin_layout Plain Layout
28375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28378 \begin_layout Plain Layout
28392 \begin_layout Standard
28394 \begin_inset Box Frameless
28403 height_special "totalheight"
28406 \begin_layout Plain Layout
28408 \begin_inset Tabular
28409 <lyxtabular version="3" rows="3" columns="4">
28411 <column alignment="center" valignment="top" width="0pt">
28412 <column alignment="center" valignment="top" width="0pt">
28413 <column alignment="center" valignment="top" width="0pt">
28414 <column alignment="center" valignment="top" width="0pt">
28416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28419 \begin_layout Plain Layout
28425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28428 \begin_layout Plain Layout
28434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28437 \begin_layout Plain Layout
28442 \begin_layout Plain Layout
28443 This is a footnote within a table.
28453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28456 \begin_layout Plain Layout
28464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28467 \begin_layout Plain Layout
28473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28476 \begin_layout Plain Layout
28482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28485 \begin_layout Plain Layout
28491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28494 \begin_layout Plain Layout
28502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28505 \begin_layout Plain Layout
28511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28514 \begin_layout Plain Layout
28520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28523 \begin_layout Plain Layout
28529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28532 \begin_layout Plain Layout
28551 \begin_layout Standard
28552 \begin_inset VSpace bigskip
28555 The document-wide paragraph settings are ignored within minipages.
28556 That means that there will be no space between paragraphs in minipages
28557 although you set it to e.
28558 \begin_inset space \thinspace{}
28562 \begin_inset space \space{}
28569 in the document settings.
28572 \begin_layout Standard
28573 Minipages can also be used to set a background color for text parts, see
28575 \begin_inset space ~
28579 \begin_inset CommandInset ref
28581 reference "sub:Color-for-Paragraphs"
28588 \begin_layout Standard
28589 \begin_inset Note Greyedout
28592 \begin_layout Plain Layout
28597 You cannot have floats or margin notes inside minipages but minipages can
28598 be used inside tables, floats, and other boxes.
28606 \begin_layout Section
28608 \begin_inset CommandInset label
28610 name "sec:Parboxes"
28618 \begin_layout Plain Layout
28627 \begin_layout Standard
28628 Parboxes are very similar to minipages with the difference that they cannot
28630 The main difference to minipages is that minipages are in contrary to parboxes
28631 no real boxes but LaTeX-environments.
28634 \begin_layout Standard
28636 \begin_inset Box Frameless
28645 height_special "totalheight"
28648 \begin_layout Plain Layout
28649 This a text within a parbox.
28650 This a text within a parbox.
28653 \begin_layout Plain Layout
28654 This footnote won't appear:
28658 \begin_layout Plain Layout
28659 This footnote is inside a parbox and will therefore not appear.
28672 \begin_layout Section
28673 Boxes for Words and Characters
28677 \begin_layout Plain Layout
28678 Boxes ! for Characters
28686 \begin_layout Subsection
28687 Prevent Hyphenation
28688 \begin_inset CommandInset label
28690 name "sec:Prevent-Hyphenation"
28698 \begin_layout Plain Layout
28699 Boxes ! to Prevent Hyphenation
28707 \begin_layout Standard
28708 You can use a special kind of boxes to prevent words or text to be hyphenated.
28709 \begin_inset Newline newline
28712 Here is an example text:
28715 \begin_layout Standard
28716 This line is an example to show how you can prevent the hyphenation of
28717 \begin_inset Quotes eld
28721 \begin_inset Quotes erd
28727 \begin_layout Standard
28728 To prevent the hyphenation of the word
28729 \begin_inset Quotes eld
28733 \begin_inset Quotes erd
28739 \begin_layout Standard
28747 \begin_layout Standard
28748 in TeX-Code before the word.
28749 Behind the word insert a closing brace
28750 \begin_inset Quotes eld
28758 \begin_inset Quotes erd
28764 \begin_layout Standard
28765 This is the result:
28768 \begin_layout Standard
28769 This line is an example to show how you can prevent the hyphenation of
28773 \begin_layout Plain Layout
28783 \begin_inset Quotes eld
28787 \begin_inset Quotes erd
28794 \begin_layout Plain Layout
28804 \begin_layout Standard
28805 You can alternatively set the command
28806 \begin_inset Quotes eld
28816 \begin_inset Quotes grd
28819 as TeX-Code directly before the word:
28822 \begin_layout Standard
28823 This line is an example to show how you can prevent the hyphenation of
28824 \begin_inset Quotes eld
28831 \begin_layout Plain Layout
28841 \begin_inset Quotes erd
28847 \begin_layout Standard
28848 Of course the word now protrudes over the side margin.
28849 To avoid this, add via the menu
28851 Insert\SpecialChar \menuseparator
28853 \begin_inset space ~
28856 Formatting\SpecialChar \menuseparator
28858 \begin_inset space ~
28866 arg "newline-insert newline"
28869 ) a line break before the word:
28872 \begin_layout Standard
28873 This line is an example to show how you can prevent the hyphenation of
28874 \begin_inset Newline newline
28881 \begin_layout Plain Layout
28891 \begin_inset Quotes eld
28895 \begin_inset Quotes erd
28902 \begin_layout Plain Layout
28912 \begin_layout Subsection
28914 \begin_inset CommandInset label
28916 name "sub:Vertical-Alignment"
28924 \begin_layout Plain Layout
28925 Boxes ! for Vertical Alignment
28934 \begin_layout Plain Layout
28943 \begin_layout Standard
28944 With the help of the command
28950 you can align words, characters or other boxes vertically to the surrounding
28958 is used with the following scheme:
28961 \begin_layout Standard
28966 raisebox{lift}[height][depth]{box content}
28969 \begin_layout Standard
28970 The lift can be a positive value to raise the box or a negative value to
28974 \begin_layout Standard
28975 To align for example the word
28976 \begin_inset Quotes eld
28980 \begin_inset Quotes erd
28983 so that the bottom of the
28984 \begin_inset Quotes eld
28988 \begin_inset Quotes erd
28992 \begin_inset Quotes eld
28996 \begin_inset Quotes erd
28999 is at the baseline, insert the command
29002 \begin_layout Standard
29012 \begin_layout Standard
29013 in TeX-Code before the word.
29014 Behind the word insert a closing brace
29015 \begin_inset Quotes eld
29023 \begin_inset Quotes erd
29027 \begin_inset Newline newline
29030 This is the result:
29033 \begin_layout Standard
29034 This is a text line with the word
29038 \begin_layout Plain Layout
29050 \begin_inset Quotes eld
29054 \begin_inset Quotes erd
29061 \begin_layout Plain Layout
29071 \begin_layout Standard
29072 \begin_inset VSpace bigskip
29075 When you raise or lower characters in a line, the line distance will be
29079 \begin_layout Standard
29080 This is a text line with the word
29084 \begin_layout Plain Layout
29096 \begin_inset Quotes eld
29100 \begin_inset Quotes erd
29107 \begin_layout Plain Layout
29115 \begin_inset Newline newline
29118 This is a text line with the word
29122 \begin_layout Plain Layout
29132 \begin_inset Quotes eld
29136 \begin_inset Quotes erd
29143 \begin_layout Plain Layout
29153 \begin_layout Standard
29154 If you want to prevent this for a certain reason, set the box height to
29159 \begin_layout Standard
29169 \begin_layout Standard
29170 This is a text line with the word
29174 \begin_layout Plain Layout
29186 \begin_inset Quotes eld
29190 \begin_inset Quotes erd
29197 \begin_layout Plain Layout
29205 \begin_inset Newline newline
29208 This is a text line with the word
29212 \begin_layout Plain Layout
29216 raisebox{0.5cm}[0pt]{
29222 \begin_inset Quotes eld
29226 \begin_inset Quotes erd
29233 \begin_layout Plain Layout
29243 \begin_layout Section
29245 \begin_inset CommandInset label
29247 name "sec:Colored-Boxes"
29255 \begin_layout Plain Layout
29264 \begin_layout Subsection
29269 \begin_layout Plain Layout
29278 \begin_layout Standard
29279 To color the background of text the text must be put into a so called
29280 \begin_inset Quotes eld
29284 \begin_inset Quotes erd
29288 This requires that the LaTeX-package
29296 \begin_layout Plain Layout
29297 LaTeX-packages ! color
29302 is loaded in the document preamble with the command
29305 \begin_layout Standard
29310 @ifundefined{textcolor}
29311 \begin_inset Newline newline
29318 \begin_layout Plain Layout
29329 usepackage{color}}{}
29332 \begin_layout Standard
29337 will be loaded automatically by LyX when you color text
29341 \begin_layout Plain Layout
29342 To avoid that it is loaded twice the command
29356 \begin_layout Standard
29357 \begin_inset VSpace medskip
29360 Colorboxes are created with the command
29367 This will be used with the following scheme:
29370 \begin_layout Standard
29375 colorbox{color}{box content}
29378 \begin_layout Standard
29379 The box content can also be a box and colorboxes can also be within other
29383 \begin_layout Standard
29384 The following colors are predefined:
29385 \begin_inset Newline newline
29424 \begin_inset Newline newline
29427 You can also define your own color as described in section
29428 \begin_inset space ~
29432 \begin_inset CommandInset ref
29434 reference "sec:Colored-Tables"
29441 \begin_layout Standard
29443 \begin_inset space \thinspace{}
29447 \begin_inset space \space{}
29450 a red background for a word, insert the command
29453 \begin_layout Standard
29461 \begin_layout Standard
29462 before the word in TeX-Code.
29463 Behind the word insert a closing brace
29464 \begin_inset Quotes eld
29472 \begin_inset Quotes erd
29476 \begin_inset Newline newline
29479 This is the result:
29482 \begin_layout Standard
29483 This is a line where the word
29487 \begin_layout Plain Layout
29497 \begin_inset Quotes eld
29501 \begin_inset Quotes erd
29508 \begin_layout Plain Layout
29515 has a red background.
29518 \begin_layout Standard
29519 \begin_inset VSpace bigskip
29522 If you would have the box frame in a different color, you can use the command
29529 with the following scheme:
29532 \begin_layout Standard
29537 fcolorbox{frame color}{box color}{box content}
29540 \begin_layout Standard
29554 The frame thickness and the space between the frame and the box content
29555 can be adjusted with the lengths
29567 , respectively, as described in section
29568 \begin_inset space ~
29572 \begin_inset CommandInset ref
29574 reference "sec:Decoration"
29581 \begin_layout Standard
29582 For the following example the command
29585 \begin_layout Standard
29590 fcolorbox{cyan}{magenta}{
29593 \begin_layout Standard
29597 \begin_layout Standard
29598 Here is an example where the frame line thickness was set to 1
29599 \begin_inset space \thinspace{}
29603 \begin_inset Newline newline
29610 \begin_layout Plain Layout
29625 \begin_layout Plain Layout
29629 fcolorbox{cyan}{magenta}{
29634 This is text within a colored, framed box.
29638 \begin_layout Plain Layout
29648 \begin_layout Standard
29649 \begin_inset VSpace bigskip
29652 Of course you can also have colored text inside a colorbox:
29653 \begin_inset Newline newline
29660 \begin_layout Plain Layout
29664 fcolorbox{cyan}{magenta}{
29671 This is colored text within a colored, framed box.
29677 \begin_layout Plain Layout
29688 \begin_layout Plain Layout
29702 \begin_layout Standard
29705 \begin_inset VSpace medskip
29711 \begin_layout Standard
29712 \begin_inset Note Greyedout
29715 \begin_layout Plain Layout
29720 Text in colorboxes cannot have line breaks.
29721 To color multiple text lines or paragraphs, use a box inside a colorbox
29722 as described in the following.
29730 \begin_layout Subsection
29731 Color for Paragraphs
29732 \begin_inset CommandInset label
29734 name "sub:Color-for-Paragraphs"
29742 \begin_layout Plain Layout
29743 Color ! for Paragraphs
29751 \begin_layout Standard
29752 To set the background color for more than one text line, put the text into
29754 Before the minipage insert the
29763 \begin_layout Standard
29771 \begin_layout Standard
29773 Behind the minipage insert a closing brace
29774 \begin_inset Quotes eld
29782 \begin_inset Quotes erd
29788 \begin_layout Standard
29792 \begin_layout Plain Layout
29796 colorbox{lightgrey}{
29802 \begin_inset Box Frameless
29811 height_special "totalheight"
29814 \begin_layout Plain Layout
29815 This is text with background color.
29816 This is text with background color.
29819 \begin_layout Plain Layout
29820 \begin_inset VSpace defskip
29823 The text can have footnotes
29827 \begin_layout Plain Layout
29828 Another example footnote
29833 and can include tables and figures.
29836 \begin_layout Plain Layout
29838 \begin_inset Tabular
29839 <lyxtabular version="3" rows="3" columns="3">
29841 <column alignment="center" valignment="top" width="0">
29842 <column alignment="center" valignment="top" width="0">
29843 <column alignment="center" valignment="top" width="0">
29845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29848 \begin_layout Plain Layout
29854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29857 \begin_layout Plain Layout
29863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29866 \begin_layout Plain Layout
29874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29877 \begin_layout Plain Layout
29883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29886 \begin_layout Plain Layout
29888 \begin_inset Quotes erd
29896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29899 \begin_layout Plain Layout
29907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29910 \begin_layout Plain Layout
29916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29919 \begin_layout Plain Layout
29925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29928 \begin_layout Plain Layout
29948 \begin_layout Plain Layout
29958 \begin_layout Section
29959 Rotated and Scaled Boxes
29962 \begin_layout Standard
29963 To use the the commands described in this section, the LaTeX-package
29971 \begin_layout Plain Layout
29972 LaTeX-packages ! graphicx
29977 needs to be loaded in the document preamble with the command
29980 \begin_layout Standard
29985 @ifundefined{rotatebox}
29986 \begin_inset Newline newline
29993 \begin_layout Plain Layout
30004 usepackage{graphicx}}{}
30007 \begin_layout Standard
30008 \begin_inset Note Greyedout
30011 \begin_layout Plain Layout
30016 Some DVI-viewers can't display rotated or scaled material.
30024 \begin_layout Standard
30025 \begin_inset Note Greyedout
30028 \begin_layout Plain Layout
30033 Floats mustn't be inside a rotated or scaled box.
30041 \begin_layout Subsection
30046 \begin_layout Plain Layout
30056 \begin_layout Plain Layout
30066 \begin_layout Plain Layout
30076 \begin_layout Plain Layout
30077 Table Customization ! Rotating
30085 \begin_layout Standard
30086 To rotate material, you can put it into a rotated box.
30087 Such a box is created using the command
30093 in TeX-Code with the following scheme:
30096 \begin_layout Standard
30101 rotatebox[rotation origin]{rotation angle}{box content}
30104 \begin_layout Standard
30105 The rotation origin is specified in the form
30110 The following positions are possible:
30130 (top), and also expedient combinations of the four base positions.
30135 means, that the rotation origin is at the top left corner of the box.
30136 When no rotation origin is specified, the position
30141 The rotation angle is a number that can be negative that specifies the
30143 The rotation direction is counterclockwise.
30146 \begin_layout Standard
30147 In the following example the command
30151 rotatebox[origin=c]{60}{
30153 was inserted as TeX-Code before the text
30154 \begin_inset Quotes eld
30158 \begin_inset Quotes erd
30161 ; after the text the box was closed by a closing brace
30168 \begin_layout Standard
30173 \begin_layout Plain Layout
30177 rotatebox[origin=c]{60}{
30186 \begin_layout Plain Layout
30196 \begin_layout Standard
30197 The box content can also be another box or an inline formula:
30200 \begin_layout Standard
30205 \begin_layout Plain Layout
30209 rotatebox[origin=r]{-60}{
30215 \begin_inset Box Doublebox
30224 height_special "totalheight"
30227 \begin_layout Plain Layout
30237 \begin_layout Plain Layout
30248 \begin_layout Plain Layout
30252 rotatebox[origin=lb]{60}{
30258 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30265 \begin_layout Plain Layout
30275 \begin_layout Standard
30276 or an image or table:
30279 \begin_layout Standard
30284 \begin_layout Plain Layout
30288 rotatebox[origin=lb]{90}{
30294 \begin_inset Graphics
30295 filename clipart/platypus.eps
30305 \begin_layout Plain Layout
30312 with a rotated image
30316 \begin_layout Plain Layout
30320 rotatebox[origin=l]{-90}{
30326 \begin_inset Tabular
30327 <lyxtabular version="3" rows="2" columns="2">
30329 <column alignment="center" valignment="top" width="0">
30330 <column alignment="center" valignment="top" width="0">
30332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30335 \begin_layout Plain Layout
30341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30344 \begin_layout Plain Layout
30352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30355 \begin_layout Plain Layout
30361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30364 \begin_layout Plain Layout
30379 \begin_layout Plain Layout
30389 \begin_layout Subsection
30394 \begin_layout Plain Layout
30404 \begin_layout Plain Layout
30414 \begin_layout Plain Layout
30424 \begin_layout Plain Layout
30425 Table Customization ! Scaling
30433 \begin_layout Standard
30434 To scale material the commands
30446 can be used as TeX-Code.
30449 \begin_layout Standard
30456 is used with the following scheme:
30459 \begin_layout Standard
30464 scalebox{horizontal}[vertical]{box content}
30467 \begin_layout Standard
30468 Horizontal and vertical are the corresponding scaling factors.
30469 If no vertical scaling factor is given, the horizontal factor will also
30470 be used as vertical one.
30473 \begin_layout Standard
30480 creates for example a double size
30484 \begin_layout Plain Layout
30497 \begin_layout Plain Layout
30504 , compared to the document text size.
30507 \begin_layout Standard
30512 scalebox{2}[1]{Hello}
30514 in contrary distorts the
30518 \begin_layout Plain Layout
30531 \begin_layout Plain Layout
30541 \begin_layout Standard
30542 If a the scaling factor is negative, the box content will be mirrored.
30543 Therefore the command
30547 scalebox{-1}[1]{Hello}
30549 can be used to create mirror writing:
30553 \begin_layout Plain Layout
30566 \begin_layout Plain Layout
30576 \begin_layout Standard
30581 scalebox{1}[-1]{Hello}
30587 \begin_layout Plain Layout
30600 \begin_layout Plain Layout
30610 \begin_layout Standard
30615 scalebox{-1}[1]{box content}
30617 there exists the command
30618 \begin_inset Newline newline
30625 reflectbox{box content}
30630 \begin_layout Standard
30631 \begin_inset VSpace bigskip
30640 is used to scale the box to a defined width and height.
30641 The command scheme is:
30644 \begin_layout Standard
30649 resizebox{width}{height}{box content}
30652 \begin_layout Standard
30653 Is one of the two command arguments given as exclamation mark
30657 , the size is set so that the aspect ratio of the box content is kept.
30660 \begin_layout Standard
30665 resizebox{2cm}{1cm}{Hello}
30671 \begin_layout Plain Layout
30675 resizebox{2cm}{1cm}{
30684 \begin_layout Plain Layout
30692 \begin_inset Newline newline
30699 resizebox{2cm}{!}{Hello}
30705 \begin_layout Plain Layout
30718 \begin_layout Plain Layout
30728 \begin_layout Standard
30729 \begin_inset VSpace bigskip
30733 \begin_inset Note Greyedout
30736 \begin_layout Plain Layout
30753 are set to zero, no LaTeX-errors occur when exporting the document but
30754 the exported files can not or only partly be displayed.
30762 \begin_layout Standard
30763 \begin_inset VSpace bigskip
30769 \begin_layout Standard
30770 The boxes can be combined in any order.
30772 \begin_inset space \thinspace{}
30776 \begin_inset space \space{}
30780 \begin_inset Newline newline
30787 rotatebox[origin=c]{-45}{
30791 reflectbox{Hello}}}
30792 \begin_inset Newline newline
30800 \begin_layout Standard
30805 \begin_layout Plain Layout
30809 rotatebox[origin=c]{-45}{
30822 \begin_layout Plain Layout
30832 \begin_layout Standard
30834 Images, tables, and inline formulas are allowed as box content:
30837 \begin_layout Standard
30842 \begin_layout Plain Layout
30846 rotatebox[origin=c]{-30}{
30856 \begin_inset Graphics
30857 filename clipart/platypus.eps
30867 \begin_layout Plain Layout
30878 \begin_layout Plain Layout
30882 rotatebox[origin=c]{-45}{
30892 \begin_inset Tabular
30893 <lyxtabular version="3" rows="2" columns="2">
30895 <column alignment="center" valignment="top" width="0">
30896 <column alignment="center" valignment="top" width="0">
30898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30901 \begin_layout Plain Layout
30907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30910 \begin_layout Plain Layout
30918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30921 \begin_layout Plain Layout
30927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30930 \begin_layout Plain Layout
30945 \begin_layout Plain Layout
30956 \begin_layout Plain Layout
30960 rotatebox[origin=c]{-45}{
30970 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30977 \begin_layout Plain Layout
30987 \begin_layout Standard
30988 When the global formula style
30992 is used in the document
30996 \begin_layout Plain Layout
30998 \begin_inset Quotes eld
31002 \begin_inset Quotes erd
31005 is added to the document class options.
31010 , also display formulas can be scaled.
31013 \begin_layout Chapter
31018 \begin_layout Plain Layout
31027 \begin_layout Standard
31030 Insert\SpecialChar \menuseparator
31033 you can insert external material to your document.
31037 \begin_layout Description
31039 \begin_inset space ~
31042 Document Another LyX document; its content is directly inserted to your
31046 \begin_layout Description
31048 \begin_inset space ~
31051 Text A text document; every of its text lines is inserted to your document
31055 \begin_layout Description
31057 \begin_inset space ~
31061 \begin_inset space ~
31065 \begin_inset space ~
31068 Lines A text document; its text lines are inserted as they are.
31069 Empty text lines creates a new paragraph in your document.
31072 \begin_layout Description
31074 \begin_inset space ~
31077 Material Files in various formats.
31080 \begin_layout Description
31082 \begin_inset space ~
31085 Document LyX or LaTeX-documents.
31088 \begin_layout Section
31093 \begin_layout Plain Layout
31094 External Stuff ! External Material
31102 \begin_layout Standard
31103 The external material feature allows you to insert files to your document
31104 without converting them previously to a format that can be read by the
31105 document output format because LyX takes care of needed conversions.
31106 This is similar to images that can be inserted in various image formats
31108 When you have enabled Instant Preview in LyX's preferences under
31111 \begin_inset space ~
31115 \begin_inset space ~
31118 feel\SpecialChar \menuseparator
31121 , the external material types Dia and Xfig is directly shown in LyX.
31124 \begin_layout Standard
31125 External material can be inserted via the
31129 dialog that is accessible with the menu
31131 Insert\SpecialChar \menuseparator
31132 File\SpecialChar \menuseparator
31134 \begin_inset space ~
31140 Currently the following file types (
31147 \begin_layout Description
31148 ChessDiagram This template supports chess position diagrams made with the
31152 \begin_inset CommandInset href
31155 target "http://en.wikipedia.org/wiki/XBoard"
31164 \begin_layout Description
31165 Date This inserts the date in the form
31170 This is a date inserted as external material:
31171 \begin_inset External
31178 \begin_inset space ~
31182 \begin_inset Note Note
31185 \begin_layout Plain Layout
31186 Remove the protected space when bug 4398 is fixed!
31192 \begin_inset Newline newline
31195 The date is not shown within LyX, only in the output.
31196 There are two other methods of inserting a date: Via menu
31198 Insert\SpecialChar \menuseparator
31201 and with the LaTeX command
31208 The different methods are compared in Table
31209 \begin_inset space ~
31213 \begin_inset CommandInset ref
31215 reference "tab:Comparison-of-the"
31222 \begin_layout Description
31223 Dia This template supports diagrams created with the program
31226 \begin_inset CommandInset href
31229 target "http://en.wikipedia.org/wiki/Dia_(software)"
31238 \begin_layout Description
31239 LilyPond This template is used for music notation typeset with the program
31240 \begin_inset Newline linebreak
31246 \begin_inset CommandInset href
31249 target "http://en.wikipedia.org/wiki/LilyPond"
31258 \begin_layout Description
31259 PDFPages With this template you can insert PDF documents to your document.
31260 To insert certain or all pages of a PDF, use the
31270 LaTeX and LyX options
31272 tab according to the template description in the dialog.
31277 option is given, only the first page of the PDF will be inserted.
31280 \begin_layout Description
31281 RasterImage This can be used for bitmap images.
31282 Nearly all popular image formats are supported.
31283 The image can be treated in the
31287 dialog like the images that are usually included via the
31291 dialog as described in section
31292 \begin_inset space ~
31296 \begin_inset CommandInset ref
31298 reference "sec:Graphics-Dialog"
31303 The difference is that only raster images are allowed, that means that
31304 PDF and EPS-images are not supported.
31307 \begin_layout Description
31308 XFig This template supports images created with the program
31311 \begin_inset CommandInset href
31314 target "http://en.wikipedia.org/wiki/Xfig"
31323 \begin_layout Standard
31324 \begin_inset Float table
31330 \begin_layout Plain Layout
31331 \begin_inset Caption
31333 \begin_layout Plain Layout
31334 \begin_inset CommandInset label
31336 name "tab:Comparison-of-the"
31340 Comparison of the date input methods.
31348 \begin_layout Plain Layout
31350 \begin_inset Tabular
31351 <lyxtabular version="3" rows="4" columns="4">
31353 <column alignment="center" valignment="top" width="0">
31354 <column alignment="center" valignment="top" width="0">
31355 <column alignment="center" valignment="top" width="0">
31356 <column alignment="center" valignment="top" width="0">
31358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31361 \begin_layout Plain Layout
31367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31370 \begin_layout Plain Layout
31373 External Material\SpecialChar \menuseparator
31379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31382 \begin_layout Plain Layout
31385 Insert\SpecialChar \menuseparator
31391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31394 \begin_layout Plain Layout
31406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31409 \begin_layout Plain Layout
31415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31418 \begin_layout Plain Layout
31424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31427 \begin_layout Plain Layout
31433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31436 \begin_layout Plain Layout
31437 as TeX-Code inset box
31444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31447 \begin_layout Plain Layout
31453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31456 \begin_layout Plain Layout
31462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31465 \begin_layout Plain Layout
31471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31474 \begin_layout Plain Layout
31482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31485 \begin_layout Plain Layout
31491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31494 \begin_layout Plain Layout
31500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31503 \begin_layout Plain Layout
31509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31512 \begin_layout Plain Layout
31531 \begin_layout Standard
31532 When you use the option
31544 dialog, only the path to the inserted file is shown in the output.
31545 \begin_inset Newline newline
31548 External material is displayed in LyX either as box like this:
31549 \begin_inset Graphics
31550 filename clipart/ExternalMaterialQt4.png
31552 scaleBeforeRotation
31556 or as image, depending on the option
31562 LaTeX and LyX options
31567 \begin_layout Standard
31574 manual explains how you can define your own templates.
31577 \begin_layout Section
31579 \begin_inset CommandInset label
31581 name "sec:Child-Documents"
31589 \begin_layout Plain Layout
31590 External Stuff ! Child Documents
31599 \begin_layout Plain Layout
31608 \begin_layout Standard
31609 Child documents are used when you have a long document consisting of several
31610 larger parts or sections.
31611 For maintenance it is often useful and sometimes even required to split
31612 the document in several files that can be revised separately.
31613 The different documents are then the so called child documents and a master
31614 document connects them to print the full document or parts of it.
31615 A child documents inherits contents of its master, for example the LaTeX
31616 preamble, the bibliography, and labels for cross-references.
31619 \begin_layout Standard
31620 To be able to work on child documents without the need to open its master,
31621 specify in the child document the master in the menu
31623 Document\SpecialChar \menuseparator
31624 Settings\SpecialChar \menuseparator
31626 \begin_inset space ~
31632 This master file will then be used in the background by LyX when you edit
31633 the child document.
31636 \begin_layout Standard
31637 Included documents are displayed in LyX as a box like this:
31638 \begin_inset Graphics
31639 filename clipart/ChildDocumentQt4.png
31641 scaleBeforeRotation
31645 To include child documents to a master document use the menu
31647 Insert\SpecialChar \menuseparator
31648 File\SpecialChar \menuseparator
31650 \begin_inset space ~
31656 A dialog pops up where you can choose between four include methods:
31659 \begin_layout Description
31660 Include You can include LyX and LaTeX-documents.
31669 dialog, the included documents will be opened in LyX in a new file tab
31670 so that you can modify it.
31671 \begin_inset Newline newline
31677 \begin_layout Standard
31678 Here is a child document inserted using
31683 \begin_inset CommandInset include
31684 LatexCommand include
31685 filename "DummyDocument1.lyx"
31692 \begin_layout Standard
31693 The section numbering includes the sections of the included files in the
31694 order they are inserted in the master document.
31695 The included example document has for example a subsection that is numbered
31696 as subsection of this section.
31697 Labels of included documents can be referenced: Subsection
31698 \begin_inset space ~
31702 \begin_inset CommandInset ref
31704 reference "sub:External-Subsection-1"
31711 \begin_layout Standard
31712 The preamble of the child document is ignored, only the preamble of the
31713 master document is used.
31714 Included documents are inserted starting on a new page and end with a page
31718 \begin_layout Standard
31719 With the LaTeX-command
31725 you can specify which included child documents are processed when the output
31727 This is useful when you are perhaps only working on a certain chapter of
31728 your large document as this saves compiling time.
31735 is inserted to the master document preamble.
31736 It takes a comma-separated list of the filenames as argument, e.
31737 \begin_inset space \thinspace{}
31743 \begin_layout Standard
31748 includeonly{chapter1,chapter5}
31751 \begin_layout Standard
31752 will only process the included files named
31753 \begin_inset Quotes eld
31757 \begin_inset Quotes erd
31761 \begin_inset Quotes eld
31765 \begin_inset Quotes erd
31769 \begin_inset Quotes eld
31773 \begin_inset Quotes erd
31779 \begin_layout Standard
31780 \begin_inset Note Greyedout
31783 \begin_layout Plain Layout
31788 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31789 w the document in case that the child document uses another document class
31790 than the master document as this will lead to unexpected outputs.
31798 \begin_layout Description
31799 Input This method is very similar to the Include method.
31800 The differences are:
31804 \begin_layout Itemize
31805 Input files don't start with a new page and don't end with a page break.
31808 \begin_layout Itemize
31809 Input files can be previewed in LyX when
31812 \begin_inset space ~
31817 is enabled in LyX's preferences under
31820 \begin_inset space ~
31824 \begin_inset space ~
31827 feel\SpecialChar \menuseparator
31833 \begin_layout Itemize
31844 \begin_layout Standard
31845 Here is a child document inserted using
31850 \begin_inset CommandInset include
31852 filename "DummyDocument2.lyx"
31859 \begin_layout Description
31860 Verbatim With this method every text file can be included.
31861 The file is shown in the output with its source code, no command used in
31862 the text is invoked.
31863 You can use the option
31865 Mark spaces in output
31867 that displays the character
31868 \begin_inset Quotes eld
31875 \begin_layout Plain Layout
31885 \begin_inset Quotes erd
31888 for every space character in the source code.
31889 The difference to the method via the menu
31891 Insert\SpecialChar \menuseparator
31892 File\SpecialChar \menuseparator
31894 \begin_inset space ~
31899 is that the document content is not shown in LyX.
31902 \begin_layout Standard
31903 Here is a child document inserted as Verbatim:
31904 \begin_inset CommandInset include
31905 LatexCommand verbatiminput
31906 filename "DummyTextDocument.txt"
31911 \begin_inset VSpace bigskip
31914 Here is a child document inserted as Verbatim using the
31916 Mark spaces in output
31919 \begin_inset CommandInset include
31920 LatexCommand verbatiminput*
31921 filename "DummyTextDocument.txt"
31928 \begin_layout Standard
31929 \begin_inset VSpace bigskip
31935 \begin_layout Standard
31936 \begin_inset Note Greyedout
31939 \begin_layout Plain Layout
31944 As you can see in the examples above, the text of the documents included
31949 is not broken at the end of the document lines.
31957 \begin_layout Description
31958 Listings This type is described in chapter
31959 \begin_inset space ~
31963 \begin_inset CommandInset ref
31965 reference "cha:Program-Code-Listings"
31972 \begin_layout Standard
31973 \begin_inset Note Greyedout
31976 \begin_layout Plain Layout
31981 Including the same document twice in a document using different methods
31982 could cause LaTeX-problems.
31990 \begin_layout Chapter
31991 Program Code Listings
31992 \begin_inset CommandInset label
31994 name "cha:Program-Code-Listings"
32002 \begin_layout Plain Layout
32012 \begin_layout Plain Layout
32022 \begin_layout Plain Layout
32031 \begin_layout Standard
32032 To include and typeset program code you can use the
32036 inset that can be inserted via the menu
32038 Insert\SpecialChar \menuseparator
32050 \begin_layout Plain Layout
32051 LaTeX-packages ! listings
32056 provides a powerful and flexible way to insert program source code to your
32060 \begin_layout Standard
32061 Right-clicking on a listings inset opens the context menu containing where
32062 you can set the listings format.
32065 \begin_layout Standard
32066 By default, a listing starts a new paragraph in the output.
32067 The placement option
32070 \begin_inset space ~
32075 prints the listing inline like this:
32076 \begin_inset listings
32077 lstparams "language={C++}"
32081 \begin_layout Plain Layout
32089 \begin_inset Newline newline
32096 creates a listings float where you can specify the placement options
32097 \begin_inset Quotes eld
32105 \begin_inset Quotes erd
32109 \begin_inset Quotes eld
32117 \begin_inset Quotes erd
32121 \begin_inset Quotes eld
32129 \begin_inset Quotes erd
32133 \begin_inset Quotes eld
32141 \begin_inset Quotes erd
32144 corresponding to the float placement options described in section
32145 \begin_inset space ~
32149 \begin_inset CommandInset ref
32151 reference "sec:Float-Placement"
32156 The placement options can be mixed and are inserted without any separation,
32158 \begin_inset space \thinspace{}
32162 \begin_inset space \space{}
32166 \begin_inset Quotes eld
32174 \begin_inset Quotes erd
32179 \begin_inset Quotes eld
32183 \begin_inset Quotes erd
32186 has sometimes no effect, but you don't need to use the
32190 option in this case as also non-float listings can have captions and be
32194 \begin_layout Standard
32195 You can add captions to listings with the menu
32197 Insert\SpecialChar \menuseparator
32201 Listings can be referenced like floats: Listing
32202 \begin_inset space ~
32206 \begin_inset CommandInset ref
32208 reference "lst:Example-Listing"
32215 \begin_layout Standard
32216 \begin_inset listings
32217 lstparams "language=Python"
32221 \begin_layout Plain Layout
32223 \begin_inset Caption
32225 \begin_layout Plain Layout
32226 \begin_inset CommandInset label
32228 name "lst:Example-Listing"
32232 Example Listing float
32237 # Example listing float
32240 \begin_layout Plain Layout
32245 \begin_layout Plain Layout
32247 'this is a python function'
32250 \begin_layout Plain Layout
32260 \begin_layout Standard
32261 When you have set a programming language in the listings dialog, the keywords
32262 of this language will be recognized and specially typeset in the output.
32263 In the example listings the Python keyword
32264 \begin_inset Quotes eld
32268 \begin_inset Quotes erd
32271 is recognized and printed bold in the output.
32274 \begin_layout Standard
32275 \begin_inset Note Greyedout
32278 \begin_layout Plain Layout
32283 If you don't get bold keywords when using typewriter fonts, your
32287 font probably doesn't provide a bold shape.
32288 In this case select a different one in the menu
32290 Document\SpecialChar \menuseparator
32291 Settings\SpecialChar \menuseparator
32303 provide bold shapes.)
32311 \begin_layout Standard
32315 \begin_inset space ~
32320 of the listings dialog you can specify the line numbering style.
32321 You can insert a number to specify which lines are numbered to the field
32328 \begin_inset space \thinspace{}
32332 \begin_inset space \space{}
32336 \begin_inset Quotes eld
32340 \begin_inset Quotes erd
32343 , only every 3rd line will be numbered.
32346 \begin_layout Standard
32347 You can furthermore specify a range of lines, only these will then appear
32351 Extended character table
32353 should be used when you use national characters like the German umlauts
32355 \begin_inset Newline newline
32358 Here is an example listing with left line numbering, step
32359 \begin_inset Quotes eld
32363 \begin_inset Quotes erd
32367 \begin_inset Quotes eld
32371 \begin_inset Quotes erd
32375 \begin_inset Quotes eld
32378 Extended character table
32379 \begin_inset Quotes erd
32383 \begin_inset Quotes eld
32387 \begin_inset space ~
32391 \begin_inset space ~
32395 \begin_inset Quotes erd
32399 \begin_inset space \thinspace{}
32403 \begin_inset space \thinspace{}
32409 \begin_layout Standard
32410 \begin_inset listings
32411 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32415 \begin_layout Plain Layout
32420 \begin_layout Plain Layout
32422 'this is a python function'
32425 \begin_layout Plain Layout
32430 \begin_layout Plain Layout
32435 \begin_layout Plain Layout
32437 'This is a German word: Tschüß'
32440 \begin_layout Plain Layout
32445 \begin_layout Plain Layout
32450 \begin_layout Plain Layout
32452 'this is a python function'
32455 \begin_layout Plain Layout
32465 \begin_layout Standard
32466 When you have tabulators in your listing, you can specify the number of
32467 characters that are spanned by a tabulator in the field
32470 \begin_inset space ~
32478 \begin_layout Standard
32479 \begin_inset Note Greyedout
32482 \begin_layout Plain Layout
32487 Due to a bug in the
32491 package the line numbering is shifted by a line by every previous listing.
32492 That's the reason why the lines 2 and 5 are numbered in the above listing
32493 and not the lines 3 and 6.
32501 \begin_layout Standard
32502 \begin_inset VSpace bigskip
32508 \begin_layout Standard
32509 It is also possible to print lines from a file as listing.
32510 To do this, use the menu
32512 Insert\SpecialChar \menuseparator
32513 File\SpecialChar \menuseparator
32516 and choose the type
32524 \begin_layout Plain Layout
32525 The other child document types are described in section
32526 \begin_inset space ~
32530 \begin_inset CommandInset ref
32532 reference "sec:Child-Documents"
32541 In the child document dialog you can specify the listing parameters in
32543 To show a list of all available parameters, type in a question mark
32544 \begin_inset Quotes eld
32548 \begin_inset Quotes erd
32554 \begin_layout Standard
32555 To reference child document listings, write a label text into the corresponding
32556 field of the child document dialog.
32557 The label can then be referenced using the menu
32559 Insert\SpecialChar \menuseparator
32565 \begin_layout Standard
32567 \begin_inset space ~
32571 \begin_inset CommandInset ref
32573 reference "lst:file-listing"
32577 is an example for a listing of a file; there the lines 10
32578 \begin_inset space \thinspace{}
32582 \begin_inset space \thinspace{}
32585 15 of this LyX file are listed.
32588 \begin_layout Standard
32589 \begin_inset CommandInset include
32590 LatexCommand lstinputlisting
32591 filename "EmbeddedObjects.lyx"
32592 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32599 \begin_layout Standard
32600 \begin_inset VSpace bigskip
32606 \begin_layout Standard
32607 Global listings settings can be set in the
32609 Document\SpecialChar \menuseparator
32610 Settings\SpecialChar \menuseparator
32614 To get there a list of available options, type in a question mark
32615 \begin_inset Quotes eld
32619 \begin_inset Quotes erd
32625 \begin_inset space ~
32633 \begin_layout Standard
32634 For more information about the
32638 package, we refer to its documentation
32639 \begin_inset CommandInset citation
32648 \begin_layout Standard
32649 \begin_inset Newpage newpage
32655 \begin_layout Chapter
32657 Units available in LyX
32661 \begin_layout Plain Layout
32668 \begin_inset CommandInset label
32670 name "cha:Units-available-in"
32677 \begin_layout Standard
32678 To understand the units described in this documentation, Table
32679 \begin_inset space ~
32683 \begin_inset CommandInset ref
32685 reference "tab:Units"
32689 explains all units available in LyX.
32692 \begin_layout Standard
32693 \begin_inset Float table
32699 \begin_layout Plain Layout
32700 \begin_inset Caption
32702 \begin_layout Plain Layout
32703 \begin_inset CommandInset label
32717 \begin_layout Plain Layout
32718 \begin_inset VSpace medskip
32724 \begin_layout Plain Layout
32726 \begin_inset Tabular
32727 <lyxtabular version="3" rows="20" columns="2">
32729 <column alignment="center" valignment="top" width="0">
32730 <column alignment="center" valignment="top" width="0">
32732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32735 \begin_layout Plain Layout
32741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32744 \begin_layout Plain Layout
32752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32755 \begin_layout Plain Layout
32761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32764 \begin_layout Plain Layout
32772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32775 \begin_layout Plain Layout
32781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32784 \begin_layout Plain Layout
32792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32795 \begin_layout Plain Layout
32801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32804 \begin_layout Plain Layout
32812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32815 \begin_layout Plain Layout
32821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32824 \begin_layout Plain Layout
32826 \begin_inset space \thinspace{}
32830 \begin_inset space \thinspace{}
32840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32843 \begin_layout Plain Layout
32849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32852 \begin_layout Plain Layout
32854 \begin_inset space \thinspace{}
32858 \begin_inset space \thinspace{}
32868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32871 \begin_layout Plain Layout
32877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32880 \begin_layout Plain Layout
32881 scaled point (65536
32882 \begin_inset space \thinspace{}
32886 \begin_inset space \thinspace{}
32896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32899 \begin_layout Plain Layout
32905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32908 \begin_layout Plain Layout
32910 \begin_inset space \thinspace{}
32914 \begin_inset space \thinspace{}
32924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32927 \begin_layout Plain Layout
32933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32936 \begin_layout Plain Layout
32938 \begin_inset space \thinspace{}
32942 \begin_inset Formula $\approx$
32946 \begin_inset space \thinspace{}
32956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32959 \begin_layout Plain Layout
32965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32968 \begin_layout Plain Layout
32970 \begin_inset space \thinspace{}
32974 \begin_inset space \thinspace{}
32984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32987 \begin_layout Plain Layout
32993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32996 \begin_layout Plain Layout
32997 % of original image width
33004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33007 \begin_layout Plain Layout
33013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33016 \begin_layout Plain Layout
33024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33027 \begin_layout Plain Layout
33033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33036 \begin_layout Plain Layout
33044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33047 \begin_layout Plain Layout
33053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33056 \begin_layout Plain Layout
33064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33067 \begin_layout Plain Layout
33073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33076 \begin_layout Plain Layout
33084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33087 \begin_layout Plain Layout
33093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33096 \begin_layout Plain Layout
33104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33107 \begin_layout Plain Layout
33113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33116 \begin_layout Plain Layout
33124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33127 \begin_layout Plain Layout
33133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33136 \begin_layout Plain Layout
33148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33151 \begin_layout Plain Layout
33157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33160 \begin_layout Plain Layout
33172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33175 \begin_layout Plain Layout
33181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33184 \begin_layout Plain Layout
33186 \begin_inset space \thinspace{}
33190 \begin_inset space \thinspace{}
33211 \begin_layout Chapter
33212 Output File Formats with Graphics
33213 \begin_inset CommandInset label
33215 name "cha:Output-File-Formats"
33222 \begin_layout Section
33227 \begin_layout Plain Layout
33237 \begin_layout Plain Layout
33242 \begin_layout Plain Layout
33253 \begin_layout Plain Layout
33268 \begin_layout Standard
33269 This file type has the extension
33270 \begin_inset Quotes eld
33278 \begin_inset Quotes erd
33283 \begin_inset Quotes eld
33287 \begin_inset Quotes erd
33290 (DVI), because it is completely portable; you can move them from one machine
33291 to another without needing to do any sort of conversion.
33292 At the time when this file-format was developed, this was no matter of
33294 DVIs are used for quick previews and as pre-stage for other output formats,
33298 \begin_layout Standard
33299 \begin_inset Note Greyedout
33302 \begin_layout Plain Layout
33307 DVI-files doesn't contain images, they will only be a linked.
33312 So don't forget this, if you move your
33316 file to another computer.
33317 This property can also slow down your computer when you view the DVI.
33318 Because the DVI-viewer has to convert the image in the background to make
33319 it visible when you scroll in the DVI.
33320 So we recommend to use PDF for files with many images.
33323 \begin_layout Standard
33324 You can export your document to DVI by using the menu
33326 File\SpecialChar \menuseparator
33327 Export\SpecialChar \menuseparator
33331 You can view your document as DVI via the
33335 menu or by using the toolbar button
33336 \begin_inset Graphics
33337 filename ../images/buffer-view_dvi.png
33339 scaleBeforeRotation
33346 \begin_layout Section
33348 \begin_inset CommandInset label
33350 name "sec:PostScript"
33358 \begin_layout Plain Layout
33359 File Formats ! PostScript
33368 \begin_layout Plain Layout
33373 \begin_layout Plain Layout
33384 \begin_layout Plain Layout
33399 \begin_layout Standard
33400 This file type has the extension
33401 \begin_inset Quotes eld
33409 \begin_inset Quotes erd
33413 PostScript was developed by the company
33417 as printer language.
33418 The file contains therefore commands that the printer uses to print the
33420 PostScript can be seen as
33421 \begin_inset Quotes eld
33424 programming language
33425 \begin_inset Quotes erd
33428 ; you can calculate with it and draw diagrams and images
33432 \begin_layout Plain Layout
33433 If you are interested to learn more about this, have a look at the LaTeX-package
33439 \begin_inset CommandInset citation
33451 Due to this ability, the files are often bigger than PDFs.
33454 \begin_layout Standard
33455 PostScript can only contain images in the format
33456 \begin_inset Quotes eld
33459 Encapsulated PostScript
33460 \begin_inset Quotes erd
33463 (EPS, file extension
33464 \begin_inset Quotes eld
33472 \begin_inset Quotes erd
33476 As LyX allows you to use any known image format in your document, it has
33477 to convert images in the background to EPS.
33478 If you have e.g 50 images in your document, LyX has to do 50 conversions
33479 whenever you view or export your document.
33480 This will slow down your work flow with LyX drastically.
33481 So if you plan to use PostScript, you can insert your images directly as
33482 EPS to avoid this problem.
33485 \begin_layout Standard
33486 You can export your document to PostScript using the menu
33488 File\SpecialChar \menuseparator
33489 Export\SpecialChar \menuseparator
33493 You can view your document as PostScript via the
33497 menu or by using the toolbar button
33498 \begin_inset Graphics
33499 filename ../images/buffer-view_ps.png
33501 scaleBeforeRotation
33508 \begin_layout Section
33513 \begin_layout Plain Layout
33523 \begin_layout Plain Layout
33532 \begin_layout Standard
33533 This file type has the extension
33534 \begin_inset Quotes eld
33542 \begin_inset Quotes erd
33547 \begin_inset Quotes eld
33550 Portable Document Format
33551 \begin_inset Quotes erd
33554 (PDF) is developed by
33558 as derivative from PostScript.
33559 It is more compressed and it uses much less commands than PostScript.
33561 \begin_inset Quotes eld
33565 \begin_inset Quotes erd
33568 implies, it can be processed at any computer system and the printed output
33569 looks exactly the same.
33572 \begin_layout Standard
33573 PDF can contain images in its own PDF format, in the format
33574 \begin_inset Quotes eld
33577 Joint Photographic Experts Group
33578 \begin_inset Quotes erd
33581 (JPG, file extension
33582 \begin_inset Quotes eld
33590 \begin_inset Quotes erd
33594 \begin_inset Quotes eld
33602 \begin_inset Quotes erd
33605 ), and in the format
33606 \begin_inset Quotes eld
33609 Portable Network Graphics
33610 \begin_inset Quotes erd
33613 (PNG, file extension
33614 \begin_inset Quotes eld
33622 \begin_inset Quotes erd
33626 Nevertheless you can use any other image format, because LyX converts them
33627 in the background to one of these formats.
33628 But as described in the section about PostScript, the image conversion
33629 will slow down your work flow.
33630 So it is recommended to use images in one of the three mentioned formats.
33633 \begin_layout Standard
33634 You can export your document to PDF via the menu
33636 File\SpecialChar \menuseparator
33639 in three different ways:
33642 \begin_layout Description
33644 \begin_inset space ~
33647 (ps2pdf) This uses the program
33651 that creates a PDF from a PostScript-version of your file.
33652 The PostScript-version is produced by the program
33656 which uses a DVI-version as intermediate step.
33657 So this export variant consist of three conversions.
33660 \begin_layout Description
33662 \begin_inset space ~
33665 (dvipdfm) This uses the program
33669 that converts your file in the background to DVI and in a second step to
33673 \begin_layout Description
33675 \begin_inset space ~
33678 (pdflatex) This uses the program
33682 that converts your file directly to PDF.
33685 \begin_layout Standard
33686 It is recommended to use
33689 \begin_inset space ~
33698 supports all features of actual PDF-versions, is quick and works stable
33704 is not under development and therefore a bit outdated.
33707 \begin_layout Standard
33708 You can view your document as PDF via the
33712 menu or by using the toolbar button
33713 \begin_inset Graphics
33714 filename ../images/buffer-view_pdf2.png
33716 scaleBeforeRotation
33727 \begin_inset space ~
33735 \begin_layout Chapter
33736 Explanation of Equation
33737 \begin_inset space ~
33741 \begin_inset CommandInset ref
33748 \begin_inset CommandInset label
33750 name "cha:Explanation-of-Equation"
33757 \begin_layout Standard
33763 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33766 can be calculated to
33769 \begin_layout Standard
33770 \begin_inset Formula \begin{equation}
33771 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}
33778 \begin_layout Standard
33780 \begin_inset Formula $W_{g\, n}$
33783 is the given width of all cells.
33790 is the LaTeX-length between the cell text and the cell border, its default
33792 \begin_inset space \thinspace{}
33802 is the thickness of the cell border line, the default is 0.4
33803 \begin_inset space \thinspace{}
33809 \begin_layout Standard
33811 \begin_inset space ~
33815 \begin_inset CommandInset ref
33817 reference "eq:Wtot_n"
33821 , the total width of a multicolumn
33822 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33828 \begin_layout Standard
33829 \begin_inset Formula \begin{equation}
33830 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33837 \begin_layout Standard
33838 By setting equation
33839 \begin_inset space ~
33843 \begin_inset CommandInset ref
33845 reference "eq:Wtot_n"
33850 \begin_inset CommandInset ref
33852 reference "eq:Wtot_mult"
33856 equal we can calculate the needed given width
33857 \begin_inset Formula $W_{g\, n}$
33864 columns are spanned, so that each column has a total width of
33865 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33871 \begin_layout Standard
33872 \begin_inset Formula \begin{equation}
33873 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33880 \begin_layout Bibliography
33881 \begin_inset CommandInset bibitem
33882 LatexCommand bibitem
33883 key "latexcompanion"
33887 Frank Mittelbach and Michel Goossens:
33889 The LaTeX Companion Second Edition.
33892 Addison-Wesley, 2004
33895 \begin_layout Bibliography
33896 \begin_inset CommandInset bibitem
33897 LatexCommand bibitem
33902 Helmut Kopka and Patrick W.
33905 A Guide to LaTeX Fourth Edition.
33908 Addison-Wesley, 2003
33911 \begin_layout Bibliography
33912 \begin_inset CommandInset bibitem
33913 LatexCommand bibitem
33920 LaTeX: A Document Preparation System.
33923 Addison-Wesley, second edition, 1994
33926 \begin_layout Bibliography
33927 \begin_inset CommandInset bibitem
33928 LatexCommand bibitem
33933 Documentation of the LaTeX-package
33936 \begin_inset CommandInset href
33939 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33949 \begin_layout Plain Layout
33950 LaTeX-packages ! booktabs
33958 \begin_layout Bibliography
33959 \begin_inset CommandInset bibitem
33960 LatexCommand bibitem
33965 Documentation of the LaTeX-package
33968 \begin_inset CommandInset href
33971 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33981 \begin_layout Plain Layout
33982 LaTeX-packages ! caption
33990 \begin_layout Bibliography
33991 \begin_inset CommandInset bibitem
33992 LatexCommand bibitem
33997 Documentation of the LaTeX-package
34000 \begin_inset CommandInset href
34003 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34013 \begin_layout Plain Layout
34014 LaTeX-packages ! endfloat
34022 \begin_layout Bibliography
34023 \begin_inset CommandInset bibitem
34024 LatexCommand bibitem
34029 Documentation of the LaTeX-package
34032 \begin_inset CommandInset href
34035 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34045 \begin_layout Plain Layout
34046 LaTeX-packages ! wrapfig
34050 \begin_layout Plain Layout
34067 \begin_layout Bibliography
34068 \begin_inset CommandInset bibitem
34069 LatexCommand bibitem
34074 Documentation of the LaTeX-package
34077 \begin_inset CommandInset href
34080 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34090 \begin_layout Plain Layout
34091 LaTeX-packages ! footmisc
34099 \begin_layout Bibliography
34100 \begin_inset CommandInset bibitem
34101 LatexCommand bibitem
34106 Documentation of the LaTeX-package
34109 \begin_inset CommandInset href
34112 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34122 \begin_layout Plain Layout
34123 LaTeX-packages ! hyperref
34131 \begin_layout Bibliography
34132 \begin_inset CommandInset bibitem
34133 LatexCommand bibitem
34138 Documentation of the LaTeX-package
34141 \begin_inset CommandInset href
34144 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34154 \begin_layout Plain Layout
34155 LaTeX-packages ! hyperref
34163 \begin_layout Bibliography
34164 \begin_inset CommandInset bibitem
34165 LatexCommand bibitem
34170 Documentation of the LaTeX-package
34173 \begin_inset CommandInset href
34176 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34186 \begin_layout Plain Layout
34187 LaTeX-packages ! koma-script
34195 \begin_layout Bibliography
34196 \begin_inset CommandInset bibitem
34197 LatexCommand bibitem
34202 Documentation of the LaTeX-package
34205 \begin_inset CommandInset href
34208 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34218 \begin_layout Plain Layout
34219 LaTeX-packages ! listings
34227 \begin_layout Bibliography
34228 \begin_inset CommandInset bibitem
34229 LatexCommand bibitem
34234 Documentation of the LaTeX-package
34237 \begin_inset CommandInset href
34240 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34250 \begin_layout Plain Layout
34251 LaTeX-packages ! marginnote
34259 \begin_layout Bibliography
34260 \begin_inset CommandInset bibitem
34261 LatexCommand bibitem
34266 Web page of the LaTeX-package
34269 \begin_inset CommandInset href
34272 target "http://tug.org/PSTricks/"
34282 \begin_layout Plain Layout
34283 LaTeX-packages ! PSTricks
34291 \begin_layout Bibliography
34292 \begin_inset CommandInset bibitem
34293 LatexCommand bibitem
34298 Documentation of the LaTeX-package
34301 \begin_inset CommandInset href
34304 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34314 \begin_layout Plain Layout
34315 LaTeX-packages ! sidecap
34323 \begin_layout Bibliography
34324 \begin_inset CommandInset bibitem
34325 LatexCommand bibitem
34331 \begin_inset CommandInset href
34334 target "http://wiki.lyx.org/LyX/NewInLyX16"
34338 about new features in
34345 \begin_layout Standard
34346 \begin_inset CommandInset index_print
34347 LatexCommand printindex
34354 \begin_layout Standard
34355 \begin_inset FloatList figure
34362 \begin_layout Standard
34363 \begin_inset FloatList table
34370 \begin_layout Standard
34371 \begin_inset FloatList algorithm