1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC are numbered roman
23 % and a PDF-bookmark for the TOC is added
25 \let\myTOC\tableofcontents
26 \renewcommand{\tableofcontents}{%
27 \pdfbookmark[1]{Contents}{}
30 \pagenumbering{arabic}}
32 % provides caption formatting
33 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
35 % provides commands to set caption
36 % beside tables/images
39 \newcommand{\TabBesBeg}{%
41 \let\MyEndtable\endtable
42 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
44 \newcommand{\TabBesEnd}{%
46 \let\endtable\MyEndtable}
48 \newcommand{\FigBesBeg}{%
50 \let\MyEndfigure\endfigure
51 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
53 \newcommand{\FigBesEnd}{%
55 \let\endfigure\MyEndfigure}
57 % enables calculation of values,
60 % provides special table cell alignments
63 % increase the bottom float placement fraction
64 \renewcommand{\bottomfraction}{0.5}
66 % avoids that floats are placed before their
67 % corresponding section starts
68 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
70 % speed up the longtable calculation
71 \setcounter{LTchunksize}{100}
73 % used for scaled and rotated boxes
74 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
76 % used for colored tables
77 \@ifundefined{textcolor}
78 {\usepackage{color}}{}
79 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
80 \definecolor{lightgrey}{gray}{0.8}
82 % check for package colortbl
83 % used for colored table cells
85 \IfFileExists{colortbl.sty}
86 {\usepackage{colortbl}
87 \setboolean{colortbl}{true}}
88 {\setboolean{colortbl}{false}}
92 %\renewcommand{\multirowsetup}{\centering}
94 % used for book-style tables
97 % used to have extra space in table cells
98 \@ifundefined{extrarowheight}
99 {\usepackage{array}}{}
100 \setlength{\extrarowheight}{2pt}
102 % used for customized tables
105 {>{\centering\hspace{0pt}}m{#1}}
108 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
111 {>{\columncolor{#1}\hspace{0pt}}c}
113 \newcolumntype{V}{!{\vrule width 1.5pt}}
115 \newcolumntype{W}{!{\color{green}\vline}}
118 % insert additional vertical space of
119 % 1.5 mm between footnotes
121 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
123 % number algorithm floats within chapters
124 \numberwithin{algorithm}{chapter}
126 % redefine the greyed out note
127 \renewenvironment{lyxgreyedout}
128 {\textcolor{blue}\bgroup}{\egroup}
130 % ------------------------------------
131 % used to check for needed LaTeX packages
134 % check for package arydshln
135 % used for tables with dashed lines
136 \newboolean{arydshln}
137 \IfFileExists{arydshln.sty}
138 {\usepackage{arydshln}
139 \setboolean{arydshln}{true}}
140 {\setboolean{arydshln}{false}}
142 % check for package marginnote
143 % used for margin notes
144 \newboolean{marginnote}
145 \IfFileExists{marginnote.sty}
146 {\usepackage{marginnote}
147 \let\marginpar\marginnote
148 \setboolean{marginnote}{true}}
149 {\setboolean{marginnote}{false}}
151 % check for package sidecap
152 % used for captions on the side
154 \IfFileExists{sidecap.sty}
155 {\usepackage{sidecap}
156 \let\marginpar\marginnote
157 \setboolean{sidecap}{true}}
158 {\setboolean{sidecap}{false}}
160 % redefine the \LyX macro for PDF bookmarks
161 \def\LyX{\texorpdfstring{%
162 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
165 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
170 \font_typewriter default
171 \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_pagebackref false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
240 \begin_layout Plain Layout
244 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
249 lyx-docs@lists.lyx.org
253 \begin_layout Plain Layout
266 \begin_inset Note Note
269 \begin_layout Plain Layout
276 \begin_inset Newline newline
280 \begin_inset Newline newline
288 \begin_layout Standard
289 \begin_inset CommandInset toc
290 LatexCommand tableofcontents
297 \begin_layout Standard
298 \begin_inset Note Note
301 \begin_layout Plain Layout
302 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
320 If they are not installed you can export the document anyway but the sections
321 where the packages are required won't appear in the output.
324 \begin_layout Plain Layout
325 The latest PDF-version of this document can be found here:
326 \begin_inset Newline newline
331 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
339 \begin_layout Chapter
341 \begin_inset CommandInset label
351 \begin_layout Plain Layout
361 \begin_layout Plain Layout
366 \begin_layout Plain Layout
377 \begin_layout Plain Layout
392 \begin_layout Section
397 \begin_layout Plain Layout
398 Figures ! Graphics Dialog
404 \begin_inset CommandInset label
406 name "sec:Graphics-Dialog"
413 \begin_layout Standard
414 To insert an image into your document, place the cursor at the text position
415 you want and click on the toolbar icon
416 \begin_inset Graphics
417 filename ../images/dialog-show-new-inset_graphics.png
425 Insert\SpecialChar \menuseparator
429 Then a dialog will appear to choose the file to load.
430 The image will appear in the output exactly at the position where it is
434 \begin_layout Standard
435 The graphics dialog can be called at any time by right-clicking on an image.
436 This dialog has three tabs:
439 \begin_layout Description
444 Here you can choose an image file and adjust its appearance in the output.
445 The available units for the image size are explained in appendix
450 \begin_inset CommandInset ref
452 reference "cha:Units-available-in"
457 \begin_inset Newline newline
464 \begin_layout Plain Layout
470 You can rotate images counter-clockwise by setting a rotation angle and
472 The image will also be rotated inside LyX.
473 \begin_inset Newline newline
480 \begin_layout Plain Layout
486 Images can be scaled by using a percentage value or by setting the width
487 and height explicitly.
488 If you set only the width or only the height, the other size will be determined
490 If you set both, then the image will be transformed to the given size,
491 possibly distorting it.
492 To prevent the image from distortion, use the option
494 Maintain aspect ratio
497 The image will then be scaled so that its width and height don't exceed
498 the specified dimensions.
499 \begin_inset Newline newline
502 Images can be opened in a program of your choice when pressing the
507 The program can be set for every image format in the file format settings
508 in LyX's preferences.
511 \begin_layout Description
516 Alternatively to the usage of scaling units it is possible to set image
517 coordinates to adjust the height and width of the image in the output.
518 The coordinates can also be calculated automatically by pressing the button
548 will only print the image region within the given coordinates.
549 Normally you don't need to take care about image coordinates and can ignore
553 \begin_layout Description
562 In this tab you can modify the appearance of the image within LyX and set
563 the image to be a subfigure of a figure float with an own caption.
564 Subfigures are explained in section
569 \begin_inset CommandInset ref
571 reference "sec:Figure-Floats"
576 \begin_inset Newline newline
579 LaTeX experts can also specify on this tab additional LaTeX options.
580 \begin_inset Newline newline
591 makes the image appear in the output only as a frame with the size of the
593 \begin_inset Newline newline
612 option only affects zipped EPS-graphics, e.
613 \begin_inset Space \thinspace{}
625 When the option is used the images will not be unzipped on export, since
626 LaTeX can handle them as they are.
627 \begin_inset Newline newline
630 Zipped EPS-graphics are useful to save disk space when you choose PostScript
631 as output format, see appendix
636 \begin_inset CommandInset ref
638 reference "sec:PostScript"
643 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
645 \begin_inset Newline newline
653 \begin_inset Newline newline
658 zgrep %%Bounding x.eps.gz > x.eps.bb
661 \begin_inset Newline newline
664 The second command creates the bounding box file
665 \begin_inset Quotes eld
669 \begin_inset Quotes erd
672 that is needed by LaTeX for zipped graphics.
675 \begin_layout Standard
676 \begin_inset VSpace bigskip
682 \begin_layout Standard
683 This is an example image in EPS format
687 \begin_layout Plain Layout
688 Image formats are explained in section
693 \begin_inset CommandInset ref
695 reference "sec:Image-Formats"
704 within a separate, horizontally centered paragraph:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
721 \begin_layout Standard
722 This is the same image like the one above but in draft mode:
725 \begin_layout Standard
727 \begin_inset Graphics
728 filename clipart/mobius.eps
740 \begin_layout Section
742 \begin_inset CommandInset label
744 name "sec:Figure-Floats"
752 \begin_layout Plain Layout
762 \begin_layout Plain Layout
771 \begin_layout Standard
772 For general explanations about floats, have a look at section
777 \begin_inset CommandInset ref
779 reference "sec:FloatIntroduction"
786 \begin_layout Standard
788 \begin_inset Graphics
789 filename ../images/float-insert_figure.png
797 Insert\SpecialChar \menuseparator
798 Float\SpecialChar \menuseparator
801 inserts a float with a caption that has the label
802 \begin_inset Quotes eld
810 \begin_inset Quotes erd
813 (# is the actual number).
814 You can insert the image above the caption, like in Figure
819 \begin_inset CommandInset ref
821 reference "fig:kill-plat"
825 or below the caption, like in Figure
830 \begin_inset CommandInset ref
832 reference "fig:escher"
837 More about the caption placement is described in section
842 \begin_inset CommandInset ref
844 reference "sec:Caption-Placement"
851 \begin_layout Standard
852 \begin_inset Float figure
857 \begin_layout Plain Layout
859 \begin_inset Graphics
860 filename clipart/platypus.eps
871 \begin_layout Plain Layout
874 \begin_layout Plain Layout
875 \begin_inset CommandInset label
881 A severely distorted platypus in a float.
894 \begin_layout Standard
895 \begin_inset Float figure
900 \begin_layout Plain Layout
903 \begin_layout Plain Layout
904 \begin_inset CommandInset label
919 \begin_layout Plain Layout
921 \begin_inset Graphics
922 filename clipart/escher-lsd.eps
938 \begin_layout Standard
942 \begin_layout Plain Layout
943 References ! to Figures
953 \begin_inset CommandInset ref
955 reference "fig:kill-plat"
960 \begin_inset CommandInset ref
962 reference "fig:escher"
966 are examples of referenced figures.
967 Figures can be referenced in the text by referencing their label.
968 To do this insert a label in the caption using the menu
970 Insert\SpecialChar \menuseparator
973 or the toolbar button
974 \begin_inset Graphics
975 filename ../images/label-insert.png
982 You can now refer to the label using the menu
984 Insert\SpecialChar \menuseparator
991 or the toolbar button
992 \begin_inset Graphics
993 filename ../images/dialog-show-new-inset_ref.png
1000 It is important to use references to floats, rather than using vague references
1002 \begin_inset Quotes eld
1006 \begin_inset Quotes erd
1009 , because as LaTeX will reposition the floats in the final document, it
1011 \begin_inset Quotes eld
1015 \begin_inset Quotes erd
1019 \begin_inset Newline newline
1022 Referencing is explained in detail in section
1023 \begin_inset Space ~
1027 \begin_inset CommandInset ref
1029 reference "sec:Referencing-Floats"
1036 \begin_layout Standard
1037 Normally only one image is inserted to a figure float, but sometimes you
1038 might want to use two images with separate subcaptions.
1039 This can be set in the tab
1042 \begin_inset Space ~
1047 of the graphics dialog.
1048 Choose there the option
1052 and enter the subcaption for the image in the caption field.
1053 Note that only the main caption of the float is added to the List of Figures.
1054 \begin_inset Newline newline
1057 Referencing subfigures is explained in section
1058 \begin_inset Space ~
1062 \begin_inset CommandInset ref
1064 reference "sub:Referencing-Subfigures"
1071 \begin_layout Standard
1073 \begin_inset Space ~
1077 \begin_inset CommandInset ref
1079 reference "fig:Two-distorted-images"
1083 is an example of a figure float with two images set side by side.
1084 You can also set the images one below the other.
1087 \begin_layout Standard
1088 \begin_inset Float figure
1093 \begin_layout Plain Layout
1094 \begin_inset Space \hfill{}
1098 \begin_inset Float figure
1103 \begin_layout Plain Layout
1104 \begin_inset Caption
1106 \begin_layout Plain Layout
1107 Undefinable structure
1115 \begin_layout Plain Layout
1116 \begin_inset Graphics
1117 filename clipart/escher-lsd.eps
1129 \begin_inset Space \hfill{}
1133 \begin_inset Float figure
1138 \begin_layout Plain Layout
1139 \begin_inset Caption
1141 \begin_layout Plain Layout
1150 \begin_layout Plain Layout
1151 \begin_inset Graphics
1152 filename clipart/platypus.eps
1165 \begin_inset Space \hfill{}
1171 \begin_layout Plain Layout
1172 \begin_inset Caption
1174 \begin_layout Plain Layout
1175 \begin_inset CommandInset label
1177 name "fig:Two-distorted-images"
1181 Two distorted images.
1194 \begin_layout Section
1196 \begin_inset CommandInset label
1198 name "sec:Image-Formats"
1206 \begin_layout Plain Layout
1216 \begin_layout Plain Layout
1217 Figures ! Image Formats
1225 \begin_layout Standard
1226 You can insert images in any known file format.
1227 But as explained in appendix
1228 \begin_inset Space ~
1232 \begin_inset CommandInset ref
1234 reference "cha:Output-File-Formats"
1238 , every output document format allows only a few image formats.
1239 LyX uses therefore the program
1243 in the background to convert the images to the right format.
1244 To increase your work flow by avoiding these conversions in the background,
1245 you can use only the image formats that can directly be embedded in the
1247 The output file formats are explained in appendix
1248 \begin_inset Space ~
1252 \begin_inset CommandInset ref
1254 reference "cha:Output-File-Formats"
1261 \begin_layout Standard
1262 Similar to fonts there are two types of image formats:
1265 \begin_layout Description
1267 \begin_inset Space ~
1270 images consist of pixel values, often in a compressed form.
1271 They are therefore not fully scalable and look pixeled in large zooms.
1272 Well-known bitmap image formats are
1273 \begin_inset Quotes eld
1276 Graphics Interchange Format
1277 \begin_inset Quotes erd
1280 (GIF, file extension
1281 \begin_inset Quotes eld
1289 \begin_inset Quotes erd
1296 \begin_layout Plain Layout
1301 \begin_layout Plain Layout
1312 \begin_layout Plain Layout
1325 \begin_inset Quotes eld
1328 Portable Network Graphics
1329 \begin_inset Quotes erd
1332 (PNG, file extension
1333 \begin_inset Quotes eld
1341 \begin_inset Quotes erd
1348 \begin_layout Plain Layout
1353 \begin_layout Plain Layout
1364 \begin_layout Plain Layout
1377 \begin_inset Quotes eld
1380 Joint Photographic Experts Group
1381 \begin_inset Quotes erd
1384 (JPG, file extension
1385 \begin_inset Quotes eld
1393 \begin_inset Quotes erd
1397 \begin_inset Quotes eld
1405 \begin_inset Quotes erd
1412 \begin_layout Plain Layout
1417 \begin_layout Plain Layout
1428 \begin_layout Plain Layout
1443 \begin_layout Description
1445 \begin_inset Space ~
1448 images consist of vectors and can therefore be scaled to any size without
1450 The scaling ability is necessary if you want to create presentations, because
1451 presentations are always scaled by the video projector.
1452 Scaling is also useful for online documents to let the user zoom into diagrams.
1453 \begin_inset Newline newline
1456 Well-known scalable image formats are
1457 \begin_inset Quotes eld
1460 Scalable Vector Graphics
1461 \begin_inset Quotes erd
1464 (SVG, file extension
1465 \begin_inset Quotes eld
1473 \begin_inset Quotes erd
1480 \begin_layout Plain Layout
1485 \begin_layout Plain Layout
1496 \begin_layout Plain Layout
1509 \begin_inset Quotes eld
1512 Encapsulated PostScript
1513 \begin_inset Quotes erd
1516 (EPS, file extension
1517 \begin_inset Quotes eld
1525 \begin_inset Quotes erd
1532 \begin_layout Plain Layout
1537 \begin_layout Plain Layout
1548 \begin_layout Plain Layout
1561 \begin_inset Quotes eld
1564 Portable Document Format
1565 \begin_inset Quotes erd
1568 (PDF, file extension
1569 \begin_inset Quotes eld
1577 \begin_inset Quotes erd
1584 \begin_layout Plain Layout
1591 \begin_inset Quotes eld
1595 \begin_inset Quotes erd
1598 (WMF, file extension
1599 \begin_inset Quotes eld
1607 \begin_inset Quotes erd
1614 \begin_layout Plain Layout
1619 \begin_layout Plain Layout
1630 \begin_layout Plain Layout
1644 \begin_inset Quotes eld
1648 \begin_inset Quotes erd
1651 , because you can convert any bitmap image to a PDF or EPS-image and the
1652 result will still be a bitmap image.
1653 In this cases only a header with the image properties is added to the original
1658 \begin_layout Plain Layout
1659 In the case of PDF, the original image is additionally compressed.
1665 The PDF-files generated by
1669 are for example bitmap images.
1672 \begin_layout Standard
1673 Normally it is not possible to convert a bitmap image into a scalable one,
1675 Only the image formats PDF and EPS can directly be embedded to PDF and
1676 PostScript output files, respectively.
1677 SVG and WMF-images are recalculated to bitmaps when the output file is
1678 generated because there is currently no adequate WMF/SVG
1679 \begin_inset Formula $\to$
1682 PDF/EPS converter available.
1685 \begin_layout Chapter
1687 \begin_inset CommandInset label
1697 \begin_layout Plain Layout
1706 \begin_layout Section
1711 \begin_layout Plain Layout
1712 Table ! Introduction
1720 \begin_layout Standard
1721 You can insert a table using either the toolbar button
1722 \begin_inset Graphics
1723 filename ../images/tabular-insert.png
1731 Insert\SpecialChar \menuseparator
1735 The toolbar button offers you a graphical selection: Move the mouse to
1736 set the column/row number of the table that should be created and then
1737 press a mouse button.
1738 When you use the menu to create a table, a dialog will appear, asking you
1739 for the number of rows and columns.
1740 \begin_inset Newline newline
1743 The default table has lines around any cell and the first row appears separated
1744 from the rest of the table.
1745 This separation occurs due to a double line: The cells of the first row
1746 have a line below them and the cells of the second row have a line above
1748 Here is an example table:
1751 \begin_layout Standard
1753 \begin_inset Tabular
1754 <lyxtabular version="3" rows="4" columns="4">
1756 <column alignment="center" valignment="top" width="0">
1757 <column alignment="center" valignment="top" width="0">
1758 <column alignment="center" valignment="top" width="0">
1759 <column alignment="center" valignment="top" width="0">
1761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1764 \begin_layout Plain Layout
1770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1773 \begin_layout Plain Layout
1788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1791 \begin_layout Plain Layout
1797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1800 \begin_layout Plain Layout
1808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1811 \begin_layout Plain Layout
1826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1829 \begin_layout Plain Layout
1835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1838 \begin_layout Plain Layout
1844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1847 \begin_layout Plain Layout
1855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1858 \begin_layout Plain Layout
1873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1876 \begin_layout Plain Layout
1882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1885 \begin_layout Plain Layout
1891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1894 \begin_layout Plain Layout
1902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1905 \begin_layout Plain Layout
1920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1923 \begin_layout Plain Layout
1929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1932 \begin_layout Plain Layout
1938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1941 \begin_layout Plain Layout
1955 \begin_layout Section
1960 \begin_layout Plain Layout
1969 \begin_layout Standard
1970 You can alter a table by clicking on it with the right mouse button, which
1971 brings up the table dialog.
1972 Here you can adjust the settings of that cell and row/column respectively
1973 where the cursor is currently placed.
1974 Most of the dialog options also work on selections.
1975 This means if you select more cells, columns or rows, the action is done
1976 for the whole selection.
1977 Note that there is a difference between selecting the
1981 of the cell, and the cell itself.
1982 You can alter tables with the following tabs of the table dialog:
1985 \begin_layout Description
1989 \begin_inset Space ~
1994 Here you can set the horizontal alignment and the width of the current
1996 When you have set a width you can also adjust the vertical alignment of
1998 A given width will allow the cell to have line breaks and multiple paragraphs
1999 of text, see section
2000 \begin_inset Space ~
2004 \begin_inset CommandInset ref
2006 reference "sub:Multiple-Lines-in"
2011 If you set no width, the column is as wide as their widest cell content
2013 \begin_inset Newline newline
2016 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2018 \begin_inset Space ~
2022 \begin_inset CommandInset ref
2024 reference "sub:Multicolumns"
2029 \begin_inset Newline newline
2032 The rotate check boxes rotates the current cell, a selection, or the whole
2033 table counter-clockwise by 90°.
2034 The rotation is not shown within LyX, only in the output.
2035 \begin_inset Newline newline
2039 \begin_inset Note Greyedout
2042 \begin_layout Plain Layout
2047 Not all DVI-viewers are able to display rotations.
2053 \begin_inset Newline newline
2056 It is also possible to enter a LaTeX-argument which is needed for special
2057 table formattings, see section
2058 \begin_inset Space ~
2062 \begin_inset CommandInset ref
2064 reference "sub:Multicolumn-Calculations"
2069 \begin_inset CommandInset ref
2071 reference "sec:Colored-Tables"
2078 \begin_layout Description
2083 In this tab you can add and delete border lines for the current row/column.
2084 \begin_inset Newline newline
2087 Using the style option
2091 will convert the table to a formal table as described in section
2092 \begin_inset Space ~
2096 \begin_inset CommandInset ref
2098 reference "sec:Formal-Tables"
2103 \begin_inset Newline newline
2106 You can also add here space to table rows as decribed in section
2107 \begin_inset Space ~
2111 \begin_inset CommandInset ref
2113 reference "sub:Row-Spacing"
2120 \begin_layout Description
2125 This tab is to make a table a so called
2126 \begin_inset Quotes eld
2134 \begin_inset Quotes erd
2137 that can run over several pages.
2139 \begin_inset Space ~
2143 \begin_inset CommandInset ref
2145 reference "sec:Longtables"
2150 \begin_inset CommandInset ref
2152 reference "sec:Special-Longtable-Issues"
2156 describe the longtable features in detail.
2159 \begin_layout Standard
2160 When the table toolbar is opened, you can move the cursor with the arrow
2161 keys from cell to cell and the property of the current cell will immediately
2162 be displayed in the dialog.
2165 \begin_layout Section
2170 \begin_layout Plain Layout
2179 \begin_layout Standard
2180 The table toolbar is an alternative to the table dialog to be able to alter
2182 It should normally appear at the bottom of LyX's main window when the cursor
2184 You can alternatively switch it on to appear always, by right-clicking
2185 in LyX's main menu bar.
2188 \begin_layout Standard
2189 The toolbar has the following icons:
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Graphics
2195 filename ../images/tabular-feature_append-row.png
2200 adds a row below the current cell or selection
2203 \begin_layout Labeling
2204 \labelwidthstring 00.00.0000
2205 \begin_inset Graphics
2206 filename ../images/tabular-feature_append-column.png
2211 adds a column right beside the current cell or selection
2214 \begin_layout Labeling
2215 \labelwidthstring 00.00.0000
2216 \begin_inset Graphics
2217 filename ../images/tabular-feature_delete-row.png
2222 deletes the current row or selection
2225 \begin_layout Labeling
2226 \labelwidthstring 00.00.0000
2227 \begin_inset Graphics
2228 filename ../images/tabular-feature_delete-column.png
2233 deletes the current column or selection
2236 \begin_layout Labeling
2237 \labelwidthstring 00.00.0000
2238 \begin_inset Graphics
2239 filename ../images/tabular-feature_toggle-line-top.png
2244 adds a line at the top of the current cell / row or of a selection
2247 \begin_layout Labeling
2248 \labelwidthstring 00.00.0000
2249 \begin_inset Graphics
2250 filename ../images/tabular-feature_toggle-line-bottom.png
2255 adds a line at the bottom of the current cell / row or of a selection
2258 \begin_layout Labeling
2259 \labelwidthstring 00.00.0000
2260 \begin_inset Graphics
2261 filename ../images/tabular-feature_toggle-line-left.png
2266 adds a line at the left side of the current cell / row or of a selection
2269 \begin_layout Labeling
2270 \labelwidthstring 00.00.0000
2271 \begin_inset Graphics
2272 filename ../images/tabular-feature_toggle-line-right.png
2277 adds a line at the right side of the current cell / row or of a selection
2280 \begin_layout Labeling
2281 \labelwidthstring 00.00.0000
2282 \begin_inset Graphics
2283 filename ../images/tabular-feature_set-all-lines.png
2288 adds lines around the current or selected cells - if the current cell no
2289 multicolumn this also affects the current row and column
2292 \begin_layout Labeling
2293 \labelwidthstring 00.00.0000
2294 \begin_inset Graphics
2295 filename ../images/tabular-feature_unset-all-lines.png
2300 deletes all lines of the current or selected cells - if the current cell
2301 no multicolumn this also affects the current row and column
2304 \begin_layout Labeling
2305 \labelwidthstring 00.00.0000
2306 \begin_inset Graphics
2307 filename ../images/tabular-feature_align-left.png
2312 left-aligns the content of the current cell / column
2315 \begin_layout Labeling
2316 \labelwidthstring 00.00.0000
2317 \begin_inset Graphics
2318 filename ../images/tabular-feature_align-center.png
2323 centers the content of the current cell / column horizontally
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Graphics
2329 filename ../images/tabular-feature_align-right.png
2334 right-aligns the content of the current cell / column
2337 \begin_layout Labeling
2338 \labelwidthstring 00.00.0000
2339 \begin_inset Graphics
2340 filename ../images/tabular-feature_valign-top.png
2345 aligns the content of the current cell vertically to the top
2348 \begin_layout Labeling
2349 \labelwidthstring 00.00.0000
2350 \begin_inset Graphics
2351 filename ../images/tabular-feature_valign-middle.png
2356 centers the content of the current cell vertically
2359 \begin_layout Labeling
2360 \labelwidthstring 00.00.0000
2361 \begin_inset Graphics
2362 filename ../images/tabular-feature_valign-bottom.png
2367 aligns the content of the current cell vertically to the bottom
2370 \begin_layout Labeling
2371 \labelwidthstring 00.00.0000
2372 \begin_inset Graphics
2373 filename ../images/tabular-feature_set-rotate-cell.png
2378 rotates the current cell or selection counter-clockwise by 90°
2381 \begin_layout Labeling
2382 \labelwidthstring 00.00.0000
2383 \begin_inset Graphics
2384 filename ../images/tabular-feature_set-rotate-tabular.png
2389 rotates the whole table counter-clockwise by 90°
2392 \begin_layout Labeling
2393 \labelwidthstring 00.00.0000
2394 \begin_inset Graphics
2395 filename ../images/tabular-feature_multicolumn.png
2400 sets the current cell or selection as a multicolumn
2403 \begin_layout Standard
2404 \begin_inset Note Greyedout
2407 \begin_layout Plain Layout
2412 For the output the vertical alignment of the first cell in a row is used
2413 for all following cells in the row.
2421 \begin_layout Section
2426 \begin_layout Plain Layout
2435 \begin_layout Standard
2436 Additionally to the table dialog and toolbar, the menu
2438 Edit\SpecialChar \menuseparator
2441 allows you to add and delete border lines for the current row/column and
2442 to set the current selection as multicolumn.
2443 The menu is only available when the cursor is inside a table.
2446 \begin_layout Section
2448 \begin_inset CommandInset label
2450 name "sec:Table-Floats"
2458 \begin_layout Plain Layout
2468 \begin_layout Plain Layout
2477 \begin_layout Standard
2478 For general explanations about floats, have a look at section
2479 \begin_inset Space ~
2483 \begin_inset CommandInset ref
2485 reference "sec:FloatIntroduction"
2492 \begin_layout Standard
2493 \begin_inset Float table
2499 \begin_layout Plain Layout
2500 \begin_inset Caption
2502 \begin_layout Plain Layout
2503 \begin_inset CommandInset label
2505 name "tab:a table float"
2517 \begin_layout Plain Layout
2519 \begin_inset Tabular
2520 <lyxtabular version="3" rows="3" columns="3">
2522 <column alignment="center" valignment="top" width="0pt">
2523 <column alignment="center" valignment="top" width="0pt">
2524 <column alignment="center" valignment="top" width="0pt">
2526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2529 \begin_layout Plain Layout
2544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2547 \begin_layout Plain Layout
2562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2565 \begin_layout Plain Layout
2582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2585 \begin_layout Plain Layout
2600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2603 \begin_layout Plain Layout
2618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2621 \begin_layout Plain Layout
2638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2641 \begin_layout Plain Layout
2651 \begin_inset Formula $\int x^{2}dx$
2659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2662 \begin_layout Plain Layout
2672 \begin_inset Formula $\left[\begin{array}{cc}
2674 c & d\end{array}\right]$
2682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2685 \begin_layout Plain Layout
2695 \begin_inset Formula $1+1=2$
2716 \begin_layout Standard
2717 Table floats can be inserted using the menu
2719 Insert\SpecialChar \menuseparator
2720 Float\SpecialChar \menuseparator
2723 or the toolbar button
2724 \begin_inset Graphics
2725 filename ../images/float-insert_table.png
2734 \begin_layout Standard
2735 The float appears as a collapsible box with a caption that has the label
2737 \begin_inset Quotes eld
2741 \begin_inset Space ~
2745 \begin_inset Quotes erd
2748 (# is the actual table number).
2749 You can insert tables to the float above or below the caption.
2752 \begin_layout Standard
2754 \begin_inset Space ~
2758 \begin_inset CommandInset ref
2760 reference "tab:a table float"
2764 is an example table within a table float.
2767 \begin_layout Standard
2768 Having the caption above the table is the common rule that is unfortunately
2769 not supported in LaTeX's standard classes.
2770 That means if you are using the document classes
2786 there will be no space between the caption and the table.
2787 To insert the needed space, add the following option to the load command
2788 of the LaTeX-package
2796 \begin_layout Plain Layout
2797 LaTeX-packages ! caption
2802 in your document preamble
2806 \begin_layout Plain Layout
2807 For more information have a look at section
2808 \begin_inset Space ~
2812 \begin_inset CommandInset ref
2814 reference "sec:Caption-Placement"
2826 \begin_layout Standard
2832 \begin_layout Standard
2837 , which is described in section
2838 \begin_inset Space ~
2842 \begin_inset CommandInset ref
2844 reference "sec:Caption-Formatting"
2848 , is used to adjust the caption format.
2851 \begin_layout Standard
2855 \begin_layout Plain Layout
2856 References ! to Tables
2861 Tables can be cross-referenced in the text by referencing their label.
2862 To do this insert a label in the caption using the menu
2864 Insert\SpecialChar \menuseparator
2867 or the toolbar button
2868 \begin_inset Graphics
2869 filename ../images/label-insert.png
2876 You can now refer to the label using the menu
2878 Insert\SpecialChar \menuseparator
2880 \begin_inset Space ~
2885 or the toolbar button
2886 \begin_inset Graphics
2887 filename ../images/dialog-show-new-inset_ref.png
2894 \begin_inset Newline newline
2897 Referencing is explained in detail in section
2898 \begin_inset Space ~
2902 \begin_inset CommandInset ref
2904 reference "sec:Referencing-Floats"
2911 \begin_layout Section
2913 \begin_inset CommandInset label
2915 name "sec:Longtables"
2923 \begin_layout Plain Layout
2933 \begin_layout Plain Layout
2942 \begin_layout Standard
2943 If the table is too long to fit on one page, you can use the option
2946 \begin_inset Space ~
2950 \begin_inset Space ~
2959 of the table dialog to split the table automatically over more pages.
2960 Doing this enables some check boxes and you can now define:
2963 \begin_layout Description
2968 : The current row and all rows above, that don't have any special options
2969 defined, are defined to be the header rows of all pages of the longtable;
2970 except for the first page, if
2973 \begin_inset Space ~
2979 This therefore called the main header.
2982 \begin_layout Description
2986 \begin_inset Space ~
2991 : The current row and all rows above, that don't have any special options
2992 defined, are defined to be the header rows of the first page of the longtable.
2995 \begin_layout Description
3000 : The current row and all rows below, that don't have any special options
3001 defined, are defined to be the footer rows of all pages of the longtable;
3002 except for the last page, if
3005 \begin_inset Space ~
3013 \begin_layout Description
3017 \begin_inset Space ~
3022 : The current row and all rows below, that don't have any special options
3023 defined, are defined to be the footer rows of the last page of the longtable.
3026 \begin_layout Standard
3027 You can also specify a row where the table is splitted.
3028 If you set more than one option in the same table row, you should be aware
3029 of the fact that only the first one is used in the given table row.
3030 The others will then be defined as
3035 In this context, first means first in this order:
3042 \begin_inset Space ~
3045 header, Footer, Last
3046 \begin_inset Space ~
3052 See the following longtable to see how it works:
3055 \begin_layout Standard
3057 \begin_inset Tabular
3058 <lyxtabular version="3" rows="69" columns="3">
3059 <features islongtable="true">
3060 <column alignment="left" valignment="top" width="0cm">
3061 <column alignment="left" valignment="top" width="0pt">
3062 <column alignment="center" valignment="top" width="0pt">
3063 <row endfirsthead="true">
3064 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3067 \begin_layout Plain Layout
3070 Example Phone List (ignore the names)
3075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3078 \begin_layout Plain Layout
3084 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3087 \begin_layout Plain Layout
3094 <row endfirsthead="true">
3095 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3098 \begin_layout Plain Layout
3106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3109 \begin_layout Plain Layout
3115 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3118 \begin_layout Plain Layout
3127 <row endhead="true">
3128 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3131 \begin_layout Plain Layout
3139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3142 \begin_layout Plain Layout
3148 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3151 \begin_layout Plain Layout
3158 <row endhead="true">
3159 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3162 \begin_layout Plain Layout
3170 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3173 \begin_layout Plain Layout
3179 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3182 \begin_layout Plain Layout
3191 <row endfoot="true">
3192 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3195 \begin_layout Plain Layout
3196 continued on next page
3201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3204 \begin_layout Plain Layout
3210 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3213 \begin_layout Plain Layout
3221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3224 \begin_layout Plain Layout
3232 <cell alignment="center" valignment="top" usebox="none">
3235 \begin_layout Plain Layout
3241 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3244 \begin_layout Plain Layout
3252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3255 \begin_layout Plain Layout
3263 <cell alignment="center" valignment="top" usebox="none">
3266 \begin_layout Plain Layout
3272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3275 \begin_layout Plain Layout
3283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3286 \begin_layout Plain Layout
3294 <cell alignment="center" valignment="top" usebox="none">
3297 \begin_layout Plain Layout
3303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3306 \begin_layout Plain Layout
3314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3317 \begin_layout Plain Layout
3325 <cell alignment="center" valignment="top" usebox="none">
3328 \begin_layout Plain Layout
3334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3337 \begin_layout Plain Layout
3345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3348 \begin_layout Plain Layout
3356 <cell alignment="center" valignment="top" usebox="none">
3359 \begin_layout Plain Layout
3365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3368 \begin_layout Plain Layout
3376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3379 \begin_layout Plain Layout
3387 <cell alignment="center" valignment="top" usebox="none">
3390 \begin_layout Plain Layout
3396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3399 \begin_layout Plain Layout
3407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3410 \begin_layout Plain Layout
3418 <cell alignment="center" valignment="top" usebox="none">
3421 \begin_layout Plain Layout
3427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3430 \begin_layout Plain Layout
3438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3441 \begin_layout Plain Layout
3449 <cell alignment="center" valignment="top" usebox="none">
3452 \begin_layout Plain Layout
3458 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3461 \begin_layout Plain Layout
3469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3472 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" usebox="none">
3483 \begin_layout Plain Layout
3489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3492 \begin_layout Plain Layout
3500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3503 \begin_layout Plain Layout
3511 <cell alignment="center" valignment="top" usebox="none">
3514 \begin_layout Plain Layout
3520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3523 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3534 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" usebox="none">
3545 \begin_layout Plain Layout
3551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3554 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3565 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" usebox="none">
3576 \begin_layout Plain Layout
3582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3585 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3596 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" usebox="none">
3607 \begin_layout Plain Layout
3613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3616 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3627 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" usebox="none">
3638 \begin_layout Plain Layout
3644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3647 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3658 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" usebox="none">
3669 \begin_layout Plain Layout
3675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3678 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3689 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" usebox="none">
3700 \begin_layout Plain Layout
3706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3709 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3720 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" usebox="none">
3731 \begin_layout Plain Layout
3737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3740 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3751 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" usebox="none">
3762 \begin_layout Plain Layout
3768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3771 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3782 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" usebox="none">
3793 \begin_layout Plain Layout
3799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3802 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3813 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" usebox="none">
3824 \begin_layout Plain Layout
3830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3833 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3844 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" usebox="none">
3855 \begin_layout Plain Layout
3861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3864 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3875 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" usebox="none">
3886 \begin_layout Plain Layout
3892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3895 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3906 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" usebox="none">
3917 \begin_layout Plain Layout
3923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3926 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3937 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" usebox="none">
3948 \begin_layout Plain Layout
3954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3957 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3968 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" usebox="none">
3979 \begin_layout Plain Layout
3985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3988 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3999 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" usebox="none">
4010 \begin_layout Plain Layout
4016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4019 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4030 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" usebox="none">
4041 \begin_layout Plain Layout
4047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4050 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4061 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" usebox="none">
4072 \begin_layout Plain Layout
4078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4081 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4092 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" usebox="none">
4103 \begin_layout Plain Layout
4109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4112 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" usebox="none">
4134 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4143 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4154 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4165 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4174 \begin_layout Plain Layout
4182 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4185 \begin_layout Plain Layout
4191 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4194 \begin_layout Plain Layout
4200 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4203 \begin_layout Plain Layout
4211 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4214 \begin_layout Plain Layout
4222 <cell alignment="center" valignment="top" usebox="none">
4225 \begin_layout Plain Layout
4231 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4234 \begin_layout Plain Layout
4242 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4245 \begin_layout Plain Layout
4253 <cell alignment="center" valignment="top" usebox="none">
4256 \begin_layout Plain Layout
4262 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4265 \begin_layout Plain Layout
4273 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4276 \begin_layout Plain Layout
4284 <cell alignment="center" valignment="top" usebox="none">
4287 \begin_layout Plain Layout
4293 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4296 \begin_layout Plain Layout
4304 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4307 \begin_layout Plain Layout
4315 <cell alignment="center" valignment="top" usebox="none">
4318 \begin_layout Plain Layout
4324 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4327 \begin_layout Plain Layout
4335 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4338 \begin_layout Plain Layout
4346 <cell alignment="center" valignment="top" usebox="none">
4349 \begin_layout Plain Layout
4355 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4358 \begin_layout Plain Layout
4366 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4369 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" usebox="none">
4380 \begin_layout Plain Layout
4386 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4389 \begin_layout Plain Layout
4397 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4400 \begin_layout Plain Layout
4408 <cell alignment="center" valignment="top" usebox="none">
4411 \begin_layout Plain Layout
4417 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4420 \begin_layout Plain Layout
4428 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4431 \begin_layout Plain Layout
4439 <cell alignment="center" valignment="top" usebox="none">
4442 \begin_layout Plain Layout
4448 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4451 \begin_layout Plain Layout
4459 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4462 \begin_layout Plain Layout
4470 <cell alignment="center" valignment="top" usebox="none">
4473 \begin_layout Plain Layout
4479 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4482 \begin_layout Plain Layout
4490 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4493 \begin_layout Plain Layout
4501 <cell alignment="center" valignment="top" usebox="none">
4504 \begin_layout Plain Layout
4510 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4513 \begin_layout Plain Layout
4521 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4524 \begin_layout Plain Layout
4532 <cell alignment="center" valignment="top" usebox="none">
4535 \begin_layout Plain Layout
4541 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4544 \begin_layout Plain Layout
4552 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4555 \begin_layout Plain Layout
4563 <cell alignment="center" valignment="top" usebox="none">
4566 \begin_layout Plain Layout
4572 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4575 \begin_layout Plain Layout
4583 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4586 \begin_layout Plain Layout
4594 <cell alignment="center" valignment="top" usebox="none">
4597 \begin_layout Plain Layout
4603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4606 \begin_layout Plain Layout
4614 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4617 \begin_layout Plain Layout
4625 <cell alignment="center" valignment="top" usebox="none">
4628 \begin_layout Plain Layout
4634 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4637 \begin_layout Plain Layout
4645 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4648 \begin_layout Plain Layout
4656 <cell alignment="center" valignment="top" usebox="none">
4659 \begin_layout Plain Layout
4665 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4668 \begin_layout Plain Layout
4676 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4679 \begin_layout Plain Layout
4687 <cell alignment="center" valignment="top" usebox="none">
4690 \begin_layout Plain Layout
4696 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4699 \begin_layout Plain Layout
4707 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4710 \begin_layout Plain Layout
4718 <cell alignment="center" valignment="top" usebox="none">
4721 \begin_layout Plain Layout
4727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4730 \begin_layout Plain Layout
4738 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4741 \begin_layout Plain Layout
4749 <cell alignment="center" valignment="top" usebox="none">
4752 \begin_layout Plain Layout
4758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4761 \begin_layout Plain Layout
4769 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4772 \begin_layout Plain Layout
4780 <cell alignment="center" valignment="top" usebox="none">
4783 \begin_layout Plain Layout
4789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4792 \begin_layout Plain Layout
4800 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4803 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" usebox="none">
4814 \begin_layout Plain Layout
4820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4823 \begin_layout Plain Layout
4831 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4834 \begin_layout Plain Layout
4842 <cell alignment="center" valignment="top" usebox="none">
4845 \begin_layout Plain Layout
4851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4854 \begin_layout Plain Layout
4862 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4865 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" usebox="none">
4876 \begin_layout Plain Layout
4882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4885 \begin_layout Plain Layout
4893 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4896 \begin_layout Plain Layout
4904 <cell alignment="center" valignment="top" usebox="none">
4907 \begin_layout Plain Layout
4913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4916 \begin_layout Plain Layout
4924 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4927 \begin_layout Plain Layout
4935 <cell alignment="center" valignment="top" usebox="none">
4938 \begin_layout Plain Layout
4944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4947 \begin_layout Plain Layout
4955 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4958 \begin_layout Plain Layout
4966 <cell alignment="center" valignment="top" usebox="none">
4969 \begin_layout Plain Layout
4975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4978 \begin_layout Plain Layout
4986 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4989 \begin_layout Plain Layout
4997 <cell alignment="center" valignment="top" usebox="none">
5000 \begin_layout Plain Layout
5006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5009 \begin_layout Plain Layout
5017 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5020 \begin_layout Plain Layout
5028 <cell alignment="center" valignment="top" usebox="none">
5031 \begin_layout Plain Layout
5037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5040 \begin_layout Plain Layout
5048 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5051 \begin_layout Plain Layout
5059 <cell alignment="center" valignment="top" usebox="none">
5062 \begin_layout Plain Layout
5068 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5071 \begin_layout Plain Layout
5079 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5082 \begin_layout Plain Layout
5090 <cell alignment="center" valignment="top" usebox="none">
5093 \begin_layout Plain Layout
5099 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5102 \begin_layout Plain Layout
5110 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5113 \begin_layout Plain Layout
5121 <cell alignment="center" valignment="top" usebox="none">
5124 \begin_layout Plain Layout
5130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5133 \begin_layout Plain Layout
5141 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5144 \begin_layout Plain Layout
5152 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5155 \begin_layout Plain Layout
5161 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5164 \begin_layout Plain Layout
5171 <row endlastfoot="true">
5172 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5175 \begin_layout Plain Layout
5181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5184 \begin_layout Plain Layout
5190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5193 \begin_layout Plain Layout
5208 \begin_layout Plain Layout
5212 addtocounter{table}{-1}
5218 \begin_inset Note Note
5221 \begin_layout Plain Layout
5222 See greyed-out note in section
5223 \begin_inset Space ~
5227 \begin_inset CommandInset ref
5229 reference "sub:Longtable-Captions"
5233 for an explanation of this command.
5241 \begin_layout Subsection
5242 Footnotes in Longtables
5243 \begin_inset CommandInset label
5245 name "sub:Footnotes-in-Longtables"
5253 \begin_layout Plain Layout
5254 Longtables ! Footnotes
5262 \begin_layout Standard
5263 Footnotes can be inserted to every longtable cell.
5264 They appear at the bottom of the page where the table cell with the footnote
5267 \begin_inset Space ~
5271 \begin_inset CommandInset ref
5273 reference "tab:DiffCaptions"
5277 has for example a footnote.
5280 \begin_layout Subsection
5285 \begin_layout Plain Layout
5286 Longtables ! Alignment
5294 \begin_layout Standard
5295 Longtables are by default centered.
5296 In contrary to the alignment of the table columns and row, the table alignment
5297 can currently not be changed in the table dialog.
5298 To change the alignment of longtables you have to change the value of the
5311 by inserting this line as TeX-Code before the corresponding longtable:
5314 \begin_layout Standard
5324 \begin_layout Standard
5325 Where the value can have any of the units listed in Table
5326 \begin_inset Space ~
5330 \begin_inset CommandInset ref
5332 reference "tab:Units"
5343 controls the horizontal distance from the left page border to the longtable,
5350 the distance from the right side.
5351 The default value for both lengths is
5357 , which is in this case the same as an horizontal fill in LyX.
5360 \begin_layout Standard
5361 The following longtable was left-aligned by setting
5368 \begin_inset Space \thinspace{}
5375 \begin_layout Plain Layout
5389 \begin_layout Standard
5390 \begin_inset Tabular
5391 <lyxtabular version="3" rows="5" columns="5">
5392 <features islongtable="true">
5393 <column alignment="center" valignment="top" width="0">
5394 <column alignment="center" valignment="top" width="0">
5395 <column alignment="center" valignment="top" width="0">
5396 <column alignment="center" valignment="top" width="0">
5397 <column alignment="center" valignment="top" width="0">
5399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5402 \begin_layout Plain Layout
5408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5411 \begin_layout Plain Layout
5417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5420 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5429 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5438 \begin_layout Plain Layout
5446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5449 \begin_layout Plain Layout
5455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5458 \begin_layout Plain Layout
5464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5476 \begin_layout Plain Layout
5482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5485 \begin_layout Plain Layout
5493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5496 \begin_layout Plain Layout
5502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5505 \begin_layout Plain Layout
5511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5514 \begin_layout Plain Layout
5520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5523 \begin_layout Plain Layout
5529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5532 \begin_layout Plain Layout
5540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5543 \begin_layout Plain Layout
5549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5552 \begin_layout Plain Layout
5558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5561 \begin_layout Plain Layout
5567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5570 \begin_layout Plain Layout
5576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5579 \begin_layout Plain Layout
5587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5590 \begin_layout Plain Layout
5596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5599 \begin_layout Plain Layout
5605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5608 \begin_layout Plain Layout
5614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5617 \begin_layout Plain Layout
5623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5626 \begin_layout Plain Layout
5641 \begin_layout Plain Layout
5657 \begin_layout Subsection
5662 \begin_layout Plain Layout
5663 Longtables ! Captions
5669 \begin_inset CommandInset label
5671 name "sub:Longtable-Captions"
5678 \begin_layout Standard
5679 A longtable cannot be put into a table float because floats can only be
5680 on one page but the caption environment of floats can also be used for
5684 \begin_layout Standard
5685 As LyX does not yet fully support captions in longtables, a hack is needed
5689 \begin_layout Enumerate
5695 \begin_layout Enumerate
5696 Mark the first row and disable its upper line.
5699 \begin_layout Enumerate
5700 Insert a caption via the menu
5702 Insert\SpecialChar \menuseparator
5705 into the first table cell.
5706 \begin_inset Newline newline
5709 You can also add a short title for the caption.
5712 \begin_layout Enumerate
5714 \begin_inset Quotes eld
5726 \begin_inset Quotes erd
5729 as TeX-Code behind the caption.
5732 \begin_layout Standard
5733 A short title that will appear in the LOT instead of the full title.
5742 behind the caption omits the vertical lines between the following cells
5744 The first table row is now only a dummy row for the caption, the actual
5745 table starts with the second row.
5748 \begin_layout Standard
5749 Here is a short longtable to see how it works:
5752 \begin_layout Standard
5753 \begin_inset Tabular
5754 <lyxtabular version="3" rows="6" columns="5">
5755 <features islongtable="true">
5756 <column alignment="center" valignment="top" width="0">
5757 <column alignment="center" valignment="top" width="0">
5758 <column alignment="center" valignment="top" width="0">
5759 <column alignment="center" valignment="top" width="0">
5760 <column alignment="center" valignment="top" width="0">
5761 <row caption="true">
5762 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5765 \begin_layout Plain Layout
5766 \begin_inset Caption
5768 \begin_layout Plain Layout
5769 Longtable with caption
5773 \begin_layout Plain Layout
5789 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5792 \begin_layout Plain Layout
5798 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5819 \begin_layout Plain Layout
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5839 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5866 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5886 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5913 \begin_layout Plain Layout
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5924 \begin_layout Plain Layout
5930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5933 \begin_layout Plain Layout
5939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5942 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5960 \begin_layout Plain Layout
5968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5971 \begin_layout Plain Layout
5977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5980 \begin_layout Plain Layout
5986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5989 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6007 \begin_layout Plain Layout
6015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6018 \begin_layout Plain Layout
6024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6027 \begin_layout Plain Layout
6033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6036 \begin_layout Plain Layout
6042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6045 \begin_layout Plain Layout
6051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6054 \begin_layout Plain Layout
6068 \begin_layout Standard
6069 \begin_inset VSpace medskip
6073 \begin_inset Note Greyedout
6076 \begin_layout Plain Layout
6081 The table number is increased for every longtable, also if you didn't set
6083 For this reason you could have the case that e.g.
6085 \begin_inset Space ~
6088 2.4 follows on Table
6089 \begin_inset Space ~
6092 2.1 in the list of tables if there are two longtables without captions.
6093 To avoid this you can add the following command in TeX-Code behind every
6094 longtable without a caption:
6097 \begin_layout Plain Layout
6102 addtocounter{table}{-1}
6110 \begin_layout Standard
6111 \begin_inset Note Greyedout
6114 \begin_layout Plain Layout
6119 If you are using the LaTeX-package
6127 \begin_layout Plain Layout
6128 LaTeX-packages ! hyperref
6133 to link cross-references, the link to a longtable caption will always point
6134 to the beginning of the document.
6142 \begin_layout Standard
6143 \begin_inset Newpage newpage
6149 \begin_layout Subsubsection
6150 References to Longtables
6154 \begin_layout Plain Layout
6155 Longtables ! References
6163 \begin_layout Standard
6164 \begin_inset Tabular
6165 <lyxtabular version="3" rows="6" columns="5">
6166 <features islongtable="true">
6167 <column alignment="center" valignment="top" width="0">
6168 <column alignment="center" valignment="top" width="0">
6169 <column alignment="center" valignment="top" width="0">
6170 <column alignment="center" valignment="top" width="0">
6171 <column alignment="center" valignment="top" width="0">
6172 <row caption="true">
6173 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6176 \begin_layout Plain Layout
6177 \begin_inset Caption
6179 \begin_layout Plain Layout
6180 Referenced longtable
6181 \begin_inset CommandInset label
6183 name "tab:RefExample"
6197 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6200 \begin_layout Plain Layout
6206 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6209 \begin_layout Plain Layout
6215 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6218 \begin_layout Plain Layout
6224 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6227 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Plain Layout
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6274 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6303 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6312 \begin_layout Plain Layout
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6321 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6350 \begin_layout Plain Layout
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Plain Layout
6365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6368 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6388 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6397 \begin_layout Plain Layout
6403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6406 \begin_layout Plain Layout
6412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6415 \begin_layout Plain Layout
6423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6426 \begin_layout Plain Layout
6432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6435 \begin_layout Plain Layout
6441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6444 \begin_layout Plain Layout
6450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6453 \begin_layout Plain Layout
6459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6462 \begin_layout Plain Layout
6476 \begin_layout Standard
6477 To reference a longtable, insert a label into the caption.
6478 Note that you have to add the label prefix
6479 \begin_inset Quotes eld
6487 \begin_inset Quotes eld
6490 manually in the label field.
6493 \begin_layout Standard
6494 This is a reference to Table
6495 \begin_inset Space ~
6499 \begin_inset CommandInset ref
6501 reference "tab:RefExample"
6508 \begin_layout Standard
6509 The caption layout can be set together with all other caption of your document
6510 using the LaTeX-package
6518 \begin_layout Plain Layout
6519 LaTeX-packages ! caption
6525 \begin_inset Space ~
6529 \begin_inset CommandInset ref
6531 reference "sec:Caption-Formatting"
6538 \begin_layout Subsubsection
6543 \begin_layout Plain Layout
6544 Longtables ! Caption Width
6552 \begin_layout Standard
6553 The maximal width of of caption lines is defined by the length
6560 Its default value is 4
6561 \begin_inset Space \thinspace{}
6565 To change it add the following command to your document preamble or as
6566 TeX-Code into your document before the longtable that should be affected
6569 \begin_layout Standard
6579 \begin_layout Standard
6580 where the width could have one of the units listed in appendix
6581 \begin_inset Space ~
6585 \begin_inset CommandInset ref
6587 reference "cha:Units-available-in"
6594 \begin_layout Standard
6595 The following tables show the difference:
6598 \begin_layout Standard
6599 \begin_inset Tabular
6600 <lyxtabular version="3" rows="6" columns="5">
6601 <features islongtable="true">
6602 <column alignment="center" valignment="top" width="0">
6603 <column alignment="center" valignment="top" width="0">
6604 <column alignment="center" valignment="top" width="0">
6605 <column alignment="center" valignment="top" width="0">
6606 <column alignment="center" valignment="top" width="0">
6607 <row caption="true">
6608 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6611 \begin_layout Plain Layout
6612 \begin_inset Caption
6614 \begin_layout Plain Layout
6615 long full title with default width long full title with default width long
6616 full title with default width
6620 \begin_layout Plain Layout
6621 caption with default width
6636 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6648 \begin_layout Plain Layout
6654 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6666 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6695 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6713 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6742 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6760 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6771 \begin_layout Plain Layout
6777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6780 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6789 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6798 \begin_layout Plain Layout
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6807 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6818 \begin_layout Plain Layout
6824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6827 \begin_layout Plain Layout
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6836 \begin_layout Plain Layout
6842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6845 \begin_layout Plain Layout
6851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6854 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6865 \begin_layout Plain Layout
6871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6874 \begin_layout Plain Layout
6880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6883 \begin_layout Plain Layout
6889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6892 \begin_layout Plain Layout
6898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6901 \begin_layout Plain Layout
6915 \begin_layout Standard
6919 \begin_layout Plain Layout
6931 \begin_inset Tabular
6932 <lyxtabular version="3" rows="6" columns="5">
6933 <features islongtable="true">
6934 <column alignment="center" valignment="top" width="0">
6935 <column alignment="center" valignment="top" width="0">
6936 <column alignment="center" valignment="top" width="0">
6937 <column alignment="center" valignment="top" width="0">
6938 <column alignment="center" valignment="top" width="0">
6939 <row caption="true">
6940 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6943 \begin_layout Plain Layout
6944 \begin_inset Caption
6946 \begin_layout Plain Layout
6947 long full title with width set to 5
6948 \begin_inset Space \thinspace{}
6951 cm long full title with width set to 5
6952 \begin_inset Space \thinspace{}
6955 cm long full title with width set to 5
6956 \begin_inset Space \thinspace{}
6963 \begin_layout Plain Layout
6965 \begin_inset Space \thinspace{}
6969 \begin_inset Space \thinspace{}
6973 \begin_inset Space \thinspace{}
6991 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6994 \begin_layout Plain Layout
7000 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7003 \begin_layout Plain Layout
7009 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7012 \begin_layout Plain Layout
7018 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7021 \begin_layout Plain Layout
7029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7032 \begin_layout Plain Layout
7038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7041 \begin_layout Plain Layout
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7050 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7068 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7088 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7115 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7135 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7162 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7182 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7209 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7220 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7229 \begin_layout Plain Layout
7235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7238 \begin_layout Plain Layout
7244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7247 \begin_layout Plain Layout
7253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7256 \begin_layout Plain Layout
7270 \begin_layout Standard
7274 \begin_layout Plain Layout
7288 \begin_layout Standard
7289 \begin_inset Note Greyedout
7292 \begin_layout Plain Layout
7297 When the LaTeX-package
7305 \begin_layout Plain Layout
7306 LaTeX-packages ! caption
7311 is used, as in this document, the full page width is used for the caption
7312 when you use the default value of 4
7313 \begin_inset Space \thinspace{}
7323 To get in this case exactly a 4
7324 \begin_inset Space \thinspace{}
7327 in wide caption, you can either use a value slightly different from 4.0
7328 \begin_inset Space \thinspace{}
7333 \begin_inset Space \thinspace{}
7336 in, or the LaTeX-command
7340 captionsetup{width=value}
7342 that is provided by the
7354 \begin_layout Subsubsection
7355 Different Captions for Table Pages
7359 \begin_layout Plain Layout
7360 Longtables ! Different Captions for Pages
7368 \begin_layout Standard
7369 When the other captions should differ from the one of the first table page,
7370 insert a caption with a non-empty short title in a dummy caption row marked
7372 The caption used for the other table pages is inserted as caption without
7373 a short title in a dummy caption row that is marked as main header.
7374 When this caption shouldn't include the table number, use the command
7377 \begin_layout Standard
7382 caption*{caption text}
7385 \begin_layout Standard
7386 instead of LyX's caption box.
7387 The label to reference the table is inserted into the caption of the first
7390 \begin_inset Space ~
7394 \begin_inset CommandInset ref
7396 reference "tab:DiffCaptions"
7400 is an example for a longtable with different heading where the second caption
7401 doesn't include the table number.
7404 \begin_layout Standard
7406 \begin_inset Tabular
7407 <lyxtabular version="3" rows="59" columns="3">
7408 <features islongtable="true">
7409 <column alignment="left" valignment="top" width="0cm">
7410 <column alignment="left" valignment="top" width="0pt">
7411 <column alignment="center" valignment="top" width="0pt">
7412 <row endfirsthead="true" caption="true">
7413 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7416 \begin_layout Plain Layout
7417 \begin_inset Caption
7419 \begin_layout Plain Layout
7421 \begin_inset CommandInset label
7423 name "tab:DiffCaptions"
7431 \begin_layout Plain Layout
7447 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7459 \begin_layout Plain Layout
7466 <row endfirsthead="true">
7467 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7470 \begin_layout Plain Layout
7473 Example Phone List (ignore the names)
7478 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Plain Layout
7497 <row endfirsthead="true">
7498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7501 \begin_layout Plain Layout
7509 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7512 \begin_layout Plain Layout
7518 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7521 \begin_layout Plain Layout
7530 <row endhead="true" caption="true">
7531 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7534 \begin_layout Plain Layout
7538 \begin_layout Plain Layout
7542 caption*{Continued Example Phone List}
7556 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7559 \begin_layout Plain Layout
7565 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7568 \begin_layout Plain Layout
7575 <row endhead="true">
7576 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7579 \begin_layout Plain Layout
7587 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7590 \begin_layout Plain Layout
7596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7599 \begin_layout Plain Layout
7606 <row endhead="true">
7607 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7610 \begin_layout Plain Layout
7618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7621 \begin_layout Plain Layout
7627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7630 \begin_layout Plain Layout
7639 <row endfoot="true">
7640 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7643 \begin_layout Plain Layout
7644 continued on next page
7649 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7652 \begin_layout Plain Layout
7658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7661 \begin_layout Plain Layout
7669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7672 \begin_layout Plain Layout
7680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7683 \begin_layout Plain Layout
7689 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7692 \begin_layout Plain Layout
7700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7703 \begin_layout Plain Layout
7711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7714 \begin_layout Plain Layout
7720 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7723 \begin_layout Plain Layout
7731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7734 \begin_layout Plain Layout
7742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7745 \begin_layout Plain Layout
7751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7754 \begin_layout Plain Layout
7762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7765 \begin_layout Plain Layout
7773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7776 \begin_layout Plain Layout
7782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7785 \begin_layout Plain Layout
7793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7796 \begin_layout Plain Layout
7804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7807 \begin_layout Plain Layout
7813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7816 \begin_layout Plain Layout
7824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7827 \begin_layout Plain Layout
7835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7838 \begin_layout Plain Layout
7844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7847 \begin_layout Plain Layout
7855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7858 \begin_layout Plain Layout
7866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7869 \begin_layout Plain Layout
7875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7878 \begin_layout Plain Layout
7886 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7889 \begin_layout Plain Layout
7897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7900 \begin_layout Plain Layout
7906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7909 \begin_layout Plain Layout
7917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7920 \begin_layout Plain Layout
7928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7931 \begin_layout Plain Layout
7937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7940 \begin_layout Plain Layout
7948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7951 \begin_layout Plain Layout
7959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7962 \begin_layout Plain Layout
7968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7971 \begin_layout Plain Layout
7979 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7982 \begin_layout Plain Layout
7990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7993 \begin_layout Plain Layout
7999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8002 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8013 \begin_layout Plain Layout
8021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8024 \begin_layout Plain Layout
8030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8033 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8044 \begin_layout Plain Layout
8052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8064 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8075 \begin_layout Plain Layout
8083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8086 \begin_layout Plain Layout
8092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8095 \begin_layout Plain Layout
8103 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8106 \begin_layout Plain Layout
8115 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8129 \begin_layout Plain Layout
8135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8138 \begin_layout Plain Layout
8146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8149 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8160 \begin_layout Plain Layout
8166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8169 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8191 \begin_layout Plain Layout
8197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8200 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8222 \begin_layout Plain Layout
8228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8231 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8253 \begin_layout Plain Layout
8259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8262 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8284 \begin_layout Plain Layout
8290 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8293 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8315 \begin_layout Plain Layout
8321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8324 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8346 \begin_layout Plain Layout
8352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8355 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8377 \begin_layout Plain Layout
8383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8386 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8408 \begin_layout Plain Layout
8414 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8417 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8445 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8448 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8476 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8479 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8490 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8501 \begin_layout Plain Layout
8507 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8510 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8521 \begin_layout Plain Layout
8529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8532 \begin_layout Plain Layout
8538 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8541 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8552 \begin_layout Plain Layout
8560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8563 \begin_layout Plain Layout
8569 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8572 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8603 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8625 \begin_layout Plain Layout
8631 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8634 \begin_layout Plain Layout
8642 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8645 \begin_layout Plain Layout
8651 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8654 \begin_layout Plain Layout
8660 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8663 \begin_layout Plain Layout
8671 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8674 \begin_layout Plain Layout
8682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8685 \begin_layout Plain Layout
8691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Plain Layout
8702 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8705 \begin_layout Plain Layout
8713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8716 \begin_layout Plain Layout
8722 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8725 \begin_layout Plain Layout
8733 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8736 \begin_layout Plain Layout
8744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8747 \begin_layout Plain Layout
8753 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8756 \begin_layout Plain Layout
8764 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8767 \begin_layout Plain Layout
8775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8778 \begin_layout Plain Layout
8784 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8787 \begin_layout Plain Layout
8795 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8798 \begin_layout Plain Layout
8806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8809 \begin_layout Plain Layout
8815 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8818 \begin_layout Plain Layout
8826 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8829 \begin_layout Plain Layout
8837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8840 \begin_layout Plain Layout
8846 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8849 \begin_layout Plain Layout
8857 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8860 \begin_layout Plain Layout
8868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8871 \begin_layout Plain Layout
8877 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8880 \begin_layout Plain Layout
8888 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8891 \begin_layout Plain Layout
8899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8902 \begin_layout Plain Layout
8908 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8911 \begin_layout Plain Layout
8919 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8922 \begin_layout Plain Layout
8930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8933 \begin_layout Plain Layout
8939 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8942 \begin_layout Plain Layout
8950 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8953 \begin_layout Plain Layout
8961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8964 \begin_layout Plain Layout
8970 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8973 \begin_layout Plain Layout
8981 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8984 \begin_layout Plain Layout
8992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8995 \begin_layout Plain Layout
9001 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9004 \begin_layout Plain Layout
9012 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9015 \begin_layout Plain Layout
9023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9026 \begin_layout Plain Layout
9032 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9035 \begin_layout Plain Layout
9043 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9046 \begin_layout Plain Layout
9054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9057 \begin_layout Plain Layout
9063 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9066 \begin_layout Plain Layout
9074 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9077 \begin_layout Plain Layout
9085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9088 \begin_layout Plain Layout
9094 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9097 \begin_layout Plain Layout
9105 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9125 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9128 \begin_layout Plain Layout
9136 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9156 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9159 \begin_layout Plain Layout
9167 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9187 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9190 \begin_layout Plain Layout
9198 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9218 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9221 \begin_layout Plain Layout
9229 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9249 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9252 \begin_layout Plain Layout
9260 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9263 \begin_layout Plain Layout
9271 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9274 \begin_layout Plain Layout
9280 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9283 \begin_layout Plain Layout
9297 \begin_layout Section
9298 Special Longtable Issues
9299 \begin_inset CommandInset label
9301 name "sec:Special-Longtable-Issues"
9308 \begin_layout Subsection
9309 Longtable Calculation
9313 \begin_layout Plain Layout
9314 Longtables ! Calculation
9322 \begin_layout Standard
9323 LaTeX calculates the height of table pages and their page breaks using so
9325 Chunks are pieces of the tables that are at once in LaTeX's memory.
9326 The default value is historically set to only 20 table rows.
9327 If you are using longtables with many pages this may slow down the creation
9329 You can safely increase the chunk size to values of 100-1000 by adding
9330 this command line to your document preamble:
9333 \begin_layout Standard
9338 setcounter{LTchunksize}{100}
9341 \begin_layout Subsection
9342 Floats and Longtables
9346 \begin_layout Plain Layout
9355 \begin_layout Standard
9356 There might be problems when a float appears on the same page where a longtable
9358 To avoid such situation, add the command
9364 as TeX-Code before your longtable.
9367 \begin_layout Subsection
9372 \begin_layout Plain Layout
9373 Longtables ! Forced Page Breaks
9381 \begin_layout Standard
9382 By default tables are only broken between rows.
9383 If you have a cell with multiples lines and want to have a page break within
9384 the cell, insert the new line command
9385 \begin_inset Quotes eld
9397 \begin_inset Quotes erd
9400 as TeX-Code at this point of the cell where it should be broken.
9409 command you have to insert in TeX-Code so many
9410 \begin_inset Quotes eld
9418 \begin_inset Quotes erd
9421 characters like the number of the following table columns.
9426 is the character to separate table cells.
9427 Write in TeX-Code after each
9431 the content of the corresponding following cell and delete the content
9433 \begin_inset Newline newline
9444 command, insert so many
9448 characters like the number of table columns before the current column.
9450 \begin_inset Space ~
9454 \begin_inset CommandInset ref
9456 reference "tab:ForcedPagebreak"
9460 the cell that should be broken is in the second column followed by another
9462 Therefore the following command was inserted in the cell as TeX-Code behind
9464 \begin_inset Quotes eld
9472 \begin_inset Quotes erd
9478 \begin_layout Standard
9486 \begin_inset Newline newline
9492 \begin_layout Standard
9494 \begin_inset Quotes eld
9498 \begin_inset Quotes erd
9501 in the third columns of the row was deleted.
9502 If your footer row of the longtable has for a certain reason no upper line
9503 but you would have a horizontal line where the cell is broken, use this
9507 \begin_layout Standard
9515 \begin_inset Newline newline
9523 \begin_layout Standard
9524 When the cell to be broken is in the last column, the command
9527 \begin_layout Standard
9537 \begin_layout Standard
9538 must be inserted as TeX-Code at the beginning of the cell.
9539 This assures that the part of the cell that will be displayed on the new
9540 page appears with the full width.
9543 \begin_layout Standard
9545 \begin_inset Tabular
9546 <lyxtabular version="3" rows="38" columns="3">
9547 <features islongtable="true">
9548 <column alignment="left" valignment="top" width="0cm">
9549 <column alignment="left" valignment="top" width="3cm">
9550 <column alignment="center" valignment="top" width="0pt">
9551 <row endfirsthead="true" caption="true">
9552 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9555 \begin_layout Plain Layout
9556 \begin_inset Caption
9558 \begin_layout Plain Layout
9559 Table with forced page break in table cell
9560 \begin_inset CommandInset label
9562 name "tab:ForcedPagebreak"
9570 \begin_layout Plain Layout
9571 Table with forced page break in table cell
9586 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9589 \begin_layout Plain Layout
9595 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9598 \begin_layout Plain Layout
9605 <row endfirsthead="true">
9606 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9609 \begin_layout Plain Layout
9612 Example Phone List (ignore the names)
9617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9620 \begin_layout Plain Layout
9626 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9629 \begin_layout Plain Layout
9636 <row endfirsthead="true">
9637 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9640 \begin_layout Plain Layout
9648 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9651 \begin_layout Plain Layout
9657 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9660 \begin_layout Plain Layout
9669 <row endhead="true" caption="true">
9670 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9673 \begin_layout Plain Layout
9677 \begin_layout Plain Layout
9681 caption*{Continued table with forced page break in table cell}
9695 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9704 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9707 \begin_layout Plain Layout
9714 <row endhead="true">
9715 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9718 \begin_layout Plain Layout
9726 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9729 \begin_layout Plain Layout
9735 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9738 \begin_layout Plain Layout
9745 <row endhead="true">
9746 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9749 \begin_layout Plain Layout
9757 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9760 \begin_layout Plain Layout
9766 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9769 \begin_layout Plain Layout
9778 <row endfoot="true">
9779 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9782 \begin_layout Plain Layout
9783 continued on next page
9788 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9791 \begin_layout Plain Layout
9797 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9800 \begin_layout Plain Layout
9808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9811 \begin_layout Plain Layout
9819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9822 \begin_layout Plain Layout
9828 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9831 \begin_layout Plain Layout
9839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9842 \begin_layout Plain Layout
9850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9853 \begin_layout Plain Layout
9859 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9862 \begin_layout Plain Layout
9870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9873 \begin_layout Plain Layout
9881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9884 \begin_layout Plain Layout
9890 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9893 \begin_layout Plain Layout
9901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9904 \begin_layout Plain Layout
9912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9915 \begin_layout Plain Layout
9921 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9924 \begin_layout Plain Layout
9932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9935 \begin_layout Plain Layout
9943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9946 \begin_layout Plain Layout
9952 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9955 \begin_layout Plain Layout
9963 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9966 \begin_layout Plain Layout
9974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9977 \begin_layout Plain Layout
9983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9986 \begin_layout Plain Layout
9994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9997 \begin_layout Plain Layout
10005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10008 \begin_layout Plain Layout
10014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10017 \begin_layout Plain Layout
10025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10028 \begin_layout Plain Layout
10036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10039 \begin_layout Plain Layout
10045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10048 \begin_layout Plain Layout
10056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10059 \begin_layout Plain Layout
10067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10070 \begin_layout Plain Layout
10076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10079 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10090 \begin_layout Plain Layout
10098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10101 \begin_layout Plain Layout
10107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10110 \begin_layout Plain Layout
10118 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10121 \begin_layout Plain Layout
10129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10132 \begin_layout Plain Layout
10138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10141 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10152 \begin_layout Plain Layout
10160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10163 \begin_layout Plain Layout
10169 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10172 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10183 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10194 \begin_layout Plain Layout
10200 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10203 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10214 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10225 \begin_layout Plain Layout
10231 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10234 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10245 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10256 \begin_layout Plain Layout
10262 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10265 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10276 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10287 \begin_layout Plain Layout
10293 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10296 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10307 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10318 \begin_layout Plain Layout
10324 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10327 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10338 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10349 \begin_layout Plain Layout
10355 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10358 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10369 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10380 \begin_layout Plain Layout
10386 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10389 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10400 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10411 \begin_layout Plain Layout
10417 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10420 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10431 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10442 \begin_layout Plain Layout
10448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10451 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10462 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10473 \begin_layout Plain Layout
10479 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10482 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10493 \begin_layout Plain Layout
10501 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10504 \begin_layout Plain Layout
10506 Fürst von Montecompatri, 11.
10507 Fürst von Sulmona und Vivaro, 10.
10508 Fürst von Rossano, 5.
10509 Herzog von Canemorte, 11.
10510 Herzog von Palombara, 5.
10511 Herzog von Castelchiodato,
10515 \begin_layout Plain Layout
10524 \begin_layout Plain Layout
10532 Herzog von Poggionativo, 11.
10533 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10534 Graf von Valinfreda, 11.
10535 Baron von Cropalati, 11.
10536 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10541 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10544 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10555 \begin_layout Plain Layout
10563 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10566 \begin_layout Plain Layout
10572 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10575 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10586 \begin_layout Plain Layout
10594 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10597 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10617 \begin_layout Plain Layout
10625 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10628 \begin_layout Plain Layout
10634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10648 \begin_layout Plain Layout
10656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10659 \begin_layout Plain Layout
10665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10679 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10690 \begin_layout Plain Layout
10696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10710 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10721 \begin_layout Plain Layout
10727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10741 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10752 \begin_layout Plain Layout
10758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10769 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10772 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10783 \begin_layout Plain Layout
10789 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10806 \begin_layout Standard
10807 \begin_inset Newpage newpage
10813 \begin_layout Section
10814 Multiple Lines Columns and Rows
10817 \begin_layout Subsection
10818 Multiple Lines in Table Cells
10819 \begin_inset CommandInset label
10821 name "sub:Multiple-Lines-in"
10829 \begin_layout Plain Layout
10830 Multiple Lines in Table Cells
10839 \begin_layout Plain Layout
10848 \begin_layout Standard
10850 \begin_inset Float table
10856 \begin_layout Plain Layout
10857 \begin_inset Caption
10859 \begin_layout Plain Layout
10860 \begin_inset CommandInset label
10862 name "tab:Table-with-multiple"
10866 Table with multiple lines in cells
10874 \begin_layout Plain Layout
10876 \begin_inset Tabular
10877 <lyxtabular version="3" rows="3" columns="3">
10879 <column alignment="center" valignment="middle" width="2.5cm">
10880 <column alignment="center" valignment="middle" width="0">
10881 <column alignment="center" valignment="middle" width="0">
10883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10886 \begin_layout Plain Layout
10891 \begin_layout Plain Layout
10905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10908 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10928 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10937 \begin_layout Plain Layout
10943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10946 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10957 \begin_layout Plain Layout
10963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10966 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10975 \begin_layout Plain Layout
10994 \begin_layout Standard
10995 Adjusting a fixed width for a column, enables to enter text as a paragraph
10996 with multiple lines and hyphenations.
10999 \begin_layout Standard
11001 \begin_inset Space ~
11005 \begin_inset CommandInset ref
11007 reference "tab:Table-with-multiple"
11011 , create a 3×3 table, mark the first cell and right-click on it.
11012 In the appearing table dialog we set a cell width of 2.5
11013 \begin_inset Space \thinspace{}
11016 cm and choose centered for the vertical and horizontal alignment.
11017 The vertical alignment is used for all cells of the row.
11018 As our text is smaller than than 2.5
11019 \begin_inset Space \thinspace{}
11022 cm, only one line will appear.
11023 To get two lines, we add a line break with the command
11026 \begin_layout Standard
11034 \begin_layout Standard
11036 If the text is wider than the set cell width it will automatically be broken
11040 \begin_layout Standard
11041 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11042 by LaTeX if it is the first entry.
11043 Therefore you need to insert something, to make the word not being the
11044 first entry: Add the command
11047 \begin_layout Standard
11055 \begin_layout Standard
11056 in TeX-Code before the word.
11057 As the space is zero, it doesn't change the output.
11059 \begin_inset Space ~
11063 \begin_inset CommandInset ref
11065 reference "tab:Table-with-and"
11072 \begin_layout Standard
11073 \begin_inset Float table
11079 \begin_layout Plain Layout
11080 \begin_inset Caption
11082 \begin_layout Plain Layout
11083 \begin_inset CommandInset label
11085 name "tab:Table-with-and"
11089 Table with and without hyphenation
11097 \begin_layout Plain Layout
11098 \begin_inset Space \hfill{}
11102 \begin_inset Tabular
11103 <lyxtabular version="3" rows="3" columns="3">
11105 <column alignment="center" valignment="middle" width="2.5cm">
11106 <column alignment="center" valignment="middle" width="0">
11107 <column alignment="center" valignment="middle" width="0">
11109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11112 \begin_layout Plain Layout
11113 verylongtablecellword
11118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11121 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11130 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11141 \begin_layout Plain Layout
11147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11150 \begin_layout Plain Layout
11156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11159 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11170 \begin_layout Plain Layout
11176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11179 \begin_layout Plain Layout
11185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11188 \begin_layout Plain Layout
11200 \begin_inset Space \hfill{}
11204 \begin_inset Tabular
11205 <lyxtabular version="3" rows="3" columns="3">
11207 <column alignment="center" valignment="middle" width="2.5cm">
11208 <column alignment="center" valignment="middle" width="0">
11209 <column alignment="center" valignment="middle" width="0">
11211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11214 \begin_layout Plain Layout
11218 \begin_layout Plain Layout
11227 verylongtablecellword
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11235 \begin_layout Plain Layout
11241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11244 \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" usebox="none">
11264 \begin_layout Plain Layout
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11273 \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" usebox="none">
11293 \begin_layout Plain Layout
11299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11302 \begin_layout Plain Layout
11314 \begin_inset Space \hfill{}
11325 \begin_layout Standard
11326 \begin_inset Newpage newpage
11332 \begin_layout Subsection
11334 \begin_inset CommandInset label
11336 name "sub:Multicolumns"
11344 \begin_layout Plain Layout
11354 \begin_layout Plain Layout
11355 Table ! Multicolumns
11363 \begin_layout Subsubsection
11367 \begin_layout Standard
11368 To span a cell over multiple columns, mark as much cells within a line that
11369 should be one spanned cell and use either the table-toolbar button
11370 \begin_inset Graphics
11371 filename ../images/tabular-feature_multicolumn.png
11373 scaleBeforeRotation
11379 Edit\SpecialChar \menuseparator
11380 Table\SpecialChar \menuseparator
11383 , or right click on the marked cells and choose multicolumn in the appearing
11384 table dialog under the tab
11391 \begin_layout Standard
11392 Multicolumns have there own cell settings.
11393 That means changing cell borders, cell alignment, and the width only affects
11395 Here is an example table with a multicolumn cell in the first row and one
11396 in the last row without the upper border:
11399 \begin_layout Standard
11401 \begin_inset Tabular
11402 <lyxtabular version="3" rows="3" columns="4">
11403 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11404 <column alignment="center" valignment="top" width="0pt">
11405 <column alignment="center" valignment="middle" width="0">
11406 <column alignment="center" valignment="top" width="0in">
11407 <column alignment="center" valignment="top" width="0pt">
11409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11412 \begin_layout Plain Layout
11418 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11421 \begin_layout Plain Layout
11427 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11430 \begin_layout Plain Layout
11436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11439 \begin_layout Plain Layout
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11450 \begin_layout Plain Layout
11465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11468 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11486 \begin_layout Plain Layout
11494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11497 \begin_layout Plain Layout
11503 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11506 \begin_layout Plain Layout
11512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11515 \begin_layout Plain Layout
11521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11524 \begin_layout Plain Layout
11538 \begin_layout Subsubsection
11539 Multicolumn Calculations
11540 \begin_inset CommandInset label
11542 name "sub:Multicolumn-Calculations"
11550 \begin_layout Plain Layout
11551 Multicolumns ! Calculations
11559 \begin_layout Standard
11560 LyX supports multicolumns directly, but we have to take notice of the cell
11561 width of the columns spanned by the multicolumn cell.
11564 \begin_layout Standard
11565 \begin_inset Float table
11570 \begin_layout Plain Layout
11571 \begin_inset Caption
11573 \begin_layout Plain Layout
11574 \begin_inset CommandInset label
11576 name "tab:Table-with-centered"
11580 Table with centered multicolumn text above two columns that have exactly
11581 half the width of the multicolumn cell
11582 \begin_inset OptArg
11585 \begin_layout Plain Layout
11586 Perfect multicolumn table
11599 \begin_layout Plain Layout
11601 \begin_inset Tabular
11602 <lyxtabular version="3" rows="3" columns="3">
11604 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11605 <column alignment="center" valignment="middle" width="0">
11606 <column alignment="center" valignment="top" width="0">
11608 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11611 \begin_layout Plain Layout
11612 multiple lines multicolumn
11617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11620 \begin_layout Plain Layout
11626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11629 \begin_layout Plain Layout
11637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11640 \begin_layout Plain Layout
11646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11649 \begin_layout Plain Layout
11655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11658 \begin_layout Plain Layout
11666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11669 \begin_layout Plain Layout
11675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11678 \begin_layout Plain Layout
11684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11687 \begin_layout Plain Layout
11706 \begin_layout Standard
11707 To create for example Table
11708 \begin_inset Space ~
11712 \begin_inset CommandInset ref
11714 reference "tab:Table-with-centered"
11718 , mark the first two cells in the first row of a 3×3 table and right-click
11720 Now choose for this cell
11729 \begin_inset Space \thinspace{}
11732 cm in the table dialog.
11733 The spanned columns should have exactly half the width of the multicolumn
11734 cell, so that you would adjust a width of 1.25
11735 \begin_inset Space \thinspace{}
11738 cm for the first column.
11739 The second column has then automatically a width of 1.25
11740 \begin_inset Space \thinspace{}
11743 cm (multicolumn width - width of first column).
11744 This was done for Table
11745 \begin_inset Space ~
11749 \begin_inset CommandInset ref
11751 reference "tab:Table-without-half"
11758 \begin_layout Standard
11759 \begin_inset Float table
11764 \begin_layout Plain Layout
11765 \begin_inset Caption
11767 \begin_layout Plain Layout
11768 \begin_inset CommandInset label
11770 name "tab:Table-without-half"
11774 Table where the spanned table columns have not exactly half the width of
11775 the multicolumn cell
11776 \begin_inset OptArg
11779 \begin_layout Plain Layout
11780 Imperfect multicolumn table
11793 \begin_layout Plain Layout
11795 \begin_inset Tabular
11796 <lyxtabular version="3" rows="3" columns="3">
11798 <column alignment="center" valignment="top" width="1.25cm">
11799 <column alignment="center" valignment="top" width="0">
11800 <column alignment="center" valignment="top" width="0">
11802 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11805 \begin_layout Plain Layout
11806 multiple lines multicolumn
11811 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11814 \begin_layout Plain Layout
11820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11823 \begin_layout Plain Layout
11831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11834 \begin_layout Plain Layout
11840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11843 \begin_layout Plain Layout
11849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11852 \begin_layout Plain Layout
11860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11863 \begin_layout Plain Layout
11869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11872 \begin_layout Plain Layout
11878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11881 \begin_layout Plain Layout
11900 \begin_layout Standard
11901 You can see that the first column has not the half width of the multicolumn
11902 cell, it is a bit bigger.
11903 The reason is that the given width of a cell
11904 \begin_inset Formula $W_{g}$
11907 is not its total width
11908 \begin_inset Formula $W_{\mathrm{tot}}$
11911 because a cell is always a bit larger than its given width.
11913 \begin_inset Space ~
11917 \begin_inset CommandInset ref
11919 reference "cha:Explanation-of-Equation"
11923 explains it in detail.
11926 \begin_layout Standard
11927 The needed given width
11928 \begin_inset Formula $W_{g\, n}$
11935 columns are spanned can be calculated, so that each column has a total
11937 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11941 \begin_inset Formula \begin{equation}
11942 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11949 \begin_layout Standard
11950 In our case we have
11951 \begin_inset Formula $n=2$
11955 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11958 cm and the default values for the lengths, so that equation
11959 \begin_inset CommandInset ref
11966 \begin_inset Formula \begin{equation}
11967 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11974 \begin_layout Standard
11975 To enable calculations in LaTeX, the LaTeX-package
11979 must be loaded with the document preamble line
11983 \begin_layout Plain Layout
11984 LaTeX-packages ! calc
11992 \begin_layout Standard
12000 \begin_layout Standard
12001 LyX does not allow to calculate lengths in the width-field of the table
12003 Therefore you have to format the column by inserting a LaTeX-argument in
12005 Here is an overview about the arguments:
12008 \begin_layout Itemize
12013 creates cell with a fixed width, its text is vertically top-aligned
12016 \begin_layout Itemize
12021 creates cell with a fixed width, its text is vertically centered
12024 \begin_layout Itemize
12029 creates cell with a fixed width, its text is vertically bottom-aligned
12032 \begin_layout Standard
12033 By entering a LaTeX-argument, all cell settings set in the table dialog
12037 \begin_layout Standard
12038 \begin_inset Note Greyedout
12041 \begin_layout Plain Layout
12046 Due to a bug, LyX shows the overwritten settings anyway.
12054 \begin_layout Standard
12055 As the text should be horizontally centered, the command
12062 You can now enter the following LaTeX-argument for the first spanned column:
12065 \begin_layout Standard
12070 centering}m{1.25cm-6.2pt}
12073 \begin_layout Standard
12078 means, that the commands inside the braces are applied before the cell
12082 \begin_layout Standard
12083 Although we have chosen centered alignment for the text of the multicolumn
12084 cell, it is still left aligned.
12085 This is because LyX only applies the alignment to single columns.
12086 So we have to use for the multicolumn the LaTeX-argument
12089 \begin_layout Standard
12097 \begin_layout Subsection
12102 \begin_layout Plain Layout
12112 \begin_layout Plain Layout
12122 \begin_layout Plain Layout
12123 LaTeX-packages ! multirow
12131 \begin_layout Standard
12132 In contrary to multicolumns multirows are not yet supported by LyX so a
12133 bit of TeX-Code needs to be used.
12134 To use multirows load the LaTeX-package
12138 in your document preamble with the command
12141 \begin_layout Standard
12146 usepackage{multirow}
12149 \begin_layout Standard
12150 Multirows are created with the command
12153 \begin_layout Standard
12158 multirow{number of rows}{cell width}{cell entry}
12161 \begin_layout Standard
12162 To create the following table:
12165 \begin_layout Standard
12170 \begin_layout Plain Layout
12184 \begin_inset Tabular
12185 <lyxtabular version="3" rows="3" columns="3">
12187 <column alignment="center" valignment="top" width="0">
12188 <column alignment="center" valignment="top" width="0">
12189 <column alignment="center" valignment="top" width="0">
12191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12194 \begin_layout Plain Layout
12200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12203 \begin_layout Plain Layout
12209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12212 \begin_layout Plain Layout
12220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12223 \begin_layout Plain Layout
12227 \begin_layout Plain Layout
12231 multirow{2}{2.5cm}{
12240 \begin_layout Plain Layout
12252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12255 \begin_layout Plain Layout
12261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12264 \begin_layout Plain Layout
12272 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12275 \begin_layout Plain Layout
12281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12284 \begin_layout Plain Layout
12290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12293 \begin_layout Plain Layout
12308 \begin_layout Plain Layout
12324 \begin_layout Standard
12325 create a 3×3 table.
12326 To get rid of the line above the last cell in the first column, the cell
12327 is marked as multicolumn and the upper border is unset.
12328 The multirow is now created in the second row of the first column by inserting
12332 \begin_layout Standard
12337 multirow{2}{2.5cm}{
12340 \begin_layout Standard
12342 According to the command parameters the multirow spans now two rows and
12344 \begin_inset Space \thinspace{}
12348 The content of the multirow cell follows outside the TeX-Code box and the
12349 command is finished with a right brace
12353 in another TeX-Code-box behind the text.
12356 \begin_layout Standard
12363 left-aligns its content by default.
12364 To override the default, renew the command
12373 \begin_layout Standard
12385 \begin_layout Standard
12386 in TeX-Code in the document preamble.
12387 Then all entries of multirow cells in the document are centered.
12388 If centering is only needed for several tables, you can renew the command
12389 in an TeX-Code box just before the table instead of the preamble.
12390 If the text should be right-aligned, replace
12403 To return to left-alignment
12412 \begin_layout Section
12414 \begin_inset CommandInset label
12416 name "sec:Formal-Tables"
12424 \begin_layout Plain Layout
12433 \begin_layout Standard
12434 Tables are often typeset in books similar to Table
12435 \begin_inset Space ~
12439 \begin_inset CommandInset ref
12441 reference "tab:Example-booktabs-table"
12446 This kind of tables is called
12447 \begin_inset Quotes eld
12455 \begin_inset Quotes erd
12459 To make a table a formal table use the option
12467 tab of the table dialog.
12470 \begin_layout Standard
12471 \begin_inset Float table
12477 \begin_layout Plain Layout
12478 \begin_inset Caption
12480 \begin_layout Plain Layout
12481 \begin_inset CommandInset label
12483 name "tab:Example-booktabs-table"
12487 Example booktabs-table
12495 \begin_layout Plain Layout
12497 \begin_inset Tabular
12498 <lyxtabular version="3" rows="8" columns="4">
12499 <features booktabs="true">
12500 <column alignment="center" valignment="top" width="0">
12501 <column alignment="center" valignment="top" width="0">
12502 <column alignment="center" valignment="top" width="0">
12503 <column alignment="center" valignment="top" width="0">
12505 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12508 \begin_layout Plain Layout
12514 <cell alignment="center" valignment="top" topline="true" usebox="none">
12517 \begin_layout Plain Layout
12519 \begin_inset Formula $\,$
12527 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12530 \begin_layout Plain Layout
12532 \begin_inset Formula $\,$
12540 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12543 \begin_layout Plain Layout
12551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12554 \begin_layout Plain Layout
12558 \begin_layout Plain Layout
12571 \begin_layout Plain Layout
12580 Detector thickness [µm]
12585 <cell alignment="center" valignment="top" usebox="none">
12588 \begin_layout Plain Layout
12594 <cell alignment="center" valignment="top" usebox="none">
12597 \begin_layout Plain Layout
12603 <cell alignment="center" valignment="top" usebox="none">
12606 \begin_layout Plain Layout
12614 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12617 \begin_layout Plain Layout
12623 <cell alignment="center" valignment="top" topline="true" usebox="none">
12626 \begin_layout Plain Layout
12632 <cell alignment="center" valignment="top" topline="true" usebox="none">
12635 \begin_layout Plain Layout
12641 <cell alignment="center" valignment="top" topline="true" usebox="none">
12644 \begin_layout Plain Layout
12651 <row topspace="default">
12652 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12655 \begin_layout Plain Layout
12656 Spatial resolution [µm]
12661 <cell alignment="center" valignment="top" usebox="none">
12664 \begin_layout Plain Layout
12670 <cell alignment="center" valignment="top" usebox="none">
12673 \begin_layout Plain Layout
12679 <cell alignment="center" valignment="top" usebox="none">
12682 \begin_layout Plain Layout
12689 <row topspace="default">
12690 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12693 \begin_layout Plain Layout
12695 \begin_inset Formula $f_{\mathrm{max}}$
12703 <cell alignment="center" valignment="top" usebox="none">
12706 \begin_layout Plain Layout
12712 <cell alignment="center" valignment="top" usebox="none">
12715 \begin_layout Plain Layout
12721 <cell alignment="center" valignment="top" usebox="none">
12724 \begin_layout Plain Layout
12731 <row topspace="default">
12732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12735 \begin_layout Plain Layout
12739 \begin_layout Plain Layout
12743 cmidrule(l{10pt}){1-1}
12748 LSF-spatial resolution
12753 <cell alignment="center" valignment="top" usebox="none">
12756 \begin_layout Plain Layout
12762 <cell alignment="center" valignment="top" usebox="none">
12765 \begin_layout Plain Layout
12771 <cell alignment="center" valignment="top" usebox="none">
12774 \begin_layout Plain Layout
12782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12785 \begin_layout Plain Layout
12791 <cell alignment="center" valignment="top" usebox="none">
12794 \begin_layout Plain Layout
12800 <cell alignment="center" valignment="top" usebox="none">
12803 \begin_layout Plain Layout
12809 <cell alignment="center" valignment="top" usebox="none">
12812 \begin_layout Plain Layout
12820 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12823 \begin_layout Plain Layout
12829 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12832 \begin_layout Plain Layout
12838 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12841 \begin_layout Plain Layout
12847 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12850 \begin_layout Plain Layout
12869 \begin_layout Standard
12870 Spaces to table rows can be added using the
12874 tab of the table dialog as described in section
12875 \begin_inset Space ~
12879 \begin_inset CommandInset ref
12881 reference "sub:Row-Spacing"
12888 \begin_layout Standard
12889 In contrary to normal tables, formal tables have no vertical table lines.
12890 The horizontal table lines can be set like for normal tables but they appear
12891 with different width in the output:
12892 \begin_inset Newline newline
12895 The first and the last table line have a default width of 0.08
12896 \begin_inset Space \thinspace{}
12899 em while the other lines have a default width of 0.05
12900 \begin_inset Space \thinspace{}
12906 \begin_layout Standard
12907 The default widths can be changed with the following preamble lines
12910 \begin_layout Standard
12920 \begin_inset Newline newline
12932 \begin_layout Standard
12933 This example is for the first line, the so called
12938 If you want to change the width for the last line, replace
12947 To change the width for the other lines replace
12956 You can use all units listed in appendix
12957 \begin_inset Space ~
12961 \begin_inset CommandInset ref
12963 reference "cha:Units-available-in"
12970 \begin_layout Standard
12971 Lines that don't span over all table columns can be created by setting a
12972 table line for multicolumn cells.
12973 LyX will then internally use the command
12979 to create this line.
12983 \begin_layout Standard
12988 cmidrule[width](trim){startcol-endcol}
12991 \begin_layout Standard
12998 are are currently not supported by LyX so you have to use TeX-Code to be
13006 s can manually be created by inserting the command as TeX-Code as first
13007 cell entry of the first cell of a row.
13008 The line is then drawn in the output above the current row.
13011 \begin_layout Standard
13012 The default for the width is 0.03
13013 \begin_inset Space \thinspace{}
13017 Startcol is the number of the column where the line starts and endcol the
13018 column number where the line ends.
13019 The endcol always needs to be specified, also when the line should span
13021 The optional parameter trim could be either
13029 where the trimwidth is also optional.
13030 Using for example the parameter
13034 means that the line is trimmed from its left end by 2
13035 \begin_inset Space \thinspace{}
13039 If you don't specify the trimwidth the lines are trimmed by the default
13041 \begin_inset Space \thinspace{}
13047 \begin_layout Standard
13048 \begin_inset VSpace bigskip
13052 \begin_inset Space ~
13056 \begin_inset CommandInset ref
13058 reference "tab:Example-booktabs-table"
13062 was created using the commands
13065 \begin_layout Standard
13075 \begin_layout Standard
13076 at the beginning of the in the second row and
13079 \begin_layout Standard
13084 cmidrule(l{10pt}){1-1}
13087 \begin_layout Standard
13091 \begin_layout Standard
13092 \begin_inset VSpace bigskip
13098 \begin_layout Standard
13099 You might want to have overlapping
13106 \begin_inset Space ~
13110 \begin_inset CommandInset ref
13112 reference "tab:Special-booktabs-table"
13117 This can be achieved with the TeX-Code command
13120 \begin_layout Standard
13128 \begin_layout Standard
13129 The command that was used for the second row of Table
13130 \begin_inset Space ~
13134 \begin_inset CommandInset ref
13136 reference "tab:Special-booktabs-table"
13143 \begin_layout Standard
13157 \begin_layout Standard
13158 The command for the sixth row is
13161 \begin_layout Standard
13173 \begin_layout Standard
13174 \begin_inset VSpace bigskip
13180 \begin_layout Standard
13181 If you are anyway not satisfied with the border line spacing, you can use
13182 the following command to produce lines that span over all table columns
13187 \begin_layout Standard
13192 specialrule{width}{space above}{space below}
13195 \begin_layout Standard
13196 For more informations about these specialties, we refer to the manual of
13202 \begin_inset CommandInset citation
13212 \begin_layout Plain Layout
13213 LaTeX-packages ! booktabs
13221 \begin_layout Standard
13222 \begin_inset Float table
13228 \begin_layout Plain Layout
13229 \begin_inset Caption
13231 \begin_layout Plain Layout
13232 \begin_inset CommandInset label
13234 name "tab:Special-booktabs-table"
13238 Special booktabs-table
13246 \begin_layout Plain Layout
13248 \begin_inset Tabular
13249 <lyxtabular version="3" rows="8" columns="4">
13250 <features booktabs="true">
13251 <column alignment="center" valignment="top" width="0">
13252 <column alignment="center" valignment="top" width="0">
13253 <column alignment="center" valignment="top" width="0">
13254 <column alignment="center" valignment="top" width="0">
13256 <cell alignment="center" valignment="top" topline="true" usebox="none">
13259 \begin_layout Plain Layout
13265 <cell alignment="center" valignment="top" topline="true" usebox="none">
13268 \begin_layout Plain Layout
13270 \begin_inset Space \thinspace{}
13278 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13281 \begin_layout Plain Layout
13283 \begin_inset Space \thinspace{}
13291 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13294 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" usebox="none">
13305 \begin_layout Plain Layout
13309 \begin_layout Plain Layout
13322 \begin_layout Plain Layout
13335 \begin_layout Plain Layout
13348 \begin_layout Plain Layout
13357 Detector thickness [µm]
13362 <cell alignment="center" valignment="top" usebox="none">
13365 \begin_layout Plain Layout
13371 <cell alignment="center" valignment="top" usebox="none">
13374 \begin_layout Plain Layout
13380 <cell alignment="center" valignment="top" usebox="none">
13383 \begin_layout Plain Layout
13391 <cell alignment="center" valignment="top" topline="true" usebox="none">
13394 \begin_layout Plain Layout
13400 <cell alignment="center" valignment="top" topline="true" usebox="none">
13403 \begin_layout Plain Layout
13409 <cell alignment="center" valignment="top" topline="true" usebox="none">
13412 \begin_layout Plain Layout
13418 <cell alignment="center" valignment="top" topline="true" usebox="none">
13421 \begin_layout Plain Layout
13428 <row topspace="default">
13429 <cell alignment="center" valignment="top" usebox="none">
13432 \begin_layout Plain Layout
13433 Spatial resolution [µm]
13438 <cell alignment="center" valignment="top" usebox="none">
13441 \begin_layout Plain Layout
13447 <cell alignment="center" valignment="top" usebox="none">
13450 \begin_layout Plain Layout
13456 <cell alignment="center" valignment="top" usebox="none">
13459 \begin_layout Plain Layout
13466 <row topspace="default">
13467 <cell alignment="center" valignment="top" usebox="none">
13470 \begin_layout Plain Layout
13472 \begin_inset Formula $f_{\mathrm{max}}$
13480 <cell alignment="center" valignment="top" usebox="none">
13483 \begin_layout Plain Layout
13489 <cell alignment="center" valignment="top" usebox="none">
13492 \begin_layout Plain Layout
13498 <cell alignment="center" valignment="top" usebox="none">
13501 \begin_layout Plain Layout
13509 <cell alignment="center" valignment="top" topline="true" usebox="none">
13512 \begin_layout Plain Layout
13516 \begin_layout Plain Layout
13529 \begin_layout Plain Layout
13538 LSF-spatial resolution
13543 <cell alignment="center" valignment="top" topline="true" usebox="none">
13546 \begin_layout Plain Layout
13552 <cell alignment="center" valignment="top" topline="true" usebox="none">
13555 \begin_layout Plain Layout
13561 <cell alignment="center" valignment="top" topline="true" usebox="none">
13564 \begin_layout Plain Layout
13572 <cell alignment="center" valignment="top" usebox="none">
13575 \begin_layout Plain Layout
13581 <cell alignment="center" valignment="top" usebox="none">
13584 \begin_layout Plain Layout
13590 <cell alignment="center" valignment="top" usebox="none">
13593 \begin_layout Plain Layout
13599 <cell alignment="center" valignment="top" usebox="none">
13602 \begin_layout Plain Layout
13610 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13613 \begin_layout Plain Layout
13619 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13622 \begin_layout Plain Layout
13628 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13631 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13640 \begin_layout Plain Layout
13659 \begin_layout Section
13660 Vertical Table Alignment
13664 \begin_layout Plain Layout
13673 \begin_layout Standard
13674 To align tables vertically in a text line the table must be inside a box.
13675 The box can then be vertically aligned as described in section
13676 \begin_inset Space ~
13680 \begin_inset CommandInset ref
13682 reference "sec:Box-Dialog"
13689 \begin_layout Standard
13690 In the following example the tables are inside a minipage
13694 \begin_layout Plain Layout
13695 Minipages are described in section
13696 \begin_inset Space ~
13700 \begin_inset CommandInset ref
13702 reference "sec:Minipages"
13711 box that has a width of 15
13712 \begin_inset Space \thinspace{}
13718 \begin_layout Itemize
13720 \begin_inset Box Frameless
13729 height_special "totalheight"
13732 \begin_layout Plain Layout
13733 \begin_inset Tabular
13734 <lyxtabular version="3" rows="3" columns="3">
13736 <column alignment="center" valignment="top" width="0">
13737 <column alignment="center" valignment="top" width="0">
13738 <column alignment="center" valignment="top" width="0">
13740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13743 \begin_layout Plain Layout
13749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13761 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13772 \begin_layout Plain Layout
13778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13781 \begin_layout Plain Layout
13787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13790 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13801 \begin_layout Plain Layout
13807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13810 \begin_layout Plain Layout
13816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13819 \begin_layout Plain Layout
13839 \begin_layout Plain Layout
13851 \begin_inset Box Frameless
13860 height_special "totalheight"
13863 \begin_layout Plain Layout
13864 \begin_inset Tabular
13865 <lyxtabular version="3" rows="3" columns="3">
13867 <column alignment="center" valignment="top" width="0">
13868 <column alignment="center" valignment="top" width="0">
13869 <column alignment="center" valignment="top" width="0">
13871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13874 \begin_layout Plain Layout
13880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13883 \begin_layout Plain Layout
13889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13892 \begin_layout Plain Layout
13900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13903 \begin_layout Plain Layout
13909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13912 \begin_layout Plain Layout
13918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13921 \begin_layout Plain Layout
13929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13932 \begin_layout Plain Layout
13938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13941 \begin_layout Plain Layout
13947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13950 \begin_layout Plain Layout
13970 \begin_layout Plain Layout
13980 \begin_layout Itemize
13982 \begin_inset Box Frameless
13991 height_special "totalheight"
13994 \begin_layout Plain Layout
13995 \begin_inset Tabular
13996 <lyxtabular version="3" rows="3" columns="3">
13998 <column alignment="center" valignment="top" width="0">
13999 <column alignment="center" valignment="top" width="0">
14000 <column alignment="center" valignment="top" width="0">
14002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14005 \begin_layout Plain Layout
14011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14014 \begin_layout Plain Layout
14020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14023 \begin_layout Plain Layout
14031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14034 \begin_layout Plain Layout
14040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14043 \begin_layout Plain Layout
14049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14052 \begin_layout Plain Layout
14060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14063 \begin_layout Plain Layout
14069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14072 \begin_layout Plain Layout
14078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14081 \begin_layout Plain Layout
14100 \begin_layout Itemize
14102 \begin_inset Box Frameless
14111 height_special "totalheight"
14114 \begin_layout Plain Layout
14115 \begin_inset Tabular
14116 <lyxtabular version="3" rows="3" columns="3">
14118 <column alignment="center" valignment="top" width="0">
14119 <column alignment="center" valignment="top" width="0">
14120 <column alignment="center" valignment="top" width="0">
14122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14125 \begin_layout Plain Layout
14131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14134 \begin_layout Plain Layout
14140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14143 \begin_layout Plain Layout
14151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14154 \begin_layout Plain Layout
14160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14163 \begin_layout Plain Layout
14169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14172 \begin_layout Plain Layout
14180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14183 \begin_layout Plain Layout
14189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14192 \begin_layout Plain Layout
14198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14201 \begin_layout Plain Layout
14221 \begin_layout Plain Layout
14233 \begin_inset Box Frameless
14242 height_special "totalheight"
14245 \begin_layout Plain Layout
14246 \begin_inset Tabular
14247 <lyxtabular version="3" rows="3" columns="3">
14249 <column alignment="center" valignment="top" width="0">
14250 <column alignment="center" valignment="top" width="0">
14251 <column alignment="center" valignment="top" width="0">
14253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14256 \begin_layout Plain Layout
14262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14265 \begin_layout Plain Layout
14271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14274 \begin_layout Plain Layout
14282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14285 \begin_layout Plain Layout
14291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14294 \begin_layout Plain Layout
14300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14303 \begin_layout Plain Layout
14311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14314 \begin_layout Plain Layout
14320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14323 \begin_layout Plain Layout
14329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14332 \begin_layout Plain Layout
14352 \begin_layout Plain Layout
14362 \begin_layout Standard
14363 As you can see, the content of the first and last table row is not correctly
14364 aligned with the text line where the table is in.
14365 To get this alignment, the minipage box must be set into a raisebox
14369 \begin_layout Plain Layout
14370 Raiseboxes are described in section
14371 \begin_inset Space ~
14375 \begin_inset CommandInset ref
14377 reference "sub:Vertical-Alignment"
14387 In the example above the second table in the first item is aligned using
14388 the TeX-Code-command
14391 \begin_layout Standard
14401 \begin_layout Standard
14403 Behind the box the closing brace
14407 is inserted as TeX-Code.
14408 For the second table in the last item the command
14411 \begin_layout Standard
14421 \begin_layout Standard
14425 \begin_layout Standard
14426 \begin_inset Note Greyedout
14429 \begin_layout Plain Layout
14434 The alignment of the table row content to the surrounding text line is
14436 The needed factor of the
14442 command for this alignment depends on the document font, the font size,
14443 and the table line thickness.
14451 \begin_layout Section
14453 \begin_inset CommandInset label
14455 name "sec:Colored-Tables"
14463 \begin_layout Plain Layout
14472 \begin_layout Subsection
14477 \begin_layout Plain Layout
14478 Table Color ! for Cells
14487 \begin_layout Plain Layout
14488 Color ! for Table Cells
14496 \begin_layout Standard
14497 \begin_inset Float table
14503 \begin_layout Plain Layout
14504 \begin_inset Caption
14506 \begin_layout Plain Layout
14507 \begin_inset CommandInset label
14509 name "tab:Table-colored-without"
14513 Table colored without using the package
14518 \begin_inset OptArg
14521 \begin_layout Plain Layout
14522 Table without colortbl
14535 \begin_layout Plain Layout
14537 \begin_inset Tabular
14538 <lyxtabular version="3" rows="3" columns="3">
14540 <column alignment="center" valignment="top" width="0">
14541 <column alignment="center" valignment="top" width="0">
14542 <column alignment="center" valignment="top" width="0">
14544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14547 \begin_layout Plain Layout
14555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14558 \begin_layout Plain Layout
14566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14569 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14582 \begin_layout Plain Layout
14590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14593 \begin_layout Plain Layout
14601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14604 \begin_layout Plain Layout
14614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14617 \begin_layout Plain Layout
14625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14628 \begin_layout Plain Layout
14636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14639 \begin_layout Plain Layout
14660 \begin_layout Standard
14661 If you only need colored text, mark the cells and choose a color in the
14664 Edit\SpecialChar \menuseparator
14666 \begin_inset Space ~
14672 This was used to create Table
14673 \begin_inset Space ~
14677 \begin_inset CommandInset ref
14679 reference "tab:Table-colored-without"
14684 In any other case you have to use the LaTeX-package
14692 \begin_layout Plain Layout
14693 LaTeX-packages ! colortbl
14701 \begin_layout Standard
14705 \begin_layout Plain Layout
14715 \begin_inset Note Note
14718 \begin_layout Plain Layout
14719 The following section part will only be displayed when the LaTeX-package
14732 \begin_layout Standard
14733 To create colored tables,
14737 must be loaded in the preamble with the line
14740 \begin_layout Standard
14745 usepackage{colortbl}
14748 \begin_layout Standard
14749 The color of a column is adjusted with the command
14752 \begin_layout Standard
14757 columncolor{name of color}
14760 \begin_layout Standard
14766 More about the command
14770 is described in section
14771 \begin_inset Space ~
14775 \begin_inset CommandInset ref
14777 reference "sub:Multicolumn-Calculations"
14784 \begin_layout Standard
14785 The following color names are predefined:
14788 \begin_layout Standard
14822 \begin_layout Standard
14823 \begin_inset VSpace medskip
14829 \begin_layout Standard
14830 You can also define your own color with the command
14833 \begin_layout Standard
14838 def\SpecialChar \textcompwordmark{}
14839 inecolor{color name}{color model}{color values}
14842 \begin_layout Standard
14843 The color model can be
14846 \begin_layout Labeling
14847 \labelwidthstring 00.00.0000
14848 cmyk: cyan, magenta, yellow, black
14851 \begin_layout Labeling
14852 \labelwidthstring 00.00.0000
14853 rgb: red, green blue
14856 \begin_layout Labeling
14857 \labelwidthstring 00.00.0000
14861 \begin_layout Standard
14862 and the color values are comma separated numbers between 0 and 1 describing
14863 the factor for the corresponding color of the color model.
14866 \begin_layout Standard
14868 \begin_inset Space \thinspace{}
14872 \begin_inset Space ~
14879 " in the preamble with
14882 \begin_layout Standard
14887 def\SpecialChar \textcompwordmark{}
14888 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14891 \begin_layout Standard
14899 \begin_layout Standard
14904 def\SpecialChar \textcompwordmark{}
14905 inecolor{lightgray}{gray}{0.8}
14908 \begin_layout Standard
14909 \begin_inset VSpace medskip
14915 \begin_layout Standard
14916 Lines are colored with the command
14919 \begin_layout Standard
14924 rowcolor{name of color}
14927 \begin_layout Standard
14928 and cells are colored with the command
14931 \begin_layout Standard
14936 cellcolor{name of color}
14939 \begin_layout Standard
14940 Both commands are inserted at the beginning of a cell as TeX-Code.
14943 \begin_layout Standard
14944 To color characters in the table, mark the cells and use the LyX menu
14946 Edit\SpecialChar \menuseparator
14948 \begin_inset Space ~
14954 If a cell contains TeX-Code mark only the characters, otherwise the colored
14955 TeX-Code will cause LaTeX-errors.
14958 \begin_layout Standard
14959 \begin_inset Note Greyedout
14962 \begin_layout Plain Layout
14967 Not all DVI-viewers are able to display self-defined colors.
14975 \begin_layout Standard
14976 \begin_inset VSpace bigskip
14982 \begin_layout Standard
14984 \begin_inset Space ~
14988 \begin_inset CommandInset ref
14990 reference "tab:Table-colored-using"
14994 do the following: The color of the first column should be
15002 \begin_layout Standard
15007 columncolor{darkgreen}
15012 \begin_layout Standard
15013 as LaTeX-argument for this column.
15014 The first row should be blue, therefore the TeX-Code command
15017 \begin_layout Standard
15025 \begin_layout Standard
15026 is inserted to the first cell of this row.
15027 Note that this overwrites the column color for the first cell.
15028 The last cell of the last row is colored magenta by inserting the TeX-Code
15032 \begin_layout Standard
15040 \begin_layout Standard
15041 The characters could now be colored using the menu
15043 Edit\SpecialChar \menuseparator
15045 \begin_inset Space ~
15053 \begin_layout Standard
15054 \begin_inset Float table
15060 \begin_layout Plain Layout
15061 \begin_inset Caption
15063 \begin_layout Plain Layout
15064 \begin_inset CommandInset label
15066 name "tab:Table-colored-using"
15070 Table colored using the package
15075 \begin_inset OptArg
15078 \begin_layout Plain Layout
15079 Table with colortbl
15092 \begin_layout Plain Layout
15094 \begin_inset Tabular
15095 <lyxtabular version="3" rows="3" columns="3">
15097 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15098 <column alignment="center" valignment="top" width="0">
15099 <column alignment="center" valignment="top" width="0">
15101 <cell alignment="center" valignment="top" usebox="none">
15104 \begin_layout Plain Layout
15108 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" usebox="none">
15127 \begin_layout Plain Layout
15135 <cell alignment="center" valignment="top" usebox="none">
15138 \begin_layout Plain Layout
15148 <cell alignment="center" valignment="top" usebox="none">
15151 \begin_layout Plain Layout
15159 <cell alignment="center" valignment="top" usebox="none">
15162 \begin_layout Plain Layout
15170 <cell alignment="center" valignment="top" usebox="none">
15173 \begin_layout Plain Layout
15183 <cell alignment="center" valignment="top" usebox="none">
15186 \begin_layout Plain Layout
15194 <cell alignment="center" valignment="top" usebox="none">
15197 \begin_layout Plain Layout
15205 <cell alignment="center" valignment="top" usebox="none">
15208 \begin_layout Plain Layout
15212 \begin_layout Plain Layout
15241 \begin_layout Standard
15245 \begin_layout Plain Layout
15255 \begin_inset Note Note
15258 \begin_layout Plain Layout
15259 The following will be displayed when the LaTeX-package
15271 \begin_layout Standard
15272 You need to install the package
15276 to see the content of this section in the output.
15279 \begin_layout Standard
15283 \begin_layout Plain Layout
15295 \begin_layout Subsection
15300 \begin_layout Plain Layout
15301 Table Color ! for Lines
15310 \begin_layout Plain Layout
15311 Color ! for Table Lines
15319 \begin_layout Standard
15320 As described in section
15321 \begin_inset Space ~
15325 \begin_inset CommandInset ref
15327 reference "sub:Line-Thickness"
15331 , the line thickness for all lines in a table can be adjusted with the length
15340 \begin_inset Space \thinspace{}
15343 pt for all tables of this section.
15347 \begin_layout Plain Layout
15353 arrayrulewidth}{1.5pt}
15361 \begin_layout Standard
15362 To color vertical lines for example with green, create the following column
15363 format in the document preamble, according to the description in section
15364 \begin_inset Space ~
15368 \begin_inset CommandInset ref
15370 reference "sub:Customized-Format"
15377 \begin_layout Standard
15382 newcolumntype{W}{!{
15389 \begin_layout Standard
15391 \begin_inset Space ~
15395 \begin_inset CommandInset ref
15397 reference "tab:Table-with-vertical-colored"
15405 was used for the last column and
15409 for the other columns.
15412 \begin_layout Standard
15413 If you want to have several colors, define more column formats.
15416 \begin_layout Standard
15417 \begin_inset Float table
15422 \begin_layout Plain Layout
15423 \begin_inset Caption
15425 \begin_layout Plain Layout
15426 \begin_inset CommandInset label
15428 name "tab:Table-with-vertical-colored"
15432 Table with colored vertical lines
15440 \begin_layout Plain Layout
15442 \begin_inset Tabular
15443 <lyxtabular version="3" rows="3" columns="3">
15445 <column alignment="center" valignment="top" width="0" special="Wc">
15446 <column alignment="center" valignment="top" width="0" special="Wc">
15447 <column alignment="center" valignment="top" width="0" special="WcW">
15449 <cell alignment="center" valignment="top" topline="true" usebox="none">
15452 \begin_layout Plain Layout
15458 <cell alignment="center" valignment="top" topline="true" usebox="none">
15461 \begin_layout Plain Layout
15467 <cell alignment="center" valignment="top" topline="true" usebox="none">
15470 \begin_layout Plain Layout
15478 <cell alignment="center" valignment="top" topline="true" usebox="none">
15481 \begin_layout Plain Layout
15487 <cell alignment="center" valignment="top" topline="true" usebox="none">
15490 \begin_layout Plain Layout
15496 <cell alignment="center" valignment="top" topline="true" usebox="none">
15499 \begin_layout Plain Layout
15507 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15510 \begin_layout Plain Layout
15516 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15519 \begin_layout Plain Layout
15525 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15528 \begin_layout Plain Layout
15547 \begin_layout Standard
15548 \begin_inset VSpace bigskip
15551 To color horizontal lines for example with red, like in Table
15552 \begin_inset Space ~
15556 \begin_inset CommandInset ref
15558 reference "tab:Table-with-horizontal-colored"
15562 , insert these commands in TeX-Code before the table or table float:
15565 \begin_layout Standard
15575 \begin_inset Newline newline
15583 \begin_inset Newline newline
15590 \begin_layout Plain Layout
15601 arrayrulecolor{red}
15605 arrayrulecolor{black}}
15608 \begin_layout Standard
15612 \begin_layout Plain Layout
15623 \begin_layout Plain Layout
15632 \begin_layout Plain Layout
15636 arrayrulecolor{red}
15640 arrayrulecolor{black}}
15646 \begin_inset Float table
15651 \begin_layout Plain Layout
15652 \begin_inset Caption
15654 \begin_layout Plain Layout
15655 \begin_inset CommandInset label
15657 name "tab:Table-with-horizontal-colored"
15661 Table with colored horizontal lines
15669 \begin_layout Plain Layout
15671 \begin_inset Tabular
15672 <lyxtabular version="3" rows="3" columns="3">
15674 <column alignment="center" valignment="top" width="0">
15675 <column alignment="center" valignment="top" width="0">
15676 <column alignment="center" valignment="top" width="0">
15678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15681 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15690 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15699 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15710 \begin_layout Plain Layout
15716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15719 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15728 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15739 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15757 \begin_layout Plain Layout
15776 \begin_layout Standard
15780 \begin_layout Plain Layout
15792 \begin_layout Standard
15793 To return to the default line color black, insert this command in TeX-Code
15794 behind the table or table float:
15797 \begin_layout Standard
15809 \begin_layout Standard
15811 \begin_inset Space ~
15815 \begin_inset CommandInset ref
15817 reference "tab:Table-with-colored"
15821 is an example with colored vertical and horizontal lines.
15824 \begin_layout Standard
15825 \begin_inset Float table
15831 \begin_layout Plain Layout
15832 \begin_inset Caption
15834 \begin_layout Plain Layout
15835 \begin_inset CommandInset label
15837 name "tab:Table-with-colored"
15841 Table with colored lines
15849 \begin_layout Plain Layout
15851 \begin_inset Tabular
15852 <lyxtabular version="3" rows="3" columns="3">
15854 <column alignment="center" valignment="top" width="0" special="Wc">
15855 <column alignment="center" valignment="top" width="0" special="Wc">
15856 <column alignment="center" valignment="top" width="0" special="WcW">
15858 <cell alignment="center" valignment="top" topline="true" usebox="none">
15861 \begin_layout Plain Layout
15867 <cell alignment="center" valignment="top" topline="true" usebox="none">
15870 \begin_layout Plain Layout
15876 <cell alignment="center" valignment="top" topline="true" usebox="none">
15879 \begin_layout Plain Layout
15887 <cell alignment="center" valignment="top" topline="true" usebox="none">
15890 \begin_layout Plain Layout
15896 <cell alignment="center" valignment="top" topline="true" usebox="none">
15899 \begin_layout Plain Layout
15905 <cell alignment="center" valignment="top" topline="true" usebox="none">
15908 \begin_layout Plain Layout
15915 <row topspace="default">
15916 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15919 \begin_layout Plain Layout
15925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15928 \begin_layout Plain Layout
15934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15937 \begin_layout Plain Layout
15956 \begin_layout Standard
15960 \begin_layout Plain Layout
15976 \begin_layout Standard
15980 \begin_layout Plain Layout
15986 arrayrulewidth}{0.4pt}
15994 \begin_layout Section
15995 Table Customization
15999 \begin_layout Plain Layout
16000 Table Customization
16009 \begin_layout Plain Layout
16010 Table ! Customization
16018 \begin_layout Subsection
16020 \begin_inset CommandInset label
16022 name "sub:Row-Spacing"
16030 \begin_layout Plain Layout
16031 Table Customization ! Row Spacing
16039 \begin_layout Standard
16040 You can add vertical space to table rows in the
16044 tab of the table dialog.
16045 You find there three possibilities:
16048 \begin_layout Description
16050 \begin_inset Space ~
16054 \begin_inset Space ~
16057 row will add space above the characters of the table row.
16058 If the table is a formal table
16062 \begin_layout Plain Layout
16063 Formal tables are explained in section
16064 \begin_inset Space ~
16068 \begin_inset CommandInset ref
16070 reference "sec:Formal-Tables"
16079 LyX will insert as default 0.5
16080 \begin_inset Space \thinspace{}
16084 For normal tables the inserted space will unfortunately destroy the vertical
16085 table lines as in the following table:
16086 \begin_inset VSpace medskip
16090 \begin_inset Newline newline
16097 \begin_layout Plain Layout
16107 \begin_inset Space \hfill{}
16111 \begin_inset Tabular
16112 <lyxtabular version="3" rows="3" columns="1">
16114 <column alignment="center" valignment="top" width="0">
16116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16119 \begin_layout Plain Layout
16126 <row topspace="3mm">
16127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16130 \begin_layout Plain Layout
16132 \begin_inset Space \thinspace{}
16135 mm space top of row
16142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16145 \begin_layout Plain Layout
16157 \begin_inset Space \hfill{}
16164 \begin_layout Plain Layout
16174 \begin_inset VSpace medskip
16178 \begin_inset Newline newline
16181 So inserting space to the top of row for normal tables is only useful when
16182 you don't have vertical lines.
16185 \begin_layout Description
16187 \begin_inset Space ~
16191 \begin_inset Space ~
16194 row will add space below the characters of the table row.
16195 If the table is a formal table LyX will insert as default 0.5
16196 \begin_inset Space \thinspace{}
16199 em space, for normal tables the default size is 2
16200 \begin_inset Space \thinspace{}
16206 \begin_layout Description
16208 \begin_inset Space ~
16211 rows adds space between the current and the following row.
16212 If the table is a formal table LyX will insert as default 0.5
16213 \begin_inset Space \thinspace{}
16217 For normal tables the inserted space will unfortunately destroy the vertical
16218 table lines as in the following table:
16219 \begin_inset VSpace medskip
16223 \begin_inset Newline newline
16230 \begin_layout Plain Layout
16240 \begin_inset Space \hfill{}
16244 \begin_inset Tabular
16245 <lyxtabular version="3" rows="3" columns="1">
16247 <column alignment="center" valignment="top" width="0">
16249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16252 \begin_layout Plain Layout
16259 <row interlinespace="3mm">
16260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16263 \begin_layout Plain Layout
16264 \begin_inset Formula $\downarrow$
16268 \begin_inset Space \thinspace{}
16271 mm space between row
16272 \begin_inset Formula $\downarrow$
16282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16285 \begin_layout Plain Layout
16286 \begin_inset Formula $\uparrow$
16290 \begin_inset Space \thinspace{}
16293 mm space between row
16294 \begin_inset Formula $\uparrow$
16308 \begin_inset Space \hfill{}
16315 \begin_layout Plain Layout
16325 \begin_inset VSpace medskip
16329 \begin_inset Newline newline
16332 So inserting space between rows for normal tables is only useful when you
16333 don't have vertical lines.
16336 \begin_layout Standard
16337 \begin_inset VSpace bigskip
16340 When you want to add extra height to all cells of all tables, you can do
16341 this with the following preamble lines:
16344 \begin_layout Standard
16349 @ifundef\SpecialChar \textcompwordmark{}
16350 ined{extrarowheight}
16351 \begin_inset Newline newline
16358 \begin_layout Plain Layout
16369 usepackage{array}}{}
16370 \begin_inset Newline newline
16377 extrarowheight}{height}
16380 \begin_layout Standard
16381 But this has the disadvantage that the cell texts are no longer exactly
16382 vertically centered.
16387 will be loaded automatically by LyX when you use self defined table formats.
16388 To avoid that it is loaded twice the command
16392 @ifundef\SpecialChar \textcompwordmark{}
16395 is used in the above command.)
16398 \begin_layout Subsection
16399 Special Cell Alignment
16403 \begin_layout Plain Layout
16404 Table Customization ! Special Cell Alignment
16412 \begin_layout Standard
16413 Sometimes it looks better when the cell entries of a column are aligned
16414 with a special character, e.
16415 \begin_inset Space \thinspace{}
16419 \begin_inset Space ~
16422 with the decimal separator as in Table
16423 \begin_inset Space ~
16427 \begin_inset CommandInset ref
16429 reference "tab:Table-cells-of"
16436 \begin_layout Standard
16437 \begin_inset Float table
16443 \begin_layout Plain Layout
16444 \begin_inset Caption
16446 \begin_layout Plain Layout
16447 \begin_inset CommandInset label
16449 name "tab:Table-cells-of"
16453 Table cells of a column aligned with the decimal separator.
16461 \begin_layout Plain Layout
16463 \begin_inset Tabular
16464 <lyxtabular version="3" rows="4" columns="2">
16466 <column alignment="right" valignment="top" width="0">
16467 <column alignment="left" valignment="top" width="0" special="@{}l">
16469 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16472 \begin_layout Plain Layout
16478 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16481 \begin_layout Plain Layout
16489 <cell alignment="center" valignment="top" usebox="none">
16492 \begin_layout Plain Layout
16498 <cell alignment="center" valignment="top" usebox="none">
16501 \begin_layout Plain Layout
16509 <cell alignment="center" valignment="top" usebox="none">
16512 \begin_layout Plain Layout
16518 <cell alignment="center" valignment="top" usebox="none">
16521 \begin_layout Plain Layout
16529 <cell alignment="center" valignment="top" usebox="none">
16532 \begin_layout Plain Layout
16538 <cell alignment="center" valignment="top" usebox="none">
16541 \begin_layout Plain Layout
16560 \begin_layout Standard
16561 This table was created with a 4×2 table.
16562 The heading is a centered multicolumn.
16563 The first column is right-aligned and contains the digits before the decimal
16564 point and the decimal point.
16565 The second column is left aligned and contains the digits after the decimal
16567 To omit the space that is normally between two table columns, use the following
16568 LaTeX-argument for the second column:
16571 \begin_layout Standard
16577 \begin_layout Standard
16579 \begin_inset Space ~
16583 \begin_inset CommandInset ref
16585 reference "tab:Several-table-cell"
16589 shows some example alignments.
16590 For the alignment with the relation sign, you must add the second smallest
16591 math-space at the beginning of the last column to get the correct space
16592 surrounding the relation sign.
16595 \begin_layout Standard
16596 \begin_inset Float table
16601 \begin_layout Plain Layout
16602 \begin_inset Caption
16604 \begin_layout Plain Layout
16605 \begin_inset CommandInset label
16607 name "tab:Several-table-cell"
16611 Several table cell alignments.
16619 \begin_layout Plain Layout
16621 \begin_inset Tabular
16622 <lyxtabular version="3" rows="4" columns="6">
16624 <column alignment="right" valignment="top" width="0">
16625 <column alignment="left" valignment="top" width="0" special="@{}l">
16626 <column alignment="right" valignment="top" width="0">
16627 <column alignment="left" valignment="top" width="0" special="@{}l">
16628 <column alignment="right" valignment="top" width="0">
16629 <column alignment="left" valignment="top" width="0" special="@{}l">
16631 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16643 \begin_layout Plain Layout
16649 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16652 \begin_layout Plain Layout
16658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16661 \begin_layout Plain Layout
16667 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16670 \begin_layout Plain Layout
16676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16679 \begin_layout Plain Layout
16687 <cell alignment="center" valignment="top" usebox="none">
16690 \begin_layout Plain Layout
16696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16699 \begin_layout Plain Layout
16701 \begin_inset Space \thinspace{}
16709 <cell alignment="center" valignment="top" usebox="none">
16712 \begin_layout Plain Layout
16713 \begin_inset Formula $10\cdot$
16721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16724 \begin_layout Plain Layout
16725 \begin_inset Formula $10^{\mbox{-}17}$
16733 <cell alignment="center" valignment="top" usebox="none">
16736 \begin_layout Plain Layout
16737 \begin_inset Formula $\Gamma(t)\propto$
16745 <cell alignment="center" valignment="top" usebox="none">
16748 \begin_layout Plain Layout
16749 \begin_inset Formula $\:\Upsilon(t)$
16759 <cell alignment="center" valignment="top" usebox="none">
16762 \begin_layout Plain Layout
16768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16771 \begin_layout Plain Layout
16773 \begin_inset Space \thinspace{}
16781 <cell alignment="center" valignment="top" usebox="none">
16784 \begin_layout Plain Layout
16785 \begin_inset Formula $5.78\cdot$
16793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16796 \begin_layout Plain Layout
16797 \begin_inset Formula $10^{7}$
16805 <cell alignment="center" valignment="top" usebox="none">
16808 \begin_layout Plain Layout
16809 \begin_inset Formula $A\ne$
16817 <cell alignment="center" valignment="top" usebox="none">
16820 \begin_layout Plain Layout
16821 \begin_inset Formula $\: B_{\mathrm{red}}$
16831 <cell alignment="center" valignment="top" usebox="none">
16834 \begin_layout Plain Layout
16840 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16843 \begin_layout Plain Layout
16845 \begin_inset Space \thinspace{}
16853 <cell alignment="center" valignment="top" usebox="none">
16856 \begin_layout Plain Layout
16858 \begin_inset Formula $33.5\cdot$
16866 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16869 \begin_layout Plain Layout
16870 \begin_inset Formula $10^{4}$
16878 <cell alignment="center" valignment="top" usebox="none">
16881 \begin_layout Plain Layout
16882 \begin_inset Formula $\sin(\alpha)\ge$
16890 <cell alignment="center" valignment="top" usebox="none">
16893 \begin_layout Plain Layout
16894 \begin_inset Formula $\:\sin(\beta)$
16915 \begin_layout Standard
16916 \begin_inset VSpace bigskip
16919 There is also the LaTeX-package
16927 \begin_layout Plain Layout
16928 LaTeX-packages ! dcolumn
16933 that provides table cell alignments.
16934 But this unfortunately treats the cell entries as math and doesn't allow
16935 formulas in table cells: The first column of Table
16936 \begin_inset Space ~
16940 \begin_inset CommandInset ref
16942 reference "tab:Several-table-cell"
16950 like the first column in Table
16951 \begin_inset Space ~
16955 \begin_inset CommandInset ref
16957 reference "tab:Alignments-when"
16961 and only with some tricks like the expected.
16962 The alignment of the second and third column of Table
16963 \begin_inset Space ~
16967 \begin_inset CommandInset ref
16969 reference "tab:Several-table-cell"
16973 is not possible with
16980 \begin_layout Standard
16981 \begin_inset Float table
16987 \begin_layout Plain Layout
16988 \begin_inset Caption
16990 \begin_layout Plain Layout
16991 \begin_inset CommandInset label
16993 name "tab:Alignments-when"
16997 Alignments when LaTeX-package dcolumn is used.
16998 For all column alignments tricks have to be used to get the output.
17006 \begin_layout Plain Layout
17008 \begin_inset Tabular
17009 <lyxtabular version="3" rows="4" columns="3">
17011 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17012 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17013 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17015 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17018 \begin_layout Plain Layout
17024 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17027 \begin_layout Plain Layout
17033 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17036 \begin_layout Plain Layout
17044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17047 \begin_layout Plain Layout
17049 \begin_inset Space \thinspace{}
17057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17060 \begin_layout Plain Layout
17062 \begin_inset Space \thinspace{}
17066 \begin_inset Formula $\mbox{bottles}$
17074 <cell alignment="center" valignment="top" usebox="none">
17077 \begin_layout Plain Layout
17082 \begin_layout Plain Layout
17092 \begin_inset Formula $\mbox{bottles}$
17102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17105 \begin_layout Plain Layout
17107 \begin_inset Space \thinspace{}
17115 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17118 \begin_layout Plain Layout
17120 \begin_inset Space \thinspace{}
17124 \begin_inset Formula $\mbox{Pixels}$
17132 <cell alignment="center" valignment="top" usebox="none">
17135 \begin_layout Plain Layout
17140 \begin_layout Plain Layout
17150 \begin_inset Formula $\mbox{Pixels}$
17160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17163 \begin_layout Plain Layout
17165 \begin_inset Space \thinspace{}
17173 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17176 \begin_layout Plain Layout
17178 \begin_inset Space \thinspace{}
17182 \begin_inset Formula $\mbox{cm}$
17190 <cell alignment="center" valignment="top" usebox="none">
17193 \begin_layout Plain Layout
17198 \begin_layout Plain Layout
17208 \begin_inset Formula $\mbox{cm}$
17229 \begin_layout Subsection
17230 Customized Cell/Column Format
17231 \begin_inset CommandInset label
17233 name "sub:Customized-Format"
17241 \begin_layout Plain Layout
17242 Table Customization ! Cell/Column Format
17250 \begin_layout Standard
17251 Calculating the needed width for spanned columns like in section
17252 \begin_inset Space ~
17256 \begin_inset CommandInset ref
17258 reference "sub:Multicolumn-Calculations"
17262 is very annoying if you have several tables with multicolumn cells.
17263 To make life easier, you can define a cell/column format in the preamble,
17264 so that it can be used in all tables of the document.
17265 The format is defined with the command
17268 \begin_layout Standard
17273 newcolumntype{name of format}[number of arguments]{commands}
17276 \begin_layout Standard
17277 The format name may only consist of one letter.
17302 are predefined and cannot be used.
17303 But all letters are allowed as capitals.
17306 \begin_layout Standard
17307 \begin_inset VSpace medskip
17313 \begin_layout Standard
17314 For vertically and horizontally centered multicolumn cells with a fixed
17315 width you can define the cell format
17318 \begin_layout Standard
17323 newcolumntype{M}[1]{>{
17330 \begin_layout Standard
17337 avoids the problem of hyphenating the first word, as described in section
17338 \begin_inset Space ~
17342 \begin_inset CommandInset ref
17344 reference "sub:Multiple-Lines-in"
17349 Now you can simply enter
17352 \begin_layout Standard
17358 \begin_layout Standard
17359 as LaTeX-argument in the table dialog to create a multicolumn.
17362 \begin_layout Standard
17363 \begin_inset VSpace bigskip
17369 \begin_layout Standard
17370 For cells spanned by a multicolumn cell, you can define the format
17373 \begin_layout Standard
17378 newcolumntype{S}[2]{>{
17383 \begin_inset Newline newline
17390 \begin_layout Plain Layout
17405 \begin_layout Plain Layout
17416 arrayrulewidth)*(1-#2))/#2}}
17419 \begin_layout Standard
17420 This format uses equation
17421 \begin_inset CommandInset ref
17427 to calculate the needed width so that each spanned cell has the same width.
17430 \begin_layout Standard
17434 \begin_layout Standard
17437 S{width of multicolumn cell}{number of spanned columns}
17440 \begin_layout Standard
17441 as LaTeX-argument of the column.
17444 \begin_layout Standard
17445 \begin_inset VSpace bigskip
17451 \begin_layout Standard
17452 For colored columns, you can define
17455 \begin_layout Standard
17460 newcolumntype{K}[1]{>{
17467 \begin_layout Standard
17469 \begin_inset Quotes eld
17473 \begin_inset Quotes erd
17476 at the end creates a column with a flexible width whose text is horizontally
17481 \begin_layout Standard
17487 \begin_layout Standard
17491 \begin_layout Standard
17492 \begin_inset VSpace bigskip
17498 \begin_layout Standard
17500 \begin_inset Space ~
17504 \begin_inset CommandInset ref
17506 reference "tab:Table-using-user-defined"
17510 use the LaTeX-arguments
17513 \begin_layout Standard
17519 \begin_layout Standard
17520 for the first column and the multicolumn,
17523 \begin_layout Standard
17529 \begin_layout Standard
17530 for the the last column, and
17533 \begin_layout Standard
17539 \begin_layout Standard
17540 for the cells in the second column.
17543 \begin_layout Standard
17544 \begin_inset Float table
17550 \begin_layout Plain Layout
17551 \begin_inset Caption
17553 \begin_layout Plain Layout
17554 \begin_inset CommandInset label
17556 name "tab:Table-using-user-defined"
17560 Table using user-defined table formats
17568 \begin_layout Plain Layout
17570 \begin_inset Tabular
17571 <lyxtabular version="3" rows="3" columns="4">
17573 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17574 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17575 <column alignment="center" valignment="middle" width="0">
17576 <column alignment="center" valignment="middle" width="0" special="K{red}">
17578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17581 \begin_layout Plain Layout
17582 verylongtablecellword
17587 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17590 \begin_layout Plain Layout
17591 multiple lines multicolumn
17596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17599 \begin_layout Plain Layout
17605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17608 \begin_layout Plain Layout
17616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17619 \begin_layout Plain Layout
17625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17628 \begin_layout Plain Layout
17634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17637 \begin_layout Plain Layout
17643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17646 \begin_layout Plain Layout
17654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17657 \begin_layout Plain Layout
17663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17666 \begin_layout Plain Layout
17672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17675 \begin_layout Plain Layout
17681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17684 \begin_layout Plain Layout
17703 \begin_layout Subsection
17705 \begin_inset CommandInset label
17707 name "sub:Line-Thickness"
17715 \begin_layout Plain Layout
17716 Table Customization ! Line Thickness
17724 \begin_layout Standard
17725 The line thickness for all lines in a table can be adjusted with the length
17733 To set for example a line thickness of 1.5
17734 \begin_inset Space \thinspace{}
17738 \begin_inset Space ~
17742 \begin_inset CommandInset ref
17744 reference "tab:Table-with-1.5"
17748 , insert the command
17751 \begin_layout Standard
17758 arrayrulewidth}{1.5pt}
17761 \begin_layout Standard
17762 in TeX-Code before the table or table float.
17763 The changed thickness is valid for all following tables.
17764 To use the default value again, set
17771 \begin_inset Space \thinspace{}
17774 pt in TeX-Code behind the table or table float.
17777 \begin_layout Standard
17781 \begin_layout Plain Layout
17787 arrayrulewidth}{1.5pt}
17793 \begin_inset Float table
17798 \begin_layout Plain Layout
17799 \begin_inset Caption
17801 \begin_layout Plain Layout
17802 \begin_inset CommandInset label
17804 name "tab:Table-with-1.5"
17809 \begin_inset Space \thinspace{}
17820 \begin_layout Plain Layout
17822 \begin_inset Tabular
17823 <lyxtabular version="3" rows="3" columns="3">
17825 <column alignment="center" valignment="top" width="0">
17826 <column alignment="center" valignment="top" width="0">
17827 <column alignment="center" valignment="top" width="0">
17829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17832 \begin_layout Plain Layout
17838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17841 \begin_layout Plain Layout
17847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17850 \begin_layout Plain Layout
17858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17861 \begin_layout Plain Layout
17867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17870 \begin_layout Plain Layout
17876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17879 \begin_layout Plain Layout
17887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17890 \begin_layout Plain Layout
17896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17899 \begin_layout Plain Layout
17905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17908 \begin_layout Plain Layout
17928 \begin_layout Plain Layout
17934 arrayrulewidth}{0.4pt}
17942 \begin_layout Standard
17943 \begin_inset VSpace bigskip
17946 To set the line thickness to 1.5
17947 \begin_inset Space \thinspace{}
17950 pt only for horizontal lines, like in Table
17951 \begin_inset Space ~
17955 \begin_inset CommandInset ref
17957 reference "tab:Table-with-horizontal"
17961 , insert these commands in TeX-Code before the table or table float:
17964 \begin_layout Standard
17974 \begin_inset Newline newline
17982 \begin_inset Newline newline
17991 arrayrulewidth 1.5pt}
17992 \begin_inset Newline newline
18003 arrayrulewidth 0.4pt}}
18006 \begin_layout Standard
18007 To return to the default line thickness, insert this command in TeX-Code
18008 behind the table or table float:
18011 \begin_layout Standard
18023 \begin_layout Standard
18027 \begin_layout Plain Layout
18038 \begin_layout Plain Layout
18047 \begin_layout Plain Layout
18055 arrayrulewidth 1.5pt}
18058 \begin_layout Plain Layout
18068 arrayrulewidth 0.4pt}}
18074 \begin_inset Float table
18079 \begin_layout Plain Layout
18080 \begin_inset Caption
18082 \begin_layout Plain Layout
18083 \begin_inset CommandInset label
18085 name "tab:Table-with-horizontal"
18090 \begin_inset Space \thinspace{}
18093 pt thick horizontal lines
18101 \begin_layout Plain Layout
18103 \begin_inset Tabular
18104 <lyxtabular version="3" rows="3" columns="3">
18106 <column alignment="center" valignment="top" width="0">
18107 <column alignment="center" valignment="top" width="0">
18108 <column alignment="center" valignment="top" width="0">
18110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18113 \begin_layout Plain Layout
18119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18122 \begin_layout Plain Layout
18128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18131 \begin_layout Plain Layout
18139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18142 \begin_layout Plain Layout
18148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18151 \begin_layout Plain Layout
18157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18160 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18171 \begin_layout Plain Layout
18177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18180 \begin_layout Plain Layout
18186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18189 \begin_layout Plain Layout
18209 \begin_layout Plain Layout
18225 \begin_layout Standard
18226 \begin_inset VSpace bigskip
18229 To set the line thickness to 1.5
18230 \begin_inset Space \thinspace{}
18233 pt only for vertical lines, create the following column format in the document
18234 preamble, according to the description in section
18235 \begin_inset Space ~
18239 \begin_inset CommandInset ref
18241 reference "sub:Customized-Format"
18248 \begin_layout Standard
18253 newcolumntype{V}{!{
18255 vrule width 1.5pt}}
18258 \begin_layout Standard
18260 \begin_inset Space ~
18264 \begin_inset CommandInset ref
18266 reference "tab:Table-with-vertical"
18273 \begin_layout Standard
18279 \begin_layout Standard
18280 was used for the last column and
18283 \begin_layout Standard
18289 \begin_layout Standard
18290 for the other columns.
18293 \begin_layout Standard
18294 \begin_inset Float table
18299 \begin_layout Plain Layout
18300 \begin_inset Caption
18302 \begin_layout Plain Layout
18303 \begin_inset CommandInset label
18305 name "tab:Table-with-vertical"
18310 \begin_inset Space \thinspace{}
18313 pt thick vertical lines
18321 \begin_layout Plain Layout
18323 \begin_inset Tabular
18324 <lyxtabular version="3" rows="3" columns="3">
18326 <column alignment="center" valignment="top" width="0" special="Vc">
18327 <column alignment="center" valignment="top" width="0" special="Vc">
18328 <column alignment="center" valignment="top" width="0" special="VcV">
18330 <cell alignment="center" valignment="top" topline="true" usebox="none">
18333 \begin_layout Plain Layout
18339 <cell alignment="center" valignment="top" topline="true" usebox="none">
18342 \begin_layout Plain Layout
18348 <cell alignment="center" valignment="top" topline="true" usebox="none">
18351 \begin_layout Plain Layout
18359 <cell alignment="center" valignment="top" topline="true" usebox="none">
18362 \begin_layout Plain Layout
18368 <cell alignment="center" valignment="top" topline="true" usebox="none">
18371 \begin_layout Plain Layout
18377 <cell alignment="center" valignment="top" topline="true" usebox="none">
18380 \begin_layout Plain Layout
18388 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18391 \begin_layout Plain Layout
18397 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18400 \begin_layout Plain Layout
18406 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18409 \begin_layout Plain Layout
18428 \begin_layout Subsection
18433 \begin_layout Plain Layout
18434 Table Customization ! Dashed Lines
18442 \begin_layout Standard
18446 \begin_layout Plain Layout
18456 \begin_inset Note Note
18459 \begin_layout Plain Layout
18460 The following section will only be displayed when the LaTeX-package
18472 \begin_layout Standard
18473 \begin_inset Float table
18479 \begin_layout Plain Layout
18480 \begin_inset Caption
18482 \begin_layout Plain Layout
18483 \begin_inset CommandInset label
18485 name "tab:Table-with-dashed"
18489 Table with dashed lines
18497 \begin_layout Plain Layout
18499 \begin_inset Tabular
18500 <lyxtabular version="3" rows="5" columns="5">
18502 <column alignment="center" valignment="top" width="0">
18503 <column alignment="center" valignment="top" width="0">
18504 <column alignment="center" valignment="top" width="0" special=":c">
18505 <column alignment="center" valignment="top" width="0">
18506 <column alignment="center" valignment="top" width="0">
18508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18511 \begin_layout Plain Layout
18517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18520 \begin_layout Plain Layout
18526 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18529 \begin_layout Plain Layout
18535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18538 \begin_layout Plain Layout
18544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18547 \begin_layout Plain Layout
18555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18558 \begin_layout Plain Layout
18564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18567 \begin_layout Plain Layout
18573 <cell alignment="center" valignment="top" topline="true" usebox="none">
18576 \begin_layout Plain Layout
18582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18585 \begin_layout Plain Layout
18591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18594 \begin_layout Plain Layout
18602 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18605 \begin_layout Plain Layout
18609 \begin_layout Plain Layout
18623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18626 \begin_layout Plain Layout
18632 <cell alignment="center" valignment="top" usebox="none">
18635 \begin_layout Plain Layout
18641 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18644 \begin_layout Plain Layout
18650 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18653 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18664 \begin_layout Plain Layout
18668 \begin_layout Plain Layout
18682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18685 \begin_layout Plain Layout
18691 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18694 \begin_layout Plain Layout
18700 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18703 \begin_layout Plain Layout
18709 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18712 \begin_layout Plain Layout
18720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18723 \begin_layout Plain Layout
18729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18732 \begin_layout Plain Layout
18738 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18741 \begin_layout Plain Layout
18747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18750 \begin_layout Plain Layout
18756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18759 \begin_layout Plain Layout
18778 \begin_layout Standard
18779 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18780 As prerequisite the LaTeX-package
18788 \begin_layout Plain Layout
18789 LaTeX-packages ! arydshln
18794 must be loaded in the document preamble with the command
18797 \begin_layout Standard
18802 usepackage{arydshln}
18805 \begin_layout Standard
18806 To make a vertical line dashed, enter the colon
18807 \begin_inset Quotes eld
18811 \begin_inset Quotes erd
18814 together with the character for the horizontal alignment as LaTeX-argument
18815 in the table cell dialog.
18818 \begin_layout Standard
18819 For a horizontal dashed line add the command
18822 \begin_layout Standard
18830 \begin_layout Standard
18831 in TeX-Code as first element of the first cell in the table row.
18834 \begin_layout Standard
18835 For dashed multicolumn lines use the command
18838 \begin_layout Standard
18843 cdashline{line number
18848 \begin_layout Standard
18849 in TeX-Code as first element of the first cell in the table row.
18850 If you have for example a multicolumn spanning over columns 2 to 4 and
18851 you want to have a dashed line above, add the command
18854 \begin_layout Standard
18862 \begin_layout Standard
18863 as first element of the first cell in the row of the multicolumn.
18866 \begin_layout Standard
18867 \begin_inset VSpace bigskip
18873 \begin_layout Standard
18875 \begin_inset Space ~
18879 \begin_inset CommandInset ref
18881 reference "tab:Table-with-dashed"
18886 \begin_inset Quotes eld
18894 \begin_inset Quotes erd
18897 as LaTeX-argument of the third column.
18898 The TeX-Code command
18904 was inserted to the first cell of the third row and the the TeX-Code command
18905 \begin_inset Newline newline
18914 was inserted to the first cell of the fourth row.
18917 \begin_layout Standard
18918 \begin_inset Note Greyedout
18921 \begin_layout Plain Layout
18926 The used LaTeX-package
18930 is apparently not compatible with the LaTeX-package
18938 \begin_layout Plain Layout
18939 LaTeX-packages ! colortbl
18944 that is used for colored tables in section
18945 \begin_inset Space ~
18949 \begin_inset CommandInset ref
18951 reference "sec:Colored-Tables"
18956 That means colored tables cannot have dashed lines.
18964 \begin_layout Standard
18968 \begin_layout Plain Layout
18978 \begin_inset Note Note
18981 \begin_layout Plain Layout
18982 The following will be displayed when the LaTeX-package
18994 \begin_layout Standard
18995 You need to install the package
18999 to see the content of this section in the output.
19002 \begin_layout Standard
19006 \begin_layout Plain Layout
19018 \begin_layout Chapter
19023 \begin_layout Plain Layout
19030 \begin_inset CommandInset label
19039 \begin_layout Section
19041 \begin_inset CommandInset label
19043 name "sec:FloatIntroduction"
19051 \begin_layout Plain Layout
19052 Floats ! Introduction
19060 \begin_layout Standard
19061 A float is a block of text associated with some sort of label, which doesn't
19062 have a fixed location.
19064 \begin_inset Quotes eld
19068 \begin_inset Quotes erd
19071 forward or backward a page or two, to wherever it fits best.
19079 \begin_inset Space ~
19084 are also floats, because they can float to the next page when there are
19085 too many notes at the page.
19088 \begin_layout Standard
19089 Floats allow a high quality layout.
19090 Images and tables can evenly be spread to the pages to avoid white space
19091 and pages without text.
19092 As the floating often destroys the context between the text and the image/table
19093 , every float can be referenced in the text.
19094 Floats are therefore numbered.
19095 Referencing is described in section
19096 \begin_inset Space ~
19100 \begin_inset CommandInset ref
19102 reference "sec:Referencing-Floats"
19109 \begin_layout Standard
19110 To insert a float, use the menu
19112 Insert\SpecialChar \menuseparator
19120 inset, a box with a label.
19121 The label will automatically be translated to the document language in
19123 Behind the label you can insert the caption text.
19124 The image or table is inserted above or below the caption in a separate
19125 paragraph within the float.
19126 More about the caption placement is described in section
19127 \begin_inset Space ~
19131 \begin_inset CommandInset ref
19133 reference "sec:Caption-Placement"
19138 To keep your LyX-document readable, you can open and close the float box
19139 by left-clicking on the box label.
19140 A closed float box looks like this:
19141 \begin_inset Graphics
19142 filename clipart/floatQt4.png
19144 scaleBeforeRotation
19148 -- a gray button with a red label.
19151 \begin_layout Standard
19152 It is recommended to insert floats as a separate paragraph to avoid possible
19153 LaTeX-errors that can occur when the surrounding text is specially formatted.
19156 \begin_layout Standard
19157 Existing figures or tables can be put into a float by marking them and then
19158 pressing the corresponding toolbar button for a new float.
19161 \begin_layout Section
19165 \begin_layout Standard
19166 Besides figure and table floats that are described in section
19167 \begin_inset Space ~
19171 \begin_inset CommandInset ref
19173 reference "sec:Figure-Floats"
19178 \begin_inset CommandInset ref
19180 reference "sec:Table-Floats"
19184 , respectively, LyX offers the float types
19191 \begin_inset Space ~
19195 \begin_inset Space ~
19203 \begin_layout Subsection
19208 \begin_layout Plain Layout
19209 Floats ! Algorithms
19215 \begin_inset CommandInset label
19217 name "sub:Algorithm-Floats"
19224 \begin_layout Standard
19225 \begin_inset Float algorithm
19231 \begin_layout Plain Layout
19232 \begin_inset Caption
19234 \begin_layout Plain Layout
19235 \begin_inset CommandInset label
19237 name "alg:Example-Algorithm-float"
19241 Example Algorithm float
19249 \begin_layout LyX-Code
19251 \begin_inset Newline newline
19254 Sum:= Sum + A(I); /*comment*/
19255 \begin_inset Newline newline
19259 \begin_inset VSpace -4mm
19270 \begin_layout Standard
19271 This float type is inserted with the menu
19273 Insert\SpecialChar \menuseparator
19274 Floats\SpecialChar \menuseparator
19278 It is used for program codes and descriptions of algorithms.
19279 A possible environment for algorithms is the
19283 , described in LyX's
19289 \begin_inset Space ~
19293 \begin_inset CommandInset ref
19295 reference "alg:Example-Algorithm-float"
19299 is an example of an algorithm float where -4
19300 \begin_inset Space \thinspace{}
19303 mm vertical space was added at the end of the float to have the bottom rule
19304 exactly below the last text line.
19307 \begin_layout Standard
19308 The float label is not automatically translated into the document language.
19309 If your document is not in English, you have to do this manually by adding
19310 the following line to the document preamble
19315 \begin_layout Standard
19320 floatname{algorithm}{your
19321 \begin_inset Space ~
19327 \begin_layout Standard
19331 \begin_inset Space ~
19337 \begin_inset Quotes eld
19345 \begin_inset Quotes erd
19351 \begin_layout Standard
19352 To insert the list of algorithms you can in this case not use the menu
19354 Insert\SpecialChar \menuseparator
19356 \begin_inset Space \thinspace{}
19360 \begin_inset Space \thinspace{}
19363 TOC\SpecialChar \menuseparator
19366 when your document is an English one.
19367 For non-English documents, use this command in TeX-Code instead:
19370 \begin_layout Standard
19375 listof{algorithm}{your
19376 \begin_inset Space ~
19382 \begin_layout Standard
19386 \begin_inset Space ~
19392 \begin_inset Quotes eld
19400 \begin_inset Quotes erd
19406 \begin_layout Standard
19407 Algorithm floats are not by default numbered in the scheme
19408 \begin_inset Quotes eld
19412 \begin_inset Quotes erd
19415 like it is the case for table and figure floats in many document-classes.
19416 To number algorithm floats in the same scheme, add this command to your
19420 \begin_layout Standard
19425 numberwithin{algorithm}{chapter}
19428 \begin_layout Standard
19429 To be able to use the command
19438 \begin_inset Space ~
19443 in the document settings the option
19446 \begin_inset Space ~
19450 \begin_inset Space ~
19454 \begin_inset Space ~
19462 \begin_layout Subsection
19467 \begin_layout Plain Layout
19468 Floats ! Text Wrap Floats
19474 \begin_inset CommandInset label
19476 name "sub:floatflt-wrap-float"
19483 \begin_layout Standard
19484 \begin_inset Wrap figure
19491 \begin_layout Plain Layout
19492 \begin_inset Graphics
19493 filename clipart/mobius.eps
19496 scaleBeforeRotation
19497 rotateOrigin center
19504 \begin_layout Plain Layout
19505 \begin_inset Caption
19507 \begin_layout Plain Layout
19508 \begin_inset CommandInset label
19510 name "fig:This-is-a"
19514 This is a wrapped figure, and this is the brilliant caption that describes
19516 \begin_inset VSpace medskip
19529 This float type is used if you want to
19530 \begin_inset Quotes eld
19534 \begin_inset Quotes erd
19537 text around a figure so that it only occupies some fraction of the column
19539 It can be inserted using the menu
19541 Insert\SpecialChar \menuseparator
19542 Floats\SpecialChar \menuseparator
19544 \begin_inset Space ~
19548 \begin_inset Space ~
19553 if the LaTeX-package
19561 \begin_layout Plain Layout
19562 LaTeX-packages ! wrapfig
19566 \begin_layout Plain Layout
19574 \begin_layout Plain Layout
19585 \begin_layout Plain Layout
19601 \begin_layout Plain Layout
19612 \begin_layout Plain Layout
19628 \begin_layout Plain Layout
19629 Installing a LaTeX-package is explained it in the
19632 \begin_inset Space ~
19642 The width and placement of the float is adjusted by right-clicking on the
19645 \begin_inset Space ~
19649 \begin_inset CommandInset ref
19651 reference "fig:This-is-a"
19655 is an example text wrap float with a width of 40
19656 \begin_inset Space \thinspace{}
19663 \begin_layout Plain Layout
19664 Available units are explained in appendix
19665 \begin_inset Space ~
19669 \begin_inset CommandInset ref
19671 reference "cha:Units-available-in"
19680 Some space was added under the caption to separate it better from the surroundi
19684 \begin_layout Standard
19689 also supports table wrap floats, but they are not yet supported by LyX.
19690 If you need this, read the documentation of
19695 \begin_inset CommandInset citation
19704 \begin_layout Standard
19705 \begin_inset Note Greyedout
19708 \begin_layout Plain Layout
19714 \begin_inset Space ~
19717 wrap float floats are fragile! E.
19718 \begin_inset Space \thinspace{}
19722 \begin_inset Space ~
19725 having a figure too close to the bottom of the page can mess things up in
19726 the way that the float doesn't appear in the output or that it is placed
19727 over some other text.
19735 \begin_layout Standard
19739 \begin_layout Itemize
19740 Wrap floats should not be placed in paragraphs that run over a page break.
19741 That means that wrap floats should better be inserted to the exact place
19742 when the document is nearly finished and you are able to estimate where
19743 page breaks will appear.
19746 \begin_layout Itemize
19747 Wrap floats should either be placed in an own paragraph before the paragraph
19748 where they should wrap into or within a paragraph.
19751 \begin_layout Itemize
19752 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19753 there is a text paragraph between them as separator.
19756 \begin_layout Itemize
19757 Wrap floats are not allowed in section headings or tables.
19760 \begin_layout Section
19762 \begin_inset CommandInset label
19764 name "sec:Float-Numbering"
19772 \begin_layout Plain Layout
19781 \begin_layout Standard
19782 Floats are usually numbered either independent from the sections the floats
19783 are in, or in the scheme
19784 \begin_inset Quotes eld
19788 \begin_inset Quotes erd
19792 \begin_inset Quotes eld
19796 \begin_inset Quotes erd
19800 This depends on the used document class.
19803 \begin_layout Standard
19804 To change the section independent numbering, you can use this command in
19805 the document preamble:
19808 \begin_layout Standard
19820 \begin_layout Standard
19827 is the command that prints the table number, for figure floats, the command
19841 prints in the command above the table number as small roman number.
19844 \begin_layout Standard
19845 To change the numbering scheme for example to
19846 \begin_inset Quotes eld
19850 \begin_inset Quotes erd
19853 , use this command in the preamble:
19856 \begin_layout Standard
19861 numberwithin{table}{subsection}
19864 \begin_layout Standard
19865 To be able to use the command
19874 \begin_inset Space ~
19879 in the document settings the option
19882 \begin_inset Space ~
19886 \begin_inset Space ~
19890 \begin_inset Space ~
19898 \begin_layout Standard
19899 Please also have a look at section
19900 \begin_inset Space ~
19904 \begin_inset CommandInset ref
19906 reference "sub:Footnote-Numbering"
19910 for the details and important notes about the numbering commands.
19913 \begin_layout Section
19915 \begin_inset CommandInset label
19917 name "sec:Referencing-Floats"
19925 \begin_layout Plain Layout
19926 Floats ! References
19935 \begin_layout Plain Layout
19944 \begin_layout Standard
19945 To reference a float, insert a label into its caption using the menu
19947 Insert\SpecialChar \menuseparator
19950 or the toolbar button
19951 \begin_inset Graphics
19952 filename ../images/label-insert.png
19954 scaleBeforeRotation
19959 A grey label box like this one:
19960 \begin_inset Graphics
19961 filename clipart/labelQt4.png
19963 scaleBeforeRotation
19967 will be inserted and the label window pops up asking for the label text.
19968 LyX offers as text the first words of the caption with a prefix.
19969 The prefix depends on the float type, e.
19970 \begin_inset Space \thinspace{}
19974 \begin_inset Space ~
19977 for figure floats the prefix will be "
19984 \begin_layout Standard
19985 The label is used as anchor and name for the reference.
19986 You can refer to the label using the menu
19988 Insert\SpecialChar \menuseparator
19991 or the toolbar button
19992 \begin_inset Graphics
19993 filename ../images/dialog-show-new-inset_ref.png
19995 scaleBeforeRotation
20000 A grey cross-reference box like this one:
20001 \begin_inset Graphics
20002 filename clipart/referenceQt4.png
20004 scaleBeforeRotation
20008 will be inserted and the cross-reference window appear showing all labels
20010 If you have multiple LyX-documents opened, choose the one you are working
20011 on from the drop-list at the top of the dialog.
20012 You can now sort the labels alphabetically and then choose one.
20013 At the position of the cross-reference box the float number will appear
20017 \begin_layout Standard
20018 It is recommended to use a protected space between the cross-reference name
20019 and its number to avoid line breaks between them.
20020 If a cross-reference refers to a non-existing label, you will see two question
20021 marks in the output instead of the reference.
20024 \begin_layout Standard
20025 You can change labels at any time by clicking on the label box.
20026 References to the changed label will automatically change its link to the
20027 new label text, so that you don't need to take care about this.
20030 \begin_layout Standard
20034 \begin_inset Space ~
20038 \begin_inset Space ~
20043 in the cross-reference window sets the cursor before the referred label.
20044 The button text changes then to Go
20045 \begin_inset Space ~
20048 Back and you can use it to set the cursor back to the cross-reference.
20049 Right-clicking on a cross-reference box also sets the cursor before the
20050 referenced label but without a possibility to go back.
20053 \begin_layout Subsection
20054 Cross-Reference Formats
20055 \begin_inset CommandInset label
20057 name "sub:Cross-Reference-Formats"
20065 \begin_layout Plain Layout
20066 References ! Formats
20074 \begin_layout Standard
20075 There are six varieties of cross-references:
20078 \begin_layout Description
20079 <reference>: prints the float number, this is the default:
20080 \begin_inset CommandInset ref
20082 reference "fig:Two-distorted-images"
20089 \begin_layout Description
20090 (<reference>): prints the float number within two parentheses, this is the
20091 style normally used to reference formulas, especially when the reference
20093 \begin_inset Quotes eld
20097 \begin_inset Quotes erd
20101 \begin_inset CommandInset ref
20110 \begin_layout Description
20111 <page>: prints the page number: Page
20112 \begin_inset Space ~
20116 \begin_inset CommandInset ref
20117 LatexCommand pageref
20118 reference "fig:Two-distorted-images"
20125 \begin_layout Description
20127 \begin_inset Space ~
20131 \begin_inset Space ~
20134 <page>: prints the text "on page" and the page number:
20135 \begin_inset CommandInset ref
20136 LatexCommand vpageref
20137 reference "fig:Two-distorted-images"
20144 \begin_layout Description
20146 \begin_inset Space ~
20150 \begin_inset Space ~
20154 \begin_inset Space ~
20157 <page>: prints the float number, the text "on page", and the page number:
20159 \begin_inset CommandInset ref
20161 reference "fig:Two-distorted-images"
20168 \begin_layout Description
20170 \begin_inset Space ~
20173 reference: prints a self defined cross-reference format.
20175 \begin_inset Note Greyedout
20178 \begin_layout Plain Layout
20183 This feature is only available when you have the LaTeX-package
20195 \begin_layout Standard
20196 Note that the style <page> won't print the page number if the label is on
20197 the previous, the same, or the next page.
20199 \begin_inset Space \thinspace{}
20203 \begin_inset Space ~
20207 \begin_inset Quotes eld
20215 \begin_inset Quotes erd
20221 \begin_layout Standard
20222 The number and current page of the referred document part in the output,
20223 is automatically calculated by LaTeX.
20224 The varieties are adjusted in the field
20228 of the cross-reference window, that appear when you click on the cross-referenc
20232 \begin_layout Subsection
20233 Referencing Subfigures
20234 \begin_inset CommandInset label
20236 name "sub:Referencing-Subfigures"
20244 \begin_layout Plain Layout
20245 References ! to Subfigures
20253 \begin_layout Standard
20254 Currently referencing subfigures is not supported by LyX, so you have to
20255 use LaTeX-commands.
20256 The label is the created with the command
20259 \begin_layout Standard
20264 label{fig:YourLabelName}
20267 \begin_layout Standard
20268 that is directly inserted into the subfigure caption field.
20269 To reference the label add this command in TeX-Code
20272 \begin_layout Standard
20277 ref{fig:YourLabelName}
20280 \begin_layout Standard
20281 to the position in your document where the reference should be placed.
20282 Here is a reference to a subfigure: Subfigure
20283 \begin_inset Space ~
20290 \begin_layout Plain Layout
20302 \begin_layout Subsection
20303 Automatic Reference Naming
20307 \begin_layout Plain Layout
20308 References ! Automatic Reference Naming
20316 \begin_layout Standard
20321 provides a very useful feature that cross-references automatically include
20322 the name of the referenced floats (or text parts like sections).
20323 You save to write e.
20324 \begin_inset Space \thinspace{}
20328 \begin_inset Space ~
20332 \begin_inset Quotes eld
20336 \begin_inset Quotes erd
20339 before every reference box.
20340 To get this automatic reference naming, you have to load the LaTeX-package
20349 \begin_layout Plain Layout
20350 LaTeX-packages ! hyperref
20355 in the document preamble with
20358 \begin_layout Standard
20363 usepackage[pdfborder={0 0 0}]{hyperref}
20364 \begin_inset Newline newline
20380 \begin_layout Standard
20385 is used to link cross-references in the DVI- and PDF-output, this means
20386 that the reader of your document will be able to click on a table of content
20387 (TOC) entry or on a reference and he will be shown the referenced document
20393 also creates PDF-bookmarks for every section of your document to make it
20394 easier for readers to navigate through the document.
20395 This is also used in this document but when you have a look in the document
20396 preamble you will find various options in the load command of
20401 To learn more about the
20405 package, we refer to its documentation
20406 \begin_inset CommandInset citation
20415 \begin_layout Standard
20416 \begin_inset Note Greyedout
20419 \begin_layout Plain Layout
20424 Automatic reference naming cannot be used when you use cross-references
20428 \begin_inset Space ~
20433 style, described in section
20434 \begin_inset Space ~
20438 \begin_inset CommandInset ref
20440 reference "sub:Cross-Reference-Formats"
20452 \begin_layout Subsection
20454 \begin_inset CommandInset label
20456 name "sub:Reference-Position"
20464 \begin_layout Plain Layout
20465 References ! Reference Position
20473 \begin_layout Standard
20482 \begin_layout Plain Layout
20483 LaTeX-packages ! hyperref
20488 to link cross-references in the output, you will see that clicking on an
20489 image float reference jumps to the image label.
20490 The caption will be the first text part on the screen, so that you cannot
20491 see the image without scrolling.
20492 This is because the reference link anchor is placed at the position of
20494 With the use of the package
20502 \begin_layout Plain Layout
20503 LaTeX-packages ! hypcap
20508 , which is part of the LaTeX-package
20516 \begin_layout Plain Layout
20517 LaTeX-packages ! oberdiek
20522 , the link anchor is placed at the beginning of a float.
20523 To use this feature for figure floats, load
20527 in the document preamble with the line
20530 \begin_layout Standard
20535 usepackage[figure]{hypcap}
20538 \begin_layout Standard
20543 for all floats but this isn't recommended for stability reasons.
20544 For more informations, have a look at
20549 \begin_inset CommandInset citation
20558 \begin_layout Standard
20559 \begin_inset Note Greyedout
20562 \begin_layout Plain Layout
20571 must be loaded after
20575 in the document preamble.
20583 \begin_layout Standard
20584 \begin_inset Note Greyedout
20587 \begin_layout Plain Layout
20596 has no effect for references to subfigures.
20604 \begin_layout Section
20606 \begin_inset CommandInset label
20608 name "sec:Float-Placement"
20616 \begin_layout Plain Layout
20625 \begin_layout Standard
20626 Right-clicking on a float-box opens a dialog where you can alter the placement
20627 options that LaTeX uses for positioning the float.
20628 \begin_inset Newline newline
20634 \begin_inset Space ~
20639 is only useful for two-column documents: If you select it, the float will
20640 span across both columns on the page instead of being confined to just
20642 \begin_inset Newline newline
20648 \begin_inset Space ~
20653 is used to rotate floats, see section
20654 \begin_inset CommandInset ref
20656 reference "sec:Rotated-Floats"
20663 \begin_layout Standard
20664 You can use one ore more of the following options in the float dialog to
20665 set the placement for a particular float when you uncheck the option
20668 \begin_inset Space ~
20672 \begin_inset Space ~
20680 \begin_layout Description
20682 \begin_inset Space ~
20686 \begin_inset Space ~
20689 possible try to place the float on the position where it is inserted
20692 \begin_layout Description
20694 \begin_inset Space ~
20698 \begin_inset Space ~
20701 page try to place the float on the top of the current page
20704 \begin_layout Description
20706 \begin_inset Space ~
20710 \begin_inset Space ~
20713 page try to place the float on the bottom of the current page
20716 \begin_layout Description
20718 \begin_inset Space ~
20722 \begin_inset Space ~
20725 floats try to place the float on an own page
20728 \begin_layout Standard
20729 The order of the above option is
20734 That means, if you use the default placement, LaTeX will first try out
20738 \begin_inset Space ~
20742 \begin_inset Space ~
20750 \begin_inset Space ~
20754 \begin_inset Space ~
20759 , and then the others.
20760 If you don't use the default, LaTeX will try only the checked options but
20762 If none of the 4 placements are possible the procedure is internally repeated
20763 but it is tried to put the float on the following page.
20766 \begin_layout Standard
20767 By default, each option has its own rules:
20770 \begin_layout Labeling
20771 \labelwidthstring 00.00.0000
20775 \begin_inset Space ~
20779 \begin_inset Space ~
20784 only floats occupying less than 70
20785 \begin_inset Space \thinspace{}
20788 % of the page can be placed at the top of a page (
20797 \begin_layout Labeling
20798 \labelwidthstring 00.00.0000
20802 \begin_inset Space ~
20806 \begin_inset Space ~
20811 : only floats occupying less than 30
20812 \begin_inset Space \thinspace{}
20815 % of the page can be placed at the bottom of a page.
20825 \begin_layout Labeling
20826 \labelwidthstring 00.00.0000
20830 \begin_inset Space ~
20834 \begin_inset Space ~
20839 : only if more than 50
20840 \begin_inset Space \thinspace{}
20843 % of the page are occupied by floats, several floats can be set together
20854 \begin_layout Standard
20855 If you don't like these rules, you can ignore them by using the additional
20859 \begin_inset Space ~
20863 \begin_inset Space ~
20869 \begin_inset Newline newline
20872 You can also redefine the rules with LaTeX-commands that are given in parenthese
20873 s behind the rules description above.
20874 To increase for example the often too small default of the bottom-rule
20876 \begin_inset Space \thinspace{}
20879 % of the page, add this line to your document preamble:
20882 \begin_layout Standard
20889 bottomfraction}{0.5}
20892 \begin_layout Standard
20893 Sometimes you might need, under all circumstances, a float to be placed
20894 exactly at the position where it is inserted.
20895 For this case you can use the option
20898 \begin_inset Space ~
20904 Use this option very rarely and only if the document is nearly ready to
20906 Because the float is then no longer able to
20907 \begin_inset Quotes eld
20911 \begin_inset Quotes erd
20914 when you change your document and this will often destroy the page layout.
20917 \begin_layout Standard
20918 There are no placement options for text wrap floats, because they are always
20919 surrounded by the text of a certain paragraph.
20920 \begin_inset VSpace bigskip
20926 \begin_layout Standard
20927 Sometimes you have the problem that a float is placed at the top of a page
20928 while its corresponding section starts at the middle of the page, so that
20929 the reader could think the float is part of the previous section.
20930 To avoid this the LaTeX-command
20937 It suppresses a given float placement for the page where it is inserted
20938 and can therefore be used to avoid that floats could be set before a section
20940 To get this, add these commands to your document preamble:
20943 \begin_layout Standard
20953 \begin_inset Newline newline
20967 \begin_layout Standard
20968 You can define the same for all section headings, like chapters and subsections.
20969 This definition is not recommended to be used for small text parts like
20970 subsubsections because LaTeX may then have problems to find a suitable
20974 \begin_layout Standard
20975 \begin_inset VSpace bigskip
20978 In some cases it is required to have all figures/tables at the end of the
20980 For this purpose the LaTeX-package
20988 \begin_layout Plain Layout
20989 LaTeX-packages ! endfloat
20995 It puts all figure and table floats at the end of the document into own
20997 At the original float position a text hint like
20998 \begin_inset Quotes eld
21004 \begin_inset Space ~
21010 \begin_inset Quotes erd
21014 The endfloat-package is loaded in the preamble with the line
21017 \begin_layout Standard
21022 usepackage[options]{endfloat}
21025 \begin_layout Standard
21026 There are various package options to format the created figure/table sections.
21027 For more information we refer to the
21032 \begin_inset CommandInset citation
21039 \begin_inset Newline newline
21043 \begin_inset Note Greyedout
21046 \begin_layout Plain Layout
21051 doesn't provide an automatic translation for the text hint, you have to
21052 do this manually, see section
21053 \begin_inset Space ~
21057 \begin_inset CommandInset citation
21069 \begin_inset Newline newline
21073 \begin_inset Note Greyedout
21076 \begin_layout Plain Layout
21081 There is currently a bug in
21085 when the caption contains a German
21086 \begin_inset Quotes eld
21090 \begin_inset Quotes erd
21094 Use in this case the command
21095 \begin_inset Quotes eld
21105 \begin_inset Quotes erd
21108 in TeX-Code instead of
21109 \begin_inset Quotes eld
21113 \begin_inset Quotes erd
21124 \begin_layout Standard
21125 \begin_inset VSpace bigskip
21128 For more details about float placements, have a look at LaTeX books,
21129 \begin_inset CommandInset citation
21131 key "latexcompanion,latexguide,latexbook"
21138 \begin_layout Section
21140 \begin_inset CommandInset label
21142 name "sec:Rotated-Floats"
21150 \begin_layout Plain Layout
21159 \begin_layout Standard
21160 Especially for wide tables you might have floats rotated.
21161 To rotate a whole float including the caption, right-click on the float-box
21165 \begin_inset Space ~
21173 \begin_layout Standard
21174 Rotated floats are always placed on its own page (or column, when you have
21175 a two-column document).
21176 They are rotated so that you can read them from the outside margin.
21177 To force a certain rotation direction for all pages, you can add either
21186 to the document class options.
21189 \begin_layout Standard
21190 Referencing rotated floats is the same like for normal floats, the caption
21191 format is also the same: Table
21192 \begin_inset Space ~
21196 \begin_inset CommandInset ref
21198 reference "tab:Rotated-table"
21202 is an example of a rotated table float.
21205 \begin_layout Standard
21206 \begin_inset Note Greyedout
21209 \begin_layout Plain Layout
21214 Not all DVI-viewers are able to display rotated floats.
21222 \begin_layout Standard
21223 \begin_inset Float table
21228 \begin_layout Plain Layout
21229 \begin_inset Caption
21231 \begin_layout Plain Layout
21232 \begin_inset CommandInset label
21234 name "tab:Rotated-table"
21246 \begin_layout Plain Layout
21248 \begin_inset Tabular
21249 <lyxtabular version="3" rows="1" columns="5">
21251 <column alignment="center" valignment="top" width="0">
21252 <column alignment="center" valignment="top" width="0">
21253 <column alignment="center" valignment="top" width="0">
21254 <column alignment="center" valignment="top" width="0">
21255 <column alignment="center" valignment="top" width="0">
21257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21260 \begin_layout Plain Layout
21266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21269 \begin_layout Plain Layout
21275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21278 \begin_layout Plain Layout
21284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21287 \begin_layout Plain Layout
21293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21296 \begin_layout Plain Layout
21315 \begin_layout Section
21316 Floats Side by Side
21320 \begin_layout Plain Layout
21321 Floats ! Side by side
21329 \begin_layout Standard
21330 To place floats side by side, like for Figure
21331 \begin_inset Space ~
21335 \begin_inset CommandInset ref
21337 reference "fig:Float-left"
21342 \begin_inset CommandInset ref
21344 reference "fig:Float-right"
21353 In it two minipage boxes are inserted.
21357 \begin_layout Plain Layout
21358 Minipages are explained in section
21359 \begin_inset Space ~
21363 \begin_inset CommandInset ref
21365 reference "sec:Minipages"
21374 The width is set to 45
21375 \begin_inset Space \thinspace{}
21379 \begin_inset Space \thinspace{}
21382 column% and the box alignment to
21387 The minipage boxes contain the image and the caption in the same way as
21388 they are in a float.
21389 The only difference is that the image unit
21392 \begin_inset Space ~
21396 \begin_inset Space ~
21401 is now calculated according to the width of the minipage boxes.
21404 \begin_layout Standard
21405 \begin_inset Float figure
21410 \begin_layout Plain Layout
21411 \begin_inset Box Frameless
21420 height_special "totalheight"
21423 \begin_layout Plain Layout
21425 \begin_inset Graphics
21426 filename clipart/mobius.eps
21429 scaleBeforeRotation
21436 \begin_layout Plain Layout
21437 \begin_inset Caption
21439 \begin_layout Plain Layout
21440 \begin_inset CommandInset label
21442 name "fig:Float-left"
21446 Float on the left side.
21457 \begin_inset Space \hfill{}
21461 \begin_inset Box Frameless
21470 height_special "totalheight"
21473 \begin_layout Plain Layout
21475 \begin_inset Graphics
21476 filename clipart/platypus.eps
21479 scaleBeforeRotation
21486 \begin_layout Plain Layout
21487 \begin_inset Caption
21489 \begin_layout Plain Layout
21490 \begin_inset CommandInset label
21492 name "fig:Float-right"
21496 Float on the right side.
21509 \begin_layout Plain Layout
21518 \begin_layout Section
21523 \begin_layout Plain Layout
21524 Caption ! Formatting
21533 \begin_layout Plain Layout
21534 Floats ! Caption Formatting
21543 \begin_layout Plain Layout
21544 LaTeX-packages ! caption
21550 \begin_inset CommandInset label
21552 name "sec:Caption-Formatting"
21559 \begin_layout Standard
21564 environment is the default paragraph environment for
21569 On the LyX screen captions appear as label, e.
21570 \begin_inset Space \thinspace{}
21574 \begin_inset Space ~
21578 \begin_inset Quotes eld
21586 \begin_inset Quotes erd
21589 followed by the caption text.
21591 \begin_inset Quotes eld
21595 \begin_inset Quotes erd
21598 is the actual reference number.
21599 By default the label and the number are in the same font as the caption
21600 text and a colon follows the number to divide the label from the text.
21601 This caption format is not suitable for all document formats.
21605 \begin_layout Standard
21606 To change the default caption format, load the LaTeX-package
21614 \begin_layout Plain Layout
21615 LaTeX-packages ! caption
21620 in the document preamble with this line:
21623 \begin_layout Standard
21628 usepackage[format definition]{caption}
21631 \begin_layout Standard
21632 To have for example the label and the number in sans-serif bold font and
21633 the table captions always above the table like in this document, use the
21637 \begin_layout Standard
21642 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21645 \begin_layout Standard
21646 You can also define different caption formats for the different float types.
21647 In this case load the
21651 package without format specific options and define the different formats
21652 with the help of the command
21655 \begin_layout Standard
21660 captionsetup[float type]{format definition}
21663 \begin_layout Standard
21664 in the document preamble.
21665 For example the caption formats of Figure
21666 \begin_inset Space ~
21670 \begin_inset CommandInset ref
21672 reference "fig:This-is-an-fig"
21677 \begin_inset Space ~
21681 \begin_inset CommandInset ref
21683 reference "tab:This-is-an-tab"
21687 can be created using these commands in the document preamble:
21690 \begin_layout Standard
21695 usepackage[tableposition=top]{caption}
21698 \begin_inset Newline newline
21705 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21706 \begin_inset Newline newline
21713 \begin_layout Plain Layout
21721 captionsetup[figure]
21729 \begin_inset Newline newline
21734 captionsetup[table]{labelfont={bf,sf}}
21737 \begin_layout Standard
21738 \begin_inset Note Greyedout
21741 \begin_layout Plain Layout
21750 has no effect when a
21758 \begin_layout Plain Layout
21759 LaTeX-packages ! koma-script
21764 document class is used.
21765 In this case the document class option
21777 \begin_layout Standard
21778 For more information about the package
21782 we refer to its documentation
21783 \begin_inset CommandInset citation
21785 key "caption,caption-de"
21792 \begin_layout Standard
21793 To change the label name from e.g.
21795 \begin_inset Quotes eld
21799 \begin_inset Quotes erd
21803 \begin_inset Quotes eld
21807 \begin_inset Quotes erd
21810 use this preamble command:
21813 \begin_layout Standard
21820 fnum@figure}{Image~
21825 \begin_layout Standard
21832 inserts the figure number and
21835 \begin_inset Quotes eld
21841 \begin_inset Quotes erd
21844 creates a protected space.
21847 \begin_layout Standard
21848 \begin_inset VSpace bigskip
21859 \begin_layout Plain Layout
21860 LaTeX-packages ! koma-script
21867 article (koma-script)
21875 letter (koma-script)
21879 report (koma-script)
21882 \begin_inset Space \thinspace{}
21885 ), you can alternatively to the
21893 's built-in command
21900 For example, to have the caption label in bold, add this command to your
21904 \begin_layout Standard
21909 setkomafont{captionlabel}{
21914 \begin_layout Standard
21915 For more information about
21926 \begin_inset CommandInset citation
21935 \begin_layout Standard
21939 \begin_layout Plain Layout
21943 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21950 \begin_inset Note Note
21953 \begin_layout Plain Layout
21954 The caption format is changed only for this example.
21962 \begin_layout Standard
21963 \begin_inset Float figure
21969 \begin_layout Plain Layout
21971 \begin_inset Graphics
21972 filename clipart/mobius.eps
21975 scaleBeforeRotation
21982 \begin_layout Plain Layout
21983 \begin_inset Caption
21985 \begin_layout Plain Layout
21986 \begin_inset CommandInset label
21988 name "fig:This-is-an-fig"
21992 This is an example figure caption that is longer than one line to show the
21993 different caption format.
21994 Here a self-defined caption format is used.
22007 \begin_layout Standard
22011 \begin_layout Plain Layout
22015 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22024 \begin_layout Standard
22025 \begin_inset Float table
22031 \begin_layout Plain Layout
22032 \begin_inset Caption
22034 \begin_layout Plain Layout
22035 \begin_inset CommandInset label
22037 name "tab:This-is-an-tab"
22041 This is an example table caption that is longer than one line to show the
22042 different caption format.
22043 Here the standard caption format for tables in this document is used.
22051 \begin_layout Plain Layout
22053 \begin_inset Tabular
22054 <lyxtabular version="3" rows="1" columns="5">
22056 <column alignment="center" valignment="top" width="0">
22057 <column alignment="center" valignment="top" width="0">
22058 <column alignment="center" valignment="top" width="0">
22059 <column alignment="center" valignment="top" width="0">
22060 <column alignment="center" valignment="top" width="0">
22062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22065 \begin_layout Plain Layout
22071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22074 \begin_layout Plain Layout
22080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22083 \begin_layout Plain Layout
22089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22092 \begin_layout Plain Layout
22098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22101 \begin_layout Plain Layout
22120 \begin_layout Section
22125 \begin_layout Plain Layout
22126 Caption ! Placement
22135 \begin_layout Plain Layout
22136 Floats ! Caption Placement
22142 \begin_inset CommandInset label
22144 name "sec:Caption-Placement"
22151 \begin_layout Standard
22152 The common caption placement rule is:
22155 \begin_layout Description
22156 Figure: Caption is set below the figure
22159 \begin_layout Description
22160 Table: Caption is set above the table
22163 \begin_layout Standard
22164 Having the caption above the table is unfortunately not supported in LaTeX's
22166 That means if you are using the document classes
22182 there will be no space between the caption and the table.
22183 To insert the needed space, add the following option to the load command
22184 of the LaTeX-package
22188 in your document preamble
22192 \begin_layout Plain Layout
22194 \begin_inset Space ~
22198 \begin_inset CommandInset ref
22200 reference "sec:Caption-Formatting"
22204 for more information of the package
22216 \begin_layout Standard
22222 \begin_layout Standard
22231 \begin_layout Plain Layout
22232 LaTeX-packages ! koma-script
22239 article (koma-script)
22247 letter (koma-script)
22251 report (koma-script)
22254 \begin_inset Space \thinspace{}
22257 ), you can alternatively to the
22261 package set the document class option
22268 \begin_layout Standard
22269 \begin_inset VSpace bigskip
22272 It is also possible to set the caption beside a figure or table.
22273 To get this the LaTeX-package
22281 \begin_layout Plain Layout
22282 LaTeX-packages ! sidecap
22287 has to be loaded in the document preamble with the line
22290 \begin_layout Standard
22295 usepackage[option]{sidecap}
22298 \begin_layout Standard
22299 If you set no option, the caption is placed on the side of the outer page
22300 margin -- to the right on odd pages, to the left on even pages.
22301 You can change the placement to inner margin with the option
22306 To force the placement always to the right or left, use the option
22317 \begin_layout Standard
22321 \begin_layout Plain Layout
22331 \begin_inset Note Note
22334 \begin_layout Plain Layout
22335 The following section will only be displayed when the LaTeX-package
22347 \begin_layout Standard
22348 To place in LyX the caption of a float on the side, it is necessary to add
22349 these commands to the document preamble:
22352 \begin_layout Standard
22358 \begin_layout Standard
22366 \begin_inset Newline newline
22373 \begin_layout Plain Layout
22389 \begin_inset Newline newline
22396 \begin_layout Plain Layout
22412 \begin_inset Newline newline
22419 \begin_layout Plain Layout
22430 renewenvironment{table}{
22437 \begin_layout Standard
22445 \begin_inset Newline newline
22452 \begin_layout Plain Layout
22468 \begin_inset Newline newline
22475 \begin_layout Plain Layout
22493 \begin_layout Standard
22501 \begin_inset Newline newline
22508 \begin_layout Plain Layout
22524 \begin_inset Newline newline
22531 \begin_layout Plain Layout
22547 \begin_inset Newline newline
22554 \begin_layout Plain Layout
22565 renewenvironment{figure}{
22572 \begin_layout Standard
22580 \begin_inset Newline newline
22587 \begin_layout Plain Layout
22603 \begin_inset Newline newline
22610 \begin_layout Plain Layout
22628 \begin_layout Standard
22634 \begin_layout Standard
22635 The commands allow you to redefine the floats so that the caption is set
22637 For figure floats use the command
22640 \begin_layout Standard
22648 \begin_layout Standard
22649 in TeX-Code before the float.
22650 Behind the float insert the command
22653 \begin_layout Standard
22661 \begin_layout Standard
22662 in TeX-Code to get back to the original float definition.
22665 \begin_layout Standard
22666 For table floats use the corresponding commands
22669 \begin_layout Standard
22683 \begin_layout Standard
22685 \begin_inset Space ~
22689 \begin_inset CommandInset ref
22691 reference "fig:cap-beside-fig"
22696 \begin_inset Space ~
22700 \begin_inset CommandInset ref
22702 reference "tab:cap-beside-tab"
22706 are examples where the caption is set beside.
22709 \begin_layout Standard
22710 You can see in the examples that the caption text appears at the top of
22711 the floats for table floats and at the bottom for figure floats.
22712 To change this, you can use the command
22715 \begin_layout Standard
22720 sidecaptionvpos{float type}{placement}
22723 \begin_layout Standard
22724 in the document preamble or in TeX-Code before the float.
22725 The float type is either
22733 , the placement can be
22734 \begin_inset Quotes eld
22742 \begin_inset Quotes erd
22746 \begin_inset Quotes eld
22754 \begin_inset Quotes erd
22758 \begin_inset Quotes eld
22766 \begin_inset Quotes erd
22770 To have for example the caption of figure floats vertically centered, use
22774 \begin_layout Standard
22779 sidecaptionvpos{figure}{c}
22782 \begin_layout Standard
22783 This was used for Figure
22784 \begin_inset Space ~
22788 \begin_inset CommandInset ref
22790 reference "fig:cap-beside-fig-2"
22797 \begin_layout Standard
22798 \begin_inset VSpace medskip
22801 For more information about the package
22805 we refer to its documentation
22806 \begin_inset CommandInset citation
22815 \begin_layout Standard
22816 \begin_inset Note Greyedout
22819 \begin_layout Plain Layout
22832 \begin_layout Plain Layout
22833 LaTeX-packages ! hypcap
22838 , described in section
22839 \begin_inset Space ~
22843 \begin_inset CommandInset ref
22845 reference "sub:Reference-Position"
22849 , has no effect on floats with the caption set beside.
22857 \begin_layout Standard
22861 \begin_layout Plain Layout
22873 \begin_layout Standard
22874 \begin_inset Float figure
22879 \begin_layout Plain Layout
22880 \begin_inset Graphics
22881 filename clipart/escher-lsd.eps
22883 scaleBeforeRotation
22890 \begin_layout Plain Layout
22891 \begin_inset Caption
22893 \begin_layout Plain Layout
22894 \begin_inset CommandInset label
22896 name "fig:cap-beside-fig"
22900 This is a caption beside a figure.
22913 \begin_layout Standard
22917 \begin_layout Plain Layout
22929 \begin_layout Standard
22930 \begin_inset Float table
22935 \begin_layout Plain Layout
22936 \begin_inset Caption
22938 \begin_layout Plain Layout
22939 \begin_inset CommandInset label
22941 name "tab:cap-beside-tab"
22945 This is a caption beside a table.
22953 \begin_layout Plain Layout
22954 \begin_inset Tabular
22955 <lyxtabular version="3" rows="4" columns="5">
22957 <column alignment="center" valignment="top" width="0">
22958 <column alignment="center" valignment="top" width="0">
22959 <column alignment="center" valignment="top" width="0">
22960 <column alignment="center" valignment="top" width="0">
22961 <column alignment="center" valignment="top" width="0">
22963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22966 \begin_layout Plain Layout
22972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22975 \begin_layout Plain Layout
22981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22984 \begin_layout Plain Layout
22990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22993 \begin_layout Plain Layout
22999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23002 \begin_layout Plain Layout
23010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23013 \begin_layout Plain Layout
23019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23022 \begin_layout Plain Layout
23028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23031 \begin_layout Plain Layout
23037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23040 \begin_layout Plain Layout
23046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23049 \begin_layout Plain Layout
23057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23060 \begin_layout Plain Layout
23066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23069 \begin_layout Plain Layout
23075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23078 \begin_layout Plain Layout
23084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23087 \begin_layout Plain Layout
23093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23096 \begin_layout Plain Layout
23104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23107 \begin_layout Plain Layout
23113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23116 \begin_layout Plain Layout
23122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23125 \begin_layout Plain Layout
23131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23134 \begin_layout Plain Layout
23140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23143 \begin_layout Plain Layout
23162 \begin_layout Standard
23166 \begin_layout Plain Layout
23178 \begin_layout Standard
23182 \begin_layout Plain Layout
23186 sidecaptionvpos{figure}{c}
23192 \begin_inset Float figure
23197 \begin_layout Plain Layout
23198 \begin_inset Graphics
23199 filename clipart/escher-lsd.eps
23201 scaleBeforeRotation
23208 \begin_layout Plain Layout
23209 \begin_inset Caption
23211 \begin_layout Plain Layout
23212 \begin_inset CommandInset label
23214 name "fig:cap-beside-fig-2"
23218 This is a vertically centered caption beside a figure.
23231 \begin_layout Standard
23235 \begin_layout Plain Layout
23247 \begin_layout Standard
23251 \begin_layout Plain Layout
23261 \begin_inset Note Note
23264 \begin_layout Plain Layout
23265 The following will be displayed when the LaTeX-package
23277 \begin_layout Standard
23278 You need to install the LaTeX-package
23282 to see the following part of this section in the output.
23285 \begin_layout Standard
23289 \begin_layout Plain Layout
23301 \begin_layout Section
23303 \begin_inset CommandInset label
23305 name "sec:Listings-of-Floats"
23313 \begin_layout Plain Layout
23314 Floats ! Float Lists
23322 \begin_layout Standard
23323 Similar to the the table of contents where the sections of the document
23324 are listed, there are listings for all float types, like the figures of
23326 You can insert them via the
23328 Insert\SpecialChar \menuseparator
23330 \begin_inset Space ~
23334 \begin_inset Space ~
23342 \begin_layout Standard
23343 The list entries are the float captions or its short title, the float number,
23344 and the page number where they appear in the document.
23347 \begin_layout Standard
23348 You can find the list of figures and tables at the end of this document.
23351 \begin_layout Chapter
23355 \begin_layout Section
23357 \begin_inset CommandInset label
23359 name "sec:LyX-Notes"
23367 \begin_layout Plain Layout
23376 \begin_layout Standard
23377 Notes are inserted with the toolbar button
23378 \begin_inset Graphics
23379 filename ../images/note-insert.png
23381 scaleBeforeRotation
23387 Insert\SpecialChar \menuseparator
23391 There are five types of notes:
23394 \begin_layout Description
23396 \begin_inset Space ~
23399 Note This note type is for internal notes that won't appear in the output.
23400 Its note-box looks like this:
23401 \begin_inset Newline newline
23405 \begin_inset Newline newline
23409 \begin_inset Graphics
23410 filename clipart/LyXNoteImageQt4.png
23413 scaleBeforeRotation
23418 \begin_inset Note Note
23421 \begin_layout Plain Layout
23422 This is text in a note box that doesn't appear in the output.
23430 \begin_layout Description
23431 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23432 ent, when you export the document to LaTeX via the menu
23434 File\SpecialChar \menuseparator
23435 Export\SpecialChar \menuseparator
23436 LaTeX (pdflatex) / (plain)
23439 Its note-box looks like this:
23440 \begin_inset Newline newline
23444 \begin_inset Newline newline
23448 \begin_inset Graphics
23449 filename clipart/CommentNoteImageQt4.png
23452 scaleBeforeRotation
23457 \begin_inset Note Comment
23460 \begin_layout Plain Layout
23461 This is text in a note box that only appears as comment in LaTeX-files.
23469 \begin_layout Description
23471 \begin_inset Space ~
23474 Out This note will appear in the output as grey text.
23475 Its note-box looks like this:
23476 \begin_inset Newline newline
23480 \begin_inset Newline newline
23484 \begin_inset Graphics
23485 filename clipart/GreyedOutNoteImageQt4.png
23488 scaleBeforeRotation
23493 \begin_inset Newline newline
23500 \begin_layout Plain Layout
23504 renewenvironment{lyxgreyedout}
23507 \begin_layout Plain Layout
23511 textcolor[gray]{0.8}
23521 \begin_inset Note Greyedout
23524 \begin_layout Plain Layout
23529 \begin_layout Plain Layout
23530 This is an example footnote within a greyed out note.
23535 of a comment that appears in the output as grey text.
23544 \begin_layout Plain Layout
23548 renewenvironment{lyxgreyedout}
23551 \begin_layout Plain Layout
23565 \begin_inset Note Note
23568 \begin_layout Plain Layout
23569 The greyed out note is here redefined to show it with the original LyX definitio
23570 n because greyed out notes are redefined in the preamble of this document,
23571 as described below, to have blue text.
23577 \begin_inset Newline newline
23581 \begin_inset Newline newline
23584 As you can see in the example, the first line of greyed out notes is a bit
23585 indented and greyed out notes can have footnotes.
23588 \begin_layout Description
23589 Framed This note will appear in the output as framed text.
23590 Its note-box looks like this:
23591 \begin_inset Newline newline
23595 \begin_inset Newline newline
23599 \begin_inset Graphics
23600 filename clipart/FramedNoteImageQt4.png
23603 scaleBeforeRotation
23608 \begin_inset Box Framed
23617 height_special "totalheight"
23620 \begin_layout Plain Layout
23621 This is text in a note box that appears framed in the output.
23626 In contrary to framed boxes
23630 \begin_layout Plain Layout
23631 Framed boxes are described in section
23632 \begin_inset Space ~
23636 \begin_inset CommandInset ref
23638 reference "sec:Framed-Boxes"
23647 the frame uses always the whole text width and the note is set into its
23651 \begin_layout Description
23652 Shaded This note will appear in the output with red background color.
23653 Its note box looks like this:
23654 \begin_inset Newline newline
23658 \begin_inset Newline newline
23662 \begin_inset Graphics
23663 filename clipart/ShadedNoteImageQt4.png
23666 scaleBeforeRotation
23671 \begin_inset Box Shaded
23680 height_special "totalheight"
23683 \begin_layout Plain Layout
23684 This text in a note box appears in the output with red background.
23689 In contrary to colored boxes
23693 \begin_layout Plain Layout
23694 Colored boxes are described in section
23695 \begin_inset Space ~
23699 \begin_inset CommandInset ref
23701 reference "sec:Colored-Boxes"
23710 the note uses always the whole text width and the note is set into its
23714 \begin_layout Standard
23715 \begin_inset VSpace bigskip
23718 When you use the toolbar button
23719 \begin_inset Graphics
23720 filename ../images/note-insert.png
23722 scaleBeforeRotation
23729 \begin_inset Space ~
23735 You can switch between the five note types by right-clicking on the note-box.
23740 If you want to turn existing text into a note, mark it and click on the
23754 To change a note to text, press the backspace key when the cursor is in
23755 the first position of a note, or press the deletey key when the cursor
23756 is in the very last position of the note, respectively.
23759 \begin_layout Standard
23760 \begin_inset VSpace bigskip
23763 You can change the text color of the greyed out notes in the preamble with
23764 the following command:
23767 \begin_layout Standard
23772 renewenvironment{lyxgreyedout}
23773 \begin_inset Newline newline
23780 \begin_layout Plain Layout
23798 \begin_layout Standard
23799 The available colors and the method to define own colors is explained in
23801 \begin_inset Space ~
23805 \begin_inset CommandInset ref
23807 reference "sec:Colored-Tables"
23814 \begin_layout Standard
23815 Notes that appear in blue in this document are set using greyed out notes
23819 \begin_layout Standard
23820 \begin_inset VSpace bigskip
23826 \begin_layout Standard
23835 notes can be set in the
23842 \begin_layout Standard
23843 The default frame width for
23848 \begin_inset Space \thinspace{}
23851 pt; it can be changed by changing the size
23858 The default space between the note content and the frame is 9
23859 \begin_inset Space \thinspace{}
23862 pt; it can be changed by changing the size
23869 For example the frame appearance of the following
23873 note is set with the TeX-Code commands
23876 \begin_layout Standard
23886 \begin_layout Standard
23890 \begin_layout Plain Layout
23902 \begin_inset Box Framed
23911 height_special "totalheight"
23914 \begin_layout Plain Layout
23928 \begin_layout Plain Layout
23942 \begin_layout Standard
23943 \begin_inset VSpace bigskip
23949 \begin_layout Standard
23954 notes the default space between the note content and the note border is
23956 \begin_inset Space \thinspace{}
23959 pt; it can be changed by changing the size
23966 \begin_inset Newline newline
23969 The default background color red can be changed with the command
23973 definecolor{shadebox}
23982 command is explained in section
23983 \begin_inset Space ~
23987 \begin_inset CommandInset ref
23989 reference "sec:Colored-Tables"
23997 \begin_layout Plain Layout
24004 \SpecialChar \textcompwordmark{}
24009 requires the LaTeX-package
24013 in the preamble, see section
24014 \begin_inset Space ~
24018 \begin_inset CommandInset ref
24020 reference "sec:Colored-Boxes"
24032 \begin_layout Standard
24033 For example the appearance of the following
24037 note is set with the TeX-Code commands
24040 \begin_layout Standard
24048 \begin_inset Newline newline
24055 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
24058 \begin_layout Standard
24062 \begin_layout Plain Layout
24075 \begin_layout Plain Layout
24079 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
24085 \begin_inset Box Shaded
24094 height_special "totalheight"
24097 \begin_layout Plain Layout
24100 This is yellow text in a
24110 note with darkgreen background.
24119 \begin_layout Plain Layout
24132 \begin_layout Plain Layout
24136 definecolor{shadecolor}{rgb}{1,0,0}
24144 \begin_layout Section
24146 \begin_inset CommandInset label
24148 name "sec:Footnotes"
24156 \begin_layout Plain Layout
24166 \begin_layout Plain Layout
24175 \begin_layout Standard
24176 Footnotes can be inserted using the toolbar button
24177 \begin_inset Graphics
24178 filename ../images/footnote-insert.png
24180 scaleBeforeRotation
24186 Insert\SpecialChar \menuseparator
24198 then the following footnote-box:
24199 \begin_inset Graphics
24200 filename clipart/footnoteQt4.png
24202 scaleBeforeRotation
24210 where you can enter the footnote text.
24211 If you want to turn existing text into a footnote, mark it and click on
24233 to text, press the Backspace key when the cursor is in the first position
24242 , or press the Delete key when the cursor is in the very last position of
24254 \begin_layout Standard
24255 Here is an example footnote:
24263 \begin_layout Plain Layout
24264 \begin_inset CommandInset label
24266 name "foot:This-is-an"
24270 This is an example footnote.
24283 \begin_layout Plain Layout
24287 newcounter{MyRepeatFoot}
24290 \begin_layout Plain Layout
24294 setcounter{MyRepeatFoot}{
24304 \begin_layout Standard
24305 The footnote will appear in the output as a superscript number at the text
24306 position where the footnote box is placed.
24307 The footnote text is placed at the bottom of the current page.
24308 The footnote number is calculated by LaTeX, the numbers are consecutive.
24309 It depends on your document-class, if the footnote number is reset for
24313 \begin_layout Standard
24314 Footnotes can be referenced like floats: Insert a label into the footnote
24315 and cross-reference this label in the text as described in section
24316 \begin_inset Space ~
24320 \begin_inset CommandInset ref
24322 reference "sec:Referencing-Floats"
24327 \begin_inset Newline newline
24330 This is a cross-reference of Footnote
24331 \begin_inset Space ~
24335 \begin_inset CommandInset ref
24337 reference "foot:This-is-an"
24344 \begin_layout Standard
24345 \begin_inset VSpace defskip
24348 To use footnotes within tables, you have to use minipages, see section
24349 \begin_inset Space ~
24353 \begin_inset CommandInset ref
24355 reference "sec:Minipages"
24360 Footnotes within longtables are described in section
24361 \begin_inset Space ~
24365 \begin_inset CommandInset ref
24367 reference "sub:Footnotes-in-Longtables"
24374 \begin_layout Standard
24375 \begin_inset VSpace defskip
24378 To create only a mark for a footnote, use the command
24382 footnotemark[number]
24385 This is used when you have the same annotation several times in a text
24386 but doesn't want to print the footnote text every time.
24387 \begin_inset Newline newline
24390 As you don't know the number of the repeating footnote while you are writing
24391 the text, you have to store its number.
24392 For the following footnote mark example, these commands were inserted in
24393 TeX-Code behind Footnote
24394 \begin_inset Space ~
24398 \begin_inset CommandInset ref
24400 reference "foot:This-is-an"
24404 to store the footnote number:
24407 \begin_layout Standard
24412 newcounter{MyRepeatFoot}
24413 \begin_inset Newline newline
24418 setcounter{MyRepeatFoot}{
24423 \begin_layout Standard
24424 The footnote mark was then created with this command:
24427 \begin_layout Standard
24437 \begin_layout Standard
24438 Here is an example footnote mark:
24446 \begin_layout Plain Layout
24460 \begin_layout Subsection
24462 \begin_inset CommandInset label
24464 name "sub:Footnote-Numbering"
24472 \begin_layout Plain Layout
24473 Footnotes ! Numbering
24481 \begin_layout Standard
24482 To reset the footnote number back to 1 after each section
24484 , add this command to your document preamble:
24487 \begin_layout Standard
24492 @addtoreset{footnote}{section}
24495 \begin_layout Standard
24496 \begin_inset VSpace bigskip
24499 The following preamble command changes the footnote numbering style to small
24503 \begin_layout Standard
24515 \begin_layout Standard
24519 \begin_layout Plain Layout
24532 This is a footnote with roman numbering:
24536 \begin_layout Plain Layout
24537 This is an example footnote with roman numbering.
24545 \begin_layout Standard
24546 To change the numbering style to capital roman numerals replace in the command
24561 \begin_inset Quotes eld
24565 \begin_inset Quotes erd
24568 footnotes with capital or small Latin letters use
24582 \begin_inset Quotes eld
24586 \begin_inset Quotes erd
24589 footnotes with symbols use
24598 \begin_layout Standard
24599 \begin_inset Note Greyedout
24602 \begin_layout Plain Layout
24607 You can only number 26 footnotes with Latin letters, because this numbering
24608 is limited to single letters.
24614 \begin_inset Newline newline
24618 \begin_inset Note Greyedout
24621 \begin_layout Plain Layout
24626 You can only number 9 footnotes with symbols.
24634 \begin_layout Standard
24635 To return to the default numbering style when you changed to another one,
24648 in the command above.
24652 \begin_layout Plain Layout
24668 \begin_layout Standard
24669 \begin_inset VSpace bigskip
24675 \begin_layout Standard
24676 If you want to have footnotes numbered in the scheme
24677 \begin_inset Quotes eld
24681 \begin_inset Quotes erd
24684 , add the following command to your document preamble:
24687 \begin_layout Standard
24692 numberwithin{footnote}{chapter}
24695 \begin_layout Standard
24696 To be able to use the command
24705 \begin_inset Space ~
24710 in the document settings the option
24713 \begin_inset Space ~
24717 \begin_inset Space ~
24721 \begin_inset Space ~
24729 \begin_layout Standard
24733 \begin_layout Plain Layout
24737 numberwithin{footnote}{chapter}
24742 This is another example footnote:
24748 \begin_layout Plain Layout
24749 This is a footnote numbered in the scheme
24750 \begin_inset Quotes eld
24754 \begin_inset Quotes erd
24768 \begin_layout Plain Layout
24784 \begin_layout Standard
24785 \begin_inset Note Greyedout
24788 \begin_layout Plain Layout
24799 always prints out the footnote number as arabic number; previous redefinitions
24800 to get non-arabic numbers are overwritten.
24808 \begin_layout Standard
24809 So to get for example the scheme
24810 \begin_inset Quotes eld
24816 \begin_inset Quotes erd
24819 , use this command instead of
24828 \begin_layout Standard
24842 \begin_layout Subsection
24847 \begin_layout Plain Layout
24848 Footnotes ! Placement
24856 \begin_layout Standard
24857 If you have several footnotes in one page, they appear without vertical
24858 space between them at the bottom of the page.
24859 To make them better readable you can e.
24860 \begin_inset Space \thinspace{}
24864 \begin_inset Space ~
24868 \begin_inset Space \thinspace{}
24871 mm space with the following preamble command:
24874 \begin_layout Standard
24884 \begin_inset Newline newline
24898 \begin_layout Standard
24899 \begin_inset VSpace bigskip
24902 In a two-column document the footnotes appear at the bottom of every column,
24904 \begin_inset Space ~
24908 \begin_inset CommandInset ref
24910 reference "fig:Standard-footnote-placement"
24915 If the footnotes should only appear at the bottom of the right column,
24917 \begin_inset Space ~
24921 \begin_inset CommandInset ref
24923 reference "fig:Footnote-placement-in"
24927 , use the LaTeX-package
24935 \begin_layout Plain Layout
24936 LaTeX-packages ! ftnright
24941 with this command in the document preamble:
24944 \begin_layout Standard
24949 usepackage{ftnright}
24952 \begin_layout Standard
24953 \begin_inset Float figure
24959 \begin_layout Plain Layout
24963 \begin_layout Plain Layout
24973 \begin_inset Graphics
24974 filename clipart/without_fntright.pdf
24976 scaleBeforeRotation
24984 \begin_layout Plain Layout
24994 \begin_layout Plain Layout
24995 \begin_inset Caption
24997 \begin_layout Plain Layout
24998 \begin_inset CommandInset label
25000 name "fig:Standard-footnote-placement"
25004 Standard footnote placement in two-column documents.
25017 \begin_layout Standard
25018 \begin_inset Float figure
25024 \begin_layout Plain Layout
25028 \begin_layout Plain Layout
25038 \begin_inset Graphics
25039 filename clipart/with_fntright.pdf
25041 scaleBeforeRotation
25049 \begin_layout Plain Layout
25059 \begin_layout Plain Layout
25060 \begin_inset Caption
25062 \begin_layout Plain Layout
25063 \begin_inset CommandInset label
25065 name "fig:Footnote-placement-in"
25069 Footnote placement in two-column documents when the LaTeX-package
25086 \begin_layout Standard
25087 \begin_inset VSpace bigskip
25090 In some scientific literature it is usual to collect the footnotes and print
25091 them in a separate paragraph at the the end of a section, like in Figure
25092 \begin_inset Space ~
25096 \begin_inset CommandInset ref
25098 reference "fig:Endnotes----footnotes"
25103 They are then so called
25104 \begin_inset Quotes eld
25108 \begin_inset Quotes erd
25115 \begin_layout Plain Layout
25121 To use endnotes instead of footnotes in your document, load the LaTeX-package
25130 \begin_layout Plain Layout
25131 LaTeX-packages ! endnotes
25136 with the document preamble lines
25139 \begin_layout Standard
25144 usepackage{endnotes}
25145 \begin_inset Newline newline
25157 \begin_layout Standard
25158 To insert the collected footnotes, insert the command
25161 \begin_layout Standard
25169 \begin_layout Standard
25170 in TeX-Code at the the end of a section or chapter.
25173 \begin_layout Standard
25174 \begin_inset Float figure
25179 \begin_layout Plain Layout
25184 \begin_layout Plain Layout
25194 \begin_inset Graphics
25195 filename clipart/endnotes.pdf
25196 scaleBeforeRotation
25204 \begin_layout Plain Layout
25214 \begin_layout Plain Layout
25215 \begin_inset Caption
25217 \begin_layout Plain Layout
25218 \begin_inset CommandInset label
25220 name "fig:Endnotes----footnotes"
25224 Endnotes -- footnotes are printed in a separate paragraph at the end of
25225 sections or chapters.
25238 \begin_layout Standard
25239 \begin_inset VSpace medskip
25242 The paragraph heading for the endnotes isn't automatically translated into
25243 the document language, this must be done manually.
25244 The following preamble command translate the default English name
25245 \begin_inset Quotes eld
25249 \begin_inset Quotes erd
25252 to the German translation
25253 \begin_inset Quotes eld
25257 \begin_inset Quotes erd
25263 \begin_layout Standard
25270 notesname}{Anmerkungen}
25273 \begin_layout Standard
25274 \begin_inset VSpace medskip
25277 The numbering of endnotes can be changed like the footnote numbering as
25278 described in section
25279 \begin_inset Space ~
25283 \begin_inset CommandInset ref
25285 reference "sub:Footnote-Numbering"
25289 ; just replace the command
25302 To reset the endnote number use the command
25308 as described in section
25309 \begin_inset Space ~
25313 \begin_inset CommandInset ref
25315 reference "sub:Footnote-Numbering"
25319 and replace the command parameter
25330 \begin_layout Standard
25331 To create only a mark for an endnote, use the command
25335 endnotemark[number]
25337 similar to the command
25343 , described in section
25344 \begin_inset Space ~
25348 \begin_inset CommandInset ref
25350 reference "sec:Footnotes"
25357 \begin_layout Standard
25358 \begin_inset VSpace bigskip
25361 Footnotes can also be placed in the page margin and the footnote text alignment
25362 can be changed, see the LaTeX-package
25370 \begin_layout Plain Layout
25371 LaTeX-packages ! footmisc
25377 \begin_inset CommandInset citation
25383 for more information about this.
25386 \begin_layout Standard
25387 For various further footnote formatting issues have a look at LaTeX-books,
25389 \begin_inset CommandInset citation
25391 key "latexcompanion,latexguide,latexbook"
25398 \begin_layout Section
25403 \begin_layout Plain Layout
25404 Notes ! Margin Notes
25412 \begin_layout Standard
25413 Margin notes look and behave in LyX like footnotes.
25414 They are inserted via the menu
25416 Insert\SpecialChar \menuseparator
25418 \begin_inset Space ~
25423 or the toolbar button
25424 \begin_inset Graphics
25425 filename ../images/marginalnote-insert.png
25427 scaleBeforeRotation
25442 \begin_inset Quotes eld
25446 \begin_inset Quotes erd
25449 appears where you can enter the text of the margin note.
25452 \begin_layout Standard
25453 At the side is an example margin note.
25457 \begin_inset Marginal
25460 \begin_layout Plain Layout
25461 This is a margin note.
25469 \begin_layout Standard
25470 Margin notes appear at the right side in single-sided documents.
25471 In double-sided documents they appear in the outer margin -- left on even
25472 pages, right on odd pages.
25473 The text of margin notes is aligned opposite to the outer margin -- right-align
25474 ed when the note appears in the left margin.
25475 The first line of the margin note is placed at the position of the text
25476 line where it is inserted in the document.
25479 \begin_layout Standard
25480 \begin_inset VSpace bigskip
25483 To place the margin note in the inner margin, add the command
25486 \begin_layout Standard
25494 \begin_layout Standard
25495 in TeX-Code before a margin note.
25496 The new placement is valid for all following margin notes.
25500 \begin_layout Plain Layout
25510 \begin_inset Marginal
25513 \begin_layout Plain Layout
25514 This is a margin note in the inner margin.
25522 \begin_inset Newline newline
25528 \begin_inset Note Greyedout
25531 \begin_layout Plain Layout
25536 There is often not enough space in the inner margin so that the notes are
25537 not correctly displayed in the output.
25545 \begin_layout Standard
25546 To return to the default placement insert the command
25549 \begin_layout Standard
25557 \begin_layout Standard
25562 \begin_layout Plain Layout
25572 \begin_inset Note Greyedout
25575 \begin_layout Plain Layout
25580 The command is ignored when it is within a paragraph where also the command
25595 \begin_layout Standard
25596 \begin_inset VSpace bigskip
25603 \begin_inset Marginal
25606 \begin_layout Plain Layout
25607 AVeryLongMarginParWord that isn't hyphenated.
25615 Similar to the case described in section
25616 \begin_inset Space ~
25620 \begin_inset CommandInset ref
25622 reference "sub:Multiple-Lines-in"
25626 , long words cannot be hyphenated when they are the first word in a margin
25628 To avoid this, insert the command
25631 \begin_layout Standard
25639 \begin_layout Standard
25640 in TeX-Code before the word
25644 \begin_inset Marginal
25647 \begin_layout Plain Layout
25651 \begin_layout Plain Layout
25660 AVeryLongMarginParWord that is hyphenated.
25668 \begin_layout Standard
25669 \begin_inset VSpace bigskip
25675 \begin_layout Standard
25676 \begin_inset Note Greyedout
25679 \begin_layout Plain Layout
25684 Margin notes can normally not be used inside tables, floats, and footnotes.
25692 \begin_layout Standard
25693 \begin_inset VSpace bigskip
25699 \begin_layout Standard
25703 \begin_layout Plain Layout
25713 \begin_inset Note Note
25716 \begin_layout Plain Layout
25717 The following section will only be displayed when the LaTeX-package
25729 \begin_layout Standard
25730 This restriction can be evaded by using the LaTeX-package
25738 \begin_layout Plain Layout
25739 LaTeX-packages ! marginnote
25745 By adding these two lines to your document preamble, the command used by
25746 LyX for margin notes is redefined to use the command provided by the
25753 \begin_layout Standard
25758 usepackage{marginnote}
25759 \begin_inset Newline newline
25771 \begin_layout Standard
25772 This is also used in this document because
25776 has another useful feature: You can set a vertical offset for the note.
25777 This is often needed when too many margin notes are too close together
25778 or for a better page layout.
25779 The offset is set in LyX as TeX-Code directly behind the margin note in
25783 \begin_layout Standard
25789 \begin_layout Standard
25790 where the offset is a length with one of the units listed in Table
25791 \begin_inset Space ~
25795 \begin_inset CommandInset ref
25797 reference "tab:Units"
25802 A negative value shifts the note up, a positive value shifts it down.
25806 For example the margin note beside this text line is shifted up 1.5
25807 \begin_inset Space \thinspace{}
25810 cm with the TeX-Code-command
25811 \begin_inset Quotes eld
25821 \begin_inset Quotes erd
25825 \begin_inset Marginal
25828 \begin_layout Plain Layout
25829 This margin note is shifted up 1.5
25830 \begin_inset Space \thinspace{}
25833 cm from its original position.
25845 \begin_layout Plain Layout
25855 \begin_layout Standard
25856 \begin_inset VSpace medskip
25863 you can also change the alignment of the text in the margin note.
25864 For example the commands
25867 \begin_layout Standard
25874 raggedleftmarginnote}{
25877 \begin_inset Newline newline
25884 raggedrightmarginnote}{
25889 \begin_layout Standard
25890 set the alignment to centered.
25895 raggedleftmarginnote
25897 denotes margin notes that appear at the left side.
25904 \begin_layout Plain Layout
25910 raggedleftmarginnote}{
25915 \begin_layout Plain Layout
25921 raggedrightmarginnote}{
25929 \begin_inset Marginal
25932 \begin_layout Plain Layout
25933 The text of this margin note is centered.
25944 \begin_layout Standard
25951 raggedleftmarginnote}{
25954 \begin_inset Newline newline
25961 raggedrightmarginnote}{
25970 \begin_layout Plain Layout
25976 raggedleftmarginnote}{
25981 \begin_layout Plain Layout
25987 raggedrightmarginnote}{
25997 \begin_layout Standard
25998 \begin_inset VSpace medskip
26001 For the other features of
26005 we refer to its documentation
26006 \begin_inset CommandInset citation
26015 \begin_layout Standard
26016 \begin_inset VSpace bigskip
26019 You can adjust the layout of margin notes by changing its definition.
26020 To create for example a header for all margin notes with the underlined,
26021 sans-serif, and bold header text
26022 \begin_inset Quotes eld
26034 \begin_inset Quotes erd
26037 , add this to your document preamble:
26040 \begin_layout Standard
26050 \begin_inset Newline newline
26060 \begin_inset Newline newline
26067 \begin_layout Plain Layout
26084 underbar{Attention!}}}%
26085 \begin_inset Newline newline
26092 \begin_layout Plain Layout
26110 \begin_layout Standard
26117 \begin_layout Plain Layout
26128 \begin_layout Plain Layout
26139 \begin_layout Plain Layout
26147 underbar{Attention!}}}%
26150 \begin_layout Plain Layout
26164 \begin_inset Marginal
26167 \begin_layout Plain Layout
26168 This is a margin note with a defined heading.
26180 \begin_layout Plain Layout
26194 \begin_layout Plain Layout
26211 \begin_inset Note Note
26214 \begin_layout Plain Layout
26215 The margin note format is changed only for this example.
26223 \begin_layout Standard
26227 \begin_layout Plain Layout
26237 \begin_inset Note Note
26240 \begin_layout Plain Layout
26241 The following will be displayed when the LaTeX-package
26253 \begin_layout Standard
26254 You need to install the LaTeX-package
26258 to see the following part of this section in the output.
26261 \begin_layout Standard
26265 \begin_layout Plain Layout
26277 \begin_layout Chapter
26281 \begin_layout Section
26286 \begin_layout Plain Layout
26287 Boxes ! Introduction
26295 \begin_layout Standard
26296 Boxes are used to format a block of text.
26297 Boxes can be used to write documents with multiple languages, see section
26298 \begin_inset Space ~
26302 \begin_inset CommandInset ref
26304 reference "sec:Minipages"
26308 , to frame texts, see section
26309 \begin_inset Space ~
26313 \begin_inset CommandInset ref
26315 reference "sec:Framed-Boxes"
26319 , to prevent words to be hyphenated, see section
26320 \begin_inset Space ~
26324 \begin_inset CommandInset ref
26326 reference "sec:Prevent-Hyphenation"
26330 , to align text, see section
26331 \begin_inset Space ~
26335 \begin_inset CommandInset ref
26337 reference "sub:Vertical-Alignment"
26341 , or to set the background color of texts, see section
26342 \begin_inset Space ~
26346 \begin_inset CommandInset ref
26348 reference "sec:Colored-Boxes"
26355 \begin_layout Standard
26356 Boxes can be inserted with the menu
26358 Insert\SpecialChar \menuseparator
26361 or the toolbar button
26362 \begin_inset Graphics
26363 filename ../images/box-insert.png
26365 scaleBeforeRotation
26370 A grey box with the label
26375 \begin_inset Graphics
26376 filename clipart/BoxInsetDefaultQt4.png
26378 scaleBeforeRotation
26382 , will be inserted.
26383 The box type can be specified by right-clicking on the box.
26384 The appearing box dialog offers the
26387 \begin_inset Space ~
26405 is the default for new boxes and is explained in section
26406 \begin_inset Space ~
26410 \begin_inset CommandInset ref
26412 reference "sec:Minipages"
26420 is described in section
26421 \begin_inset Space ~
26425 \begin_inset CommandInset ref
26427 reference "sec:Parboxes"
26434 \begin_layout Standard
26435 Boxes aren't numbered and can therefore not be referenced like floats or
26439 \begin_layout Standard
26440 \begin_inset Note Greyedout
26443 \begin_layout Plain Layout
26448 Boxes must not be the item in an
26464 \begin_layout Standard
26465 \begin_inset Note Greyedout
26468 \begin_layout Plain Layout
26473 For an unknown reason you can only set the
26476 \begin_inset Space ~
26485 when you use a framed box.
26489 \begin_inset Space ~
26494 type and without frames are explained in section
26495 \begin_inset Space ~
26499 \begin_inset CommandInset ref
26501 reference "sec:Prevent-Hyphenation"
26513 \begin_layout Section
26515 \begin_inset CommandInset label
26517 name "sec:Box-Dialog"
26525 \begin_layout Plain Layout
26535 \begin_layout Plain Layout
26544 \begin_layout Standard
26545 In the box dialog you can adjust the box geometry in the fields
26554 The available units for the geometry are explained in Table
26555 \begin_inset Space ~
26559 \begin_inset CommandInset ref
26561 reference "tab:Units"
26570 offers the following additional sizes:
26573 \begin_layout Description
26574 Depth This is the plain text
26575 \begin_inset Quotes eld
26579 \begin_inset Quotes erd
26583 It ignores the total depth when there are multiple text lines in the box:
26584 \begin_inset Newline newline
26588 \begin_inset Newline newline
26592 \begin_inset Newline newline
26596 \begin_inset Box Boxed
26605 height_special "depth"
26608 \begin_layout Plain Layout
26610 Box height set to 1
26611 \begin_inset Space \thinspace{}
26620 \begin_inset Newline newline
26624 \begin_inset Newline newline
26630 \begin_layout Description
26631 Height This is the heigth of the text that is inside the box.
26633 \begin_inset Space \thinspace{}
26637 \begin_inset Space ~
26640 2 for this size will set the box heigth to 2 times the text height:
26641 \begin_inset Box Boxed
26650 height_special "height"
26653 \begin_layout Plain Layout
26655 Box height set to 2
26656 \begin_inset Space \thinspace{}
26667 \begin_layout Description
26669 \begin_inset Space ~
26672 Height This is the Height
26673 \begin_inset Space \thinspace{}
26677 \begin_inset Space \thinspace{}
26681 \begin_inset Box Boxed
26690 height_special "totalheight"
26693 \begin_layout Plain Layout
26695 Box height set to 1
26696 \begin_inset Space \thinspace{}
26700 \begin_inset Space ~
26711 \begin_layout Description
26712 Width This sets the width of the box as heigth:
26713 \begin_inset Box Boxed
26722 height_special "width"
26725 \begin_layout Plain Layout
26727 Box height set to 1
26728 \begin_inset Space \thinspace{}
26739 \begin_layout Standard
26740 \begin_inset VSpace bigskip
26743 When you have chosen an
26746 \begin_inset Space ~
26751 , the vertical box alignment can be:
26754 \begin_layout Description
26755 Top This is an example text line.
26757 \begin_inset Box Boxed
26766 height_special "totalheight"
26769 \begin_layout Plain Layout
26771 This box is top-aligned.
26776 This is an example text line.
26779 \begin_layout Description
26780 Middle This is an example text line.
26782 \begin_inset Box Boxed
26791 height_special "totalheight"
26794 \begin_layout Plain Layout
26796 This box is middle-aligned.
26801 This is an example text line.
26804 \begin_layout Description
26805 Bottom This is an example text line.
26807 \begin_inset Box Boxed
26816 height_special "totalheight"
26819 \begin_layout Plain Layout
26821 This box is bottom-aligned.
26826 This is an example text line.
26829 \begin_layout Standard
26830 The horizontal box alignment can be set via LyX's paragraph dialog when
26831 you set the box into its own paragraph.
26834 \begin_layout Standard
26835 \begin_inset VSpace bigskip
26838 When you have chosen an
26841 \begin_inset Space ~
26846 , the box content can be vertical aligned to:
26849 \begin_layout Description
26850 top This is an example text line.
26852 \begin_inset Box Boxed
26861 height_special "totalheight"
26864 \begin_layout Plain Layout
26866 This box text is top-aligned.
26871 This is an example text line.
26874 \begin_layout Description
26875 middle This is an example text line.
26877 \begin_inset Box Boxed
26886 height_special "totalheight"
26889 \begin_layout Plain Layout
26891 This box text is middle-aligned.
26896 This is an example text line.
26899 \begin_layout Description
26900 bottom This is an example text line.
26902 \begin_inset Box Boxed
26911 height_special "totalheight"
26914 \begin_layout Plain Layout
26916 This box text is bottom-aligned.
26921 This is an example text line.
26924 \begin_layout Description
26925 stretch This is an example text line.
26927 \begin_inset Box Boxed
26936 height_special "totalheight"
26939 \begin_layout Plain Layout
26944 \begin_layout Plain Layout
26949 \begin_layout Plain Layout
26956 This is an example text line.
26959 \begin_layout Standard
26960 To stretch the box content, it must consist of more than one paragraph.
26961 In the example above every text line is in an own paragraph.
26964 \begin_layout Standard
26965 \begin_inset VSpace bigskip
26968 To align the box content horizontally you can use LyX's paragraph dialog
26969 when you have chosen an
26972 \begin_inset Space ~
26980 \begin_layout Standard
26982 \begin_inset Box Boxed
26991 height_special "totalheight"
26994 \begin_layout Plain Layout
26999 \begin_layout Plain Layout
27004 \begin_layout Plain Layout
27014 \begin_layout Standard
27015 If you haven't set an
27018 \begin_inset Space ~
27023 , you can align the box content horizontally in the box dialog.
27026 \begin_layout Standard
27028 \begin_inset Box Boxed
27037 height_special "totalheight"
27040 \begin_layout Plain Layout
27042 This box text is horizontally stretched.
27050 \begin_layout Section
27052 \begin_inset CommandInset label
27054 name "sec:Framed-Boxes"
27062 \begin_layout Plain Layout
27071 \begin_layout Standard
27072 The frame style of the box can be specified in the box-dialog in the drop-down
27078 The following frame types are possible:
27081 \begin_layout Description
27083 \begin_inset Space ~
27086 box This draws a rectangle frame around the box.
27087 The frame line thickness has the size of
27095 \begin_inset Box Boxed
27104 height_special "totalheight"
27107 \begin_layout Plain Layout
27117 \begin_layout Description
27119 \begin_inset Space ~
27123 \begin_inset Space ~
27126 thin This draws an oval frame around the box.
27127 The frame line thickness has the size 0.4
27128 \begin_inset Space \thinspace{}
27133 \begin_inset Box ovalbox
27142 height_special "totalheight"
27145 \begin_layout Plain Layout
27155 \begin_layout Description
27157 \begin_inset Space ~
27161 \begin_inset Space ~
27164 thick This draws an oval frame around the box.
27165 The frame line thickness has the size 0.8
27166 \begin_inset Space \thinspace{}
27171 \begin_inset Box Ovalbox
27180 height_special "totalheight"
27183 \begin_layout Plain Layout
27193 \begin_layout Description
27195 \begin_inset Space ~
27198 box This draws a rectangle frame with a shadow around the box.
27199 The frame line thickness has the size of
27205 , the shadow has a width of 4
27206 \begin_inset Space \thinspace{}
27211 \begin_inset Box Shadowbox
27220 height_special "totalheight"
27223 \begin_layout Plain Layout
27233 \begin_layout Description
27235 \begin_inset Space ~
27238 box This draws a double-line rectangle frame around the box.
27239 The line thickness of the inner frame is 0.75
27240 \begin_inset Space \thinspace{}
27249 , the thickness of the outer frame is 1.5
27250 \begin_inset Space \thinspace{}
27260 The distance between the lines is 1.5
27261 \begin_inset Space \thinspace{}
27271 \begin_inset Space \thinspace{}
27275 \begin_inset Space \thinspace{}
27279 \begin_inset Space \thinspace{}
27284 \begin_inset Box Doublebox
27293 height_special "totalheight"
27296 \begin_layout Plain Layout
27306 \begin_layout Standard
27307 \begin_inset VSpace bigskip
27310 LyX's box label will change to the used frame style when you set a frame.
27311 To be able to use the different frame styles, the LaTeX-package
27319 \begin_layout Plain Layout
27320 LaTeX-packages ! fancybox
27328 \begin_layout Standard
27329 \begin_inset VSpace bigskip
27332 The default value for the size
27339 \begin_inset Space \thinspace{}
27343 It can be changed with the following command in TeX-Code to e.
27344 \begin_inset Space \thinspace{}
27348 \begin_inset Space ~
27352 \begin_inset Space \thinspace{}
27358 \begin_layout Standard
27368 \begin_layout Standard
27372 \begin_layout Plain Layout
27384 \begin_inset Box Boxed
27393 height_special "totalheight"
27396 \begin_layout Plain Layout
27398 Rectangular box with
27405 \begin_inset Space \thinspace{}
27409 \begin_inset Space \thinspace{}
27413 \begin_inset Space \thinspace{}
27425 \begin_layout Plain Layout
27439 \begin_layout Standard
27440 \begin_inset VSpace bigskip
27443 The space between the frame and the box content is for all frame styles
27445 \begin_inset Space \thinspace{}
27449 You can change it by setting the length
27456 For example the command
27459 \begin_layout Standard
27469 \begin_layout Standard
27470 sets the value to 10
27471 \begin_inset Space \thinspace{}
27474 pt, like for the following box:
27477 \begin_layout Standard
27481 \begin_layout Plain Layout
27493 \begin_inset Box Boxed
27502 height_special "totalheight"
27505 \begin_layout Plain Layout
27507 Rectangular box with
27514 \begin_inset Space \thinspace{}
27518 \begin_inset Space \thinspace{}
27522 \begin_inset Space \thinspace{}
27534 \begin_layout Plain Layout
27548 \begin_layout Standard
27549 \begin_inset VSpace bigskip
27552 The diameter of the round corners of the oval boxes can be set with the
27563 \begin_layout Standard
27571 \begin_layout Standard
27572 sets the diameter to 1
27573 \begin_inset Space \thinspace{}
27580 \begin_layout Standard
27588 \begin_layout Standard
27589 sets the diameter to
27592 \begin_inset Space \thinspace{}
27596 \begin_inset Space \thinspace{}
27599 minimum(width and heigth of box)
27611 \begin_layout Standard
27615 \begin_layout Plain Layout
27625 \begin_inset Box Ovalbox
27634 height_special "totalheight"
27637 \begin_layout Plain Layout
27646 \begin_inset Space \thinspace{}
27650 \begin_inset Space \thinspace{}
27654 \begin_inset Space \thinspace{}
27666 \begin_layout Plain Layout
27678 \begin_layout Standard
27679 \begin_inset VSpace bigskip
27682 The size of the shadow can be adjusted by changing the length
27690 \begin_inset Space \thinspace{}
27693 pt for the following box by this command:
27696 \begin_layout Standard
27706 \begin_layout Standard
27710 \begin_layout Plain Layout
27722 \begin_inset Box Shadowbox
27731 height_special "totalheight"
27734 \begin_layout Plain Layout
27743 \begin_inset Space \thinspace{}
27747 \begin_inset Space \thinspace{}
27751 \begin_inset Space \thinspace{}
27763 \begin_layout Plain Layout
27777 \begin_layout Standard
27778 \begin_inset VSpace bigskip
27781 Changed lengths and widths are valid for all boxes following the commands
27785 \begin_layout Section
27787 \begin_inset CommandInset label
27789 name "sec:Minipages"
27797 \begin_layout Plain Layout
27806 \begin_layout Standard
27807 Minipages are treated by LaTeX as pages within pages and can therefore for
27808 example have their own footnotes.
27811 \begin_layout Standard
27812 Minipages are useful when you write documents with different languages.
27815 \begin_layout Standard
27816 Below are two example minipages side by side.
27817 Their width is set to 45
27818 \begin_inset Space \thinspace{}
27821 col% and they are separated by a horizontal fill, that was inserted via
27824 Insert\SpecialChar \menuseparator
27826 \begin_inset Space ~
27829 Formatting\SpecialChar \menuseparator
27831 \begin_inset Space ~
27839 \begin_layout Standard
27840 \begin_inset Box Frameless
27849 height_special "totalheight"
27852 \begin_layout Plain Layout
27855 Dies ist ein deutscher Text.
27856 Dies ist ein deutscher Text.
27857 Dies ist ein deutscher Text.
27858 Dies ist ein deutscher Text.
27859 Dies ist ein deutscher Text.
27860 Dies ist ein deutscher Text.
27861 Dies ist ein deutscher Text.
27862 Dies ist ein deutscher Text.
27863 Dies ist ein deutscher Text.
27864 Dies ist ein deutscher Text.
27865 Dies ist ein deutscher Text.
27866 Dies ist ein deutscher Text.
27867 Dies ist ein deutscher Text
27871 \begin_layout Plain Layout
27874 Dies ist eine deutsche Fußnote.
27880 Dies ist ein deutscher Text.
27881 Dies ist ein deutscher Text.
27887 \begin_inset Space \hfill{}
27891 \begin_inset Box Frameless
27900 height_special "totalheight"
27903 \begin_layout Plain Layout
27904 This is an English Text.
27905 This is an English Text.
27906 This is an English Text.
27907 This is an English Text.
27908 This is an English Text.
27909 This is an English Text.
27910 This is an English Text.
27911 This is an English Text.
27912 This is an English Text.
27913 This is an English Text.
27914 This is an English Text.
27915 This is an English Text.
27916 This is an English Text.
27917 This is an English Text.
27918 This is an English Text.
27919 This is an English Text.
27923 \begin_layout Plain Layout
27924 This is an English footnote.
27929 This is an English Text.
27938 \begin_layout Standard
27939 \begin_inset VSpace bigskip
27942 Another application for minipages are footnotes within tables.
27943 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27944 bottom of the current page.
27945 But when you put the table with the footnote to a minipage, the footnote
27946 will appear at its bottom, numbered with Latin letters.
27947 The footnote number is reset to 1 in every minipage but not outside the
27951 \begin_layout Standard
27952 The footnote of this table doesn't appear:
27953 \begin_inset Tabular
27954 <lyxtabular version="3" rows="3" columns="4">
27956 <column alignment="center" valignment="top" width="0pt">
27957 <column alignment="center" valignment="top" width="0pt">
27958 <column alignment="center" valignment="top" width="0pt">
27959 <column alignment="center" valignment="top" width="0pt">
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27964 \begin_layout Plain Layout
27970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27973 \begin_layout Plain Layout
27979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27982 \begin_layout Plain Layout
27987 \begin_layout Plain Layout
27988 This is a footnote within a table.
27998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28001 \begin_layout Plain Layout
28009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28012 \begin_layout Plain Layout
28018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28021 \begin_layout Plain Layout
28027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28030 \begin_layout Plain Layout
28036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28039 \begin_layout Plain Layout
28047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28050 \begin_layout Plain Layout
28056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28059 \begin_layout Plain Layout
28065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28068 \begin_layout Plain Layout
28074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28077 \begin_layout Plain Layout
28091 \begin_layout Standard
28093 \begin_inset Box Frameless
28102 height_special "totalheight"
28105 \begin_layout Plain Layout
28107 \begin_inset Tabular
28108 <lyxtabular version="3" rows="3" columns="4">
28110 <column alignment="center" valignment="top" width="0pt">
28111 <column alignment="center" valignment="top" width="0pt">
28112 <column alignment="center" valignment="top" width="0pt">
28113 <column alignment="center" valignment="top" width="0pt">
28115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28118 \begin_layout Plain Layout
28124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28127 \begin_layout Plain Layout
28133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28136 \begin_layout Plain Layout
28141 \begin_layout Plain Layout
28142 This is a footnote within a table.
28152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28155 \begin_layout Plain Layout
28163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28166 \begin_layout Plain Layout
28172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28175 \begin_layout Plain Layout
28181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28184 \begin_layout Plain Layout
28190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28193 \begin_layout Plain Layout
28201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28204 \begin_layout Plain Layout
28210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28213 \begin_layout Plain Layout
28219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28222 \begin_layout Plain Layout
28228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28231 \begin_layout Plain Layout
28250 \begin_layout Standard
28251 \begin_inset VSpace bigskip
28254 The document-wide paragraph settings are ignored within minipages.
28255 That means that there will be no space between paragraphs in minipages
28256 although you set it to e.
28257 \begin_inset Space \thinspace{}
28261 \begin_inset Space ~
28268 in the document settings.
28271 \begin_layout Standard
28272 Minipages can also be used to set a background color for text parts, see
28274 \begin_inset Space ~
28278 \begin_inset CommandInset ref
28280 reference "sub:Color-for-Paragraphs"
28287 \begin_layout Standard
28288 \begin_inset Note Greyedout
28291 \begin_layout Plain Layout
28296 You cannot have floats or margin notes inside minipages but minipages can
28297 be used inside tables, floats, and other boxes.
28305 \begin_layout Section
28307 \begin_inset CommandInset label
28309 name "sec:Parboxes"
28317 \begin_layout Plain Layout
28326 \begin_layout Standard
28327 Parboxes are very similar to minipages with the difference that they cannot
28329 The main difference to minipages is that minipages are in contrary to parboxes
28330 no real boxes but LaTeX-environments.
28333 \begin_layout Standard
28335 \begin_inset Box Frameless
28344 height_special "totalheight"
28347 \begin_layout Plain Layout
28348 This a text within a parbox.
28349 This a text within a parbox.
28352 \begin_layout Plain Layout
28353 This footnote won't appear:
28357 \begin_layout Plain Layout
28358 This footnote is inside a parbox and will therefore not appear.
28371 \begin_layout Section
28372 Boxes for Words and Characters
28376 \begin_layout Plain Layout
28377 Boxes ! for Characters
28385 \begin_layout Subsection
28386 Prevent Hyphenation
28387 \begin_inset CommandInset label
28389 name "sec:Prevent-Hyphenation"
28397 \begin_layout Plain Layout
28398 Boxes ! to Prevent Hyphenation
28406 \begin_layout Standard
28407 You can use a special kind of boxes to prevent words or text to be hyphenated.
28408 \begin_inset Newline newline
28411 Here is an example text:
28414 \begin_layout Standard
28415 This line is an example to show how you can prevent the hyphenation of
28416 \begin_inset Quotes eld
28420 \begin_inset Quotes erd
28426 \begin_layout Standard
28427 To prevent the hyphenation of the word
28428 \begin_inset Quotes eld
28432 \begin_inset Quotes erd
28438 \begin_layout Standard
28446 \begin_layout Standard
28447 in TeX-Code before the word.
28448 Behind the word insert a closing brace
28449 \begin_inset Quotes eld
28457 \begin_inset Quotes erd
28464 \begin_layout Plain Layout
28476 \begin_layout Standard
28477 This is the result:
28480 \begin_layout Standard
28481 This line is an example to show how you can prevent the hyphenation of
28485 \begin_layout Plain Layout
28495 \begin_inset Quotes eld
28499 \begin_inset Quotes erd
28506 \begin_layout Plain Layout
28516 \begin_layout Standard
28517 You can alternatively set the command
28518 \begin_inset Quotes eld
28528 \begin_inset Quotes grd
28531 as TeX-Code directly before the word:
28534 \begin_layout Standard
28535 This line is an example to show how you can prevent the hyphenation of
28536 \begin_inset Quotes eld
28543 \begin_layout Plain Layout
28553 \begin_inset Quotes erd
28559 \begin_layout Standard
28560 Of course the word now protrudes over the side margin.
28561 To avoid this, add via the menu
28563 Insert\SpecialChar \menuseparator
28565 \begin_inset Space ~
28568 Formatting\SpecialChar \menuseparator
28570 \begin_inset Space ~
28579 ) a line break before the word:
28582 \begin_layout Standard
28583 This line is an example to show how you can prevent the hyphenation of
28584 \begin_inset Newline newline
28591 \begin_layout Plain Layout
28601 \begin_inset Quotes eld
28605 \begin_inset Quotes erd
28612 \begin_layout Plain Layout
28622 \begin_layout Subsection
28624 \begin_inset CommandInset label
28626 name "sub:Vertical-Alignment"
28634 \begin_layout Plain Layout
28635 Boxes ! for Vertical Alignment
28644 \begin_layout Plain Layout
28653 \begin_layout Standard
28654 With the help of the command
28660 you can align words, characters or other boxes vertically to the surrounding
28668 is used with the following scheme:
28671 \begin_layout Standard
28676 raisebox{lift}[height][depth]{box content}
28679 \begin_layout Standard
28680 The lift can be a positive value to raise the box or a negative value to
28684 \begin_layout Standard
28685 To align for example the word
28686 \begin_inset Quotes eld
28690 \begin_inset Quotes erd
28693 so that the bottom of the
28694 \begin_inset Quotes eld
28698 \begin_inset Quotes erd
28702 \begin_inset Quotes eld
28706 \begin_inset Quotes erd
28709 is at the baseline, insert the command
28712 \begin_layout Standard
28722 \begin_layout Standard
28723 in TeX-Code before the word.
28724 Behind the word insert a closing brace
28725 \begin_inset Quotes eld
28733 \begin_inset Quotes erd
28737 \begin_inset Newline newline
28740 This is the result:
28743 \begin_layout Standard
28744 This is a text line with the word
28748 \begin_layout Plain Layout
28760 \begin_inset Quotes eld
28764 \begin_inset Quotes erd
28771 \begin_layout Plain Layout
28781 \begin_layout Standard
28782 \begin_inset VSpace bigskip
28785 When you raise or lower characters in a line, the line distance will be
28789 \begin_layout Standard
28790 This is a text line with the word
28794 \begin_layout Plain Layout
28806 \begin_inset Quotes eld
28810 \begin_inset Quotes erd
28817 \begin_layout Plain Layout
28825 \begin_inset Newline newline
28828 This is a text line with the word
28832 \begin_layout Plain Layout
28842 \begin_inset Quotes eld
28846 \begin_inset Quotes erd
28853 \begin_layout Plain Layout
28863 \begin_layout Standard
28864 If you want to prevent this for a certain reason, set the box height to
28869 \begin_layout Standard
28879 \begin_layout Standard
28880 This is a text line with the word
28884 \begin_layout Plain Layout
28896 \begin_inset Quotes eld
28900 \begin_inset Quotes erd
28907 \begin_layout Plain Layout
28915 \begin_inset Newline newline
28918 This is a text line with the word
28922 \begin_layout Plain Layout
28926 raisebox{0.5cm}[0pt]{
28932 \begin_inset Quotes eld
28936 \begin_inset Quotes erd
28943 \begin_layout Plain Layout
28953 \begin_layout Section
28955 \begin_inset CommandInset label
28957 name "sec:Colored-Boxes"
28965 \begin_layout Plain Layout
28974 \begin_layout Subsection
28979 \begin_layout Plain Layout
28988 \begin_layout Standard
28989 To color the background of text the text must be put into a so called
28990 \begin_inset Quotes eld
28994 \begin_inset Quotes erd
28998 This requires that the LaTeX-package
29006 \begin_layout Plain Layout
29007 LaTeX-packages ! color
29012 is loaded in the document preamble with the command
29015 \begin_layout Standard
29020 @ifundefined{textcolor}
29021 \begin_inset Newline newline
29028 \begin_layout Plain Layout
29039 usepackage{color}}{}
29042 \begin_layout Standard
29047 will be loaded automatically by LyX when you color text
29051 \begin_layout Plain Layout
29052 To avoid that it is loaded twice the command
29056 @ifundef\SpecialChar \textcompwordmark{}
29067 \begin_layout Standard
29068 \begin_inset VSpace medskip
29071 Colorboxes are created with the command
29078 This will be used with the following scheme:
29081 \begin_layout Standard
29086 colorbox{color}{box content}
29089 \begin_layout Standard
29090 The box content can also be a box and colorboxes can also be within other
29094 \begin_layout Standard
29095 The following colors are predefined:
29096 \begin_inset Newline newline
29135 \begin_inset Newline newline
29138 You can also define your own color as described in section
29139 \begin_inset Space ~
29143 \begin_inset CommandInset ref
29145 reference "sec:Colored-Tables"
29152 \begin_layout Standard
29154 \begin_inset Space \thinspace{}
29158 \begin_inset Space ~
29161 a red background for a word, insert the command
29164 \begin_layout Standard
29172 \begin_layout Standard
29173 before the word in TeX-Code.
29174 Behind the word insert a closing brace
29175 \begin_inset Quotes eld
29183 \begin_inset Quotes erd
29187 \begin_inset Newline newline
29190 This is the result:
29193 \begin_layout Standard
29194 This is a line where the word
29198 \begin_layout Plain Layout
29208 \begin_inset Quotes eld
29212 \begin_inset Quotes erd
29219 \begin_layout Plain Layout
29226 has a red background.
29229 \begin_layout Standard
29230 \begin_inset VSpace bigskip
29233 If you would have the box frame in a different color, you can use the command
29240 with the following scheme:
29243 \begin_layout Standard
29248 fcolorbox{frame color}{box color}{box content}
29251 \begin_layout Standard
29265 The frame thickness and the space between the frame and the box content
29266 can be adjusted with the lengths
29278 , respectively, as described in section
29279 \begin_inset Space ~
29283 \begin_inset CommandInset ref
29285 reference "sec:Framed-Boxes"
29292 \begin_layout Standard
29293 For the following example the command
29296 \begin_layout Standard
29301 fcolorbox{cyan}{magenta}{
29304 \begin_layout Standard
29308 \begin_layout Standard
29309 Here is an example where the frame line thickness was set to 1
29310 \begin_inset Space \thinspace{}
29314 \begin_inset Newline newline
29321 \begin_layout Plain Layout
29336 \begin_layout Plain Layout
29340 fcolorbox{cyan}{magenta}{
29345 This is text within a colored, framed box.
29349 \begin_layout Plain Layout
29359 \begin_layout Standard
29360 \begin_inset VSpace bigskip
29363 Of course you can also have colored text inside a colorbox:
29364 \begin_inset Newline newline
29371 \begin_layout Plain Layout
29375 fcolorbox{cyan}{magenta}{
29382 This is colored text within a colored, framed box.
29388 \begin_layout Plain Layout
29399 \begin_layout Plain Layout
29413 \begin_layout Standard
29416 \begin_inset VSpace medskip
29422 \begin_layout Standard
29423 \begin_inset Note Greyedout
29426 \begin_layout Plain Layout
29431 Text in colorboxes cannot have line breaks.
29432 To color multiple text lines or paragraphs, use a box inside a colorbox
29433 as described in the following.
29441 \begin_layout Subsection
29442 Color for Paragraphs
29443 \begin_inset CommandInset label
29445 name "sub:Color-for-Paragraphs"
29453 \begin_layout Plain Layout
29454 Color ! for Paragraphs
29462 \begin_layout Standard
29463 To set the background color for more than one text line, put the text into
29465 Before the minipage insert the
29474 \begin_layout Standard
29482 \begin_layout Standard
29484 Behind the minipage insert a closing brace
29485 \begin_inset Quotes eld
29493 \begin_inset Quotes erd
29499 \begin_layout Standard
29503 \begin_layout Plain Layout
29507 colorbox{lightgrey}{
29513 \begin_inset Box Frameless
29522 height_special "totalheight"
29525 \begin_layout Plain Layout
29526 This is text with background color.
29527 This is text with background color.
29530 \begin_layout Plain Layout
29531 \begin_inset VSpace defskip
29534 The text can have footnotes
29538 \begin_layout Plain Layout
29539 Another example footnote
29544 and can include tables and figures.
29547 \begin_layout Plain Layout
29549 \begin_inset Tabular
29550 <lyxtabular version="3" rows="3" columns="3">
29552 <column alignment="center" valignment="top" width="0">
29553 <column alignment="center" valignment="top" width="0">
29554 <column alignment="center" valignment="top" width="0">
29556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29559 \begin_layout Plain Layout
29565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29568 \begin_layout Plain Layout
29574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29577 \begin_layout Plain Layout
29585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29588 \begin_layout Plain Layout
29594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29597 \begin_layout Plain Layout
29599 \begin_inset Quotes erd
29607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29610 \begin_layout Plain Layout
29618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29621 \begin_layout Plain Layout
29627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29630 \begin_layout Plain Layout
29636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29639 \begin_layout Plain Layout
29659 \begin_layout Plain Layout
29669 \begin_layout Section
29670 Rotated and Scaled Boxes
29673 \begin_layout Standard
29674 To use the the commands described in this section, the LaTeX-package
29682 \begin_layout Plain Layout
29683 LaTeX-packages ! graphicx
29688 needs to be loaded in the document preamble with the command
29691 \begin_layout Standard
29696 @ifundefined{rotatebox}
29697 \begin_inset Newline newline
29704 \begin_layout Plain Layout
29715 usepackage{graphicx}}{}
29718 \begin_layout Standard
29719 \begin_inset Note Greyedout
29722 \begin_layout Plain Layout
29727 Some DVI-viewers can't display rotated or scaled material.
29735 \begin_layout Standard
29736 \begin_inset Note Greyedout
29739 \begin_layout Plain Layout
29744 Floats mustn't be inside a rotated or scaled box.
29752 \begin_layout Subsection
29757 \begin_layout Plain Layout
29767 \begin_layout Plain Layout
29777 \begin_layout Plain Layout
29787 \begin_layout Plain Layout
29788 Table Customization ! Rotating
29796 \begin_layout Standard
29797 To rotate material, you can put it into a rotated box.
29798 Such a box is created using the command
29804 in TeX-Code with the following scheme:
29807 \begin_layout Standard
29812 rotatebox[rotation origin]{rotation angle}{box content}
29815 \begin_layout Standard
29816 The rotation origin is specified in the form
29821 The following positions are possible:
29841 (top), and also expedient combinations of the four base positions.
29846 means, that the rotation origin is at the top left corner of the box.
29847 When no rotation origin is specified, the position
29852 The rotation angle is a number that can be negative that specifies the
29854 The rotation direction is counterclockwise.
29857 \begin_layout Standard
29858 In the following example the command
29862 rotatebox[origin=c]{60}{
29864 was inserted as TeX-Code before the text
29865 \begin_inset Quotes eld
29869 \begin_inset Quotes erd
29872 ; after the text the box was closed by a closing brace
29879 \begin_layout Standard
29884 \begin_layout Plain Layout
29888 rotatebox[origin=c]{60}{
29897 \begin_layout Plain Layout
29907 \begin_layout Standard
29908 The box content can also be another box or an inline formula:
29911 \begin_layout Standard
29916 \begin_layout Plain Layout
29920 rotatebox[origin=r]{-60}{
29926 \begin_inset Box Doublebox
29935 height_special "totalheight"
29938 \begin_layout Plain Layout
29948 \begin_layout Plain Layout
29959 \begin_layout Plain Layout
29963 rotatebox[origin=lb]{60}{
29969 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29976 \begin_layout Plain Layout
29986 \begin_layout Standard
29987 or an image or table:
29990 \begin_layout Standard
29995 \begin_layout Plain Layout
29999 rotatebox[origin=lb]{90}{
30005 \begin_inset Graphics
30006 filename clipart/platypus.eps
30016 \begin_layout Plain Layout
30023 with a rotated image
30027 \begin_layout Plain Layout
30031 rotatebox[origin=l]{-90}{
30037 \begin_inset Tabular
30038 <lyxtabular version="3" rows="2" columns="2">
30040 <column alignment="center" valignment="top" width="0">
30041 <column alignment="center" valignment="top" width="0">
30043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30046 \begin_layout Plain Layout
30052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30055 \begin_layout Plain Layout
30063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30066 \begin_layout Plain Layout
30072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30075 \begin_layout Plain Layout
30090 \begin_layout Plain Layout
30100 \begin_layout Subsection
30105 \begin_layout Plain Layout
30115 \begin_layout Plain Layout
30125 \begin_layout Plain Layout
30135 \begin_layout Plain Layout
30136 Table Customization ! Scaling
30144 \begin_layout Standard
30145 To scale material the commands
30157 can be used as TeX-Code.
30160 \begin_layout Standard
30167 is used with the following scheme:
30170 \begin_layout Standard
30175 scalebox{horizontal}[vertical]{box content}
30178 \begin_layout Standard
30179 Horizontal and vertical are the corresponding scaling factors.
30180 If no vertical scaling factor is given, the horizontal factor will also
30181 be used as vertical one.
30184 \begin_layout Standard
30191 creates for example a double size
30195 \begin_layout Plain Layout
30208 \begin_layout Plain Layout
30215 , compared to the document text size.
30218 \begin_layout Standard
30223 scalebox{2}[1]{Hello}
30225 in contrary distorts the
30229 \begin_layout Plain Layout
30242 \begin_layout Plain Layout
30252 \begin_layout Standard
30253 If a the scaling factor is negative, the box content will be mirrored.
30254 Therefore the command
30258 scalebox{-1}[1]{Hello}
30260 can be used to create mirror writing:
30264 \begin_layout Plain Layout
30277 \begin_layout Plain Layout
30287 \begin_layout Standard
30292 scalebox{1}[-1]{Hello}
30298 \begin_layout Plain Layout
30311 \begin_layout Plain Layout
30321 \begin_layout Standard
30326 scalebox{-1}[1]{box content}
30328 there exists the command
30329 \begin_inset Newline newline
30336 reflectbox{box content}
30341 \begin_layout Standard
30342 \begin_inset VSpace bigskip
30351 is used to scale the box to a defined width and height.
30352 The command scheme is:
30355 \begin_layout Standard
30360 resizebox{width}{height}{box content}
30363 \begin_layout Standard
30364 Is one of the two command arguments given as exclamation mark
30368 , the size is set so that the aspect ratio of the box content is kept.
30371 \begin_layout Standard
30376 resizebox{2cm}{1cm}{Hello}
30382 \begin_layout Plain Layout
30386 resizebox{2cm}{1cm}{
30395 \begin_layout Plain Layout
30403 \begin_inset Newline newline
30410 resizebox{2cm}{!}{Hello}
30416 \begin_layout Plain Layout
30429 \begin_layout Plain Layout
30439 \begin_layout Standard
30440 \begin_inset VSpace bigskip
30444 \begin_inset Note Greyedout
30447 \begin_layout Plain Layout
30464 are set to zero, no LaTeX-errors occur when exporting the document but
30465 the exported files can not or only partly be displayed.
30473 \begin_layout Standard
30474 \begin_inset VSpace bigskip
30480 \begin_layout Standard
30481 The boxes can be combined in any order.
30483 \begin_inset Space \thinspace{}
30487 \begin_inset Space ~
30491 \begin_inset Newline newline
30498 rotatebox[origin=c]{-45}{
30502 reflectbox{Hello}}}
30503 \begin_inset Newline newline
30511 \begin_layout Standard
30516 \begin_layout Plain Layout
30520 rotatebox[origin=c]{-45}{
30533 \begin_layout Plain Layout
30543 \begin_layout Standard
30545 Images, tables, and inline formulas are allowed as box content:
30548 \begin_layout Standard
30553 \begin_layout Plain Layout
30557 rotatebox[origin=c]{-30}{
30567 \begin_inset Graphics
30568 filename clipart/platypus.eps
30578 \begin_layout Plain Layout
30589 \begin_layout Plain Layout
30593 rotatebox[origin=c]{-45}{
30603 \begin_inset Tabular
30604 <lyxtabular version="3" rows="2" columns="2">
30606 <column alignment="center" valignment="top" width="0">
30607 <column alignment="center" valignment="top" width="0">
30609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30612 \begin_layout Plain Layout
30618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30621 \begin_layout Plain Layout
30629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30632 \begin_layout Plain Layout
30638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30641 \begin_layout Plain Layout
30656 \begin_layout Plain Layout
30667 \begin_layout Plain Layout
30671 rotatebox[origin=c]{-45}{
30681 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30688 \begin_layout Plain Layout
30698 \begin_layout Standard
30699 When the global formula style
30703 is used in the document
30707 \begin_layout Plain Layout
30709 \begin_inset Quotes eld
30713 \begin_inset Quotes erd
30716 is added to the document class options.
30721 , also display formulas can be scaled.
30724 \begin_layout Chapter
30729 \begin_layout Plain Layout
30738 \begin_layout Standard
30741 Insert\SpecialChar \menuseparator
30744 you can insert external material to your document.
30748 \begin_layout Description
30750 \begin_inset Space ~
30753 Document Another LyX document; its content is directly inserted to your
30757 \begin_layout Description
30759 \begin_inset Space ~
30762 Text A text document; every of its text lines is inserted to your document
30766 \begin_layout Description
30768 \begin_inset Space ~
30772 \begin_inset Space ~
30776 \begin_inset Space ~
30779 Lines A text document; its text lines are inserted as they are.
30780 Empty text lines creates a new paragraph in your document.
30783 \begin_layout Description
30785 \begin_inset Space ~
30788 Material Files in various formats.
30791 \begin_layout Description
30793 \begin_inset Space ~
30796 Document LyX or LaTeX-documents.
30799 \begin_layout Section
30804 \begin_layout Plain Layout
30805 External Stuff ! External Material
30813 \begin_layout Standard
30814 The external material feature allows you to insert files to your document
30815 without converting them previously to a format that can be read by the
30816 document output format because LyX takes care of needed conversions.
30817 This is similar to images that can be inserted in various image formats
30821 \begin_layout Standard
30822 External material can be inserted via the
30826 dialog that is accessible with the menu
30828 Insert\SpecialChar \menuseparator
30829 File\SpecialChar \menuseparator
30831 \begin_inset Space ~
30837 Currently the following file types (
30844 \begin_layout Description
30845 ChessDiagram This template supports chess position diagrams made with the
30850 \begin_layout Plain Layout
30854 href{http://en.wikipedia.org/wiki/XBoard}{
30867 \begin_layout Plain Layout
30877 \begin_layout Description
30878 Date This inserts the date in the form
30883 This is a date inserted as external material:
30884 \begin_inset External
30891 \begin_inset Newline newline
30894 The date is not shown within LyX, only in the output.
30895 There are two other methods of inserting a date: Via menu
30897 Insert\SpecialChar \menuseparator
30900 and with the LaTeX command
30907 The different methods are compared in Table
30908 \begin_inset Space ~
30912 \begin_inset CommandInset ref
30914 reference "tab:Comparison-of-the"
30921 \begin_layout Description
30922 LilyPond This template is used for music notation typeset with the program
30926 \begin_layout Plain Layout
30939 \begin_layout Plain Layout
30943 href{http://en.wikipedia.org/wiki/LilyPond}{
30956 \begin_layout Plain Layout
30964 \begin_inset Note Note
30967 \begin_layout Plain Layout
30974 breaks the line while the remaining text in the line is stretched to the
30983 \begin_layout Description
30984 RasterImage This can be used for bitmap images.
30985 Nearly all popular image formats are supported.
30986 The image can be treated in the
30990 dialog like the images that are usually included via the
30994 dialog as described in section
30995 \begin_inset Space ~
30999 \begin_inset CommandInset ref
31001 reference "sec:Graphics-Dialog"
31006 The difference is that only raster images are allowed, that means that
31007 PDF and EPS-images are not supported.
31010 \begin_layout Description
31011 XFig This template supports images created with the program
31015 \begin_layout Plain Layout
31019 href{http://en.wikipedia.org/wiki/Xfig}{
31032 \begin_layout Plain Layout
31042 \begin_layout Standard
31043 \begin_inset Float table
31049 \begin_layout Plain Layout
31050 \begin_inset Caption
31052 \begin_layout Plain Layout
31053 \begin_inset CommandInset label
31055 name "tab:Comparison-of-the"
31059 Comparison of the date input methods.
31067 \begin_layout Plain Layout
31069 \begin_inset Tabular
31070 <lyxtabular version="3" rows="4" columns="4">
31072 <column alignment="center" valignment="top" width="0">
31073 <column alignment="center" valignment="top" width="0">
31074 <column alignment="center" valignment="top" width="0">
31075 <column alignment="center" valignment="top" width="0">
31077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31080 \begin_layout Plain Layout
31086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31089 \begin_layout Plain Layout
31092 External Material\SpecialChar \menuseparator
31098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31101 \begin_layout Plain Layout
31104 Insert\SpecialChar \menuseparator
31110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31113 \begin_layout Plain Layout
31125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31128 \begin_layout Plain Layout
31134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31137 \begin_layout Plain Layout
31143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31146 \begin_layout Plain Layout
31152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31155 \begin_layout Plain Layout
31156 as TeX-Code inset box
31163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31166 \begin_layout Plain Layout
31172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31175 \begin_layout Plain Layout
31181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31184 \begin_layout Plain Layout
31190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31193 \begin_layout Plain Layout
31201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31204 \begin_layout Plain Layout
31210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31213 \begin_layout Plain Layout
31219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31222 \begin_layout Plain Layout
31228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31231 \begin_layout Plain Layout
31250 \begin_layout Standard
31251 When you use the option
31263 dialog, only the path to the inserted file is shown in the output.
31264 \begin_inset Newline newline
31267 External material is displayed in LyX either as box like this:
31268 \begin_inset Graphics
31269 filename clipart/ExternalMaterialQt4.png
31271 scaleBeforeRotation
31275 or as image, depending on the setting in the
31278 \begin_inset Space ~
31290 \begin_layout Standard
31297 manual explains how you can define your own templates.
31300 \begin_layout Section
31302 \begin_inset CommandInset label
31304 name "sec:Child-Documents"
31312 \begin_layout Plain Layout
31313 External Stuff ! Child Documents
31322 \begin_layout Plain Layout
31331 \begin_layout Standard
31332 Child documents are used when you have a long document consisting of several
31333 larger parts or sections.
31334 For maintenance it is often useful and sometimes even required to split
31335 the document in several files that can be revised separately.
31336 The different documents are then the so called child documents and a master
31337 document connects them to print the full document or parts of it.
31340 \begin_layout Standard
31341 Included documents are displayed in LyX as a box like this:
31342 \begin_inset Graphics
31343 filename clipart/ChildDocumentQt4.png
31345 scaleBeforeRotation
31349 To include child documents to a master document use the menu
31351 Insert\SpecialChar \menuseparator
31352 File\SpecialChar \menuseparator
31354 \begin_inset Space ~
31360 A dialog pops up where you can choose between four include methods:
31363 \begin_layout Description
31364 Include You can include LyX and LaTeX-documents.
31373 dialog, the included documents will be opened in LyX in a new file tab
31374 so that you can modify it.
31375 \begin_inset Newline newline
31381 \begin_layout Standard
31382 Here is a child document inserted using
31387 \begin_inset CommandInset include
31388 LatexCommand include
31389 filename "DummyDocument1.lyx"
31396 \begin_layout Standard
31397 The section numbering includes the sections of the included files in the
31398 order they are inserted in the master document.
31399 The included example document has for example a subsection that is numbered
31400 as subsection of this section.
31401 Labels of included documents can be referenced: Subsection
31402 \begin_inset Space ~
31406 \begin_inset CommandInset ref
31408 reference "sub:External-Subsection-1"
31415 \begin_layout Standard
31416 The preamble of the child document is ignored, only the preamble of the
31417 master document is used.
31418 Included documents are inserted starting on a new page and end with a pagebreak.
31421 \begin_layout Standard
31422 With the LaTeX-command
31428 you can specify which included child documents are processed when the output
31430 This is useful when you are perhaps only working on a certain chapter of
31431 your large document as this saves compiling time.
31438 is inserted to the master document preamble.
31439 It takes a comma-separated list of the filenames as argument, e.g.
31442 \begin_layout Standard
31447 includeonly{chapter1,chapter5}
31450 \begin_layout Standard
31451 will only process the included files named
31452 \begin_inset Quotes eld
31456 \begin_inset Quotes erd
31460 \begin_inset Quotes eld
31464 \begin_inset Quotes erd
31468 \begin_inset Quotes eld
31472 \begin_inset Quotes erd
31478 \begin_layout Standard
31479 \begin_inset Note Greyedout
31482 \begin_layout Plain Layout
31487 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31488 w the document in case that the child document uses another document class
31489 than the master document as this will lead to unexpected outputs.
31497 \begin_layout Description
31498 Input This method is very similar to the Include method.
31499 The differences are:
31503 \begin_layout Itemize
31504 Input files don't start with a new page and don't end with a pagebreak.
31507 \begin_layout Itemize
31508 Input files can be previewed in LyX when
31511 \begin_inset Space ~
31516 is enabled in LyX's preferences under
31519 \begin_inset Space ~
31523 \begin_inset Space ~
31526 feel\SpecialChar \menuseparator
31532 \begin_layout Itemize
31543 \begin_layout Standard
31544 Here is a child document inserted using
31549 \begin_inset CommandInset include
31551 filename "DummyDocument2.lyx"
31558 \begin_layout Description
31559 Verbatim With this method every text file can be included.
31560 The file is shown in the output with its source code, no command used in
31561 the text is invoked.
31562 You can use the option
31564 Mark spaces in output
31566 that displays the character
31567 \begin_inset Quotes eld
31574 \begin_layout Plain Layout
31584 \begin_inset Quotes erd
31587 for every space character in the source code.
31588 The difference to the method via the menu
31590 Insert\SpecialChar \menuseparator
31591 File\SpecialChar \menuseparator
31593 \begin_inset Space ~
31598 is that the document content is not shown in LyX.
31601 \begin_layout Standard
31602 Here is a child document inserted as Verbatim:
31603 \begin_inset CommandInset include
31604 LatexCommand verbatiminput
31605 filename "DummyTextDocument.txt"
31610 \begin_inset VSpace bigskip
31613 Here is a child document inserted as Verbatim using the
31615 Mark spaces in output
31618 \begin_inset CommandInset include
31619 LatexCommand verbatiminput*
31620 filename "DummyTextDocument.txt"
31627 \begin_layout Standard
31628 \begin_inset VSpace bigskip
31634 \begin_layout Standard
31635 \begin_inset Note Greyedout
31638 \begin_layout Plain Layout
31643 As you can see in the examples above, the text of the documents included
31648 is not broken at the end of the document lines.
31656 \begin_layout Description
31657 Listings This type is described in chapter
31658 \begin_inset Space ~
31662 \begin_inset CommandInset ref
31664 reference "cha:Program-Code-Listings"
31671 \begin_layout Standard
31672 \begin_inset Note Greyedout
31675 \begin_layout Plain Layout
31680 Including the same document twice in a document using different methods
31681 could cause LaTeX-problems.
31689 \begin_layout Chapter
31690 Program Code Listings
31691 \begin_inset CommandInset label
31693 name "cha:Program-Code-Listings"
31701 \begin_layout Plain Layout
31711 \begin_layout Plain Layout
31721 \begin_layout Plain Layout
31730 \begin_layout Standard
31731 To include and typeset program code you can use the
31735 inset that can be inserted via the menu
31737 Insert\SpecialChar \menuseparator
31749 \begin_layout Plain Layout
31750 LaTeX-packages ! listings
31755 provides a powerful and flexible way to insert program source code to your
31759 \begin_layout Standard
31760 When right-clicking on a listings inset a dialog pops up where you can set
31761 the listings format.
31764 \begin_layout Standard
31765 By default, a listing starts a new paragraph in the output.
31766 The placement option
31769 \begin_inset Space ~
31774 prints the listing inline like this:
31775 \begin_inset listings
31776 lstparams "language={C++}"
31780 \begin_layout Plain Layout
31787 \begin_inset Newline newline
31794 creates a listings float where you can specify the placement options
31795 \begin_inset Quotes eld
31803 \begin_inset Quotes erd
31807 \begin_inset Quotes eld
31815 \begin_inset Quotes erd
31819 \begin_inset Quotes eld
31827 \begin_inset Quotes erd
31831 \begin_inset Quotes eld
31839 \begin_inset Quotes erd
31842 corresponding to the float placement options described in section
31843 \begin_inset Space ~
31847 \begin_inset CommandInset ref
31849 reference "sec:Float-Placement"
31854 The placement options can be mixed and are inserted without any separation,
31856 \begin_inset Space \thinspace{}
31860 \begin_inset Space ~
31864 \begin_inset Quotes eld
31872 \begin_inset Quotes erd
31877 \begin_inset Quotes eld
31881 \begin_inset Quotes erd
31884 has sometimes no effect, but you don't need to use the
31888 option in this case as also non-float listings can have captions and be
31892 \begin_layout Standard
31893 You can add captions to listings with the menu
31895 Insert\SpecialChar \menuseparator
31899 Listings can be referenced like floats: Listing
31900 \begin_inset Space ~
31904 \begin_inset CommandInset ref
31906 reference "lst:Example-Listing"
31913 \begin_layout Standard
31914 \begin_inset listings
31915 lstparams "language=Python"
31919 \begin_layout Plain Layout
31920 \begin_inset Caption
31922 \begin_layout Plain Layout
31923 \begin_inset CommandInset label
31925 name "lst:Example-Listing"
31929 Example Listing float
31934 # Example listing float
31937 \begin_layout Plain Layout
31941 \begin_layout Plain Layout
31942 'this is a python function'
31945 \begin_layout Plain Layout
31954 \begin_layout Standard
31955 When you have set a programming language in the listings dialog, the keywords
31956 of this language will be recognized and specially typeset in the output.
31957 In the example listings the Python keyword
31958 \begin_inset Quotes eld
31962 \begin_inset Quotes erd
31965 is recognized and printed bold in the output.
31968 \begin_layout Standard
31969 \begin_inset Note Greyedout
31972 \begin_layout Plain Layout
31977 If you don't get bold keywords when using typewriter fonts, your typewriter
31978 font probably doesn't provide a bold shape.
31979 In this case select a different one in the menu
31981 Document\SpecialChar \menuseparator
31982 Settings\SpecialChar \menuseparator
31994 provide bold shapes.)
32002 \begin_layout Standard
32006 \begin_inset Space ~
32011 of the listings dialog you can specify the line numbering style.
32012 You can insert a number to specify which lines are numbered to the field
32018 When you insert e.g.
32020 \begin_inset Quotes eld
32024 \begin_inset Quotes erd
32027 , only every 3rd line will be numbered.
32030 \begin_layout Standard
32031 You can furthermore specify a range of lines, only these will then appear
32036 \begin_inset Space ~
32041 should be used when you use national characters like the German umlauts
32043 \begin_inset Newline newline
32046 Here is an example listing with left line numbering, step
32047 \begin_inset Quotes eld
32051 \begin_inset Quotes erd
32055 \begin_inset Quotes eld
32059 \begin_inset Quotes erd
32063 \begin_inset Quotes eld
32067 \begin_inset Space ~
32071 \begin_inset Quotes erd
32075 \begin_inset Quotes eld
32079 \begin_inset Space ~
32083 \begin_inset Space ~
32087 \begin_inset Quotes erd
32091 \begin_inset Space \thinspace{}
32095 \begin_inset Space \thinspace{}
32101 \begin_layout Standard
32102 \begin_inset listings
32103 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32107 \begin_layout Plain Layout
32111 \begin_layout Plain Layout
32112 'this is a python function'
32115 \begin_layout Plain Layout
32119 \begin_layout Plain Layout
32123 \begin_layout Plain Layout
32124 'This is a German word: Tschüß'
32127 \begin_layout Plain Layout
32131 \begin_layout Plain Layout
32135 \begin_layout Plain Layout
32136 'this is a python function'
32139 \begin_layout Plain Layout
32148 \begin_layout Standard
32149 \begin_inset Note Greyedout
32152 \begin_layout Plain Layout
32157 Due to a bug in the
32161 package the line numbering is shifted by a line by every previous listing.
32162 That's the reason why the lines 2 and 5 are numbered in the above listing
32163 and not the lines 3 and 6.
32171 \begin_layout Standard
32172 \begin_inset VSpace bigskip
32178 \begin_layout Standard
32179 It is also possible to print lines from a file as listing.
32180 To do this, use the menu
32182 Insert\SpecialChar \menuseparator
32183 File\SpecialChar \menuseparator
32186 and choose the type
32194 \begin_layout Plain Layout
32195 The other child document types are described in section
32196 \begin_inset Space ~
32200 \begin_inset CommandInset ref
32202 reference "sec:Child-Documents"
32211 In the child document dialog you can specify the listing parameters in
32213 To show a list of all available parameters, type in a question mark
32214 \begin_inset Quotes eld
32218 \begin_inset Quotes erd
32224 \begin_layout Standard
32225 To reference child document listings, write a label text into the corresponding
32226 field of the child document dialog.
32227 The label can then be referenced using the menu
32229 Insert\SpecialChar \menuseparator
32235 \begin_layout Standard
32237 \begin_inset Space ~
32241 \begin_inset CommandInset ref
32243 reference "lst:file-listing"
32247 is an example for a listing of a file; there the lines 10
32248 \begin_inset Space \thinspace{}
32252 \begin_inset Space \thinspace{}
32255 15 of this LyX file are listed.
32258 \begin_layout Standard
32259 \begin_inset CommandInset include
32260 LatexCommand lstinputlisting
32261 filename "EmbeddedObjects.lyx"
32262 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32269 \begin_layout Standard
32270 \begin_inset VSpace bigskip
32276 \begin_layout Standard
32277 Global listings settings can be set in the
32279 Document\SpecialChar \menuseparator
32280 Settings\SpecialChar \menuseparator
32284 To get there a list of available options, type in a question mark
32285 \begin_inset Quotes eld
32289 \begin_inset Quotes erd
32295 \begin_inset Space ~
32303 \begin_layout Standard
32304 For more information about the
32308 package, we refer to its documentation
32309 \begin_inset CommandInset citation
32318 \begin_layout Standard
32319 \begin_inset Newpage newpage
32325 \begin_layout Chapter
32327 Units available in LyX
32331 \begin_layout Plain Layout
32338 \begin_inset CommandInset label
32340 name "cha:Units-available-in"
32347 \begin_layout Standard
32348 To understand the units described in this documentation, Table
32349 \begin_inset Space ~
32353 \begin_inset CommandInset ref
32355 reference "tab:Units"
32359 explains all units available in LyX.
32362 \begin_layout Standard
32363 \begin_inset Float table
32369 \begin_layout Plain Layout
32370 \begin_inset Caption
32372 \begin_layout Plain Layout
32373 \begin_inset CommandInset label
32387 \begin_layout Plain Layout
32388 \begin_inset VSpace medskip
32394 \begin_layout Plain Layout
32396 \begin_inset Tabular
32397 <lyxtabular version="3" rows="20" columns="2">
32399 <column alignment="center" valignment="top" width="0">
32400 <column alignment="center" valignment="top" width="0">
32402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32405 \begin_layout Plain Layout
32411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32414 \begin_layout Plain Layout
32422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32425 \begin_layout Plain Layout
32431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32434 \begin_layout Plain Layout
32442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32445 \begin_layout Plain Layout
32451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32454 \begin_layout Plain Layout
32462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32465 \begin_layout Plain Layout
32471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32474 \begin_layout Plain Layout
32482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32485 \begin_layout Plain Layout
32491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32494 \begin_layout Plain Layout
32496 \begin_inset Space \thinspace{}
32500 \begin_inset Space \thinspace{}
32510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32513 \begin_layout Plain Layout
32519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32522 \begin_layout Plain Layout
32524 \begin_inset Space \thinspace{}
32528 \begin_inset Space \thinspace{}
32538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32541 \begin_layout Plain Layout
32547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32550 \begin_layout Plain Layout
32551 scaled point (65536
32552 \begin_inset Space \thinspace{}
32556 \begin_inset Space \thinspace{}
32566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32569 \begin_layout Plain Layout
32575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32578 \begin_layout Plain Layout
32580 \begin_inset Space \thinspace{}
32584 \begin_inset Space \thinspace{}
32594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32597 \begin_layout Plain Layout
32603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32606 \begin_layout Plain Layout
32608 \begin_inset Space \thinspace{}
32612 \begin_inset Formula $\approx$
32616 \begin_inset Space \thinspace{}
32626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32629 \begin_layout Plain Layout
32635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32638 \begin_layout Plain Layout
32640 \begin_inset Space \thinspace{}
32644 \begin_inset Space \thinspace{}
32654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32657 \begin_layout Plain Layout
32663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32666 \begin_layout Plain Layout
32667 % of original image width
32674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32677 \begin_layout Plain Layout
32683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32686 \begin_layout Plain Layout
32694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32697 \begin_layout Plain Layout
32703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32706 \begin_layout Plain Layout
32714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32717 \begin_layout Plain Layout
32723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32726 \begin_layout Plain Layout
32734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32737 \begin_layout Plain Layout
32743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32746 \begin_layout Plain Layout
32754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32757 \begin_layout Plain Layout
32763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32766 \begin_layout Plain Layout
32774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32777 \begin_layout Plain Layout
32783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32786 \begin_layout Plain Layout
32794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32797 \begin_layout Plain Layout
32803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32806 \begin_layout Plain Layout
32818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32821 \begin_layout Plain Layout
32827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32830 \begin_layout Plain Layout
32842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32845 \begin_layout Plain Layout
32851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32854 \begin_layout Plain Layout
32856 \begin_inset Space \thinspace{}
32860 \begin_inset Space \thinspace{}
32881 \begin_layout Chapter
32882 Output File Formats with Graphics
32883 \begin_inset CommandInset label
32885 name "cha:Output-File-Formats"
32892 \begin_layout Section
32897 \begin_layout Plain Layout
32907 \begin_layout Plain Layout
32912 \begin_layout Plain Layout
32923 \begin_layout Plain Layout
32938 \begin_layout Standard
32939 This file type has the extension
32940 \begin_inset Quotes eld
32948 \begin_inset Quotes erd
32953 \begin_inset Quotes eld
32957 \begin_inset Quotes erd
32960 (DVI), because it is completely portable; you can move them from one machine
32961 to another without needing to do any sort of conversion.
32962 At the time when this file-format was developed, this was no matter of
32964 DVIs are used for quick previews and as pre-stage for other output formats,
32968 \begin_layout Standard
32969 \begin_inset Note Greyedout
32972 \begin_layout Plain Layout
32977 DVI-files doesn't contain images, they will only be a linked.
32982 So don't forget this, if you move your
32986 file to another computer.
32987 This property can also slow down your computer when you view the DVI.
32988 Because the DVI-viewer has to convert the image in the background to make
32989 it visible when you scroll in the DVI.
32990 So we recommend to use PDF for files with many images.
32993 \begin_layout Standard
32994 You can export your document to DVI by using the menu
32996 File\SpecialChar \menuseparator
32997 Export\SpecialChar \menuseparator
33001 You can view your document as DVI via the
33005 menu or by using the toolbar button
33006 \begin_inset Graphics
33007 filename ../images/buffer-view_dvi.png
33009 scaleBeforeRotation
33016 \begin_layout Section
33018 \begin_inset CommandInset label
33020 name "sec:PostScript"
33028 \begin_layout Plain Layout
33029 File Formats ! PostScript
33038 \begin_layout Plain Layout
33043 \begin_layout Plain Layout
33054 \begin_layout Plain Layout
33069 \begin_layout Standard
33070 This file type has the extension
33071 \begin_inset Quotes eld
33079 \begin_inset Quotes erd
33083 PostScript was developed by the company
33087 as printer language.
33088 The file contains therefore commands that the printer uses to print the
33090 PostScript can be seen as
33091 \begin_inset Quotes eld
33094 programming language
33095 \begin_inset Quotes erd
33098 ; you can calculate with it and draw diagrams and images
33102 \begin_layout Plain Layout
33103 If you are interested to learn more about this, have a look at the LaTeX-package
33109 \begin_inset CommandInset citation
33121 Due to this ability, the files are often bigger than PDFs.
33124 \begin_layout Standard
33125 PostScript can only contain images in the format
33126 \begin_inset Quotes eld
33129 Encapsulated PostScript
33130 \begin_inset Quotes erd
33133 (EPS, file extension
33134 \begin_inset Quotes eld
33142 \begin_inset Quotes erd
33146 As LyX allows you to use any known image format in your document, it has
33147 to convert images in the background to EPS.
33148 If you have e.g 50 images in your document, LyX has to do 50 conversions
33149 whenever you view or export your document.
33150 This will slow down your work flow with LyX drastically.
33151 So if you plan to use PostScript, you can insert your images directly as
33152 EPS to avoid this problem.
33155 \begin_layout Standard
33156 You can export your document to PostScript using the menu
33158 File\SpecialChar \menuseparator
33159 Export\SpecialChar \menuseparator
33163 You can view your document as PostScript via the
33167 menu or by using the toolbar button
33168 \begin_inset Graphics
33169 filename ../images/buffer-view_ps.png
33171 scaleBeforeRotation
33178 \begin_layout Section
33180 \begin_inset CommandInset label
33190 \begin_layout Plain Layout
33200 \begin_layout Plain Layout
33209 \begin_layout Standard
33210 This file type has the extension
33211 \begin_inset Quotes eld
33219 \begin_inset Quotes erd
33224 \begin_inset Quotes eld
33227 Portable Document Format
33228 \begin_inset Quotes erd
33231 (PDF) is developed by
33235 as derivative from PostScript.
33236 It is more compressed and it uses much less commands than PostScript.
33238 \begin_inset Quotes eld
33242 \begin_inset Quotes erd
33245 implies, it can be processed at any computer system and the printed output
33246 looks exactly the same.
33249 \begin_layout Standard
33250 PDF can contain images in its own PDF format, in the format
33251 \begin_inset Quotes eld
33254 Joint Photographic Experts Group
33255 \begin_inset Quotes erd
33258 (JPG, file extension
33259 \begin_inset Quotes eld
33267 \begin_inset Quotes erd
33271 \begin_inset Quotes eld
33279 \begin_inset Quotes erd
33282 ), and in the format
33283 \begin_inset Quotes eld
33286 Portable Network Graphics
33287 \begin_inset Quotes erd
33290 (PNG, file extension
33291 \begin_inset Quotes eld
33299 \begin_inset Quotes erd
33303 Nevertheless you can use any other image format, because LyX converts them
33304 in the background to one of these formats.
33305 But as described in the section about PostScript, the image conversion
33306 will slow down your work flow.
33307 So it is recommended to use images in one of the three mentioned formats.
33310 \begin_layout Standard
33311 You can export your document to PDF via the menu
33313 File\SpecialChar \menuseparator
33316 in three different ways:
33319 \begin_layout Description
33321 \begin_inset Space ~
33324 (ps2pdf) This uses the program
33328 that creates a PDF from a PostScript-version of your file.
33329 The PostScript-version is produced by the program
33333 which uses a DVI-version as intermediate step.
33334 So this export variant consist of three conversions.
33337 \begin_layout Description
33339 \begin_inset Space ~
33342 (dvipdfm) This uses the program
33346 that converts your file in the background to DVI and in a second step to
33350 \begin_layout Description
33352 \begin_inset Space ~
33355 (pdflatex) This uses the program
33359 that converts your file directly to PDF.
33362 \begin_layout Standard
33363 It is recommended to use
33366 \begin_inset Space ~
33375 supports all features of actual PDF-versions, is quick and works stable
33381 is not under development and therefore a bit outdated.
33384 \begin_layout Standard
33385 You can view your document as PDF via the
33389 menu or by using the toolbar button
33390 \begin_inset Graphics
33391 filename ../images/buffer-view_pdf2.png
33393 scaleBeforeRotation
33404 \begin_inset Space ~
33412 \begin_layout Chapter
33413 Explanation of Equation
33414 \begin_inset Space ~
33418 \begin_inset CommandInset ref
33425 \begin_inset CommandInset label
33427 name "cha:Explanation-of-Equation"
33434 \begin_layout Standard
33440 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33443 can be calculated to
33446 \begin_layout Standard
33447 \begin_inset Formula \begin{equation}
33448 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}
33455 \begin_layout Standard
33457 \begin_inset Formula $W_{g\, n}$
33460 is the given width of all cells.
33467 is the LaTeX-length between the cell text and the cell border, its default
33469 \begin_inset Space \thinspace{}
33479 is the thickness of the cell border line, the default is 0.4
33480 \begin_inset Space \thinspace{}
33486 \begin_layout Standard
33488 \begin_inset Space ~
33492 \begin_inset CommandInset ref
33494 reference "eq:Wtot_n"
33498 , the total width of a multicolumn
33499 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33505 \begin_layout Standard
33506 \begin_inset Formula \begin{equation}
33507 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33514 \begin_layout Standard
33515 By setting equation
33516 \begin_inset Space ~
33520 \begin_inset CommandInset ref
33522 reference "eq:Wtot_n"
33527 \begin_inset CommandInset ref
33529 reference "eq:Wtot_mult"
33533 equal we can calculate the needed given width
33534 \begin_inset Formula $W_{g\, n}$
33541 columns are spanned, so that each column has a total width of
33542 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33548 \begin_layout Standard
33549 \begin_inset Formula \begin{equation}
33550 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33557 \begin_layout Bibliography
33558 \begin_inset CommandInset bibitem
33559 LatexCommand bibitem
33560 key "latexcompanion"
33564 Frank Mittelbach and Michel Goossens:
33566 The LaTeX Companion Second Edition.
33569 Addison-Wesley, 2004
33572 \begin_layout Bibliography
33573 \begin_inset CommandInset bibitem
33574 LatexCommand bibitem
33579 Helmut Kopka and Patrick W.
33582 A Guide to LaTeX Fourth Edition.
33585 Addison-Wesley, 2003
33588 \begin_layout Bibliography
33589 \begin_inset CommandInset bibitem
33590 LatexCommand bibitem
33597 LaTeX: A Document Preparation System.
33600 Addison-Wesley, second edition, 1994
33603 \begin_layout Bibliography
33604 \begin_inset CommandInset bibitem
33605 LatexCommand bibitem
33614 \begin_layout Plain Layout
33618 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
33628 \begin_layout Plain Layout
33635 of the LaTeX-package
33643 \begin_layout Plain Layout
33644 LaTeX-packages ! booktabs
33652 \begin_layout Bibliography
33653 \begin_inset CommandInset bibitem
33654 LatexCommand bibitem
33663 \begin_layout Plain Layout
33667 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
33676 \begin_layout Plain Layout
33683 of the LaTeX-package
33691 \begin_layout Plain Layout
33692 LaTeX-packages ! caption
33700 \begin_layout Bibliography
33701 \begin_inset CommandInset bibitem
33702 LatexCommand bibitem
33711 \begin_layout Plain Layout
33715 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
33725 \begin_layout Plain Layout
33732 of the LaTeX-package
33737 \begin_layout Bibliography
33738 \begin_inset CommandInset bibitem
33739 LatexCommand bibitem
33748 \begin_layout Plain Layout
33752 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
33762 \begin_layout Plain Layout
33769 of the LaTeX-package
33777 \begin_layout Plain Layout
33778 LaTeX-packages ! endfloat
33786 \begin_layout Bibliography
33787 \begin_inset CommandInset bibitem
33788 LatexCommand bibitem
33797 \begin_layout Plain Layout
33801 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty}{
33810 \begin_layout Plain Layout
33817 of the LaTeX-package
33825 \begin_layout Plain Layout
33826 LaTeX-packages ! wrapfig
33830 \begin_layout Plain Layout
33838 \begin_layout Plain Layout
33849 \begin_layout Plain Layout
33865 \begin_layout Plain Layout
33876 \begin_layout Plain Layout
33891 \begin_layout Bibliography
33892 \begin_inset CommandInset bibitem
33893 LatexCommand bibitem
33902 \begin_layout Plain Layout
33906 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
33916 \begin_layout Plain Layout
33923 of the LaTeX-package
33931 \begin_layout Plain Layout
33932 LaTeX-packages ! footmisc
33940 \begin_layout Bibliography
33941 \begin_inset CommandInset bibitem
33942 LatexCommand bibitem
33951 \begin_layout Plain Layout
33955 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
33964 \begin_layout Plain Layout
33971 of the LaTeX-package
33979 \begin_layout Plain Layout
33980 LaTeX-packages ! hyperref
33988 \begin_layout Bibliography
33989 \begin_inset CommandInset bibitem
33990 LatexCommand bibitem
33999 \begin_layout Plain Layout
34003 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
34013 \begin_layout Plain Layout
34020 of the LaTeX-package
34028 \begin_layout Plain Layout
34029 LaTeX-packages ! hyperref
34037 \begin_layout Bibliography
34038 \begin_inset CommandInset bibitem
34039 LatexCommand bibitem
34048 \begin_layout Plain Layout
34052 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
34062 \begin_layout Plain Layout
34069 of the LaTeX-package
34077 \begin_layout Plain Layout
34078 LaTeX-packages ! koma-script
34086 \begin_layout Bibliography
34087 \begin_inset CommandInset bibitem
34088 LatexCommand bibitem
34097 \begin_layout Plain Layout
34101 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
34111 \begin_layout Plain Layout
34118 of the LaTeX-package
34126 \begin_layout Plain Layout
34127 LaTeX-packages ! listings
34135 \begin_layout Bibliography
34136 \begin_inset CommandInset bibitem
34137 LatexCommand bibitem
34146 \begin_layout Plain Layout
34150 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
34160 \begin_layout Plain Layout
34167 of the LaTeX-package
34175 \begin_layout Plain Layout
34176 LaTeX-packages ! marginnote
34184 \begin_layout Bibliography
34185 \begin_inset CommandInset bibitem
34186 LatexCommand bibitem
34195 \begin_layout Plain Layout
34199 href{http://tug.org/PSTricks/main.cgi/}{
34208 \begin_layout Plain Layout
34215 of the LaTeX-package
34223 \begin_layout Plain Layout
34224 LaTeX-packages ! PSTricks
34232 \begin_layout Bibliography
34233 \begin_inset CommandInset bibitem
34234 LatexCommand bibitem
34243 \begin_layout Plain Layout
34247 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
34256 \begin_layout Plain Layout
34263 of the LaTeX-package
34271 \begin_layout Plain Layout
34272 LaTeX-packages ! sidecap
34280 \begin_layout Bibliography
34281 \begin_inset CommandInset bibitem
34282 LatexCommand bibitem
34291 \begin_layout Plain Layout
34295 href{http://wiki.lyx.org/LyX/NewInLyX15}{
34304 \begin_layout Plain Layout
34311 about new features in
34318 \begin_layout Standard
34319 \begin_inset CommandInset index_print
34320 LatexCommand printindex
34327 \begin_layout Standard
34328 \begin_inset FloatList figure
34335 \begin_layout Standard
34336 \begin_inset FloatList table
34343 \begin_layout Standard
34344 \begin_inset FloatList algorithm